var google_ads_str="Anúncios Google";function popUp(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=2,location=0,statusbar=1,menubar=0,resizable=0,width=750,height=525,left = 100,top = 134');");}function popUpSmall(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=2,location=0,statusbar=1,menubar=0,resizable=0,width=200,height=150,left = 100,top = 134');");}var browserName=navigator.appName;var browserVer=parseInt(navigator.appVersion);var ns3up=(browserName=="Netscape"&&browserVer>=3);var ie4up=(browserName.indexOf("Microsoft")>=0&&browserVer>=4);var op7up=(browserName.indexOf("Opera")>=0&&browserVer>=7);function doPic(imgName){if(ns3up||ie4up||op7up){imgOn=(""+imgName);document.main_ad_image.src=imgOn;}}function doMedia(mediaName){if(ns3up||ie4up){mediaOn=(""+mediaName);document.main_ad_media.src=mediaOn;}}subject_id="";function handleHttpResponse(){if(http.readyState==4){if(subject_id!=""){document.getElementById(subject_id).innerHTML=http.responseText;}}}function getHTTPObject(){var xmlhttp;if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){try{xmlhttp=new XMLHttpRequest();}catch(e){xmlhttp=false;}}return xmlhttp;}function getScriptPage(query,content,content_id,response_div_id){document.getElementById(response_div_id).innerHTML='<img src="img/i.gif">';http=getHTTPObject();subject_id=response_div_id?response_div_id:content_id;content=content_id?document.getElementById(content_id).value:content;http.open("GET",query+encodeURI(content),true);http.onreadystatechange=handleHttpResponse;http.send(null);}function resizeifbig(imageid,maxwidth,maxheight){if(navigator.userAgent.toLowerCase().search("msie 6")>=0){var ifbig=document.getElementById(imageid);if(ifbig.offsetWidth>ifbig.offsetHeight){if(parseInt(ifbig.offsetWidth)>maxwidth){ifbig.style.width=maxwidth+"px";}}else{if(parseInt(ifbig.offsetHeight)>maxheight){ifbig.style.height=maxheight+"px";}}}}function jsScroller(o,w,h){var self=this;var list=o.getElementsByTagName("div");for(var i=0;i<list.length;i++){if(list[i].className.indexOf("ea_scroll_content")>-1){o=list[i];}}this._setPos=function(x,y){if(x<this.viewableWidth-this.totalWidth){x=this.viewableWidth-this.totalWidth;}if(x>0){x=0;}if(y<this.viewableHeight-this.totalHeight){y=this.viewableHeight-this.totalHeight;}if(y>0){y=0;}this._x=x;this._y=y;with(o.style){left=this._x+"px";top=this._y+"px";}};this.reset=function(){this.content=o;this.totalHeight=o.offsetHeight;this.totalWidth=o.offsetWidth;this._x=0;this._y=0;with(o.style){left="0px";top="0px";}};this.scrollBy=function(x,y){this._setPos(this._x+x,this._y+y);};this.scrollTo=function(x,y){this._setPos(-x,-y);};this.stopScroll=function(){if(this.scrollTimer){window.clearInterval(this.scrollTimer);}};this.startScroll=function(x,y){this.stopScroll();this.scrollTimer=window.setInterval(function(){self.scrollBy(x,y);},40);};this.swapContent=function(c,w,h){o=c;var list=o.getElementsByTagName("div");for(var i=0;i<list.length;i++){if(list[i].className.indexOf("ea_scroll_content")>-1){o=list[i];}}if(w){this.viewableWidth=w;}if(h){this.viewableHeight=h;}this.reset();};this.content=o;this.viewableWidth=w;this.viewableHeight=h;this.totalWidth=o.offsetWidth;this.totalHeight=o.offsetHeight;this.scrollTimer=null;this.reset();}function jsScrollerTween(o,t,s){var self=this;this._tweenTo=function(y){if(self._idle){var tHeight=self._parent._src?self._parent._src.totalHeight:self._parent.totalHeight;var vHeight=self._parent._src?self._parent._src.viewableHeight:self._parent.viewableHeight;var scrollY=self._parent._src?self._parent._src._y:self._parent._y;if(y<0){y=0;}if(y>tHeight-vHeight){y=tHeight-vHeight;}var dist=y-(-scrollY);self._inc=0;self._timer=null;self._values=[];self._idle=false;for(var i=0;i<self.steps.length;i++){self._values[i]=Math.round((-scrollY)+dist*(self.steps[i]/100));}self._timer=window.setInterval(function(){self._parent.scrollTo(0,self._values[self._inc]);if(self._inc==self.steps.length-1){window.clearTimeout(self._timer);self._idle=true;}else{self._inc++;}},self.stepDelay);}};this._tweenBy=function(y){var scrollY=self._parent._src?self._parent._src._y:self._parent._y;self._tweenTo(-scrollY+y);};this._trackTween=function(e){e=e?e:event;self._parent.canScroll=false;var curY=e.clientY+document.body.scrollTop;self._tweenTo((curY-self._parent._trackTop-self._parent._handleHeight/2)*self._parent._ratio);};this.stepDelay=40;this.steps=s?s:[0,25,50,70,85,95,97,99,100];this._values=[];this._parent=o;this._timer=[];this._idle=true;o.tweenTo=this._tweenTo;o.tweenBy=this._tweenBy;o.trackTween=this._trackTween;if(t){o._scrollTrack=function(e){this.trackTween(e);};}}function ea_playitem(itemid){ea_cdown(itemid);setInterval('ea_cdown("'+itemid+'")',1000);}function ea_cdown(itemid,time){if(document.getElementById(itemid).innerHTML=="Fechado"){return true;}var td=parseInt(document.getElementById(itemid).getAttribute("timevar"))-document.getElementById("eanow").getAttribute("gentime"*1000);var totsec=parseInt(document.getElementById(itemid).getAttribute("timeleft"))-td;if(document.getElementById(itemid).innerHTML=="0s"||totsec<0){document.getElementById(itemid).innerHTML="Fechado";setTimeout("scroller.tweenBy(44)",2000);return true;}if(document.getElementById(itemid).getAttribute("timevar")==""){document.getElementById(itemid).setAttribute("timevar",document.getElementById("servertime").getAttribute("time"));}else{document.getElementById(itemid).setAttribute("timevar",parseInt(document.getElementById(itemid).getAttribute("timevar"))+1);}if(isFinite(totsec)){var tdtime=new Date(0,0,0,0,0,totsec);var outp="";if(tdtime.getDay()!=0){outp=outp+tdtime.getDay()+"d ";}if(tdtime.getHours()!=0){outp=outp+tdtime.getHours()+"h ";}if(tdtime.getMinutes()!=0){outp=outp+tdtime.getMinutes()+"m ";}outp=outp+tdtime.getSeconds()+"s";document.getElementById(itemid).innerHTML=outp;}}function findElementPosition(theElement){theElement=document.getElementById(theElement);var topPos=0;var leftPos=0;while(theElement!=null){topPos+=theElement.offsetTop;leftPos+=theElement.offsetLeft;theElement=theElement.offsetParent;}return[leftPos,topPos];}function repositionCats(left,top,theElement){var theContainer=document.getElementById(theElement);theContainer.style.left=parseFloat(left)+"px";theContainer.style.top=parseFloat(top)+"px";}function toggleCats(trigger){var position=findElementPosition(trigger);var elementHeight=document.getElementById(trigger).offsetHeight;repositionCats(position[0],(position[1]+elementHeight),"catsDisplay");var doAction="visible";var theContainer=document.getElementById("catsDisplay");if(theContainer.style.visibility=="visible"){doAction="hidden";}theContainer.style.visibility=doAction;}function jsScrollerTween_horizontal(o,t,s){var self=this;this._tweenTo=function(y){if(self._idle){var tHeight=self._parent._src?self._parent._src.totalHeight:self._parent.totalHeight;var vHeight=self._parent._src?self._parent._src.viewableHeight:self._parent.viewableHeight;var scrollY=self._parent._src?self._parent._src._y:self._parent._y;var scrollX=self._parent._src?self._parent._src._x:self._parent._x;if(y<0){y=0;}if(y>tHeight-vHeight){y=tHeight-vHeight;}var dist=y+(scrollX);self._inc=0;self._timer=null;self._values=[];self._idle=false;for(var i=0;i<self.steps.length;i++){self._values[i]=Math.round((-scrollX)+dist*(self.steps[i]/100));}self._timer=window.setInterval(function(){self._parent.scrollTo(self._values[self._inc],0);if(self._inc==self.steps.length-1){window.clearTimeout(self._timer);self._idle=true;}else{self._inc++;}},self.stepDelay);}};this._tweenBy=function(y){var scrollY=self._parent._src?self._parent._src._y:self._parent._y;self._tweenTo(0);};this._trackTween=function(e){e=e?e:event;self._parent.canScroll=false;var curY=e.clientY+document.body.scrollTop;self._tweenTo((curY-self._parent._trackTop-self._parent._handleHeight/2)*self._parent._ratio);};this.stepDelay=40;this.steps=s?s:[0,25,50,70,85,95,97,99,100];this._values=[];this._parent=o;this._timer=[];this._idle=true;o.tweenTo=this._tweenTo;o.tweenBy=this._tweenBy;o.trackTween=this._trackTween;if(t){o._scrollTrack=function(e){this.trackTween(e);};}}function str_scroller(area,divstr,maxwidth,first){first=first?true:false;if(document.getElementById(area).style.width==""||document.getElementById(area).style.width==maxwidth+"px"){document.getElementById(area).style.width="1000px";document.getElementById(area).style.width=document.getElementById(divstr).offsetWidth+"px";str_width="-"+(document.getElementById(divstr).offsetWidth-maxwidth);arrsc[divstr+"sc"]=new jsScroller(document.getElementById(area),maxwidth,str_width);arrsc[divstr+"sctw"]=new jsScrollerTween_horizontal(arrsc[divstr+"sc"],true);}if(arrsc[divstr+"sctw"]&&arrsc[divstr+"sctw"]._idle&&!first){arrsc[divstr+"sctw"].steps_back=[0,1,3,6,10,15,20,25,30,35,40,50,60,65,70,75,80,85,90,94,97,99,100,99,98,97,98,99,100];arrsc[divstr+"sctw"].steps2=[0,0,0,1,1,1,2,2,3,4,5,6,7,8,9,10,12,14,16,18,20,22,24,26,28,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,74,76,78,80,82,84,86,88,90,91,92,93,94,95,96,97,98,99,100];arrsc[divstr+"sctw"].steps=arrsc[divstr+"sctw"].steps2;arrsc[divstr+"sc"].tweenTo(426);var ti1=window.setInterval(function(){if(arrsc[divstr+"sctw"]._idle){arrsc[divstr+"sctw"]._idle=false;arrsc[divstr+"sctw"].steps=arrsc[divstr+"sctw"].steps_back;setTimeout("arrsc['"+divstr+"sctw"+"']._idle=true;arrsc['"+divstr+"sc"+"'].tweenBy(0)",1000);window.clearInterval(ti1);}},500);}}function google_interface(google_obj,start,end){if(start<end&&end<google_obj.length){var i;var output='<div style="padding:4px 0px 4px 0px;width:100%;">';for(i=start;(i<=end&&i<google_obj.length);++i){output+='<div style="padding:4px 0px 4px 0px;width:100%;">';output+='<div style="border-left:10px solid #fff;">';output+='<a href="'+google_obj[i].url+'" target="_blank"';output+=' class="regular_link">'+google_obj[i].line1+"</a>";output+="<br />";if(google_obj[i].line2){output+=google_obj[i].line2;}if(google_obj[i].line3){output+=" "+google_obj[i].line3;}output+=" - ";output+='<a href="'+google_obj[i].url+'" target="_blank"';output+=' class="small_link">'+google_obj[i].visible_url+"</a>";output+="</div>";output+="</div>";}output+="</div>";return output;}else{return false;}}function google_ad_request_done(google_ads){return true;}goos=gooo=0;function display_premium_adsense(start,end,parentDiv){if(google_ads.length==0){return false;}var parent_div=document.getElementById(parentDiv);var output='&nbsp;<a href="'+google_info.feedback_url+'" style="color:#000;font-size:10px" target="_blank">'+google_ads_str+"</a>";var content=google_interface(google_ads,start,end);output+=content;if(content){parent_div.style.display="block";parent_div.innerHTML=output;}return true;}function google_afs_request_done(google_ads){var google_num_ads=google_ads.length;if(google_num_ads<=0){return;}var output='&nbsp;<a href="http://services.google.com/feedback/abg" style="color:#000;font-size:10px" target="_blank">'+google_ads_str+"</a>";var the_div="";var content="";var start=0;var end=Math.floor(Math.random()*4);if(end<=1){end=2;}for(var i=1;i<=2;i++){the_div=document.getElementById("google_prem_adsense_"+i);if(i==2){start=end+1;end=5;}content=google_interface(google_ads,start,end);if(content){the_div.style.display="block";the_div.innerHTML=output+content;}}}function display_other_sites(FXA){var holder_pos=document.getElementById("sfield_hold");var img_sugg=document.getElementById("img_suggh");if(!FXA.className){document.onmouseup=function(){FXA.className="";holder_pos.style.position="relative";if(img_sugg!=null){img_sugg.style.visibility="visible";}};FXA.className="FXA";holder_pos.style.position="static";if(img_sugg!=null){img_sugg.style.visibility="hidden";}}}