try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}var easyUI={fpbind:function(){if(!Function.prototype.bind){Function.prototype.bind=function(d){var b=this,c=Array.prototype.slice.call(arguments),a=Array.prototype.shift.call(c);return function(f){f=f||top.window.event||window.event;b.apply(a,c.concat([f]))}}}}(),ajax:{xRequest:function(a,d){d=d||"oscript"+Math.random().toString().replace(/\./g,"");var c=document.getElementById(d),b=document.getElementsByTagName("head").item(0);if(c){b.removeChild(c)}c=document.createElement("script");c.setAttribute("src",a);c.setAttribute("id",d);c.setAttribute("type","text/javascript");c.setAttribute("language","javascript");b.appendChild(c)}},clearOutLine:function(c,f){if(!c){return}f=f||document;var b=f.getElementsByTagName(c),a=b.length;for(var d=0;d<a;d++){b[d].hideFocus=true;b[d].style.outline="none"}},getElementsBy:function(r,a,s,k,o){var t=[],h=k?k.length:0;if(!s){return t}if(h){for(var g=0;g<h;g++){if(!k[g]){continue}t=t.concat(arguments.callee(r,a,s,k[g],o))}return t}var p=r,f=true,d=false,q=null,c=new RegExp("(\\b"+a+"\\b)","i");if(p=="class"&&(/msie[67]/i).test(navigator.appVersion.replace(/\s/g,""))){p="classname"}if(o){if(!r){if(s=="*"||s.toLowerCase()==k.tagName.toLowerCase()){t.push(k);return t}}else{d=k.getAttributeNode(r),q=k.getAttribute(p);f=(s=="*")?true:(k.tagName.toLowerCase()==s.toLowerCase());if(f&&d&&(!a||c.test(q))){t.push(k);return t}}}else{var b=k.getElementsByTagName(s),j=b.length,m=0;if(!j){return t}if(!r){for(m=0;m<j;m++){if(s=="*"||s.toLowerCase()==b[m].tagName.toLowerCase()){t.push(b[m]);continue}}}else{for(m=0;m<j;m++){d=b[m].getAttributeNode(r),q=b[m].getAttribute(p);if(d&&(!a||c.test(q))){t.push(b[m]),c.lastIndex=-1}}}}return t},getTarget:function(a){a=a||window.event;return a.srcElement||a.target},getStyle:function(b,a){if(b.currentStyle){return b.currentStyle[a]}else{return window.getComputedStyle(b,null).getPropertyValue(a)}},stopEvent:function(a){a=a||window.event;if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}},getWindowSize:function(){var f=/(?:msie|chrome)/i.test(navigator.appVersion);var b=document.documentElement,c=document.body;var a=Math.max(b.scrollWidth,c.scrollWidth),d=Math.max(b.scrollHeight,c.scrollHeight);if(!f){return{width:window.innerWidth,height:window.innerHeight,scrollWidth:a,scrollHeight:d}}else{if(b.clientHeight>b.offsetHeight){return{width:b.clientWidth,height:b.clientHeight,scrollWidth:a,scrollHeight:d}}else{return{width:b.offsetWidth,height:b.offsetHeight,scrollWidth:a,scrollHeight:d}}}}};var easyLayer=function(d,b,c,a){this.layer=d;this.zindex=b;this.width=c;this.height=a;this.onbeforeopen=null;this.onopen=null;this.onbeforeclose=null;this.onclose=null;this.isopen=false;this.easyLayerInit=function(){if(!this.layer){this.layer=document.createElement("div");document.body.appendChild(this.layer)}var f=this.width,g=this.height;this.layer.style.display="none";this.layer.style.position="absolute";this.layer.style.zIndex=this.zindex||"1000";if(f){this.layer.style.width=(isNaN(f)&&f.indexOf("%")!=-1)?f:f+"px"}if(g){this.layer.style.height=(isNaN(g)&&g.indexOf("%")!=-1)?g:g+"px"}};this.open=function(n,l){var o=true;if(this.onbeforeopen&&this.onbeforeopen.constructor==Function){o=this.onbeforeopen()}if(!o){return false}var i=document.documentElement,f=document.body,j=this.layer;j.style.position="absolute";j.style.display="block";var k=j.offsetWidth||this.width,g=j.offsetHeight||this.height,h=Math.max(i.scrollLeft,f.scrollLeft),m=Math.max(i.scrollTop,f.scrollTop);n=(!isNaN(n))?n:h+Math.floor((Math.min(i.clientWidth,i.offsetWidth,f.offsetWidth,f.clientWidth)-k)/2);l=(!isNaN(l))?l:m+Math.floor((Math.min(i.clientHeight,i.offsetHeight,f.offsetHeight,f.clientHeight)-g)/2);j.style.left=(n>h?n:h)+"px";j.style.top=(l>m?l:m)+"px";this.isopen=true;if(this.onopen&&this.onopen.constructor==Function){this.onopen()}};this.close=function(){var f=this.layer;var g=true;if(this.onbeforeclose&&this.onbeforeclose.constructor==Function){g=this.onbeforeclose()}if(!g){return false}f.style.display="none";this.isopen=false;if(this.onclose&&this.onclose.constructor==Function){this.onclose()}};this.easyLayerInit()};var easyMask=function(g,f,a,d,i,b,c){f=(!f||isNaN(f))?"100%":f;a=(!a||isNaN(a))?"100%":a;this.scolor=i||"#000";this.opacity=isNaN(b)?30:b;easyLayer.call(this,g,d,f,a);var h=0;this.oncountchange=null;this.getcount=function(){return h};this.clearcount=function(){h=0;if(this.oncountchange&&this.oncountchange.constructor==Function){this.oncountchange()}};this.addcount=function(){h++;if(this.oncountchange&&this.oncountchange.constructor==Function){this.oncountchange()}};this.subcount=function(){h--;if(h<0){h=0}if(this.oncountchange&&this.oncountchange.constructor==Function){this.oncountchange()}};this.init(c)};easyMask.prototype={init:function(i){var d=this.layer,f=document.documentElement,a=document.body,b=this.width,j=this.height;d.innerHTML='<div style="position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;background:'+this.scolor+";-moz-opacity:"+(this.opacity/100)+";opacity:"+(this.opacity/100)+";filter:alpha(opacity="+this.opacity+');z-index:2;border:none;">&nbsp;</div><iframe src="about:blank" style="position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;background:#fff;-moz-opacity:0;opacity:0;filter:alpha(opacity=0);z-index:1;border:none;"></iframe>';d.oncontextmenu=function(){return false};d.onselectstart=function(){return false};d.onmousedown=function(){return false};var c=function(){if(b!="100%"||j!="100%"){return}var l=easyUI.getWindowSize();var k=Math.max(l.width,l.scrollWidth);var m=Math.max(l.height,l.scrollHeight);d.style.width=k+"px";d.style.height=m+"px"};if(document.attachEvent){window.attachEvent("onresize",c)}else{window.addEventListener("resize",c,false)}var g=this.open;this.open=function(k,n){this.addcount();if(this.getcount()>1){return false}if(i){var l=/msie/i.test(navigator.appVersion),m=/Firefox/i.test(navigator.userAgent);ist=Math.max(a.scrollTop,f.scrollTop);if(!m){document.documentElement.style.overflow="hidden"}if(l||m){document.body.style.overflow="hidden"}document.body.scrollTop=ist+1}if(!k){k=0}if(!n){n=0}g.call(this,k,n);c()};var h=this.close;this.close=function(){this.subcount();if(this.getcount()>0){return false}if(i){var k=/msie/i.test(navigator.appVersion),l=/Firefox/i.test(navigator.userAgent);ist=Math.max(a.scrollTop,f.scrollTop);if(!l){document.documentElement.style.overflow="auto"}if(k||l){document.body.style.overflow="auto"}document.body.scrollTop=ist-1}h.call(this)}}};var easyPopup=function(c,d,b,f,h,g,a,i,j){d=d||"easypopup";f=f||"#808080";h=h||"#ffffff";this.width=isNaN(a)?300:a;this.height=isNaN(i)?200:i;easyLayer.call(this,c,j,a,i);this.closecls=b||"closebtn";this.fixsize=false;this.autofullsize=false;this.dstimes=0;this.onclick=null;this.init(d,b,f,h,g,a,i)};easyPopup.prototype={autosize:function(){var g=/msie/i.test(navigator.appVersion);var k=this.dcontent,l=this.dcbd,d=document.documentElement,a=document.body;if(l.scrollLeft<=0&&l.scrollTop<=0){return}var b=Math.max(l.offsetWidth,l.clientWidth,l.scrollWidth)+1;var h=Math.max(l.offsetHeight,l.clientHeight,l.scrollHeight)+1;var j=b,f=h;if(!this.autofullsize){var c=(g)?Math.min(d.offsetWidth,a.offsetWidth):Math.min(d.offsetWidth,d.clientWidth,a.offsetWidth,a.clientWidth);var i=(g)?Math.min(d.offsetHeight,a.offsetHeight):Math.min(d.offsetHeight,d.clientHeight,a.offsetHeight,a.clientHeight);j=Math.min(b,(c-100)),f=Math.min(h,(i-150))}if(l){l.style.overflow="auto";l.style.margin="5px";l.style.width=j+"px";l.style.height=f+"px"}j+=10;f+=80;this.layer.style.width=j+"px";this.layer.style.height=f+"px";this.dshadow.style.width=j+"px";this.dshadow.style.height=f+"px";k.style.width=j+"px";k.style.height=f+"px";this.mask.resetsize()},detectsize:function(){var i=this.dcontent,k=this.dcbd,d=document.documentElement,a=document.body,j=(!this.isopen)?false:true;k.scrollLeft=100;k.scrollTop=100;if(k.scrollLeft==0&&k.scrollTop==0){j=false}else{j=true}if(!this.autofullsize){var f=/msie/i.test(navigator.appVersion);var b=(f)?i.offsetWidth:Math.min(i.offsetWidth,i.clientWidth);var g=(f)?i.offsetHeight:Math.min(i.offsetHeight,i.clientHeight);var c=(f)?Math.min(d.offsetWidth,a.offsetWidth):Math.min(d.offsetWidth,d.clientWidth,a.offsetWidth,a.clientWidth);var h=(f)?Math.min(d.offsetHeight,a.offsetHeight):Math.min(d.offsetHeight,d.clientHeight,a.offsetHeight,a.clientHeight);if(b>=(c-100)&&g>=(h-150)){k.scrollLeft=0;k.scrollTop=0;return}if(b>=(c-100)&&k.scrollTop==0){k.scrollLeft=0;k.scrollTop=0;return}if(g>=(h-150)&&k.scrollLeft==0){k.scrollLeft=0;k.scrollTop=0;return}}if(!j){if(this.dstimes<10){this.dstimes++;window.setTimeout(arguments.callee.bind(this),200);return}else{this.dstimes=0;return}}this.autosize();window.setTimeout(arguments.callee.bind(this),10)},disable:function(){if(!this.mask){return}this.mask.resetsize();this.mask.clearcount();this.mask.open(0,0)},enable:function(){if(!this.mask){return}this.mask.clearcount();this.mask.close()},hideShadow:function(){this.dshadow.style.display="none"},setShadow:function(d,h,g,a){d=(!isNaN(d))?d:30;h=(!isNaN(h))?h:10;g=(!isNaN(g))?g:10;var b=parseInt(easyUI.getStyle(this.dcontent,"width")),f=parseInt(easyUI.getStyle(this.dcontent,"height"));var i=Math.max(this.dcontent.offsetWidth,b),c=Math.max(this.dcontent.offsetHeight,f);this.dshadow.style.cssText="position:absolute;left:"+h+"px;top:"+g+"px;width:"+i+"px;height:"+c+"px;overflow:hidden;background:#000;-moz-opacity:"+(d/100)+";opacity:"+(d/100)+";filter:alpha(opacity="+d+");z-index:-1;"},setTitle:function(c){var b=this.dtarea;if(!b){return}var a=b.getElementsByTagName("strong")[0];if(!a){return}a.innerHTML="<nobr>"+c+"</nobr>"},setContent:function(b){var a=easyUI.getElementsBy("class","popbd","div",this.dcontent)[0];if(!a){return}if(this.fixsize){a.innerHTML=b;return}a.style.visibility="hidden";a.innerHTML="";a.style.width="200px";a.style.height="50px";a.innerHTML="<nobr>"+b+"</nobr>";a.scrollLeft=100;a.scrollTop=100;this.autosize();a.innerHTML=b;a.style.visibility="visible";this.detectsize()},showft:function(b){var a=this.height;if(!b){this.dcft.style.display="none";this.dcbd.style.height=a-80+42+"px"}else{this.dcbd.style.height=a-80+"px";this.dcft.style.display="none"}},init:function(h,g,i,k,j,a,l){var f='<div class="popcontent">';f+='<div class="pophd"><strong style="display:block;width:90%;overflow:hidden;margin:0 5px;font-size:120%;background:'+i+";color:"+k+';text-align:left;cursor:default;">Easy Popup - EasyUI</strong></div>';f+='<div class="popbd" style="margin:5px;height:'+(l-80)+'px;overflow:auto;">Easy Popup Layer</div>';f+='<div class="popft" style="position:absolute;left:2px;bottom:-2px;_bottom:2px;width:100%;height:32px;background:#F0EFE6;text-align:right;border-top:1px solid #D5D4CB;"><button class="'+this.closecls+'" style="margin:5px 5px 0;">Close</button></div>';f+='<div class="'+this.closecls+'" style="position:absolute;top:5px;right:5px;padding:0;margin:0;color:'+k+';font-size:120%;line-height:15px;cursor:pointer;" title="[Close]">Close <span style="font-size:120%">X</span></div>';f+="</div>";f+='<div class="popshadow">&nbsp;</div>';f+='<div class="popmask">&nbsp;</div>';this.layer.innerHTML=f;this.dcontent=this.layer.childNodes[0];this.dshadow=this.layer.childNodes[1];this.dmask=this.layer.childNodes[2];this.dtarea=easyUI.getElementsBy("class","pophd","div",this.dcontent)[0];this.dcbd=easyUI.getElementsBy("class","popbd","div",this.dcontent)[0];this.dcft=easyUI.getElementsBy("class","popft","div",this.dcontent)[0];this.layer.className=h;this.layer.style.overflow="visible";this.dcontent.style.cssText="background:#fff;border:2px solid "+i+";width:"+a+"px;height:"+l+"px;overflow:hidden;";this.dshadow.style.cssText="position:absolute;left:0;top:0;z-index:-1;display:none;";this.dtarea.style.cssText="background:"+i+";color:#fff;height:25px;line-height:25px;padding:0;margin:0;text-align:left;overflow:hidden;zoom:1;";if(j){var m=this.dtarea||this.dcontent;var d=new easyDragDrop(m,this.layer,null,true)}this.mask=new easyMask(this.dmask,a,l,2,"#000",30,false);this.mask.resetsize=function(){this.mask.layer.style.width=this.dcontent.offsetWidth+"px";this.mask.layer.style.height=this.dcontent.offsetHeight+"px"}.bind(this);var c=function(q){var o=easyUI.getTarget(q),p=o.tagName,n=o.className;if(n=="popmask"||o.parentNode.className=="popmask"){easyUI.stopEvent(q);return}if(n==this.closecls){easyUI.stopEvent(q);this.close();return}if(this.onclick&&this.onclick.constructor==Function){this.onclick(q)}};this.layer.onclick=c.bind(this);var b=this.open;this.open=function(n,o){b.call(this,n,o);if(!this.fixsize){this.detectsize()}}}};var sitebro_bindevent=function(c,a,b,d){if(!c||!a||!b){return}if(document.attachEvent){c.attachEvent("on"+a,b)}else{c.addEventListener(a,b,d)}};var sitebro_createpopup=function(){sitebro_masklayer=new easyMask(null,"100%","100%",10000,"#000",30,true);sitebro_popuplayer=new easyPopup(null,"sitebro",null,"#4276BF","#fff",false,950,550,10010);sitebro_popuplayer.dcbd.style.overflow="hidden";sitebro_popuplayer.fixsize=true;sitebro_popuplayer.setTitle("Search result");sitebro_popuplayer.showft(0);sitebro_popuplayer.setShadow();sitebro_popuplayer.onopen=function(){sitebro_masklayer.open()};sitebro_popuplayer.onclose=function(){sitebro_masklayer.close();var a=sitebro_popuplayer.dcbd.childNodes[0];if(a&&a.src){a.src=""}sitebro_popuplayer.setContent("")}};var sitebro_host=sitebro_tracker_atc_kw.u.match(/http:\/\/[^\/]*/i)[0];var sitebro_wwords={zh_TW:["%E6%9C%AC%E6%97%A5","%E6%9C%AC%E5%91%A8","%E6%9C%AC%E6%9C%88","%E6%90%9C%E5%AF%BB","%E7%9A%84%E6%90%9C%E5%B0%8B%E7%B5%90%E6%9E%9C"],zh_CN:["%E6%9C%AC%E6%97%A5","%E6%9C%AC%E5%91%A8","%E6%9C%AC%E6%9C%88","%E6%90%9C%E5%AF%BB","%E7%9A%84%E6%90%9C%E7%B4%A2%E7%BB%93%E6%9E%9C"],en:["today","week","month","search","search result"],ja:["today","week","month","search","search result"],ko:["today","week","month","search","search result"],ru:["today","week","month","search","search result"],de:["today","week","month","search","search result"],ru:["today","week","month","search","search result"],es:["today","week","month","search","search result"],pt:["today","week","month","search","search result"]};var sitebro_usedlang=sitebro_wwords[sitebro_tracker_atc_kw.lang];var sitebro_autoPPSZ=function(){if(!sitebro_popuplayer){return}var f=easyUI.getWindowSize(),d=f.width-60,k=f.height-60,a=d-10,i=k-35,j=sitebro_popuplayer.layer,b=sitebro_popuplayer.dcontent,c=sitebro_popuplayer.dcbd,h=c.childNodes[0];var g=/Chrome/i.test(navigator.appVersion);if(g){k=window.innerHeight-60;i=k-35}j.style.width=d+"px";j.style.height=k+"px";b.style.width=d+"px";b.style.height=k+"px";c.style.width=a+"px";c.style.height=i+"px";if(h&&h.style){h.style.width=a+"px";h.style.height=i+"px"}sitebro_popuplayer.setShadow()};var sitebro_easyFrame=function(f,d){this.guid="efts"+Math.random().toString().replace(/\./g,"");this.minH=65;this.dframe=null;this.dframedoc=null;this.otab=null;this.loadingurl=sitebro_host+"/external_loading.html?url=";var b=this;var c=sitebro_usedlang[4];var a=function(g,h){g=g||window.event;this.openinpopup=h||false;this.dc=easyUI.getElementsBy("class","preview","div",this)[0];var i=this.dc.innerHTML;this.formatdata=function(o){if(!o||!o.length){return""}var p=o.slice(0),j=p.length,m=[];for(var k=0;k<j;k++){var n=(k<j-1)?"-":"";m.push('<a href="'+p[k][0]+'" title="'+p[k][1]+'" target="_blank">'+p[k][1]+"</a>"+n)}return m.join("")};this.showTab=function(l){var k=this.dc,n=k.getAttribute("dataurl");if(l==null){k.innerHTML='<img src="'+sitebro_tracker_atc_kw.u.match(/http:\/\/[^\/]*\//i)[0]+'img/b/ajax-loader.gif" style="vertical-align:middle;" /> <span>loading...</span>'+i;window.setTimeout(function(){easyUI.ajax.xRequest(n,b.guid)},1000)}else{k.innerHTML=this.formatdata(l)+i;b.resizeFrame();var j=this.getElementsByTagName("form")[0],m=b.loadingurl;if(j){j.onsubmit=function(){var o=this.elements[0].value||" ",p=m+encodeURI(this.action+o+"/ex");sitebro_popuplayer.setTitle(o+" "+decodeURI(c));sitebro_popuplayer.setContent('<iframe class="popupiframe" src="'+p+'" style="width:100%;height:100%;border:none;" border="0" frameBorder="0" marginwidth="0" marginheight="0"></iframe>');sitebro_autoPPSZ();if(!sitebro_popuplayer.isopen){sitebro_popuplayer.open()}return false}}}};this.onclick=function(m){m=m||g;var k=easyUI.getTarget(m),l=k.tagName.toLowerCase(),n=b.loadingurl;if(this.openinpopup){if(l=="a"&&k.className!="copyico"){var o=n+encodeURI(k.href),j=k.innerHTML;sitebro_popuplayer.setTitle(j+" "+decodeURI(c));sitebro_popuplayer.setContent('<iframe class="popupiframe" src="'+o+'" style="width:100%;height:100%;border:none;" border="0" frameBorder="0" marginwidth="0" marginheight="0"></iframe>');sitebro_autoPPSZ();if(!sitebro_popuplayer.isopen){sitebro_popuplayer.open()}easyUI.stopEvent(m)}}};this.showTab()};this.buildTabStrip=function(g){g=g||window.event;var h=this.dframe;if(!h){return}this.otab=this.dframedoc.body;a.call(this.otab,g,d)};this.resizeFrame=function(){var k=this.dframe;if(!k){return}var i=this.dframedoc,j=5,h=this.minH;var g=function(){if(!j){return}j--;k.style.height=h+"px";var n=Math.min(i.documentElement.scrollHeight,i.body.scrollHeight),m=Math.max(i.documentElement.scrollHeight,i.body.scrollHeight),l=(n<=h)?m:n;k.style.height=(l+1)+"px";h=l;window.setTimeout(arguments.callee,100)};g()};this.setContent=function(i){var j=this.dframe;if(!i||!j){return}var h=this.dframedoc,g=h.open();g.write(i);g.close()};this.init=function(j){var g=this.guid,h=this.minH;var i='<iframe class="'+g+'" src="about:blank" style="width:100%;height:'+h+'px;overflow:hidden;border:none;" border="0" frameBorder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>';document.write(i);var k=easyUI.getElementsBy("class",g,"iframe",document)[0];this.dframe=k;this.dframedoc=(k.contentWindow)?k.contentWindow.document:k.document;this.setContent(j)};this.init(f)};var sitebro_dataurl=sitebro_host+"/widget_rltarticle?w="+sitebro_tracker_atc_kw.w+"&lang="+sitebro_tracker_atc_kw.lang+"&l="+sitebro_tracker_atc_kw.l+"&url="+top.location.href;var sitebro_sform=sitebro_tracker_atc_kw.s?'<form class="gsearch clearfix" action="'+sitebro_tracker_atc_kw.u+'" method="post"><label class="skey"><input class="ipt-box" type="text"></label><input value="'+decodeURI(sitebro_usedlang[3])+'" class="ipt-btn" type="submit"></form>':"";var sitebro_configstyle="#hotrelate{background:"+sitebro_tracker_atc_kw.bg+";color:"+sitebro_tracker_atc_kw.ca+";border-color:"+sitebro_tracker_atc_kw.bt+";font-size:"+sitebro_tracker_atc_kw.fs+";}#hotrelate a{color:"+sitebro_tracker_atc_kw.ca+";font-size:"+sitebro_tracker_atc_kw.fs+";}";var sitebro_scontent='<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd"><html><head><title>Sitebro tracker</title><meta http-equiv="content-type" content="text/html; charset=utf-8" /><base href="'+sitebro_host+'" /><link rel="stylesheet" type="text/css" href="/css/dystyle.css" /><style type="text/css">html,body{border:none;overflow:hidden;}'+sitebro_configstyle+'</style></head><body><div id="hotrelate" class="gmodule preview" dataurl="'+sitebro_dataurl+'">'+sitebro_sform+'<a href="'+sitebro_host+'" class="copyico" target="_blank"></a></div></body></html>';var sitebro_masklayer=null,sitebro_popuplayer=null,sitebro_atc_kw_frame=new sitebro_easyFrame(sitebro_scontent,1);sitebro_bindevent(window,"load",function(a){a=a||window.event;sitebro_createpopup();sitebro_atc_kw_frame.buildTabStrip(a)},false);sitebro_bindevent(window,"resize",sitebro_autoPPSZ,false);
