/*! 2018-07-13 */
var PATH_ACTIVITY="";Array.prototype.indexOf||(Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;for(c=c<0?Math.ceil(c):Math.floor(c),c<0&&(c+=b);c<b;c++)if(c in this&&this[c]===a)return c;return-1}),function(a,b){b.fn.scroll_subtitle=function(){return this.each(function(){var c=b(this);c.children().length>1&&a.setInterval(function(){var a=c.children(),d=b(a[0]);d.slideUp(2e3,function(){d.remove().appendTo(c).show()})},5e3)})},b.preloadImages=function(c,d){if(b.isArray(c)){var e=c.length;if(e>0)for(var f=0,g=function(){++f>=e&&"function"==typeof d&&a.setTimeout(d,100)},h=0;h<e;h++){var i=new Image;i.onload=g,i.onerror=g,i.src=c[h]}}},b.getUrlParam=function(b){var c=new RegExp("(^|&)"+b+"=([^&]*)(&|$)"),d=a.location.search.substr(1).match(c);return null!=d?unescape(d[2]):null},b.fn.toFillText=function(){return this.each(function(){var a=b(this),c=a.html(),d=a.height();a.html("");var e=b("<div>"+c+"</div>").appendTo(a);e.css("font-size","12px");for(var f=12,g=12;g<200&&(f=g,!(e.height()>d));g++)e.css("font-size",g+"px");a.css("font-size",f-2+"px").html(c)})},b.fillText=function(a){var c=a.html(),d=a.height();a.html("");var e=b("<div>"+c+"</div>").appendTo(a);e.css("font-size","12px");for(var f=12;f<200;f++){if(e.height()>d){a.css("font-size",f-2+"px").html(c);break}e.css("font-size",f+"px")}},b.showPage=function(a){var c=b('<div class="frame-dialog"><iframe frameborder="0" src="'+a+'"></iframe><div class="closebutton"></div></div>');c.appendTo("body").show().on("click",".closebutton",function(){c.hide(function(){c.remove(),c=null})})},a.WBActivity={showLoginForm:function(){b(".loginform").fadeIn()},hideLoginForm:function(){b(".loginform").fadeOut()},showLoading:function(){b(".loader").fadeIn()},hideLoading:function(){b(".loader").fadeOut()}},b(function(){if(window.top==window.self)return void(window.location.href="/frame.php");b(".top_title").scroll_subtitle(),b(".button-login").on("click",function(){a.WBActivity.showLoading(),b.getJSON(PATH_ACTIVITY+Path_url("login.do.php"),{rid:scene_id,password:b("#password").val()},function(b){0==b.errno?(a.sessionStorage.setItem("loginkey",1),a.WBActivity.hideLoginForm(),a.WBActivity.start()):alert("密码错误")}).complete(function(){a.WBActivity.hideLoading()})}),b(".mp_account_codeimage").on("click",function(){$(this).hasClass("bigqrcode")?(b(".bigmpcodebar").slideDown(),$(this).removeClass("bigqrcode")):$(this).addClass("bigqrcode")}),b(".bigmpcodebar .closebutton").on("click",function(){b(".bigmpcodebar").slideUp()}),b(".navbaritem.fullscreen").on("click",function(){b.toggleFullScreen()});a.sessionStorage.getItem("loginkey")?a.WBActivity.start():(a.WBActivity.hideLoading(),a.WBActivity.showLoginForm())}),b(a).on("resize",function(){a.WBActivity.resize()})}(window,jQuery),function(a,b){var c={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},d="webkit moz o ms khtml".split(" ");if(void 0!==document.cancelFullScreen)c.supportsFullScreen=!0;else for(var e=0,f=d.length;e<f;e++)if(c.prefix=d[e],void 0!==document[c.prefix+"CancelFullScreen"]){c.supportsFullScreen=!0;break}c.supportsFullScreen&&(c.fullScreenEventName=c.prefix+"fullscreenchange",c.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},c.requestFullScreen=function(a){return""===this.prefix?a.requestFullScreen():a[this.prefix+"RequestFullScreen"]()},c.cancelFullScreen=function(a){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()}),"undefined"!=typeof jQuery&&(jQuery.fn.requestFullScreen=function(){return this.each(function(){var a=jQuery(this);c.supportsFullScreen&&c.requestFullScreen(a)})}),a.fullScreenApi=c,b.toggleFullScreen=function(){c.isFullScreen()?c.cancelFullScreen(document.documentElement):c.requestFullScreen(document.documentElement)}}(window,jQuery);var scene_id=$.getUrlParam("rid");