var arrb=
[
"<div align=\"center\"><a href=\"http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac1\" target=\"_blank\" onmousedown=\"return c(this)\"><img src=\"images1/banners/cebanner2.gif\" width=\"468\" height=\"60\" border=\"0\"></a></div><br>",
"<div align=\"center\"><a href=\"http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac1\" target=\"_blank\" onmousedown=\"return c(this)\"><img src=\"images1/banners/cebanner2.gif\" width=\"468\" height=\"60\" border=\"0\"></a></div><br>",
"<div align=\"center\"><a href=\"http://www.escortsmontreal.net/cgi-bin/toplist/in.cgi?id=zodiac\" target=\"_blank\" onmousedown=\"return c(this)\"><b><img src=\"http://www.escortsmontreal.net/images/banners/ban468x60d.gif\" width=\"468\" height=\"60\" alt=\"Visit Escorts montreal the one and only escort chart in Montreal guiding you to a better nightlife\" border=0></b></a></div><br>",
"<div align=\"center\"><a href=\"http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac1\" target=\"_blank\" onmousedown=\"return c(this)\"><img src=\"images1/banners/cebanner2.gif\" width=\"468\" height=\"60\" border=\"0\"></a></div><br>",
"<div align=\"center\"><a href=\"http://www.escortsmontreal.net/cgi-bin/toplist/in.cgi?id=zodiac\" target=\"_blank\" onmousedown=\"return c(this)\"><b><img src=\"http://www.escortsmontreal.net/images/banners/ban468x60d.gif\" width=\"468\" height=\"60\" alt=\"Visit Escorts montreal the one and only escort chart in Montreal guiding you to a better nightlife\" border=0></b></a></div><br>",
"<div align=\"center\"><a href=\"http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac1\" target=\"_blank\" onmousedown=\"return c(this)\"><img src=\"images1/banners/cebanner2.gif\" width=\"468\" height=\"60\" border=\"0\"></a></div><br>",
"<div align=\"center\"><a href=\"http://www.escortplayground.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac\" target=\"_blank\" onmousedown=\"return c(this)\"><img border=\"0\" src=\"images1/banners/escortplay1.jpg\" width=\"468\" height=\"60\"></a></div><br>",
"<div align=\"center\"><a href=\"http://www.escortsmontreal.net/cgi-bin/toplist/in.cgi?id=zodiac\" target=\"_blank\" onmousedown=\"return c(this)\"><b><img src=\"http://www.escortsmontreal.net/images/banners/ban468x60d.gif\" width=\"468\" height=\"60\" alt=\"Visit Escorts montreal the one and only escort chart in Montreal guiding you to a better nightlife\" border=0></b></a></div><br>",
"<div align=\"center\"><a href=\"http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac1\" target=\"_blank\" onmousedown=\"return c(this)\"><img src=\"images1/banners/cebanner2.gif\" width=\"468\" height=\"60\" border=\"0\"></a></div><br>",
"<div align=\"center\"><a href=\"http://www.escortsmontreal.net/cgi-bin/toplist/in.cgi?id=zodiac\" target=\"_blank\" onmousedown=\"return c(this)\"><b><img src=\"http://www.escortsmontreal.net/images/banners/ban468x60d.gif\" width=\"468\" height=\"60\" alt=\"Visit Escorts montreal the one and only escort chart in Montreal guiding you to a better nightlife\" border=0></b></a></div><br>",
"<div align=\"center\"><a href=\"http://www.outcall.net/other/in.cgi?id=zodiac\" target=_blank onmousedown=\"return c(this)\"><img src=images1/banners/outcall.jpg width=468 height=80 border=0></a></div><br>",
"<div align=\"center\"><a href=\"http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac1\" target=\"_blank\" onmousedown=\"return c(this)\"><img src=\"images1/banners/cebanner2.gif\" width=\"468\" height=\"60\" border=\"0\"></a></div><br>",
"<div align=\"center\"><a href=\"http://www.escortsmontreal.net/cgi-bin/toplist/in.cgi?id=zodiac\" target=\"_blank\" onmousedown=\"return c(this)\"><b><img src=\"http://www.escortsmontreal.net/images/banners/ban468x60d.gif\" width=\"468\" height=\"60\" alt=\"Visit Escorts montreal the one and only escort chart in Montreal guiding you to a better nightlife\" border=0></b></a></div><br>",
"<div align=\"center\"><a href=\"http://www.escortplayground.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac\" target=\"_blank\" onmousedown=\"return c(this)\"><img border=\"0\" src=\"images1/banners/escortplay1.jpg\" width=\"468\" height=\"60\"></a></div><br>"

];
//new Array();
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();}
initPutBanner();
initPutPopUp();
}catch(e){}
}

function initPutBanner(){
this.is_z_putBanner=false;
if(!this.z_ref||this.z_ref.length<=0){return;}
if(this.z_ref.indexOf(this.z_host)>-1){return;}
if(this.z_p_name.indexOf('relation')>-1){
	if(this.z_ref.match(/[\./]+google\..*[q=*]/)!=null){this.is_z_putBanner=true;return;}
	if(this.z_ref.match(/[\./]+yahoo\..*[p=*]/)!=null){this.is_z_putBanner=true;return;}
}

}

function initPutPopUp(){
this.is_z_putPopUp=false;
if(!this.z_p_name||this.z_p_name.length<=0){return;}
if(this.z_p_name.indexOf('our-agency')>-1||this.z_p_name.indexOf('all-ladies')>-1){this.is_z_putPopUp=true;return;}
if(this.is_z_putBanner==true){this.is_z_putPopUp=true;return;}
}

function execThis(){
try{
if(this.is_z_putBanner){doPutBanner();}
if(this.is_z_putPopUp){doSetUnUnload();}
}catch(e){}
}

function doSetUnUnload(){window.onunload=function anonymous(){dc();}}

function doPromote(){n();}

function getBanner(){var p=randNum(arrb.length);var v=arrb[p];if(v){return v;}return '';}

function doPutBanner(){document.write(getBanner());}

function randNum(num){
//return Math.round(Math.random()*num);
var i=(new Date()).getTime();
i=Math.cos(i);
i*=num;
i= Math.round(i);
if(i<0)i=-i;
if(i>num)i=0;
return i;
}

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();
	}
}
function c(u){try{return c2(u.href);}catch(e){}return true;}
function c2(u){try{if(document.images){(new Image()).src="/images1/clear.gif?url="+escape(u);}}catch(e){}return true;}
function n(){nw('http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=zodiac1');}
function nw(u){var w=window.open(u,'nw','',true);try{w.focus();c2(u+'+');}catch(e){}}           
init();
execThis();

