function G(a){if(typeof a=="string"){return document.getElementById(a)}else{return a}}function on(d,b,c){var a=b.replace(/^on/,"");if(window.attachEvent){d.attachEvent("on"+a,c)}else{if(window.addEventListener){d.addEventListener(a,c,false)}}}function stopPropagation(a){if(window.attachEvent){a.cancelBubble=true}else{if(window.addEventListener){a.stopPropagation()}}}if(typeof Fe=="undefined"){Fe={}}Fe.Browser=(function(){var c=navigator.userAgent;var g=0,a=0,f=0,e=0;var d=0,i=0,b=0;if(typeof(window.opera)=="object"&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(c)){a=parseFloat(RegExp.$2)}else{if(/MSIE (\d+(\.\d+)?)/.test(c)){g=parseFloat(RegExp.$1)}else{if(/Firefox(\s|\/)(\d+(\.\d+)?)/.test(c)){e=parseFloat(RegExp.$2)}else{if(navigator.vendor=="Netscape"&&/Netscape(\s|\/)(\d+(\.\d+)?)/.test(c)){b=parseFloat(RegExp.$2)}else{if(c.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(c)){f=parseFloat(RegExp.$1)}}}}}if(c.indexOf("Gecko")>-1&&c.indexOf("KHTML")==-1&&/rv\:(\d+(\.\d+)?)/.test(c)){i=parseFloat(RegExp.$1)}return{isIE:g,isFirefox:e,isGecko:i,isNetscape:b,isOpera:a,isSafari:f}})();Fe.format=function(i,n){if(arguments.length>1){var e=Fe.format,g=/([.*+?^=!:${}()|[\]\/\\])/g,f=(e.left_delimiter||"{").replace(g,"\\$1"),a=(e.right_delimiter||"}").replace(g,"\\$1");var c=e._r1||(e._r1=new RegExp("#"+f+"([^"+f+a+"]+)"+a,"g")),b=e._r2||(e._r2=new RegExp("#"+f+"(\\d+)"+a,"g"));if(typeof(n)=="object"){return i.replace(c,function(k,m){var l=n[m];if(typeof l=="function"){l=l(m)}return typeof(l)=="undefined"?"":l})}else{if(typeof(n)!="undefined"){var j=Array.prototype.slice.call(arguments,1);var d=j.length;return i.replace(b,function(k,l){l=parseInt(l,10);return(l>=d)?k:j[l]})}}}return i};Fe.format.delimiter=function(c,a){var b=Fe.format;b.left_delimiter=c||"{";b.right_delimiter=a||c||"}";b._r1=b._r2=null};Fe.escapeHTML=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")};if("undefined"==typeof ContentPlayer){var ContentPlayer={}}var Observable=(function(){function a(c){if(c&&typeof c=="object"&&c.handleMessage){this.observers.push(c)}}function b(d){var e=this.observers;for(var c=0;c<e.length;c++){e[c].handleMessage(d)}}return{addObserver:a,notify:b}})();function implement(a,c){for(var b in a){c[b]=a[b]}}ContentPlayer.View=function(a){this.container=a.container;this.data=a.data||null;this.tpl=a.tpl||"";this.curIndex=a.curIndex||0;this.needFadeIn=a.needFadeIn||false;this.observers=[];this.fadeInTimer=0;this.initOpacity=0.1;this.curOpacity=0.1;this.opacityDiff=0.1};ContentPlayer.View.prototype.init=function(){this.registerEvent();this.render()};ContentPlayer.View.prototype.registerEvent=function(){var a=this;on(this.container,"mouseover",function(b){a.notify({type:"STOP"})});on(this.container,"mouseout",function(b){a.notify({type:"PLAY",param:{step:1}})})};ContentPlayer.View.prototype.render=function(){this.container.innerHTML=Fe.format(this.tpl,this.data[this.curIndex])};ContentPlayer.View.prototype.fadeIn=function(){var a=this;window.clearInterval(this.fadeInTimer);this.curOpacity=this.initOpacity;this.fadeInTimer=window.setInterval(function(){var b;b=a.opacityDiff;if(Fe.Browser.isIE){if(a.curOpacity<1){a.curOpacity+=b;a.container.style.filter="alpha(opacity="+a.curOpacity*100+")"}else{a.curOpacity=1;a.container.style.filter="alpha(opacity="+a.curOpacity*100+")";window.clearInterval(this.fadeInTimer)}}else{if(a.curOpacity<1){a.curOpacity+=b;a.container.style.opacity=a.curOpacity}else{a.curOpacity=1;a.container.style.opacity=a.curOpacity;window.clearInterval(this.fadeInTimer)}}},50)};ContentPlayer.View.prototype.handleMessage=function(f){var g,b,d,a,e,c;g=this.data;b=this.tpl;d=this.curIndex;a=g.length;switch(f.type){case"NEXT":e=f.param.step;d=(d+e)%a;break;case"PREV":e=f.param.step;d=(a+d-e)%a;break;case"GOTO":c=f.param.index;d=c%a;break;default:return}this.curIndex=d;this.render();if(this.needFadeIn){this.fadeIn()}};implement(Observable,ContentPlayer.View.prototype);ContentPlayer.ControlPanel=function(a){this.getBtns=a.getBtns||function(){return[]};this.data=a.data||[];this.curIndex=a.curIndex||0;this.style=a.style||null;this.observers=[];this.imgCache=window[Math.random()]=[]};ContentPlayer.ControlPanel.prototype.init=function(){this.registerEvent();this.setStyle();this.imgPreload()};ContentPlayer.ControlPanel.prototype.next=function(c){var a,b;a=this.data.length;b=this.curIndex;this.curIndex=(a+b+c)%a;this.setStyle();this.notify({type:"NEXT",param:{step:c}})};ContentPlayer.ControlPanel.prototype.prev=function(c){var a,b;a=this.data.length;b=this.curIndex;this.curIndex=(a+b-c)%a;this.setStyle();this.notify({type:"PREV",param:{step:c}})};ContentPlayer.ControlPanel.prototype.go=function(){this.setStyle();this.notify({type:"GOTO",param:{index:this.curIndex}})};ContentPlayer.ControlPanel.prototype.registerEvent=function(){var c,b;b=this;c=this.getBtns();for(var a=0;a<c.length;a++){(function(){var e=c[a],d=a;on(e,"mousedown",function(f){b.curIndex=d;b.setStyle();b.go()});on(e,"mouseover",function(f){b.notify({type:"STOP"})});on(e,"mouseout",function(f){b.notify({type:"PLAY",param:{step:1}})})})()}};ContentPlayer.ControlPanel.prototype.setStyle=function(){var c;c=this.getBtns();for(var b=0,a=c.length;b<a;b++){if(b!=this.curIndex){c[b].className=this.style.off}else{c[b].className=this.style.on}}};ContentPlayer.ControlPanel.prototype.handleMessage=function(a){};ContentPlayer.ControlPanel.prototype.imgPreload=function(){var c,a;c=this.data;for(var b=0;b<c.length;b++){if(c[b].imgUrl){a=new Image();a.src=c[b].imgUrl;this.imgCache.push(a)}}};implement(Observable,ContentPlayer.ControlPanel.prototype);ContentPlayer.Model=function(a){this.interval=a.interval||4000;a.container=a.mainViewContainer;a.tpl=a.mainViewTpl;a.needFadeIn=false;this.mv=new ContentPlayer.View(a);a.container=a.subViewContainer;a.tpl=a.subViewTpl;a.needFadeIn=false;this.sv=new ContentPlayer.View(a);this.cp=new ContentPlayer.ControlPanel(a);this.timerId=0;this.observers=[];this.init()};ContentPlayer.Model.prototype.init=function(){this.mv.init();this.sv.init();this.cp.init();this.cp.addObserver(this.mv);this.cp.addObserver(this.sv);this.cp.addObserver(this);this.mv.addObserver(this);this.sv.addObserver(this)};ContentPlayer.Model.prototype.play=function(b){var a=this;this.stop();this.timerId=window.setInterval(function(){a.cp.next(b)},this.interval)};ContentPlayer.Model.prototype.stop=function(){window.clearInterval(this.timerId)};ContentPlayer.Model.prototype.handleMessage=function(a){switch(a.type){case"STOP":this.stop();break;case"PLAY":this.play(a.param.step);break}};function implement(a,c){for(var b in a){c[b]=a[b]}}var Observable=(function(){function a(c){if(c&&typeof c=="object"&&c.handleMessage){this.observers.push(c)}}function b(d){var e=this.observers;for(var c=0;c<e.length;c++){e[c].handleMessage(d)}}return{addObserver:a,notify:b}})();if("undefined"==typeof ScrollView){ScrollView={}}ScrollView.View=function(a){this.list=a.list;this.getItems=a.getItems;this.offset=a.offset;this.itemTpl=a.itemTpl;this.data=a.data;this.windowSize=a.windowSize;this.interval=a.interval||50;this.intervalNoSlowdown=Math.ceil((a.intervalNoSlowdown||50)/10);this.curIndex=a.curIndex||0;this.direction=a.direction||"HOR";this.observers=[];this.scrolling=false;this.imgCache=window[Math.random()]=[];this.imgPreloadIndex=[0,0];this.preloadSize=4*this.windowSize};ScrollView.View.prototype.init=function(){var b,a;if(this.isHor()){this.list.style.left=-this.windowSize*this.offset+"px"}else{this.list.style.top=-this.windowSize*this.offset+"px"}if(this.curIndex-this.windowSize>0){b=this.curIndex-this.windowSize}else{b=0}if(this.curIndex+2*this.windowSize>this.data.length){a=this.data.length-1}else{a=this.curIndex+2*this.windowSize}this.imgPreloadIndex[0]=b;this.imgPreloadIndex[1]=a;this.fill(3);this.notify({type:"UPDATE_PROGRESS",param:{curIndex:this.curIndex,total:this.data.length}})};ScrollView.View.prototype.handleMessage=function(b){var a;if(b.param.step>0&&b.param.step<=this.windowSize){a=b.param.step}else{a=1}switch(b.type){case"PREV":this.prev(a,b.param.slowdown);this.imgPreload();this.notify({type:"UPDATE_PROGRESS",param:{curIndex:this.curIndex,total:this.data.length}});break;case"NEXT":this.next(a,b.param.slowdown);this.imgPreload();this.notify({type:"UPDATE_PROGRESS",param:{curIndex:this.curIndex,total:this.data.length}});break}};ScrollView.View.prototype.imgPreload=function(){var b,c,a,k,f,l,e;b=this.imgPreloadIndex[0];c=this.imgPreloadIndex[1];a=this.curIndex;f=this.data;l=this.imgCache;e=this.preloadSize;if(c-a<e&&c<f.length-1&&f[c].img_url){for(var g=c+1,d=0;d<e&&g<f.length;g++,d++){k=new Image();k.src=f[g].img_url;l.push(k)}c=g-1}if(a-b<e&&0<b&&f[c].img_url){for(var g=b-1,d=0;d<e&&g>=0;g--,d++){k=new Image();k.src=f[g].img_url;l.push(k)}b=g+1}this.imgPreloadIndex[0]=b;this.imgPreloadIndex[1]=c};if("undefined"==typeof ScrollView){ScrollView={}}ScrollView.View.prototype.isHor=function(){return"HOR"==this.direction};ScrollView.View.prototype.next=function(e,g){var d,i,b,c,f,a;d=this;f=this.data;b=this.getItems();c=this.windowSize;g=g?true:false;a=g?this.interval:this.intervalNoSlowdown;if(this.curIndex>=f.length-c){return}if(e>f.length-(this.curIndex+c)){e=1}if(this.scrolling){return}else{this.scrolling=true}i=window.setInterval(function(){var l,q,m,r,k,j,p,n;m=d.offset;k=m*e;l=parseInt(d.list.style.left);q=parseInt(d.list.style.top);p=d.getItems();if(d.isHor()){r=-m*d.windowSize-k-l}else{r=-m*d.windowSize-k-q}if(r<0){if(g){j=parseInt(r/2);if(j==0){j=-1}}else{j=-Math.ceil(k/9);if(j<r){j=r}}if(d.isHor()){d.list.style.left=l+j+"px"}else{d.list.style.top=q+j+"px"}}else{n=p[p.length-1].nextSibling;for(var o=0;o<e;o++){p[o].innerHTML="";if(!n){d.list.appendChild(p[o])}else{d.list.insertBefore(p[o],n)}}if(d.isHor()){d.list.style.left=-m*d.windowSize+"px"}else{d.list.style.top=-m*d.windowSize+"px"}window.clearInterval(i);d.scrolling=false;d.curIndex+=e;d.notify({type:"UPDATE_PROGRESS",param:{curIndex:d.curIndex,total:d.data.length}});d.fill(2,e)}},a)};ScrollView.View.prototype.prev=function(e,f){var d,g,b,c,a;d=this;b=this.getItems();c=this.windowSize;f=f?true:false;a=f?this.interval:this.intervalNoSlowdown;if(this.curIndex==0){return}if(this.curIndex<e){e=1}if(this.scrolling){return}else{this.scrolling=true}g=window.setInterval(function(){var l,p,m,r,k,j,o,q;m=d.offset;k=m*e;l=parseInt(d.list.style.left);p=parseInt(d.list.style.top);o=d.getItems();if(d.isHor()){r=m*d.windowSize-k+l}else{r=m*d.windowSize-k+p}if(r<0){if(f){j=-parseInt(r/2);if(j==0){j=1}}else{j=Math.ceil(k/9);if(-j<r){j=-r}}if(d.isHor()){d.list.style.left=l+j+"px"}else{d.list.style.top=p+j+"px"}}else{q=o[0];for(var n=0;n<e;n++){o[o.length-1-n].innerHTML="";d.list.insertBefore(o[o.length-1-n],q)}if(d.isHor()){d.list.style.left=-m*d.windowSize+"px"}else{d.list.style.top=-m*d.windowSize+"px"}window.clearInterval(g);d.scrolling=false;d.curIndex-=e;d.notify({type:"UPDATE_PROGRESS",param:{curIndex:d.curIndex,total:d.data.length}});d.fill(1,e)}},a)};ScrollView.View.prototype.fill=function(g,b){var a,d,f,k,l;a=this.curIndex;d=this.data;if(!d){return}f=this.getItems();k=this.windowSize;l=this.itemTpl;if(d.length>k){if(a<=0){this.notify({type:"POFFNON"})}else{if(a>=d.length-k){this.notify({type:"PONNOFF"})}else{this.notify({type:"PONNON"})}}}else{this.notify({type:"POFFNOFF"})}if(a>=d.length||a<0){return}switch(g){case 1:for(var e=a-1-(k-b),c=0;c<b&&e>=0;e--,c++){f[b-1-c].innerHTML=Fe.format(l,d[e])}break;case 2:for(var e=a+k+(k-b),c=b-1;c>=0&&e<d.length;e++,c--){f[3*k-1-c].innerHTML=Fe.format(l,d[e])}break;case 3:for(var e=a-1,c=k-1;e>=0&&c>=0;e--,c--){f[c].innerHTML=Fe.format(l,d[e])}for(var e=a,c=k;e<d.length&&c<3*k;e++,c++){f[c].innerHTML=Fe.format(l,d[e])}break;default:break}};implement(Observable,ScrollView.View.prototype);ScrollView.Nav=function(a){this.navs=a.navs;this.step=a.step;this.style=a.style;this.intervalNoSlowdown=a.intervalNoSlowdown||50;this.timeForContinuousScroll=a.timeForContinuousScroll||500;this.observers=[];this.tIDs=[0,0,0,0]};ScrollView.Nav.prototype.registerEvent=function(){var a=this;on(this.navs[0],"mousedown",function(b){var b=b||window.event;a.notify({type:"PREV",param:{step:a.step,event:b,slowdown:true}});a.tIDs[0]=window.setTimeout(function(){a.tIDs[1]=window.setInterval(function(){a.notify({type:"PREV",param:{step:1,event:b,slowdown:false}})},a.intervalNoSlowdown)},a.timeForContinuousScroll)});on(this.navs[0],"mouseup",function(b){window.clearTimeout(a.tIDs[0]);window.clearInterval(a.tIDs[1])});on(this.navs[0],"mouseout",function(b){window.clearTimeout(a.tIDs[0]);window.clearInterval(a.tIDs[1])});on(this.navs[1],"mousedown",function(b){var b=b||window.event;a.notify({type:"NEXT",param:{step:a.step,event:b,slowdown:true}});a.tIDs[2]=window.setTimeout(function(){a.tIDs[3]=window.setInterval(function(){a.notify({type:"NEXT",param:{step:1,event:b,slowdown:false}})},a.intervalNoSlowdown)},a.timeForContinuousScroll)});on(this.navs[1],"mouseup",function(b){window.clearTimeout(a.tIDs[2]);window.clearInterval(a.tIDs[3])});on(this.navs[1],"mouseout",function(b){window.clearTimeout(a.tIDs[2]);window.clearInterval(a.tIDs[3])})};ScrollView.Nav.prototype.init=function(){this.registerEvent()};ScrollView.Nav.prototype.handleMessage=function(b){var c,a;c=this.navs;a=this.style;switch(b.type){case"PONNOFF":c[0].className=a.pon;c[1].className=a.noff;break;case"PONNON":c[0].className=a.pon;c[1].className=a.non;break;case"POFFNOFF":c[0].className=a.poff;c[1].className=a.noff;break;case"POFFNON":c[0].className=a.poff;c[1].className=a.non;break}};implement(Observable,ScrollView.Nav.prototype);ScrollView.Progress=function(a){this.callback=a.progressCallback||function(b,c){}};ScrollView.Progress.prototype.handleMessage=function(a){switch(a.type){case"UPDATE_PROGRESS":this.callback(a.param.curIndex,a.param.total);break}};implement(Observable,ScrollView.Progress.prototype);ScrollView.Model=function(a){this.view=new ScrollView.View(a);this.nav=new ScrollView.Nav(a);this.progress=new ScrollView.Progress(a);this.view.addObserver(this.nav);this.nav.addObserver(this.view);this.view.addObserver(this.progress);this.nav.init();this.view.init()};var isIE=navigator.userAgent.indexOf("MSIE")>0&&!window.opera;function G(a){return document.getElementById(a)}function h(b,a){b.style.behavior="url(#default#homepage)";b.setHomePage(a)}String.prototype.format=function(){if(arguments.length==0){return this}for(var b=this,a=0;a<arguments.length;a++){b=b.replace(new RegExp("#"+a+"#","g"),arguments[a])}return b};var expdate=new Date();expdate.setTime(expdate.getTime()+(86400*1000*365));function SetCookie(c,e){var a=SetCookie.arguments;var g=SetCookie.arguments.length;var b=(2<g)?a[2]:null;var f=(3<g)?a[3]:null;var d=(4<g)?a[4]:null;document.cookie=c+"="+e+";expires="+b.toGMTString()+";path="+f+";domain="+d}(function saveLocation(b){var a=window.location;SetCookie("BDREFER",escape('{url:"'+a+'",word:"'+b+'"}'),expdate,"/","www.newsgroup.la")})("");function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}function GetCookie(d){var b=d+"=";var f=b.length;var a=document.cookie.length;var e=0;while(e<a){var c=e+f;if(document.cookie.substring(e,c)==b){return getCookieVal(c)}e=document.cookie.indexOf(" ",e)+1;if(e==0){break}}return null}function _bindEvent(){G("news")&&(G("news").onchange=function(){document.fbaidu.ct.value=window.prevct});G("newstitle")&&(G("newstitle").onchange=function(){document.fbaidu.ct.value=0})}function read_cookie(){window.prevct=document.fbaidu.ct.value;_bindEvent();var g=GetCookie("BAIDUPH");if(g==null){return}else{var e=g.split("∫");var i=e[0].split("=");var d=e[1].split("=");var b=e[2].split("=");var a=i[1];var f=d[1];var c=b[1];if(c!=""&&c!=null){document.fbaidu.ct.value=c}window.prevct=document.fbaidu.ct.value;if(a!=""&&a!=null){if(a=="news"){document.fbaidu.tn[0].checked=true}if(a=="newstitle"){document.fbaidu.tn[1].checked=true;document.fbaidu.ct.value=0}}if(f!=""&&f!=null){document.fbaidu.rn.value=f}}}function gg(){var a=location.search;if(a.indexOf("q=")!=-1){try{var b=(a.match(new RegExp("q=[^&$]*")).toString());document.fbaidu.word.value=decodeURIComponent(b.substr(2))}catch(c){}}}function s(e,d){if(document.fbaidu.word.value.length>0){var c=e.href;var b=encodeURIComponent(document.fbaidu.word.value);if(c.indexOf("q=")!=-1){e.href=c.replace(new RegExp("q=[^&$]*"),"q="+b)}else{var a=d?"&":"?";e.href=e.href+a+"q="+b}}}function cc(c){if(G(c)){var b=G(c);if(navigator.appName=="Netscape"){b.focus()}else{b.focus();var a=b.createTextRange();a.collapse(false);a.select()}}}function enterState(a,d){var f=location.href;var g="http://www.newsgroup.la";var c="http://www.newsgroup.la";var e=c+"/?login&tpl=xw1&u="+encodeURIComponent(f);var b=c+"/?logout&u="+encodeURIComponent(f);if(a==""&&d==""){G("usrbar").innerHTML="<a href="+g+">忑?</a>&nbsp;|&nbsp;<a href="+e+"></a>"}else{if(a!=""&&d==""){G("usrbar").innerHTML="<a href="+c+"/ target=_blank><strong>"+a+"</strong></a>&nbsp;|&nbsp;<a href="+g+">忑?</a>&nbsp;|&nbsp;<a href="+b+">豖堤<a>"}else{if(a!=""&&d!=""){G("usrbar").innerHTML="<a href="+c+"/ target=_blank><strong>"+a+"</strong></a>&nbsp;|&nbsp;<a href=http://space.gogo.la/"+d+" target=_blank>扂腔諾嶲</a>&nbsp;|&nbsp;<a href="+g+">忑?</a>&nbsp;|&nbsp;<a href="+b+">豖堤</a>"}}}}window.onload=function(){cc("ww");gg()};var performance_time=[0];var mcTimer={startTime:(new Date()).getTime(),toNowSec:function(){return Math.floor(this.toNowMilli/1000)},toNowMilli:function(){var a=new Date(),b=0;b=a.getTime()-this.startTime;return b}};var performanceTrack={imgMonitor:function(a){if(!a){return}var d="log__"+(new Date()).getTime(),b=window[d]=new Image();b.onload=b.onerror=function(){window[d]=null};b.src=a;b=null},track:function(a){var b="";if("undefined"==typeof a||0==a.length){return}b+=a.join("_");this.imgMonitor(b)}};function G(a){if(typeof a=="string"){return document.getElementById(a)}else{return a}}function implement(a,c){for(var b in a){c[b]=a[b]}}var Observable=(function(){function a(c){if(c&&typeof c=="object"&&c.handleMessage){this.observers.push(c)}}function b(d){var e=this.observers;for(var c=0;c<e.length;c++){e[c].handleMessage(d)}}return{addObserver:a,notify:b}})();var XSAjax=(function(){function c(g){var e=[];if(!g){return""}for(var f in g){e.push(f+"="+encodeURIComponent(g[f]))}return e.join("&")}function d(e,f){var g="";if(!e){return""}if(!!f){g=f+"&"}g+="ra="+Math.random();if(-1<e.indexOf("?")){return e+"&"+g}return e+"?"+g}function a(g){if(!g||!g.url){return}if(g.onbeforesend&&typeof g.onbeforesend=="function"){g.onbeforesend()}var i="",f,e;i=c(g.json);e=d(g.url,i);f=document.createElement("SCRIPT");f.type="text/javascript";f.src=e;if(Fe.Browser.isIE){f.onreadystatechange=function(){if(f.readyState=="complete"||f.readyState=="loaded"){document.getElementsByTagName("body")[0].removeChild(f);if(g.onsuccess&&typeof g.onsuccess=="function"){g.onsuccess()}}}}else{f.onload=function(){document.getElementsByTagName("body")[0].removeChild(f);if(g.onsuccess&&typeof g.onsuccess=="function"){g.onsuccess()}}}document.getElementsByTagName("body")[0].appendChild(f)}function b(e){window.setTimeout(function(){var f=e;a(f)},0)}return{send:b}})();function whichLevel(d,f,k){var e=typeof d,g;if(e=="number"||e=="string"){if(d==f){return k}return -1}else{if(e=="object"&&typeof d.length!="undefined"){for(var c=0,a=d.length;c<a;c++){g=whichLevel(d[c],f,k+1);if(g<0){continue}else{return g}}return -1}else{if(e=="object"&&typeof d.length=="undefined"){for(var b in d){if(b==f){return ++k}else{g=whichLevel(d[b],f,k+1);if(g<0){continue}else{return g}}}return -1}else{return -1}}}}function getJsonProp(e,b){if(!e||!b||typeof b.length=="undefined"){return null}var d=e;for(var c=0,a=b.length;c<a;c++){if(typeof d!="undefined"){d=d[b[c]]}else{d=null}}return d}function DynamicList(a){this.frameObj=G(a.frameObj);this.contentObj=G(a.contentObj);this.data=a.data;this.navObj=a.navObj;this.template=a.template;this.triggerLevel=a.triggerLevel;this.funcName=Math.random();window[this.funcName]=a.callback||function(){};this.propList=[];this.init()}DynamicList.prototype.toggleDisplay=function(){if(this.frameObj.style.display==""||this.frameObj.style.display=="none"){this.frameObj.style.display="block"}else{this.frameObj.style.display="none"}};DynamicList.prototype.toggleVisibility=function(){if(this.frameObj.style.visibility==""||this.frameObj.style.visibility=="hidden"){this.frameObj.style.visibility="visible"}else{this.frameObj.style.visibility="hidden"}};DynamicList.prototype.init=function(){this.registerEvent()};DynamicList.prototype.registerEvent=function(){var a=this;on(this.contentObj,"click",function(c){c=c||window.event;var d=c.srcElement||c.target,f,e,b;if(d.tagName.toUpperCase()=="A"){f=d.getAttribute("prop");if(f){a.propList=a.propList.concat([f]);e=whichLevel(a.data,f,0);if(-1!=e){if(e!=a.triggerLevel){b=getJsonProp(a.data,a.propList);a.showChildren(b)}else{a.navObj.style.visibility="hidden";if(typeof window[a.funcName]=="function"){window[a.funcName](f)}}}}}stopPropagation(c)});on(this.navObj,"click",function(b){b=b||window.event;a.showParentLevel();stopPropagation(b)})};DynamicList.prototype.showChildren=function(d){var e=typeof d,b=[];if(0==this.propList.length){this.navObj.style.visibility="hidden"}else{this.navObj.style.visibility="visible"}if(e=="object"&&typeof d.length!="undefined"){for(var c=0,a=d.length;c<a;c++){b.push(Fe.format(this.template,{title:d[c].split("|")[0],prop:d[c]}))}if(a==0){this.navObj.style.visibility="hidden";if(typeof window[this.funcName]=="function"){window[this.funcName](this.propList[this.propList.length-1])}}}else{if(e=="object"&&typeof d.length=="undefined"){for(var c in d){b.push(Fe.format(this.template,{title:c.split("|")[0],prop:c}))}}else{b=b}}this.contentObj.innerHTML=b.join("")};DynamicList.prototype.showParentLevel=function(){var a=this.propList.length,b;if(2>a){this.propList.length=0;this.showChildren(this.data);this.navObj.style.visibility="hidden"}else{this.propList.splice(a-2,1);b=getJsonProp(this.data,this.propList);this.showChildren(b);this.navObj.style.visibility="visible"}};DynamicList.prototype.handleMessage=function(c){var a=c.type,b=c.param;switch(a){case"SHOW_CHILDREN":this.propList.length=0;this.navObj.style.visibility="hidden";this.showChildren(this.data);break;case"SHOW_PARENT":this.showParentLevel();break}};implement(Observable,DynamicList.prototype);var Messages={loading:"",failed_1:"",failed_2:"",failed_3:"",failed_4:"",failed_5:"",success:""};Messages.delayTime=2000;function initLocalHotNews(p){var f=GetCookie(LocalNewsConfig.cookieName),n,o,c,g=false,b=null,q=false,a,k;if(null!=f){n={localCity:f.split("|")[0],localID:f.split("|")[1]}}else{n={localCity:p.localNameFromIP,localID:p.localIDFromIP}}if(""==n.localID+""){n.localID=p.localIDFromIP;n.localCity=p.localNameFromIP}if(""==n.localID+""){n.localID=-1}if(0==n.localID){n.localCity="控儔"}a=n.localCity+"|"+n.localID+"|0";k=whichLevel(local_cities,a,0);if(-1!=n.localID&&0<k){XSAjax.send({url:p.request.url+n.localID+".json",onbeforesend:function(){G(p.statusID).innerHTML=Messages.loading;G(p.statusID).style.display="block";G(p.localNewsID).style.display="none";o=window.setTimeout(function(){G(p.statusID).innerHTML=Messages.failed_1;c=window.setTimeout(function(){G(p.statusID).style.display="none";if("TOP"==p.pageType){G(p.cityNameID).innerHTML=Fe.format(LocalNewsConfig.htmlTpl.city_name_link,{city_name:LocalNewsConfig.defaultFailedLocalCity})}else{G(p.cityNameID).innerHTML=LocalNewsConfig.defaultFailedLocalCity;document.title=""+LocalNewsConfig.defaultFailedLocalCity+""}if(p.rssSectionID){G(p.rssSectionID).style.visibility="hidden"}G(p.localNewsID).style.display="block";g=false},Messages.delayTime)},p.timeout);g=true;b=n.localCity+"|"+n.localID+"|0"},onsuccess:function(){}})}else{if("TOP"==p.pageType){G(p.cityNameID).innerHTML=Fe.format(LocalNewsConfig.htmlTpl.city_name_link,{city_name:LocalNewsConfig.defaultFailedLocalCity})}else{G(p.cityNameID).innerHTML=LocalNewsConfig.defaultFailedLocalCity;document.title=""+LocalNewsConfig.defaultFailedLocalCity+""}G(p.localNewsID).style.display="block"}var l={frameObj:G(p.cityViewID),contentObj:G(p.cityViewID).getElementsByTagName("DIV")[0],navObj:G(p.cityViewID).getElementsByTagName("DIV")[1],data:p.data,template:LocalNewsConfig.htmlTpl.city_list,triggerLevel:p.triggerLevel,callback:function(r){q=true;G(p.cityViewID).style.visibility="hidden";G(p.cityViewBgID).style.visibility="hidden";XSAjax.send({url:p.request.url+r.split("|")[1]+".json",onbeforesend:function(){G(p.statusID).innerHTML=Messages.loading;G(p.statusID).style.display="block";G(p.localNewsID).style.display="none";o=window.setTimeout(function(){G(p.statusID).innerHTML=Messages.failed_3;c=window.setTimeout(function(){G(p.statusID).style.display="none";G(p.localNewsID).style.display="block";g=false},Messages.delayTime)},p.timeout);g=true;b=r},onsuccess:function(){}})}};var i=new DynamicList(l);on(G(p.changeCityID),"click",function(r){if(!g){G(p.cityViewID).style.visibility="visible";G(p.cityViewBgID).style.visibility="visible";G(p.backBtnID).style.visibility="visible";i.handleMessage({type:"SHOW_CHILDREN"})}stopPropagation(r)});on(G(p.closeBtnID),"click",function(r){G(p.cityViewID).style.visibility="hidden";G(p.cityViewBgID).style.visibility="hidden";G(p.backBtnID).style.visibility="hidden";stopPropagation(r)});on(document,"click",function(r){G(p.cityViewID).style.visibility="hidden";G(p.cityViewBgID).style.visibility="hidden";G(p.backBtnID).style.visibility="hidden"});function e(E){var D=E.feed,C=D.entry,x=D.resultnum,y=[];for(var w=0,A=C.length;w<A-1&&w<p.maxItemsShown;w++){y.push(Fe.format(LocalNewsConfig.htmlTpl.local_news,{url:C[w].url,imgUrl:C[w].imgUrl,title:C[w].title,source:C[w].source,time:C[w].time,same:C[w].same,abs:C[w].abs}))}window.clearTimeout(o);window.clearTimeout(c);if(0<y.length){if(b){if(q){var u=GetCookie(LocalNewsConfig.cookieName),v=[],t,r=false;if(u){v=u.split("|")}if(v.length!=4&&v.length!=0){return}t=whichLevel(house_cities,b,0);if(v.length==0){if(0<t){v.push(b.split("|")[0]);v.push(b.split("|")[1]);v.push(b.split("|")[0]);v.push(b.split("|")[1]);r=true}else{v.push(b.split("|")[0]);v.push(b.split("|")[1]);v.push("");v.push("")}}else{v[0]=b.split("|")[0];v[1]=b.split("|")[1]}SetCookie(LocalNewsConfig.cookieName,escape(v.join("|")),expdate,"/",LocalNewsConfig.cookieDomain);if(r){window.reloadHouseNews()}}var B=b.split("|")[1],z=D.category.value;G(p.localNewsID).innerHTML=y.join("");if(5>y.length){G(p.statusID).style.display="none";G(p.moreLinkID).style.visibility="hidden";G(p.cityNameID).innerHTML=Fe.format(LocalNewsConfig.htmlTpl.city_name_no_link,{city_name:z});G(p.localNewsID).style.display="block";g=false}else{G(p.statusID).style.display="none";G(p.moreLinkID).style.visibility="visible";G(p.cityNameID).innerHTML=Fe.format(LocalNewsConfig.htmlTpl.city_name_link,{city_name:z});G(p.localNewsID).style.display="block";g=false}}}else{if(!q){G(p.statusID).innerHTML=Messages.failed_4;window.setTimeout(function(){G(p.statusID).style.display="none";G(p.moreLinkID).style.visibility="visible";G(p.cityNameID).innerHTML=Fe.format(LocalNewsConfig.htmlTpl.city_name_link,{city_name:LocalNewsConfig.defaultFailedLocalCity});G(p.localNewsID).style.display="block";g=false},Messages.delayTime)}else{G(p.statusID).innerHTML=Messages.failed_5;window.setTimeout(function(){G(p.statusID).style.display="none";G(p.localNewsID).style.display="block";g=false},Messages.delayTime)}}}function d(B){var A=B.feed,z=A.entry,t=A.resultnum,u=[],w;for(var r=0,x=z.length;r<x-1&&r<p.maxItemsShown;r++){if(""==z[r].imgUrl&&1<z[r].same){w=LocalNewsConfig.htmlTpl.local_news_no_img}else{if(""==z[r].imgUrl&&1==z[r].same){w=LocalNewsConfig.htmlTpl.local_news_no_img_no_same}else{if(""!=z[r].imgUrl&&1==z[r].same){w=LocalNewsConfig.htmlTpl.local_news_no_same}else{w=LocalNewsConfig.htmlTpl.local_news}}}u.push(Fe.format(w,{url:z[r].url,urlEnc:z[r].urlEnc,imgUrl:z[r].imgUrl,title:z[r].title,source:z[r].source,time:j(z[r].time),same:z[r].same,abs:z[r].abs}))}window.clearTimeout(o);window.clearTimeout(c);if(0<u.length){if(b){var y=b.split("|")[1],v=A.category.value;G(p.statusID).style.display="none";G(p.cityNameID).innerHTML=v;G(p.localNewsID).innerHTML=u.join("");G(p.rssOrderID).href=G(p.rssOrderID_1).href="/n?cmd=7&loc="+y+"&name="+v+"&tn=rss";G(p.rssOrderCityNameID).innerHTML=v;G(p.moreLocalNewsID).href="/n?cmd=7&loc="+y+"&name="+v+"&pn=1";G(p.moreLocalNewsCityNameID).innerHTML=v;G(p.rssSectionID).style.visibility="visible";document.title=""+v+"";G(p.localNewsID).style.display="block";g=false}}else{if(!q){G(p.statusID).innerHTML=Messages.failed_4;window.setTimeout(function(){G(p.statusID).style.display="none";G(p.cityNameID).innerHTML=LocalNewsConfig.defaultFailedLocalCity;G(p.localNewsID).style.display="block";document.title=""+LocalNewsConfig.defaultFailedLocalCity+"";g=false},Messages.delayTime)}else{G(p.statusID).innerHTML=Messages.failed_5;window.setTimeout(function(){G(p.statusID).style.display="none";G(p.localNewsID).style.display="block";g=false},Messages.delayTime)}}}function j(t){if("number"!=typeof t){return""}var r=new Date();r.setTime(t*1000);return r.getFullYear()+"-"+(r.getMonth()+1)+"-"+r.getDate()+" "+(r.getHours()<10?"0"+r.getHours():r.getHours())+":"+(r.getMinutes()<10?"0"+r.getMinutes():r.getMinutes())}function m(){if(g){return}f=GetCookie(LocalNewsConfig.cookieName);if(null!=f){n={localCity:f.split("|")[0],localID:f.split("|")[1]}}else{return}if(""==n.localID+""){return}if(0==n.localID){n.localCity=""}a=n.localCity+"|"+n.localID+"|0";k=whichLevel(local_cities,a,0);if(-1!=n.localID&&0<k){XSAjax.send({url:p.request.url+n.localID+".json",onbeforesend:function(){G(p.statusID).innerHTML=Messages.loading;G(p.statusID).style.display="block";G(p.localNewsID).style.display="none";o=window.setTimeout(function(){G(p.statusID).innerHTML=Messages.failed_3;c=window.setTimeout(function(){G(p.statusID).style.display="none";G(p.localNewsID).style.display="block";g=false},Messages.delayTime)},p.timeout);g=true;b=n.localCity+"|"+n.localID+"|0"},onsuccess:function(){}})}else{G(p.localNewsID).style.display="block"}}if(p.pageType=="TOP"){window.bdNewsJsonCallBack=e;window.reloadLocalNews=m}else{window.bdNewsJsonCallBack=d}}function initLocalHouseNews(n){var e=GetCookie(LocalNewsConfig.cookieName),k,m,c,f=false,b=null,o=false,a,i;if(null!=e){k={localCity:e.split("|")[2],localID:e.split("|")[3]}}else{k={localCity:n.localNameFromIP,localID:n.localIDFromIP}}if(""==k.localID+""){k.localID=n.localIDFromIP;k.localCity=n.localNameFromIP}if(""==k.localID+""){k.localID=-1}if(-1==k.localID){k.localID=0}if(0==k.localID){k.localCity="控儔"}a=k.localCity+"|"+k.localID+"|0";i=whichLevel(house_cities,a,0);if(0<i){XSAjax.send({url:n.request.url+k.localID+".json",onbeforesend:function(){G(n.statusID).innerHTML=Messages.loading;G(n.statusID).style.display="block";G(n.localNewsID).style.display="none";m=window.setTimeout(function(){G(n.statusID).innerHTML=Messages.failed_2;c=window.setTimeout(function(){G(n.statusID).style.display="none";G(n.localNewsID).style.display="block";G(n.cityNameID).innerHTML=LocalNewsConfig.defaultFailedHouseCity;f=false},Messages.delayTime)},n.timeout);f=true;b=k.localCity+"|"+k.localID+"|0"},onsuccess:function(){}})}else{G(n.cityNameID).innerHTML=LocalNewsConfig.defaultFailedHouseCity;G(n.localNewsID).style.display="block"}var j={frameObj:G(n.cityViewID),contentObj:G(n.cityViewID).getElementsByTagName("DIV")[0],navObj:G(n.cityViewID).getElementsByTagName("DIV")[1],data:n.data,template:LocalNewsConfig.htmlTpl.city_list,triggerLevel:n.triggerLevel,callback:function(p){o=true;G(n.cityViewID).style.visibility="hidden";G(n.cityViewBgID).style.visibility="hidden";XSAjax.send({url:n.request.url+p.split("|")[1]+".json",onbeforesend:function(){G(n.statusID).innerHTML=Messages.loading;G(n.statusID).style.display="block";G(n.localNewsID).style.display="none";m=window.setTimeout(function(){G(n.statusID).innerHTML=Messages.failed_3;c=window.setTimeout(function(){G(n.statusID).style.display="none";G(n.localNewsID).style.display="block";f=false},Messages.delayTime)},n.timeout);f=true;b=p},onsuccess:function(){}})}};var g=new DynamicList(j);on(G(n.changeCityID),"click",function(p){if(!f){G(n.cityViewID).style.visibility="visible";G(n.cityViewBgID).style.visibility="visible";G(n.backBtnID).style.visibility="visible";g.handleMessage({type:"SHOW_CHILDREN"})}stopPropagation(p)});on(G(n.closeBtnID),"click",function(p){G(n.cityViewID).style.visibility="hidden";G(n.cityViewBgID).style.visibility="hidden";G(n.backBtnID).style.visibility="hidden";stopPropagation(p)});on(document,"click",function(p){G(n.cityViewID).style.visibility="hidden";G(n.cityViewBgID).style.visibility="hidden";G(n.backBtnID).style.visibility="hidden"});function d(C){var B=C.feed,A=B.entry,v=B.resultnum,w=[];for(var u=0,y=A.length;u<y-1&&u<n.maxItemsShown;u++){w.push(Fe.format(LocalNewsConfig.htmlTpl.house_news,{url:A[u].url,title:A[u].title}))}window.clearTimeout(m);window.clearTimeout(c);if(0<w.length){if(b){if(o){var r=GetCookie(LocalNewsConfig.cookieName),t=[],q,p=false;if(r){t=r.split("|")}if(t.length!=4&&t.length!=0){return}q=whichLevel(house_cities,b,0);if(t.length==0){if(0<q){t.push(b.split("|")[0]);t.push(b.split("|")[1]);t.push(b.split("|")[0]);t.push(b.split("|")[1]);p=true}else{t.push("");t.push("");t.push(b.split("|")[0]);t.push(b.split("|")[1])}}else{t[2]=b.split("|")[0];t[3]=b.split("|")[1]}SetCookie(LocalNewsConfig.cookieName,escape(t.join("|")),expdate,"/",LocalNewsConfig.cookieDomain);if(p){window.reloadLocalNews()}}var z=b.split("|")[1],x=B.category.value;G(n.statusID).style.display="none";G(n.cityNameID).innerHTML=x;G(n.localNewsID).innerHTML=w.join("");G(n.localNewsID).style.display="block";f=false}}else{if(!o){G(n.statusID).innerHTML=Messages.failed_4;window.setTimeout(function(){G(n.statusID).style.display="none";G(n.cityNameID).innerHTML=LocalNewsConfig.defaultFailedHouseCity;G(n.localNewsID).style.display="block";f=false},Messages.delayTime)}else{G(n.statusID).innerHTML=Messages.failed_5;window.setTimeout(function(){G(n.statusID).style.display="none";G(n.localNewsID).style.display="block";f=false},Messages.delayTime)}}}function l(){if(f){return}e=GetCookie(LocalNewsConfig.cookieName);if(null!=e){k={localCity:e.split("|")[2],localID:e.split("|")[3]}}else{return}if(""==k.localID+""){return}if(-1==k.localID){k.localID=0}if(0==k.localID){k.localCity=""}a=k.localCity+"|"+k.localID+"|0";i=whichLevel(house_cities,a,0);if(0<i){XSAjax.send({url:n.request.url+k.localID+".json",onbeforesend:function(){G(n.statusID).innerHTML=Messages.loading;G(n.statusID).style.display="block";G(n.localNewsID).style.display="none";m=window.setTimeout(function(){G(n.statusID).innerHTML=Messages.failed_3;c=window.setTimeout(function(){G(n.statusID).style.display="none";G(n.localNewsID).style.display="block";f=false},Messages.delayTime)},n.timeout);f=true;b=a},onsuccess:function(){}})}else{}}window.reloadHouseNews=l;window[n.request.callback]=d}function initLocalRollingNews(b){var c={frameObj:G(b.cityViewID),contentObj:G(b.cityViewID).getElementsByTagName("DIV")[0],navObj:G(b.cityViewID).getElementsByTagName("DIV")[1],data:b.data,template:LocalNewsConfig.htmlTpl.city_list,triggerLevel:b.triggerLevel,callback:function(e){var d="n?cmd=7";d+="&loc="+e.split("|")[1];d+="&name="+e.split("|")[0];G(b.cityViewID).style.visibility="hidden";G(b.cityViewBgID).style.visibility="hidden";window.setTimeout(function(){window.location.href=d},0)}};var a=new DynamicList(c);on(G(b.changeCityID),"click",function(d){G(b.cityViewID).style.visibility="visible";G(b.cityViewBgID).style.visibility="visible";G(b.backBtnID).style.visibility="visible";a.handleMessage({type:"SHOW_CHILDREN"});stopPropagation(d)});on(G(b.closeBtnID),"click",function(d){G(b.cityViewID).style.visibility="hidden";G(b.cityViewBgID).style.visibility="hidden";G(b.backBtnID).style.visibility="hidden";stopPropagation(d)});on(document,"click",function(d){G(b.cityViewID).style.visibility="hidden";G(b.cityViewBgID).style.visibility="hidden";G(b.backBtnID).style.visibility="hidden"})}var ClickMonitor=(function(){var c={SEARCH:"m=1",SEARCH_ADVANCED:"m=3",SEARCH_TITLE:"m=2",SEARCH_TITLE_ADVANCED:"m=4",SEARCH_IMG:"m=5",SEARCH_VID:"m=6",TOP:"m=11",ONE_LEVEL_HOT:"m=14",TWO_LEVEL_HOT:"m=15",RELA_HOT:"m=13",ROLLING_TOP:"m=20",ROLLING_CLASS:"m=21",PIC_TOP:"m=22",PIC_CLASS:"m=23",RELA_COLUMN:"m=24",RELA_ROLLING:"m=25",CONT_PAGE:"m=26",LOCAL_TOP:"m=27",LOCAL_ROLLING:"m=28",GX:"m=29",IMG_TOP:"m=30",IMG_CLASS:"m=31",VIDEO_TOP:"m=32",VIDEO_CLASS:"m=33",NEWSHI:"m=34",NEWSHI_CLASS:"m=35"},o=107,k=0,p="",l="",e="",n=["TOP","ONE_LEVEL_HOT","TWO_LEVEL_HOT"],u="",q="mon",g="ph",j="";function i(v,w){if(!v){return}u=v;if(w){j=w}if("SEARCH"==v||"SEARCH_ADVANCED"==v||"SEARCH_TITLE"==v||"SEARCH_TITLE_ADVANCED"==v){k=1}if(window.attachEvent){document.attachEvent("onmousedown",m)}else{if(window.addEventListener){document.addEventListener("mousedown",m,false)}}}function m(x){x=x||window.event;var z=x.target||x.srcElement,v="",y=null;if(!z.tagName){return}v=z.tagName.toLowerCase();if("a"!=v){var w=z.parentNode,A="";while(w){if(!w.tagName){return}A=w.tagName.toLowerCase();if("a"==A){break}w=w.parentNode}if("a"==A){y=w}else{return}}else{if("a"==v){y=z}else{return}}r(y)}function r(A){var y=d(),x=a(A),C=g;if(!x){return}if(x==C){x=""}var w=encodeURIComponent(A.href),B=encodeURIComponent(t(A.innerHTML)),v=[p,"?pid=",o,"&url=",w,"&type=",k].join(""),z=Math.random();if(y){v+="&"+y}if(j){v+="&"+j}if(x){v+="&"+x}v+="&t="+B+"&ra="+z;b(v);b(v.replace(new RegExp(p,"g"),l));f(A)}function b(v){if(!v){return}var x="log__"+(new Date()).getTime(),w=window[x]=new Image();w.onload=w.onerror=function(){window[x]=null};w.src=v;w=null}function f(A){if(!A){return}var x=e,v=n,w=false,z=Math.random();for(var y=0;y<v.length;y++){if(u==v[y]){w=true;break}}if(!w){return}x+="&q="+encodeURIComponent(t(A.innerHTML))+"&ra="+z;b(x)}function d(){if(""==u){return""}return c[u]}function a(v){var w=q;return v.getAttribute(w)}function t(v){if(!v){return""}return v.replace(/<[^>]*>/g,"")}return{init:i}})();
