var now=new Date,t1=0,t2=0,t3=0,t4=0,t5=0,t6=0,t7=0,t8=0,t9=0,t10=0;t1=now.getTime();var regURL="http://tslt.terra.com.mx/TD.asp?",sentTD=false,sentPVW=typeof sentPVW=="undefined"?false:sentPVW;var jsver=1.0,sc="script",ln=" language='JavaScript",arrayJSVer=new Array("1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0");var scrres="",scrdepth="";function err(a,b,c){var img=new Image;img.src=regURL.replace("tslt","rt")+"bstat=ts01&type=ERR&typever=1&host="+location.hostname+"&url="+location.pathname+"&a="+escape(a)+"&b="+escape(b)+"&c="+escape(c)+"&estat="+Math.random().toString().substring(2,7);return true;}/*window.onerror=err;*/for(i=0;i<arrayJSVer.length;i++){document.write("<"+sc+ln+arrayJSVer[i]+"'>jsver="+arrayJSVer[i]+";</"+sc+">")}function toLC(a){return a.toLowerCase()}if(window.screen){scrres=screen.width+"*"+screen.height;scrdepth=(toLC(navigator.appName)=="microsoft internet explorer")?screen.colorDepth:screen.pixelDepth;}function encodeData(data){encodedData=escape(unescape(data));encodedData=encodedData.replace(/&/g,"%26");encodedData=encodedData.replace(/\+/g,"%2B");encodedData=encodedData.replace(/\//g,"%2F");encodedData=encodedData.replace(/=/g,"%3D");encodedData=encodedData.replace(/\?/g,"%3F");encodedData=encodedData.replace(/@/g,"%40");return encodedData;}var ref="";if(document.referrer){if(document.referrer!=""){ref="&ref="+encodeData(document.referrer);}}var idref="";if(location.search){if(location.search!=""){var query=toLC(location.search.substring(1));var args=query.split("&");for(var i=0;i<args.length;i++){var pair=args[i].split("=");if(pair[0]=="idref"){idref="&"+args[i];}}}}if(!sentPVW){sentPVW=true;var pv=new Image;pv.src=regURL+"bstat=ts01&type=PVW&typever=1&host="+location.hostname+"&url="+location.pathname+idref+ref+"&jsver="+jsver+"&scrres="+scrres+"&estat="+Math.random().toString().substring(2,7);}function cutString(a,b){var c=a.indexOf(b,0);if(c>0){return a.substring(0,c);}else{return a;}}function process(){date=new Date();var curDate=null;do{var curDate=new Date();}while(curDate-date<250);}function unld(){if(!sentTD){sentTD=true;var img=new Image;now=new Date;t10=now.getTime();if(0==t2){t2=-1;}else{t2=t2-t1;};if(0==t3){t3=-1;}else{t3=t3-t1;};if(0==t4){t4=-1;}else{t4=t4-t1;};if(0==t5){t5=-1;}else{t5=t5-t1;};if(0==t6){t6=-1;}else{t6=t6-t1;};if(0==t7){t7=-1;}else{t7=t7-t1;};if(0==t8){t8=-1;}else{t8=t8-t1;};if(0==t9){t9=-1;t10=-1}else{t10=t10-t9;t9=t9-t1;}img.src=regURL.replace("tslt","rt")+"bstat=ts01&type=TD&typever=3&host="+location.hostname+"&url="+location.pathname+"&t1="+t1+"&t2="+t2+"&t3="+t3+"&t4="+t4+"&t5="+t5+"&t6="+t6+"&t7="+t7+"&t8="+t8+"&t9="+t9+"&t10="+t10+"&estat="+Math.random().toString().substring(2,7);process();}}function regClick(e){var valid=false;if(typeof(e)!="undefined"){if((e.which&&e.which==1)||(e.button&&e.button==1)){valid=true;}}else{valid=true;}if(valid){var img=new Image;var a=document.all?window.event.srcElement:this;var idClick=(typeof idClickType!="undefined")?"&id="+idClickType:"";idClick=((idClick!="")&&(typeof idClickSubtype!="undefined"))?idClick+"_"+idClickSubtype:idClick;var i=1;while(a.tagName&&toLC(a.tagName)!="a"&&toLC(a.tagName)!="area"&&i<5){a=a.parentElement;i++;}var p=(a.protocol)?toLC(a.protocol):"",target="",znid="";if(a.getAttribute&&a.getAttribute("trr.id")){znid="&znid="+a.getAttribute("trr.id");target=a.href;}else{if(p&&p!="mailto:"&&p!="javascript:")target=cutString(a.href,"?");}if(target!=""){target="&target="+escape(unescape(target));img.src=regURL+"bstat=ts01&type=CLK&typever=1"+idClick+"&host="+location.hostname+"&url="+location.pathname+target+znid+"&estat="+Math.random().toString().substring(2,7);process();}}}function regSubmit(e){var idClick="",target="",znid="";var a=document.all?window.event.srcElement:this;a=typeof(a.action)!="undefined"?a:e;if(a.action){target="&target="+escape(unescape(a.action));}if(a.getAttribute&&a.getAttribute("trr.id")){znid="&znid="+a.getAttribute("trr.id");}var img=new Image;img.src=regURL+"bstat=ts01&type=CLK&typever=1"+idClick+"&host="+location.hostname+"&url="+location.pathname+target+znid+"&estat="+Math.random().toString().substring(2,7);process();}function doClick(destination,idClickType){if(destination!=""){var target="&target="+escape(unescape(destination));var idClick=idClickType!=""?"&id="+idClickType:"";var img=new Image;img.src=regURL+"bstat=ts01&type=CLK&typever=1"+idClick+"&host="+location.hostname+"&url="+location.pathname+target+"&estat="+Math.random().toString().substring(2,7);window.parent.top.location.href=destination;}}function 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 init(){var a=document.links;var c=0;if(typeof a!="undefined"){for(c=0;c<(a!="undefined"?a.length:0);c++){var evt=((document.all&&!document.getElementById))?"click":"mousedown";addEvent(a[c],evt,regClick);}}var b=document.forms;var d=0;if(typeof b!="undefined"){for(d=0;d<(b!="undefined"?b.length:0);d++){var evt="submit";addEvent(b[d],evt,regSubmit);}}}addEvent(window,"load",init);