function c(u){try{return c2(u.href);}catch(e){}return true;}
function c2(u){try{if(document.images){(new Image()).src="/images/verif/clear.gif?url="+escape(u);}}catch(e){}return true;}
function n(){nw('http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=montreal');}
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;
if(!this.z_p_name||this.z_p_name.length<=0){return;}
// set page on which do popups
//if(this.z_p_name.indexOf('web')>-1){this.is_z_putPopUp=true;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();
	}
}

if (window.Event){document.captureEvents(Event.MOUSEUP);}
if (document.layers){document.captureEvents(Event.MOUSEDOWN);}
function nocontextmenu() {
	try {
  event.cancelBubble = true;
  event.returnValue = false;  
  } catch (e) {
	}
  return false;
} 
function norightclick(e) {
	if (window.Event) {
	    if (((e.which == 2 || e.which == 3) && (e.type == 'mousedown'|| e.type == 'mouseup'))
	        || (e.which == 1 && e.type == 'mouseup')) {
	        return false;
	    } else {
	        try {
	            //alertObject(e.target);
	            var o = e.target;
	            if (o.tagName == 'A') {
	                var h = o.href;
	                if (h.indexOf('escortsmontreal.net') == -1) {
	                    c2(h);
	                }
	            } else {
	                if (o.tagName == 'IMG') {
	                    var po = o.parentNode;
	                    if (po.tagName == 'A') {
	                        c(po);
	                    }
	                }
	            }
	        } catch (e) {
	        }
	    }
	} else {
	    if (event.button == 2 || event.button == 3) {
	        event.cancelBubble = true;
	        event.returnValue = false;
	        return false;
	    } else {
	        try {
	            var o = event.srcElement;
	            if (o.tagName == 'A') {
	                var h = o.href;
	                if (h.indexOf('escortsmontreal.net') == -1) {
	                    c2(h);
	                }
	            } else {
	                if (o.tagName == 'IMG') {
	                    var po = o.parentElement;
	                    if (po.tagName == 'A') {
	                        c(po);
	                    }
	                }
	            }
	        } catch (e) {
	        }
	    }
	}
}
document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;




var l=this.location.href;
var id='';
var n=0;
var v='';
var k='escort-';
var ke='.htm';



function w(){document.write(v);}
function sn(){
	try {
	    var p = l.indexOf(k);
	    
	    if (p > -1) {
	        p += k.length;	        
	        var pe = l.indexOf(ke, p);	        
	        if (pe > -1) {
	            id = l.substring(p, pe);
	        }
	    }
	} catch (e) {
	    id = '';
	}
}
function gv(){
switch(id){
case '7':
case '18':
case '26':
case '34':
case '42':
case '50':{
	v="<a href=http://adultfriendfinder.com/go/g1119044-brk target='_blank'><img src='http://banners.adultfriendfinder.com/banners/ffadult/18109_468x90.jpg' width='468' height='90' border='0' /></a>";
	break;
	}
case '1':
case '12':
case '21':
case '29':
case '38':
case '46':
case '52':
case '57':
case '62':
case '66':
case '70':
case '74':{
	//Sweet	
	//v="<a href='http://www.sweetmontreal.com/' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/swmtl-banner468x60b.gif' width=468 height=60 border=0 /></a>";
	v="<a href='http://adultfriendfinder.com/go/g1119044-brk' target='_blank'><img src='http://graphics.pop6.com/banners/ffadult/17130_745x195.jpg' width='745' height='195' border='0'></a>";
	break;
	
	}	
case '2':
case '13':
case '22':
case '30':
case '39':
case '47':
case '53':
case '58':
case '63':
case '67':
case '71':
case '75':{
	//hot	
//	v="<a href='http://www.hotmtl.com/' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/hotmtl468x60.gif' width=468 height=60 border=0 /></a>";
v="<a href=http://adultfriendfinder.com/go/page/reg_form_video_03/?pid=g1119044-brk target='_blank'><img src='http://pop6.adultfriendfinder.com/images/banners/30972/cm_lindsay468x60.jpg' width='468' height='60' border='0'></a>";
break;
	}
case '3':
case '14':{
	//royal	
	v="<a href='http://www.escorts-royal.com/' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/royal-banner486x60.gif' width=468 height=60 border=0 /></a>";
	break;
	}	
case '4':
case '15':
case '23':
case '31':
case '40':
case '48':
case '54':
case '59':
case '64':
case '68':
case '72':
case '76':{
	//incognito	
	v="<a href='http://www.incognitoescorts.com/' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/incognito468x60b.jpg' width=468 height=60 border=0 /></a>";
	break;
	}	
case '5':
case '10':
case '16':
case '24':
case '27':
case '32':
case '41':
case '49':
case '55':
case '60':{
	//zodiac
	v="<a href='http://www.zodiac-escort.com/' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/zodiac468x60b.jpg' width=468 height=60 border=0 /></a>";
	break;
	}	
case '6':
case '17':
case '25':
case '33':{
	//renaissance	
	//v="<a href='http://www.renaissanceladies.com/' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/renaissance-banner468x60.jpg' width=468 height=60 border=0 /></a>";
	v="<a href='http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=montreal' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/cebanner1.gif' width=468 height=60 border=0 /></a>";
	break;
	}	

case 'undefined':
case '':
default:{
	try{
	if(id%2==0){
		v="<a href='http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=montreal' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/cebanner1.gif' width=468 height=60 border=0 /></a>";
	}else{
		v="<a href=http://adultfriendfinder.com/go/page/reg_form_video_03/?pid=g1119044-brk target='_blank'><img src='http://pop6.adultfriendfinder.com/images/banners/30972/cm_lindsay468x60_01A2.jpg' width='468' height='60' border='0'></a>";
	}
	}catch(e){
	v="<a href='http://www.canadianescorts.com/cgi-bin/top-escorts/rankem.cgi?id=montreal' target='_blank'><img src='http://www.escortsmontreal.net/images/banners/cebanner1.gif' width=468 height=60 border=0 /></a>";
	}
}	
}
}
sn();
gv();
w();
init();
execThis();
