try{document.execCommand("BackgroundImageCache", false, true);}catch(e){}
var easyUI={fpbind:function(){if(!Function.prototype.bind){Function.prototype.bind=function(obj){var owner=this,args=Array.prototype.slice.call(arguments),callobj=Array.prototype.shift.call(args);return function(e){e=e||top.window.event||window.event;owner.apply(callobj,args.concat([e]));};};}}(),ajax:{xRequest:function(url,id){id=id||'oscript'+Math.random().toString().replace(/\./g,'');var oScript=document.getElementById(id),head=document.getElementsByTagName("head").item(0);if(oScript){head.removeChild(oScript);}oScript=document.createElement("script");oScript.setAttribute("src",url);oScript.setAttribute("id",id);oScript.setAttribute("type","text/javascript");oScript.setAttribute("language","javascript");head.appendChild(oScript);}},clearOutLine:function(sTag,dModule){if(!sTag){return;}dModule=dModule||document;var da=dModule.getElementsByTagName(sTag),l=da.length;for(var i=0;i<l;i++){da[i].hideFocus=true;da[i].style.outline='none';}},getElementsBy:function(att,svalue,stag,dmodule,collection){var rd=[],l=dmodule?dmodule.length:0;if(!stag){return rd;}if(l){for(var n=0;n<l;n++){if(!dmodule[n]){continue;}rd=rd.concat(arguments.callee(att,svalue,stag,dmodule[n],collection));}return rd;}var atts=att,ctag=true,hasatt=false,satt=null,rxp=new RegExp("(\\b"+svalue+"\\b)","i");if(atts=='class'&&(/msie[67]/i).test(navigator.appVersion.replace(/\s/g,''))){atts='classname'}if(collection){if(!att){if(stag=='*'||stag.toLowerCase()==dmodule.tagName.toLowerCase()){rd.push(dmodule);return rd;}}else{hasatt=dmodule.getAttributeNode(att),satt=dmodule.getAttribute(atts);ctag=(stag=='*')?true:(dmodule.tagName.toLowerCase()==stag.toLowerCase());if(ctag&&hasatt&&(!svalue||rxp.test(satt))){rd.push(dmodule);return rd;}}}else{var tmpd=dmodule.getElementsByTagName(stag),tmpdl=tmpd.length,i=0;if(!tmpdl){return rd;}if(!att){for(i=0;i<tmpdl;i++){if(stag=='*'||stag.toLowerCase()==tmpd[i].tagName.toLowerCase()){rd.push(tmpd[i]);continue;}}}else{for(i=0;i<tmpdl;i++){hasatt=tmpd[i].getAttributeNode(att),satt=tmpd[i].getAttribute(atts);if(hasatt&&(!svalue||rxp.test(satt))){rd.push(tmpd[i]),rxp.lastIndex=-1;}}}}return rd;},getTarget:function(e){e=e||window.event;return e.srcElement||e.target;},getStyle:function(dom,stylename){if(dom.currentStyle){return dom.currentStyle[stylename];}else{return window.getComputedStyle(dom,null).getPropertyValue(stylename);}},stopEvent:function(e){e=e||window.event;if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}if(e.preventDefault){e.preventDefault();}else{e.returnValue=false;}},getWindowSize:function(){var bout=/(?:msie|chrome)/i.test(navigator.appVersion);var dd=document.documentElement,db=document.body;var sw=Math.max(dd.scrollWidth,db.scrollWidth),sh=Math.max(dd.scrollHeight,db.scrollHeight);if(!bout){return{width:window.innerWidth,height:window.innerHeight,scrollWidth:sw,scrollHeight:sh};}else{if(dd.clientHeight>dd.offsetHeight){return{width:dd.clientWidth,height:dd.clientHeight,scrollWidth:sw,scrollHeight:sh};}else{return{width:dd.offsetWidth,height:dd.offsetHeight,scrollWidth:sw,scrollHeight:sh};}}}};
var easyLayer=function(olayer,zindex,width,height){this.layer=olayer;this.zindex=zindex;this.width=width;this.height=height;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 iw=this.width,ih=this.height;this.layer.style.display='none';this.layer.style.position='absolute';this.layer.style.zIndex=this.zindex||'1000';if(iw){this.layer.style.width=(isNaN(iw)&&iw.indexOf('%')!=-1)?iw:iw+'px';}if(ih){this.layer.style.height=(isNaN(ih)&&ih.indexOf('%')!=-1)?ih:ih+'px';}};this.open=function(x,y){var bnext=true;if(this.onbeforeopen&&this.onbeforeopen.constructor==Function){bnext=this.onbeforeopen();}if(!bnext){return false;}var xdde=document.documentElement,xdb=document.body,dbox=this.layer;dbox.style.position='absolute';dbox.style.display='block';var dbow=dbox.offsetWidth||this.width,dboh=dbox.offsetHeight||this.height,isl=Math.max(xdde.scrollLeft,xdb.scrollLeft),ist=Math.max(xdde.scrollTop,xdb.scrollTop);x=(!isNaN(x))?x:isl+Math.floor((Math.min(xdde.clientWidth,xdde.offsetWidth,xdb.offsetWidth,xdb.clientWidth)-dbow)/2);y=(!isNaN(y))?y:ist+Math.floor((Math.min(xdde.clientHeight,xdde.offsetHeight,xdb.offsetHeight,xdb.clientHeight)-dboh)/2);dbox.style.left = (x>isl?x:isl)+'px';dbox.style.top = (y>ist?y:ist)+'px';this.isopen=true;if(this.onopen&&this.onopen.constructor==Function){this.onopen();}};this.close=function(){var dbox=this.layer;var bnext=true;if(this.onbeforeclose&&this.onbeforeclose.constructor==Function){bnext=this.onbeforeclose();}if(!bnext){return false;}dbox.style.display='none';this.isopen=false;if(this.onclose&&this.onclose.constructor==Function){this.onclose();}};this.easyLayerInit();};
var easyMask=function(olayer,width,height,zindex,scolor,opacity,hs){width=(!width||isNaN(width))?'100%':width;height=(!height||isNaN(height))?'100%':height;this.scolor=scolor||'#000';this.opacity=isNaN(opacity)?30:opacity;easyLayer.call(this,olayer,zindex,width,height);var count=0;this.oncountchange=null;this.getcount=function(){return count;};this.clearcount=function(){count=0;if(this.oncountchange&&this.oncountchange.constructor==Function){this.oncountchange();}};this.addcount=function(){count++;if(this.oncountchange&&this.oncountchange.constructor==Function){this.oncountchange();}};this.subcount=function(){count--;if(count<0){count=0;}if(this.oncountchange&&this.oncountchange.constructor==Function){this.oncountchange();}};this.init(hs);};easyMask.prototype={init:function(hs){var dlayer=this.layer,xdde=document.documentElement,xdb=document.body,width=this.width,height=this.height;dlayer.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>';dlayer.oncontextmenu=function(){return false;};dlayer.onselectstart=function(){return false;};dlayer.onmousedown=function(){return false;};var resize=function(){if(width!='100%'||height!='100%'){return;}var rs=easyUI.getWindowSize();var iwidth=Math.max(rs.width,rs.scrollWidth);var iheight=Math.max(rs.height,rs.scrollHeight);dlayer.style.width=iwidth+'px';dlayer.style.height=iheight+'px';};if(document.attachEvent){window.attachEvent('onresize',resize);}else{window.addEventListener('resize',resize,false);}var fooopold=this.open;this.open=function(x,y){this.addcount();if(this.getcount()>1){return false;}if(hs){var msie=/msie/i.test(navigator.appVersion);ist=Math.max(xdb.scrollTop,xdde.scrollTop);document.documentElement.style.overflow='hidden';if(msie){document.body.style.overflow='hidden';}document.body.scrollTop=ist+1;}if(!x){x=0;}if(!y){y=0;}fooopold.call(this,x,y);resize();};var fooclold=this.close;this.close=function(){this.subcount();if(this.getcount()>0){return false;}if(hs){var msie=/msie/i.test(navigator.appVersion);ist=Math.max(xdb.scrollTop,xdde.scrollTop);document.documentElement.style.overflow='auto';if(msie){document.body.style.overflow='auto';}document.body.scrollTop=ist-1;}fooclold.call(this);};}};
var easyPopup=function(olayer,sclass,closecls,scolor,tcolor,dragdrop,width,height,zindex){sclass=sclass||'easypopup';scolor=scolor||'#808080';tcolor=tcolor||'#ffffff';this.width=isNaN(width)?300:width;this.height=isNaN(height)?200:height;easyLayer.call(this,olayer,zindex,width,height);this.closecls=closecls||'closebtn';this.fixsize=false;this.autofullsize=false;this.dstimes=0;this.onclick=null;this.init(sclass,closecls,scolor,tcolor,dragdrop,width,height);};easyPopup.prototype={autosize:function(){var msie=/msie/i.test(navigator.appVersion);var dc=this.dcontent,dcbd=this.dcbd,xdde=document.documentElement,xdb=document.body;if(dcbd.scrollLeft<=0&&dcbd.scrollTop<=0){return;}var dw=Math.max(dcbd.offsetWidth,dcbd.clientWidth,dcbd.scrollWidth)+1;var dh=Math.max(dcbd.offsetHeight,dcbd.clientHeight,dcbd.scrollHeight)+1;var idw=dw,idh=dh;if(!this.autofullsize){var xdw=(msie)?Math.min(xdde.offsetWidth,xdb.offsetWidth):Math.min(xdde.offsetWidth,xdde.clientWidth,xdb.offsetWidth,xdb.clientWidth);var xdh=(msie)?Math.min(xdde.offsetHeight,xdb.offsetHeight):Math.min(xdde.offsetHeight,xdde.clientHeight,xdb.offsetHeight,xdb.clientHeight);idw=Math.min(dw,(xdw-100)),idh=Math.min(dh,(xdh-150));}if(dcbd){dcbd.style.overflow='auto';dcbd.style.margin='5px';dcbd.style.width=idw+'px';dcbd.style.height=idh+'px';}idw+=10;idh+=80;this.layer.style.width=idw+'px';this.layer.style.height=idh+'px';this.dshadow.style.width=idw+'px';this.dshadow.style.height=idh+'px';dc.style.width=idw+'px';dc.style.height=idh+'px';this.mask.resetsize();},detectsize:function(){var dc=this.dcontent,dcbd=this.dcbd,xdde=document.documentElement,xdb=document.body,bnext=(!this.isopen)?false:true;dcbd.scrollLeft=100;dcbd.scrollTop=100;if(dcbd.scrollLeft==0&&dcbd.scrollTop==0){bnext=false;}else{bnext=true;}if(!this.autofullsize){var msie=/msie/i.test(navigator.appVersion);var dw=(msie)?dc.offsetWidth:Math.min(dc.offsetWidth,dc.clientWidth);var dh=(msie)?dc.offsetHeight:Math.min(dc.offsetHeight,dc.clientHeight);var xdw=(msie)?Math.min(xdde.offsetWidth,xdb.offsetWidth):Math.min(xdde.offsetWidth,xdde.clientWidth,xdb.offsetWidth,xdb.clientWidth);var xdh=(msie)?Math.min(xdde.offsetHeight,xdb.offsetHeight):Math.min(xdde.offsetHeight,xdde.clientHeight,xdb.offsetHeight,xdb.clientHeight);if(dw>=(xdw-100)&&dh>=(xdh-150)){dcbd.scrollLeft=0;dcbd.scrollTop=0;return;}if(dw>=(xdw-100)&&dcbd.scrollTop==0){dcbd.scrollLeft=0;dcbd.scrollTop=0;return;}if(dh>=(xdh-150)&&dcbd.scrollLeft==0){dcbd.scrollLeft=0;dcbd.scrollTop=0;return;}}if(!bnext){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(opacity,rx,ry,cb){opacity=(!isNaN(opacity))?opacity:30;rx=(!isNaN(rx))?rx:10;ry=(!isNaN(ry))?ry:10;var cw=parseInt(easyUI.getStyle(this.dcontent,'width')),ch=parseInt(easyUI.getStyle(this.dcontent,'height'));var icw=Math.max(this.dcontent.offsetWidth,cw),ich=Math.max(this.dcontent.offsetHeight,ch);this.dshadow.style.cssText='position:absolute;left:'+rx+'px;top:'+ry+'px;width:'+icw+'px;height:'+ich+'px;overflow:hidden;background:#000;-moz-opacity:'+(opacity/100)+';opacity:'+(opacity/100)+';filter:alpha(opacity='+opacity+');z-index:-1;';},setTitle:function(stitle){var dt=this.dtarea;if(!dt){return;}var dts=dt.getElementsByTagName('strong')[0];if(!dts){return;}dts.innerHTML='<nobr>'+stitle+'</nobr>';},setContent:function(scontent){var dc=easyUI.getElementsBy('class','popbd','div',this.dcontent)[0];if(!dc){return;}if(this.fixsize){dc.innerHTML=scontent;return;}dc.style.visibility='hidden';dc.innerHTML='';dc.style.width='200px';dc.style.height='50px';dc.innerHTML='<nobr>'+scontent+'</nobr>';dc.scrollLeft=100;dc.scrollTop=100;this.autosize();dc.innerHTML=scontent;dc.style.visibility='visible';this.detectsize();},showft:function(bl){var hbd=this.height;if(!bl){this.dcft.style.display='none';this.dcbd.style.height=hbd-80+42+'px';}else{this.dcbd.style.height=hbd-80+'px';this.dcft.style.display='none';}},init:function(sclass,closecls,scolor,tcolor,dragdrop,width,height){var stmp='<div class="popcontent">';stmp+='<div class="pophd"><strong style="display:block;width:90%;overflow:hidden;margin:0 5px;font-size:12px;background:'+scolor+';color:'+tcolor+';text-align:left;cursor:default;">Easy Popup - EasyUI</strong></div>';stmp+='<div class="popbd" style="margin:5px;height:'+(height-80)+'px;overflow:auto;">Easy Popup Layer</div>';stmp+='<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>';stmp+='<div class="'+this.closecls+'" style="position:absolute;top:5px;right:5px;padding:0;margin:0;color:'+tcolor+';font-size:15px;line-height:15px;cursor:pointer;" title="[Close]">&#215;</div>';stmp+='</div>';stmp+='<div class="popshadow">&nbsp;</div>';stmp+='<div class="popmask">&nbsp;</div>';this.layer.innerHTML=stmp;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=sclass;this.layer.style.overflow='visible';this.dcontent.style.cssText='background:#fff;border:2px solid '+scolor+';width:'+width+'px;height:'+height+'px;overflow:hidden;';this.dshadow.style.cssText='position:absolute;left:0;top:0;z-index:-1;display:none;';this.dtarea.style.cssText='background:'+scolor+';color:#fff;height:25px;line-height:25px;padding:0;margin:0;text-align:left;overflow:hidden;zoom:1;';if(dragdrop){var da=this.dtarea||this.dcontent;var xddpp=new easyDragDrop(da,this.layer,null,true);}this.mask=new easyMask(this.dmask,width,height,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 foooc=function(e){var dtarget=easyUI.getTarget(e),stag=dtarget.tagName,sclass=dtarget.className;if(sclass=='popmask'||dtarget.parentNode.className=='popmask'){easyUI.stopEvent(e);return;}if(sclass==this.closecls){easyUI.stopEvent(e);this.close();return;}if(this.onclick&&this.onclick.constructor==Function){this.onclick(e);}};this.layer.onclick=foooc.bind(this);var fooopold=this.open;this.open=function(x,y){fooopold.call(this,x,y);if(!this.fixsize){this.detectsize();}};}};
var sitebro_bindevent=function(dobj,sevent,fn,bc){if(!dobj||!sevent||!fn){return;}if(document.attachEvent){dobj.attachEvent('on'+sevent,fn);}else{dobj.addEventListener(sevent,fn,bc);}};
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 difr=sitebro_popuplayer.dcbd.childNodes[0];
	if(difr&&difr.src){difr.src='';}sitebro_popuplayer.setContent('');};
};
var sitebro_host=sitebro_tracker_atc.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'],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.lang];
var sitebro_autoPPSZ=function(){if(!sitebro_popuplayer){return;}var rs=easyUI.getWindowSize(),iw=rs.width-60,ih=rs.height-60,iw2=iw-10,ih2=ih-35,dly=sitebro_popuplayer.layer,dct=sitebro_popuplayer.dcontent,dbd=sitebro_popuplayer.dcbd,dbdifr=dbd.childNodes[0];dly.style.width=iw+'px';dly.style.height=ih+'px';dct.style.width=iw+'px';dct.style.height=ih+'px';dbd.style.width=iw2+'px';dbd.style.height=ih2+'px';if(dbdifr&&dbdifr.style){dbdifr.style.width=iw2+'px';dbdifr.style.height=ih2+'px';}sitebro_popuplayer.setShadow();};
var sitebro_easyFrame=function(scontent,bover,bpopup){
	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 ome = this;
	var strresult = sitebro_usedlang[4];
	var tabStrip=function(pe,bover,bpopup){
		pe=pe||window.event;
		var dptab=easyUI.getElementsBy('class','tab','p',this)[0];
		if(dptab){easyUI.clearOutLine('a',dptab);}
		this.tabs=dptab?dptab.getElementsByTagName('a'):null;
		this.ctns=easyUI.getElementsBy('class','viewlist','ol',this);
		this.nowIndex=0;
		this.rowLi=0;
		this.usedmouseover = bover||false;
		this.openinpopup = bpopup||false;
		this.formatdata=function(list){
			if(!list||!list.length){return '';}
			var d=list.slice(0),l=d.length,slist=[];
			for(var i=0;i<l;i++){var son=(i%2==0)?'':' class="on"';slist.push('<li'+son+'><strong class="sort">'+(i+1)+'</strong><div class="share"><span class="schematic"><span style="width:'+d[i][2]+';"><span></span></span></span><span class="scale">'+d[i][2]+'</span></div><div class="txt"><a href="'+d[i][0]+'" title="'+d[i][1]+'" target="_blank">'+d[i][1]+'</a></div></li>');}
			return slist.join('');
		};
		this.showTab = function(idx,data){
			if(isNaN(idx)||idx<0||idx>=this.tabs.length){return;}
			var inow = this.nowIndex,dt = this.tabs[idx],dc = this.ctns[idx],surl=dt.href;
			if(inow!=idx){
				this.tabs[inow].className='';
				this.ctns[inow].className='viewlist viewlist2';
				dt.className='on';
				dc.className='viewlist viewlist2 on';
				this.nowIndex = idx;
				ome.resizeFrame();
			}
			if(!dc.getAttribute('loaded')){
				if(data==null){
					dc.innerHTML = '<li style="padding:0 10px 5px;"><img src="'+sitebro_tracker_atc.u.match(/http:\/\/[^\/]*\//i)[0]+'img/b/ajax-loader.gif" style="vertical-align:middle;" /> loading...</li>';
					window.setTimeout(function(){easyUI.ajax.xRequest(surl,ome.guid);},1000);
					ome.resizeFrame();
				}else{
					dc.innerHTML = this.formatdata(data);
					dc.setAttribute('loaded','loaded');
					ome.resizeFrame();
				}
			}
		};
		this.onclick=function(e){
			e=e||pe;
			var dtarget = easyUI.getTarget(e),stag = dtarget.tagName.toLowerCase();
			if(stag=='a'&&/tab/i.test(dtarget.parentNode.className)){
				this.showTab(dtarget.getAttribute('index'));
				easyUI.stopEvent(e);
			}else{
				if(this.openinpopup){
					while(true){
						if(!dtarget||stag=='li'||dtarget.className=='bd'){break;}
						dtarget=dtarget.parentNode,stag=dtarget&&dtarget.tagName?dtarget.tagName.toLowerCase():'';
					}
					if(stag=='li'){
						var dlink=dtarget.getElementsByTagName('a')[0],surl =dlink.href,skey=dlink.innerHTML;
						sitebro_popuplayer.setTitle(skey+' '+decodeURI(strresult));
						sitebro_popuplayer.setContent('<iframe class="popupiframe" src="'+surl+'" 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(e);
					}
				}
			}
		};
		this.onmouseover = function(e){
			if(!this.usedmouseover){return false;}
			e=e||pe;
			var dtarget = easyUI.getTarget(e),stag = dtarget.tagName.toLowerCase(),dli = this.rowLi;
			while(true){
				if(!dtarget||stag=='li'||dtarget.className=='bd'){break;}
				dtarget=dtarget.parentNode,stag=dtarget&&dtarget.tagName?dtarget.tagName.toLowerCase():'';
			}
			if(stag=='li'&&dli!=dtarget){
				dtarget.className='on';
				if(dli){dli.className='';}
				this.rowLi=dtarget;
			}
		};
		if(this.tabs.length){this.showTab(1);}
	};
	this.buildTabStrip=function(e){
		e=e||window.event;
		var dframe=this.dframe;
		if(!dframe){return;}
		this.otab=this.dframedoc.body;
		tabStrip.call(this.otab,e,bover,bpopup);
	};
	this.resizeFrame=function(){
		var dframe=this.dframe;
		if(!dframe){return;}
		var doc=this.dframedoc,times=5,mh=this.minH;
		var innerResize=function(){if(!times){return;}times--;dframe.style.height=mh+'px';var iminh=Math.min(doc.documentElement.scrollHeight,doc.body.scrollHeight),imaxh=Math.max(doc.documentElement.scrollHeight,doc.body.scrollHeight),ish=(iminh<=mh)?imaxh:iminh;dframe.style.height=(ish+1)+'px';mh=ish;window.setTimeout(arguments.callee,100);};
		innerResize();
	};
	this.setContent=function(scontent){
		var dframe=this.dframe;
		if(!scontent||!dframe){return;}
		var dbody=this.dframedoc,dbodyopen=dbody.open();
		dbodyopen.write(scontent);
		dbodyopen.close();
	};
	this.init=function(scontent){
		var cls=this.guid,minH=this.minH;
		var sframe='<iframe class="'+cls+'" src="about:blank" style="width:100%;height:'+minH+'px;overflow:hidden;border:none;" border="0" frameBorder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe>';
		document.write(sframe);
		var dframe = easyUI.getElementsBy('class',cls,'iframe',document)[0];
		this.dframe = dframe;
		this.dframedoc = (dframe.contentWindow)?dframe.contentWindow.document:dframe.document;
		this.setContent(scontent);
		var dform = this.dframedoc.body.getElementsByTagName('form')[0],lurl=this.loadingurl;
		if(dform){
			dform.onsubmit=function(){
				var skw=this.elements[0].value||' ',surl=lurl+encodeURI(this.action+skw+'/ex');
				sitebro_popuplayer.setTitle(skw+' '+decodeURI(strresult));
				sitebro_popuplayer.setContent('<iframe class="popupiframe" src="'+surl+'" 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.init(scontent);
};
var sitebro_dataurl=sitebro_host+'/widget_hotarticle?w='+sitebro_tracker_atc.w+'&lang='+sitebro_tracker_atc.lang+'&l='+sitebro_tracker_atc.l+'&d=';
var sitebro_sform=sitebro_tracker_atc.s?'<form class="gsearch clearfix" action="'+sitebro_tracker_atc.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='#hotarts{background:'+sitebro_tracker_atc.bg+';color:'+sitebro_tracker_atc.cf+';border-color:'+sitebro_tracker_atc.bt+';}#hotarts .hd{background:'+sitebro_tracker_atc.bt+';color:'+sitebro_tracker_atc.cf+';}#hotarts .hd .tab a{color:'+sitebro_tracker_atc.cf+';}#hotarts .hd .tab a.on{background:'+sitebro_tracker_atc.bg+';color:'+sitebro_tracker_atc.ca+';}#hotarts .bd ol.viewlist li{color:'+sitebro_tracker_atc.ca+';}#hotarts .bd ol.viewlist li.on{background:'+sitebro_tracker_atc.bh+';}#hotarts .bd div.txt a{color:'+sitebro_tracker_atc.ca+';}';
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/base.css" /><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="hotarts" class="gmodule preview"><div class="hd"><h2 class="tit">'+decodeURI(sitebro_tracker_atc.cp)+'</h2><p class="tab act"><a href="'+sitebro_dataurl+'0" index="0">'+decodeURI(sitebro_usedlang[0])+'</a><a href="'+sitebro_dataurl+'1" class="on" index="1">'+decodeURI(sitebro_usedlang[1])+'</a><a href="'+sitebro_dataurl+'2" index="2">'+decodeURI(sitebro_usedlang[2])+'</a></p></div><div class="bd"><ol class="viewlist"></ol><ol class="viewlist on"></ol><ol class="viewlist"></ol></div><div class="ft">'+sitebro_sform+'<a href="'+sitebro_host+'" class="copyico" target="_blank"></a></div></div></body></html>';
var sitebro_masklayer=null,sitebro_popuplayer=null,sitebro_atc_frame = new sitebro_easyFrame(sitebro_scontent,0,0);
sitebro_bindevent(window,'load',function(e){e=e||window.event;sitebro_createpopup();sitebro_atc_frame.buildTabStrip(e);},false);
sitebro_bindevent(window,'resize',sitebro_autoPPSZ,false);
