');$('#preImg a').click(function(){$(this).pingback()})}if(preadv.length>0){var html='
';$('#b_adv').html(html);$('#b_adv a').click(function(){$(this).pingback()});$('#b_adv div.swf_wrapper').each(function(){var file=$(this).attr('_file');var width=$(this).attr('_width');var height=$(this).attr('_height');$(this).width(width).height(height);$(this).flash({swf:file,width:width,height:height,wmode:'transparent'});$(this).mouseup(function(){$(this).pingback()})});$('#b_adv div.swf_overlay').click(function(){$(this).prev().mouseup();window.open($(this).attr('_url'))})}var elapsed=0;function autologin(){if(loaded){setInterval(function(){window.location.href=SYS.base+'/#!'+SYS.home.substr(1)},3000)}else if(elapsed>15){window.location.href=SYS.base+'/#!'+SYS.home.substr(1)}elapsed++;if(elapsed%4==0){$('#b_login').val('登录中')}else{$('#b_login').val($('#b_login').val()+'.')}}$.get(SYS.base+'/user/ajax_session.json',function(data){if(data.is_login){$('#b_login').val('登录中');setInterval(autologin,1000)}else{$(':input').prop('disabled',false);$('#id').focus()}});$('body').append('');window.loadJS=function(src,async,callback){var script=document.createElement('script');script.src=src;script.type='text/javascript';script.async=async;if(typeof callback==='function'){script.onload=script.onreadystatechange=function(){if(!script.readyState||/loaded|complete/.test(script.readyState)){script.onload=script.onreadystatechange=null;callback()}}}var head=document.getElementsByTagName('head')[0];head.appendChild(script)}});var loaded=false;$(window).load(function(){loaded=true});$(function(){$.fn.extend({"showCaptcha":function(callback){if(typeof(TencentCaptacha_loaded)=="undefined"){console.log("captcha not init");return}var captcha1=new TencentCaptcha('2068091125',function(res){if(res.ret===0){captcha1.destroy();if(typeof callback==='function'){callback(res.ticket,res.randstr)}}});captcha1.show()}});function loadJS(src,async,callback){var script=document.createElement('script');script.src=src;script.type='text/javascript';script.async=async;if(typeof callback==='function'){script.onload=script.onreadystatechange=function(){if(!script.readyState||/loaded|complete/.test(script.readyState)){script.onload=script.onreadystatechange=null;callback()}}}var head=document.getElementsByTagName('head')[0];head.appendChild(script)};if(typeof(TencentCaptacha_loaded)=="undefined"){loadJS("https://ssl.captcha.qq.com/TCaptcha.js",true,function(){TencentCaptacha_loaded=true})}});(function(Backbone,_,$){window.adsbygoogle=window.adsbygoogle||[];var Adsense=new Backbone.Model({id:0});Adsense.Ads={};var View=(typeof APP!="undefined"&&!_.isUndefined(APP.View))?APP.View:Backbone.View;var Banner=View.extend({el:".googlead",options:{width:0,height:0},initialize:function(options){this.options.pubID=Adsense.get("id");this.render();return View.prototype.initialize.call(this,options)},render:function(){if($(this.el).length>0){var html=template(this.options);$(this.el).html(html);window.adsbygoogle.push({})}}});Adsense.Ads.Banner=Banner;Adsense.Ads.MediumRect=Banner.extend({options:{width:320,height:250}});Adsense.Ads.LargeRect=Banner.extend({options:{width:336,height:280}});Adsense.Ads.Leaderboard=Banner.extend({options:{width:728,height:90}});Adsense.Ads.HalfBanner=Banner.extend({options:{width:970,height:90}});Adsense.Ads.WideSkyscraper=Banner.extend({options:{width:160,height:600}});Adsense.Ads.Mobile=Banner.extend({options:{width:320,height:50}});var template=_.template('');if(_.isUndefined(Backbone.API))Backbone.API={};Backbone.API.Adsense=Adsense;if(typeof APP!="undefined"&&(_.isUndefined(APP.API)||_.isUndefined(APP.API.Adsense))){APP.API=APP.API||{};APP.API.Adsense=Backbone.API.Adsense}if(typeof window.Adsense=="undefined"){window.Adsense=Adsense}})(this.Backbone,this._,this.$);