
//*** Navigation Javascript ***

var NN3 = false;
bversion = parseInt(navigator.appVersion);
if ((navigator.appName == "Netscape") && (bversion >= 3)) Okay="Yes";
        else if ((navigator.appName == "Microsoft Internet Explorer") && (bversion >= 4))  Okay="Yes";
                   else Okay="No";

if (Okay == "Yes"){
image1= new Image();image1.src = "/images/ngallery_w.gif";
image1on = new Image();image1on.src = "/images/ngallery.gif";
image2= new Image();image2.src = "/images/nvideo_w.gif";
image2on = new Image();image2on.src = "/images/nvideo.gif";
image3= new Image();image3.src = "/images/nsites_w.gif";
image3on = new Image();image3on.src = "/images/nsites.gif";
image4= new Image();image4.src = "/images/nescorts_w.gif";
image4on = new Image();image4on.src = "/images/nescorts.gif";
image5= new Image();image5.src = "/images/npersonals.gif";
image5on = new Image();image5on.src = "/images/npersonals_w.gif";
image6= new Image();image6.src = "/images/nlinks.gif";
image6on = new Image();image6on.src = "/images/nlinks_w.gif";
image7= new Image();image7.src = "/images/nlists.gif";
image7on = new Image();image7on.src = "/images/nlists_w.gif";
image8= new Image();image8.src = "/images/nmembers.gif";
image8on = new Image();image8on.src = "/images/nmembers_w.gif";
}

function on3(name)   {	if (Okay == "Yes")document[name].src = eval(name + "on.src");}
function off3(name)  {	if (Okay == "Yes")document[name].src = eval(name + ".src");}

NN3 = true;

function on(name)  {if (Okay == "Yes")if (NN3) on3(name);}
function off(name)  {if (Okay == "Yes")if (NN3) off3(name);}

var expDays = 1; // number of days the cookie should last

//var page = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=909985&PA=262060&HTML=http://www.joeysilvera.com/shemale01.html";
var page = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=909985&PA=262060&HTML=http://www.shemales-from-hell.com";
var windowprops = "width=400,height=180,toolbar=1,menubar=0,scrollbars=1,status=1,resizable=1,location=1,screenx=600,screeny=500";

//*****************************
function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
//*****************************

var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('countindex')
if(count == null) {
SetCookie('countindex','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('countindex')
SetCookie('countindex',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('countindex');
if (count == null) {
count=1;
SetCookie('countindex', count, exp);

window.open(page, "", windowprops);

}
else {
count++;
SetCookie('countindex', count, exp);
   }
}
