DEFAULT_PIVOT_NAME="cert_Pivot";DEFAULT_REDIRECT_TIME=3000;DEFAULT_PERIODIC_REDIRECT_TIME=60000;DEFAULT_ORIGIN_COOKIE_NAME="cert_Origin";var cert_CustomCounters=null;var cert_CustomAttributes=null;function cert_qVal(f){var e=String(document.location).indexOf("?");if(e!=-1){var b=String(document.location).substring(e+1);var c=b.split("&");for(var a=0;a<c.length;a++){var d=c[a].split("=");if(d[0]==f){return d[1]}}}return null}function cert_getCookie(e){var b=document.cookie;var d=e+"=";var c=b.indexOf("; "+d);if(c==-1){c=b.indexOf(d);if(c!=0){return null}}else{c+=2}var a=document.cookie.indexOf(";",c);if(a==-1){a=b.length}return unescape(b.substring(c+d.length,a))}function cert_setCookie(e,f,d,b,a,c){document.cookie=e+"="+escape(f)+((d)?"; expires="+d.toGMTString():"")+((b)?"; path="+b:"")+((a)?"; domain="+a:"")+((c)?"; secure":"")}function cert_getReferrer(){var referrer=document.referrer;if(self.cert_getReferrer14){return cert_getReferrer14();
/*@cc_on
  @if(@_jscript_version >= 5 )
   try { 
      if ( self != top ) referrer = top.document.referrer;
   } catch(e) {};
  @end
  @*/
}return referrer}function cert_getProtocol(){if(window&&window.location&&window.location.protocol){return window.location.protocol}return null}function cert_setOrigin(){var f=cert_getCookie(DEFAULT_ORIGIN_COOKIE_NAME);if(!f){var b=cert_getReferrer();if(b){var e=new RegExp("https?://([^/]+)");var a=e.exec(b);if(a){var d=e.exec(document.location);if(d){if(a[1]!=d[1]){f=a[1]}}}}if(!f){f="directo"}cert_setCookie(DEFAULT_ORIGIN_COOKIE_NAME,f)}}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(d,e,g){var i,a,h,b;i=a=h="otro";var c=cert_qVal("url_origen");var f=cert_getProtocol();if(f!="https:"){f="http:"}if(c!=null&&c!=""){h=c}else{h=escape(cert_getReferrer())}if(window.screen.width){i=window.screen.width}if(window.screen.colorDepth){a=window.screen.colorDepth}else{if(window.screen.pixelDepth){a=window.screen.pixelDepth}}b=f+"//hits.e.cl/cert/hit.dll?sitio_id="+d+"&path="+e+"&referer="+h+"&size="+i+"&colors="+a;b+="&java="+navigator.javaEnabled()+"&flash="+cert_getFlashVersion();if(g){b+=g}return b}function cert_addCustomAttribute(b,a){if(!cert_CustomAttributes){cert_CustomAttributes=new Object()}cert_CustomAttributes[b]=a}function cert_addCustomCounter(b,a){if(a&&a>0){if(!cert_CustomCounters){cert_CustomCounters=new Object()}if(cert_CustomCounters[b]){cert_CustomCounters[b]+=a}else{cert_CustomCounters[b]=a}}}function cert_getCustomTags(){var b="";var d="",c="";if(cert_CustomAttributes){d="ct_atrib=";for(var a in cert_CustomAttributes){d+=a+":"+cert_CustomAttributes[a]+";"}}if(cert_CustomCounters){c="ct_acum=";for(var a in cert_CustomCounters){c+=a+":"+cert_CustomCounters[a]+";"}}if(d||c){if(d){b+="&"+d}if(c){b+="&"+c}}return b}function cert_getURL_eCommerce(d,a,e){var c=null;if((c=cert_getCookie(DEFAULT_ORIGIN_COOKIE_NAME))){cert_addCustomAttribute("origin",c)}if(e){cert_addCustomCounter("money",e)}var b=cert_getCustomTags();return cert_getURL(d,a,b)}function cert_registerHit(c,a,d){var b="&cert_cachebuster="+(1+Math.floor(Math.random()*10000));if(!d){d=DEFAULT_PIVOT_NAME}if(document.images){if(document.images[d]){document.images[d].src=cert_getURL(c,a,b)}}}function cert_registerHitAndRedirect(d,b,a,c){cert_registerHit(b,a,c);setTimeout("location.href = '"+d+"'",DEFAULT_REDIRECT_TIME)}function cert_registerHitAndOpenWindow(e,c,a,d,g,b,f){cert_registerHit(c,a,d);if(!g){g="Downloads"}if(!b){b="toolbar=no,location=no,directories=no,status=yes,menubar=no, scrollbars=no,resizable=no,width=425,height=510,screenX=20,screenY=20"}window.open(e,g,b,f);return false}function cert_registerHitAndReplaceOtherFrame(d,e,b,a,c){cert_registerHitAndOpenWindow(d,b,a,c,e,0,true)}function cert_registerHitAndReplaceThisFrame(d,b,a,c){cert_registerHitAndRedirect(d,b,a,c)}function cert_registerHitAndDownloadFile(d,b,a,c){cert_registerHitAndRedirect(d,b,a,c)}function cert_getAnchor(a){return'<img src="'+a+'" width="1" height="1" border="0" alt="Certifica.com">'}function tagCertifica(b,a){document.writeln(cert_getAnchor(cert_getURL(b,a)))}function tagCertifica_eCommerce(c,b,a){document.writeln(cert_getAnchor(cert_getURL_eCommerce(c,b,a)))}function cert_registerPeriodicHit(b,a,c,d){if(!c){c=DEFAULT_PIVOT_NAME}if(!d){d=DEFAULT_PERIODIC_REDIRECT_TIME}cert_registerHit(b,a,c);setTimeout("cert_registerPeriodicHit( "+b+', "'+a+'", "'+c+'", '+d+")",d)}cert_setOrigin();