function n(){nw('http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=alex1');}
function nw(u){var w=window.open(u,'nw','',true);w.focus();c2(u+'+');}
function init(){
try{	
if(!this.z_ref){this.z_ref=document.referrer;}
if(!this.z_host){this.z_host=getHostName();}
if(!this.z_p_name){this.z_p_name=getPageName();}
initPutPopUp();
}catch(e){}
}
function initPutPopUp(){
this.is_z_putPopUp=true;//false;
if(!this.z_p_name||this.z_p_name.length<=0){return;}
}

function execThis(){
try{
if(this.is_z_putPopUp){doSetUnUnload();}
}catch(e){}
}
function doSetUnUnload(){window.onunload=function anonymous(){dc();}}
function doPromote(){n();}
function getHostName(){
try{
var lhn=window.location.href;
	try{
	lhn=lhn.substring(7,lhn.indexOf("/",7));
	}catch(e){
		if(lhn.length()>15){
			lhn=lhn.substring(0,15);
			}
	}
	return lhn;
}catch(e){}
return '';
}
function getPageName(){
try{
	var lhn=window.location.href;
	try{
	lhn=lhn.toLowerCase();
	lhn=lhn.substring(lhn.lastIndexOf("/")+1);
	}catch(e){}
	return lhn;
}catch(e){}
return '';
}

function dc(){
	if(document.activeElement){
		if('A'==document.activeElement.tagName){
			var nl=document.activeElement.href;
			if(nl.indexOf(getHostName())==-1){
				doPromote();
			}
		}else{
			doPromote();
		}
	}else{
		doPromote();
	}
}
init();
execThis();

