var terra_stats_regMV=terra_stats_regSttWb=terra_stats_regCrtfc=1;if(typeof _ts_U=="undefined"){var _ts_U="undefined";var _ts_C={ru:"http://tslt.terra.com.mx/TD.asp?",pt:"",hn:"",pn:"",sr:"",rf:"",gi:"",gh:"",up:0,t:0,ii:new Array(),cV:function(v,d){if(typeof v==_ts_U){v=d;}return v;},tL:function(a){return a.toLowerCase();},cS:function(a,b){if(typeof a!="string"){return "";}var c=a.indexOf(b,0);if(c>0){return a.substring(0,c);}else{return a;}},eD:function(d){var e;e=escape(unescape(d));e=e.replace(/&/g,"%26");e=e.replace(/\+/g,"%2B");e=e.replace(/\//g,"%2F");e=e.replace(/=/g,"%3D");e=e.replace(/\?/g,"%3F");e=e.replace(/@/g,"%40");return e;},aE:function(a,b,c){var o="";if(b.indexOf("  ",0)!=0){o="on";}else{b=b.substring(2,b.length);}if(a.addEventListener){if(a.removeEventListener){try{a.removeEventListener(b,c,false);}catch(e){}}a.addEventListener(b,c,false);}else if(a.attachEvent){if(a.detachEvent){try{a.detachEvent(o+b,c);}catch(e){}}a.attachEvent(o+b,c);}else{with(a)eval("a."+o+b+"="+c)}},gU:function(i,o){var pp="",s=_ts_C.sr;if(s){var q=s.substring(1);var a=q.split("&");for(var i=0;i<a.length;i++){var p=a[i].split("=");if(p[0]==i){pp="&"+o+"="+p[1];}}}return pp;},iM:function(){_ts_C.pt=_ts_C.tL(document.location.protocol);_ts_C.hn=_ts_C.tL(document.location.hostname);_ts_C.pn=_ts_C.tL(document.location.pathname);_ts_C.sr=_ts_C.tL(document.location.search);var w=window,d=r=rf="";do{d=w.document.location.href;r=w.document.referrer;w=w.parent;try{rf=w.document.location.href;}catch(e){break;}}while(_ts_C.cS(d.replace(/http[s]?:\/\//i,""),"/")==_ts_C.cS(r.replace(/http[s]?:\/\//i,""),"/")&&rf!=d);rf="";if(_ts_C.cS(d.replace(/http[s]?:\/\//i,""),"/")==_ts_C.cS(r.replace(/http[s]?:\/\//i,""),"/")){if(document.location.href==d){rf=r;}else{rf=d;}}else{try{if(w.document.location.href==d){if(document.location.href==d){rf=r;}else{rf=d;}}}catch(e){rf=r;}}if(rf){rf=unescape(rf);var gi="";if(rf.search(/idrop[s]?.terra./)>=0){var q=rf.search(/\?/);if(q>=0){var qs=rf.substring(q+1);var a=qs.split("&");for(var i=0;i<a.length;i++){var p=a[i].split("=");if(p[0]=="gid"){gi="/"+p[1];}}}}_ts_C.rf="&ref="+_ts_C.eD(_ts_C.cS(rf,"?")+gi);}if(typeof _ts_PV!=_ts_U){_ts_PV.i();}if(terra_stats_regCLK&&typeof _ts_CLK!=_ts_U){_ts_CLK.i();}},i:function(){if(typeof _ts_TD!=_ts_U){if(terra_stats_regTDS){_ts_TD.gV();}else{_ts_TD.sV();}}if(typeof _ts_MM!=_ts_U&&terra_stats_regMM){_ts_MM.i();}},bu:function(){var T=_ts_C;if(T.up)return;T.up=1;if(typeof _ts_PV!=_ts_U){if(!_ts_PV.rp){T.t+=750;_ts_PV.rPV(0);}}},u:function(){var T=_ts_C;T.bu();T.t+=250;if(typeof _ts_MM!=_ts_U){T.t+=250;_ts_MM.u();}if(typeof _ts_TD!=_ts_U){T.t+=250;_ts_TD.rTD();}if(T.t<750)T.t=750;var d=new Date();do{var c=new Date();}while(c-d<T.t);}};function init(){return;}function unld(){_ts_C.u();}var _ts_PV={jsv:1.0,sr:"",sd:"",ir:"",cs:"hits.e.cl",uvc:"",c:"",rp:0,cP:function(p){function fCC(cc){return String.fromCharCode(cc);}function sC(b,e){var s="";for(var i=b;i<=e;i++){s+=fCC(i);}return s;}function r(s,rs,c){var rx=new RegExp(rs,"g");return s.replace(rx,c);}p=_ts_C.tL(p);p=r(p,"["+sC(224,229)+"]","a");p=r(p,fCC(230),"ae");p=r(p,fCC(231),"c");p=r(p,"["+sC(232,235)+"]","e");p=r(p,"["+sC(236,239)+"]","i");p=r(p,fCC(241),"n");p=r(p,"["+sC(242,246)+fCC(248)+"]","o");p=r(p,"["+sC(249,252)+"]","u");p=r(p,"["+fCC(253)+fCC(255)+"]","y");p=p.replace(/[^\w.\/]/g,"_");return p;},i:function(){var s="script",j=" language='JavaScript",v=new Array("1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0");for(var i=0;i<v.length;i++){document.write("<"+s+j+v[i]+"'>_ts_PV.jsv="+v[i]+";</"+s+">")}if(window.screen){this.sr=screen.width+"*"+screen.height;this.sd=(_ts_C.tL(navigator.appName)=="microsoft internet explorer")?screen.colorDepth:screen.pixelDepth;}this.ir=_ts_C.gU("idref","idref");if(terra_stats_regCrtfc&&terra_stats_idCrtfc){if(terra_stats_idCrtfc>=300000){this.cs="br."+this.cs;}document.write(unescape("%3Cscript language='JavaScript1.4'%3Efunction cert_getReferrer14(){var referrer=document.referrer;try{if(self!=top)referrer=top.document.referrer;}catch(e){referrer=document.referrer;}return referrer;}%3C/script%3E"));document.write("<img id='cert_Pivot' width=1 height=1 border=0 style='position:absolute; width:0; height:0; z-index:6; top: 0; left: 0; visibility: hidden' alt=''>");}var e=terra_info_channel.split(".");if(e.length<3){for(var i=0;i<3-e.length;i++){terra_info_channel+=".";}e=terra_info_channel.split(".");}for(var i=0;i<3;i++){if(e[i]==""){e[i]=_ts_U;}}var c=e[0];var vc=",ar,br,cl,co,cr,do,ec,en,es,gt,hn,mx,ni,pa,pe,pr,sv,us,uy,ve,";if(vc.indexOf(","+c+",",0)<0){var h=_ts_C.hn.split(".");c=h[h.length-1];}if(vc.indexOf(","+c+",",0)>=0){e[0]=c;}else{c=_ts_U}this.uvc=e.join(".");this.c=c;},rPV:function(b){if(b){if(terra_stats_regSttWb){uv_regPV();}if(terra_stats_regCrtfc&&terra_stats_idCrtfc){cert_registerHit(terra_stats_idCrtfc,terra_stats_pathCrtfc);}}else{if(this.rp)return;this.rp=1;if(terra_stats_regPV){terra_stats_regPV=0;var i=new Image();i.src=_ts_C.ru+"bstat=ts01&type=PVW&typever=3&host="+_ts_C.hn+"&url="+_ts_C.pn+this.ir+_ts_C.rf+_ts_C.gi+"&jsver="+this.jsv+"&scrres="+this.sr+"&estat="+Math.random().toString().substring(2,7);if(_ts_C.ii){_ts_C.ii[_ts_C.ii.length]=i;}}if(terra_stats_regSttWb&&!uv_c){uv_SERVER="uv.terra.com.br";if(this.c!=_ts_U&&this.c!="br"){if(this.c=="en"){uv_SERVER="us."+uv_SERVER;}else{uv_SERVER=this.c+"."+uv_SERVER;}}uv_c=terra_stats_uv_c?terra_stats_uv_c:this.uvc;uv_regPV();}if(terra_stats_regCrtfc&&terra_stats_idCrtfc){terra_stats_pathCrtfc=_ts_C.cV(terra_stats_pathCrtfc,this.cP("/"+(terra_info_channeldetail==""?"":terra_info_channeldetail+"/")+((terra_info_type||terra_info_id)?(terra_info_type?terra_info_type:_ts_U)+"/"+(terra_info_id?terra_info_id:_ts_U):_ts_U+"/"+_ts_C.hn+_ts_C.pn.replace(/\/+$/,""))));if(terra_stats_search){tagCertifica_CustomSearch(terra_stats_idCrtfc,terra_stats_pathCrtfc,terra_stats_search);}else{tagCertifica(terra_stats_idCrtfc,terra_stats_pathCrtfc);}}}if(terra_stats_regMV&&terra_info_type.match(/^(not|gal)$/)&&terra_info_id){var p=_ts_C.pt=="https:"?"&0=1":"";var i=new Image();i.src=_ts_C.ru+"bstat=t1;pv:1:0"+p+"&h="+_ts_C.hn+"&p="+_ts_C.eD(_ts_C.pn+_ts_C.sr)+_ts_C.rf.replace("&ref=","&r=")+"&js="+this.jsv+"&sr="+this.sr+"&1="+terra_info_id+";"+terra_info_type+";"+terra_info_service+";"+terra_info_channel+"&estat="+Math.random().toString().substring(2,7);if(_ts_C.ii){_ts_C.ii[_ts_C.ii.length]=i;}}},rG:function(g){var gi=g?"&tg.id="+g.id.replace(/_/g,"-"):"";if(_ts_C.gh==""){_ts_C.gh=g?"&tg.h="+g.host:"";}var r=_ts_C.hn?"&ref="+_ts_C.eD(_ts_C.pt+"//"+_ts_C.hn+_ts_C.pn):"";var i=new Image();i.src=_ts_C.ru+"bstat=ts01&type=PVW&typever=3&host="+g.host+"&url="+g.path+this.ir+r+gi+"&jsver="+this.jsv+"&scrres="+this.sr+"&estat="+Math.random().toString().substring(2,7);if(_ts_C.ii){_ts_C.ii[_ts_C.ii.length]=i;}}};function terra_stats_metrics(){_ts_PV.rPV(0);}function terra_stats_regTraffic(){_ts_PV.rPV(1);}function terra_stats_regGadgetPV(g){_ts_PV.rG(g);}var gid=_ts_C.cV(gid,0);if(gid){_ts_C.gi="&tg.id="+gid.replace(/_/g,"-");}var terra_stats_regPV=_ts_C.cV(terra_stats_regPV,0),terra_stats_regMV=_ts_C.cV(terra_stats_regMV,0),terra_stats_regTD=_ts_C.cV(terra_stats_regTD,0),terra_stats_sentTD=_ts_C.cV(terra_stats_sentTD,0),terra_stats_regTDS=_ts_C.cV(terra_stats_regTDS,0),terra_stats_regCLK=parseInt(_ts_C.cV(terra_stats_regCLK,0)),terra_stats_regMM=_ts_C.cV(terra_stats_regMM,0),terra_stats_sysCLK=_ts_C.cV(terra_stats_sysCLK,0),terra_stats_idPageCLK=_ts_C.cV(terra_stats_idPageCLK,0),terra_info_service=_ts_C.cV(terra_info_service,""),terra_info_channel=_ts_C.tL(_ts_C.cV(terra_info_channel,"")),terra_info_channeldetail=_ts_C.cV(terra_info_channeldetail,""),terra_info_type=_ts_C.tL(_ts_C.cV(terra_info_type,"")),terra_info_id=_ts_C.cV(terra_info_id,""),terra_stats_regSttWb=_ts_C.cV(terra_stats_regSttWb,0),terra_stats_uv_c=_ts_C.cV(terra_stats_uv_c,0),terra_stats_regCrtfc=_ts_C.cV(terra_stats_regCrtfc,0),terra_stats_idCrtfc=_ts_C.cV(terra_stats_idCrtfc,0),terra_stats_pathCrtfc,terra_stats_search=_ts_C.cV(terra_stats_search,0);terra_info_channeldetail=terra_info_channeldetail.replace(/^[\s\/]+|[\s\/]+$/g,"");_ts_C.iM();_ts_C.aE(window,"load",_ts_C.i);_ts_C.aE(window,"beforeunload",_ts_C.bu);_ts_C.aE(window,"unload",_ts_C.u);var uv_SERVER,uv_c;if(!uv_SERVER){uv_SERVER="uv.terra.com.br";}var ScrnSize=screen.width+"x"+screen.height;var BrsrSize;if(document.all){if(document.body){BrsrSize=document.body.clientWidth+"x"+document.body.clientHeight;}}else{BrsrSize=(this.innerWidth-30)+"x"+(this.innerHeight-30);}var ClientTime=new Date().toString();var TimeZone=escape(ClientTime);var uv_IMGs=new Array();function uv_regPV(t){var u=window.location.protocol=="https:"?"https://":"http://";u+=uv_SERVER+"/UV"+"?c="+uv_c+"&ord="+Math.floor(Math.random()*1000000)+"&REF="+escape(document.referrer)+"&SCRNSZ="+ScrnSize+"&BRSRSZ="+BrsrSize+"&TIMEZONE="+TimeZone;if(t){document.write("<img src='"+u+"' width=1 height=1 border=0 style='position:absolute; width:0; height:0; z-index:1; top: 0; left: 0; visibility: hidden' alt=''>");}else{var i=new Image();i.src=u;uv_IMGs[uv_IMGs.length]=i;}}function uv_addEvent(a,b,c){if(a.addEventListener){if(a.removeEventListener){try{a.removeEventListener(b,c,false);}catch(e){}}a.addEventListener(b,c,false);}else if(a.attachEvent){if(a.detachEvent){try{a.detachEvent("on"+b,c);}catch(e){}}a.attachEvent("on"+b,c);}else{with(a)eval("a.on"+b+"="+c)}}function delay(gap){var then,now;then=new Date().getTime();now=then;while((now-then)<gap){now=new Date().getTime();}}function uv_regClick(t){var c=terra_stats_uv_c?terra_stats_uv_c:uv_c;var u="http://null.uv.terra.com.br/UV"+"?c="+c+"&ord="+Math.floor(Math.random()*1000000)+"&CLICK="+escape(t);var i=new Image();i.src=u;uv_IMGs[uv_IMGs.length]=i;delay(500);}function uv_initForm(o,e,t){if(o.getAttribute&&o.getAttribute("uv_rclk"))return;var F=eval("o.on"+e);if(typeof eval("o.on"+e)!="function"){eval("o.on"+e+"=function(){uv_regClick(t);}")}else{eval("o.on"+e+"=function(){_FS=F();uv_regClick(t);return _FS;}")}o.setAttribute("uv_rclk","1");}function whichClick(e){function L(str){return str.toLowerCase();}var a=null;try{a=document.all?window.event.srcElement:(e&&e.target?e.target:this);while(a&&a.nodeName&&!(L(a.nodeName)).match(/^(body|a|area|button|img|input)$/)){a=a.parentNode;}var t=z="";if(a){var nN=L(a.nodeName);if(nN.match(/^(a|area)$/)){t=a.href;}else if(nN=="img"){if(a.onclick){t=a.onclick;}else{while(a&&a.nodeName&&!(L(a.nodeName)).match(/^(body|a|area)$/)){a=a.parentNode;}if((L(a.nodeName)).match(/^(a|area)$/)){t=a.href;}}}else if(nN.match(/^(button|input)$/)){var f=a.form;t=f.action;uv_initForm(f,"submit",t);if(L(a.type)=="button"){if(a.onclick)uv_initForm(a,"click",t);}return;}if(t){uv_regClick(t);}}}catch(e){}}var enableClick;if(enableClick){var element;if(document.body){element=document.body;}else if(document){element=document;}uv_addEvent(element,"mousedown",whichClick);}DEFAULT_PIVOT_NAME="cert_Pivot";DEFAULT_PERIODIC_REDIRECT_TIME=60000;DEFAULT_ORIGIN_COOKIE_NAME="cert_Origin";var cert_ReferrerParms=null;var cert_customSearch=false;function cert_normalizePath(sPath){var sProtocol=cert_getProtocol();var sRet="home/default";var regexSlashes=/\/\/+/g;var regexInvalid=/[^A-Z0-9_.\/]/gi;var aDefaultPages=["index.htm","index.html","index.asp","index.php","index.cfm","index.shtml","index.jsp","default.asp","default.html","default.htm","default.jsp","default.php"];sPath=unescape(sPath);if(sPath&&sPath.length>0&&(sProtocol=="http:"||sProtocol=="https:")){sPath=sPath.replace(regexInvalid,"");if(sPath.charAt(sPath.length-1)=="/"){sPath+=aDefaultPages[0];}sPath=sPath.replace(regexSlashes,"/");var aParts=sPath.split("/");var aElems=new Array();for(var i=0;i<aParts.length;i++){if(aParts[i]&&aParts[i]!=""){aElems.push(aParts[i]);}}if(aElems.length==0){aElems.push("home");aElems.push("default");}if(aElems.length==1){aElems.unshift("home");}for(var i=0;i<aDefaultPages.length;i++){if(aElems[aElems.length-1]==aDefaultPages[i]){aElems[aElems.length-1]="default";break;}}sRet=aElems.join("/");}return sRet;}function cert_qVal(sValue){var pos=String(document.location).indexOf("?");if(pos!=-1){var query=String(document.location).substring(pos+1);var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");if(pair[0]==sValue)return pair[1];}}return null;}function cert_getCookie(sName){var dc=document.cookie;var prefix=sName+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0)return null;}else{begin+=2;}var end=document.cookie.indexOf(";",begin);if(end==-1){end=dc.length;}return unescape(dc.substring(begin+prefix.length,end));}function cert_setCookie(sName,sValue,dtExpires,sPath,sDomain,bSecure){document.cookie=sName+"="+escape(sValue)+((dtExpires)?"; expires="+dtExpires.toGMTString():"")+((sPath)?"; path="+sPath:"")+((sDomain)?"; domain="+sDomain:"")+((bSecure)?"; secure":"");}function cert_getReferrer(){var referrer=document.referrer;if(self.cert_getReferrer14){referrer=cert_getReferrer14();}else{/*@cc_on @if(@_jscript_version>=5)try{if(self!=top)referrer=top.document.referrer;}catch(e){};@end @*/}if(referrer){if(cert_customSearch){var re=new RegExp("(https?:\/\/[^/]*)\/?.*$");referrer=referrer.replace(re,"$1/buscInterno");}referrer=cert_appendExtraReferrerParms(referrer);}return referrer;}function cert_getProtocol(){if(window&&window.location&&window.location.protocol)return window.location.protocol;return null;}function cert_setOrigin(){var c=cert_getCookie(DEFAULT_ORIGIN_COOKIE_NAME);if(!c){var l=cert_getReferrer();if(l){var re=new RegExp("https?:\/\/([^\/]+)");var m=re.exec(l);if(m){var m2=re.exec(document.location);if(m2){if(m[1]!=m2[1]){c=m[1];}}}}if(!c){c="directo";}cert_setCookie(DEFAULT_ORIGIN_COOKIE_NAME,c);}}function cert_getFlashVersion(){var flashVersion=-1;if(navigator.plugins&&navigator.plugins.length){var objFlash=navigator.plugins["Shockwave Flash"];if(objFlash){if(objFlash.description){flashDesc=objFlash.description;flashVersion=flashDesc.charAt(flashDesc.indexOf(".")-1);}}if(navigator.plugins["Shockwave Flash 2.0"]){flashVersion=2;}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes["application/x-shockwave-flash"];if(x&&x.enabledPlugin){flashVersion=0;}}/*@cc_on for(var i=10;i>0;i--){try{var flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);flashVersion=i;break;}catch(e){}}@*/return flashVersion;}function cert_getURL(iSiteId,sPath,sAppend){var size,colors,referrer,url;size=colors=referrer="otro";var o=cert_qVal("url_origen");var proto=cert_getProtocol();if(proto!="https:")proto="http:";if(o!=null&&o!="")referrer=o;else{referrer=escape(cert_getReferrer());}if(window.screen.width)size=window.screen.width;if(window.screen.colorDepth)colors=window.screen.colorDepth;else if(window.screen.pixelDepth)colors=window.screen.pixelDepth;if(sPath!="url")sPath=cert_normalizePath(sPath);url=proto+"//"+_ts_PV.cs+"/cert/hit.dll?sitio_id="+iSiteId+"&path="+sPath+"&referer="+referrer+"&size="+size+"&colors="+colors;url+="&java="+navigator.javaEnabled()+"&flash="+cert_getFlashVersion();if(sAppend)url+=sAppend;return url;}function cert_addExtraReferrerParm(sName,sValue){if(!cert_ReferrerParms){cert_ReferrerParms=new Object();}cert_ReferrerParms[sName]=sValue;}function cert_appendExtraReferrerParms(sReferrer){if(cert_ReferrerParms&&sReferrer){var sAppend="";for(var n in cert_ReferrerParms){sAppend+=n+"="+cert_ReferrerParms[n]+"&";}if(sAppend){if(sReferrer.indexOf("?")!=-1){sReferrer+="&"+sAppend;}else{sReferrer+="?"+sAppend;}}}return sReferrer;}function cert_getURL_CustomSearch(iSiteId,sPath,sSearchString){cert_customSearch=true;cert_addExtraReferrerParm('q',sSearchString);return cert_getURL(iSiteId,sPath);}function cert_registerHit(iSiteId,sPath,sPivotName){var sAppend="&cert_cachebuster="+(1+Math.floor(Math.random()*10000));if(!sPivotName)sPivotName=DEFAULT_PIVOT_NAME;if(document.images)if(document.images[sPivotName])document.images[sPivotName].src=cert_getURL(iSiteId,sPath,sAppend);}var cert_IMGs=new Array();function cert_getAnchor(sUrl){var i=new Image();i.src=sUrl;cert_IMGs[cert_IMGs.length]=i;}function tagCertifica(iSiteId,sPath,sDesc){sAppend="&cert_cachebuster="+(1+Math.floor(Math.random()*10000));if(!sDesc){sDesc=document.title;}if(sDesc){sAppend+="&descr="+escape(sDesc.substr(0,50));}cert_getAnchor(cert_getURL(iSiteId,sPath,sAppend));}function tagCertifica_CustomSearch(iSiteId,sPath,sSearchString){cert_getAnchor(cert_getURL_CustomSearch(iSiteId,sPath,sSearchString));}function cert_registerPeriodicHit(iSiteId,sPath,sPivotName,iTime){if(!sPivotName)sPivotName=DEFAULT_PIVOT_NAME;if(!iTime)iTime=DEFAULT_PERIODIC_REDIRECT_TIME;cert_registerHit(iSiteId,sPath,sPivotName);setTimeout("cert_registerPeriodicHit("+iSiteId+",'"+sPath+"','"+sPivotName+"',"+iTime+")",iTime);}cert_setOrigin();}
