DEFAULT_PIVOT_NAME="cert_Pivot";DEFAULT_REDIRECT_TIME=3e3;DEFAULT_PERIODIC_REDIRECT_TIME=6e4;DEFAULT_ORIGIN_COOKIE_NAME="cert_Origin";var cert_CustomCounters=null,cert_CustomAttributes=null;function cert_normalizePath(b,h){var g=cert_getProtocol(),f="home/default",j=/\/\/+/g,i=/[^A-Z0-9_.\/]/gi,e=["index.htm","index.html","index.asp","index.php","index.cfm","index.shtml","index.jsp","default.asp","default.html","default.htm","default.jsp","default.php"];b=unescape(b);if(b&&b.length>0&&(g=="http:"||g=="https:")){b=b.replace(i,"");if(b.charAt(b.length-1)=="/")b+=e[0];b=b.replace(j,"/");for(var d=b.split("/"),a=[],c=0;c<d.length;c++)d[c]&&d[c]!=""&&a.push(d[c]);if(a.length==0){a.push("home");a.push("default")}a.length==1&&a.unshift("home");for(var c=0;c<e.length;c++)if(a[a.length-1]==e[c]){a[a.length-1]="default";break}if(h)f=h+"/"+a[a.length-1];else f=a.join("/")}return f}function cert_qVal(e){var d=String(document.location).indexOf("?");if(d!=-1)for(var f=String(document.location).substring(d+1),c=f.split("&"),a=0;a<c.length;a++){var b=c[a].split("=");if(b[0]==e)return b[1]}return null}function cert_getCookie(e){var b=document.cookie,c=e+"=",a=b.indexOf("; "+c);if(a==-1){a=b.indexOf(c);if(a!=0)return null}else a+=2;var d=document.cookie.indexOf(";",a);if(d==-1)d=b.length;return unescape(b.substring(a+c.length,d))}function cert_setCookie(f,e,a,c,b,d){document.cookie=f+"="+escape(e)+(a?"; expires="+a.toGMTString():"")+(c?"; path="+c:"")+(b?"; domain="+b:"")+(d?"; secure":"")}function cert_getReferrer(){var a=document.referrer;if(self.cert_getReferrer14)return cert_getReferrer14();/*@cc_on@if(@_jscript_version>=5)try{if(self!=top)a=top.document.referrer}catch(b){}@end@*/return a}function cert_getProtocol(){return window&&window.location&&window.location.protocol?window.location.protocol:null}function cert_setOrigin(){var a=cert_getCookie(DEFAULT_ORIGIN_COOKIE_NAME);if(!a){var e=cert_getReferrer();if(e){var d=new RegExp("https?://([^/]+)"),b=d.exec(e);if(b){var c=d.exec(document.location);if(c)if(b[1]!=c[1])a=b[1]}}if(!a)a="directo";cert_setCookie(DEFAULT_ORIGIN_COOKIE_NAME,a)}}function cert_getFlashVersion(){var a=-1;if(navigator.plugins&&navigator.plugins.length){var c=navigator.plugins["Shockwave Flash"];if(c)if(c.description){flashDesc=c.description;a=flashDesc.charAt(flashDesc.indexOf(".")-1)}if(navigator.plugins["Shockwave Flash 2.0"])a=2}else if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes["application/x-shockwave-flash"];if(x&&x.enabledPlugin)a=0}/*@ for(var b=10;b>0;b--)try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);a=b;break}catch(e){}@*/return a}function cert_getURL(h,j,g){var e,b,a,c;e=b=a="otro";var f=cert_qVal("url_origen"),d=cert_getProtocol(),i="&cert_cachebuster="+(1+Math.floor(Math.random()*1e4));if(d!="https:")d="http:";if(f!=null&&f!="")a=f;else a=escape(cert_getReferrer());if(window.screen.width)e=window.screen.width;if(window.screen.colorDepth)b=window.screen.colorDepth;else if(window.screen.pixelDepth)b=window.screen.pixelDepth;c=d+"//hits.e.cl/cert/hit.dll?sitio_id="+h+"&path="+j+i+"&referer="+a+"&size="+e+"&colors="+b;c+="&java="+navigator.javaEnabled()+"&flash="+cert_getFlashVersion();if(g)c+=g;return c}function cert_addCustomAttribute(b,a){if(!cert_CustomAttributes)cert_CustomAttributes={};cert_CustomAttributes[b]=a}function cert_addCustomCounter(b,a){if(a&&a>0){if(!cert_CustomCounters)cert_CustomCounters={};if(cert_CustomCounters[b])cert_CustomCounters[b]+=a;else cert_CustomCounters[b]=a}}function cert_getCustomTags(){var d="",a="",b="";if(cert_CustomAttributes){a="ct_atrib=";for(var c in cert_CustomAttributes)a+=c+":"+cert_CustomAttributes[c]+";"}if(cert_CustomCounters){b="ct_acum=";for(var c in cert_CustomCounters)b+=c+":"+cert_CustomCounters[c]+";"}if(a||b){if(a)d+="&"+a;if(b)d+="&"+b}return d}function cert_getURL_eCommerce(c,e,a){var b=null;(b=cert_getCookie(DEFAULT_ORIGIN_COOKIE_NAME))&&cert_addCustomAttribute("origin",b);a&&cert_addCustomCounter("money",a);var d=cert_getCustomTags();return cert_getURL(c,e,d)}function cert_registerHit(b,d,a){var c="&cert_cachebuster="+(1+Math.floor(Math.random()*1e4));if(!a)a=DEFAULT_PIVOT_NAME;if(document.images)if(document.images[a])document.images[a].src=cert_getURL(b,d,c)}function cert_registerHitAndRedirect(d,b,c,a){cert_registerHit(b,c,a);setTimeout("location.href = '"+d+"'",DEFAULT_REDIRECT_TIME)}function cert_registerHitAndOpenWindow(g,e,f,c,b,a,d){cert_registerHit(e,f,c);if(!b)b="Downloads";if(!a)a="toolbar=no,location=no,directories=no,status=yes,menubar=no, scrollbars=no,resizable=no,width=425,height=510,screenX=20,screenY=20";window.open(g,b,a,d);return false}function cert_registerHitAndReplaceOtherFrame(e,c,b,d,a){cert_registerHitAndOpenWindow(e,b,d,a,c,0,true)}function cert_registerHitAndReplaceThisFrame(d,b,c,a){cert_registerHitAndRedirect(d,b,c,a)}function cert_registerHitAndDownloadFile(d,b,c,a){cert_registerHitAndRedirect(d,b,c,a)}function cert_getAnchor(a){return'<img src="'+a+'" width="1" height="1" border="0" alt="Certifica.com">'}function tagCertifica(c,a,b){sPrefix=null;sAppend=null;if(a.toLowerCase()=="url")a=location.pathname;else{sPrefix=a;a=location.pathname}if(!b)b=document.title;if(b)sAppend="&descr="+escape(b.substr(0,50));a=cert_normalizePath(a,sPrefix);sURL=cert_getURL(c,a,sAppend);document.writeln('<img src="'+sURL+'" width="1" height="1" border="0" alt="Certifica.com">')}function tagCertifica_eCommerce(b,c,a){document.writeln(cert_getAnchor(cert_getURL_eCommerce(b,c,a)))}function cert_registerPeriodicHit(c,d,a,b){if(!a)a=DEFAULT_PIVOT_NAME;if(!b)b=DEFAULT_PERIODIC_REDIRECT_TIME;cert_registerHit(c,d,a);setTimeout("cert_registerPeriodicHit( "+c+', "'+d+'", "'+a+'", '+b+")",b)}cert_setOrigin();
