<!--
var sul = 2;
var oldnum = getRandomNum(1, 99999); 
var secondoldnum = getRandomNum(1, 99999); 
var yournum = oldnum + "-" + secondoldnum
var now = new Date();
var pump = "";
var huck = "";
var gnamer = "";
fixDate(now);
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);var visitID = getCookie("myID");
if (!visitID) { visitID = yournum; } else { 
yournum = visitID; }
setCookie("myID", yournum, now);
var counter = 0;
hh = new Image;
var newnum = getRandomNum(1, 9999);  																									 					
var bg = (theURL + "javascript.cgi?javascript&" + yournum + "&" + newnum + "&" + escape(document.location) + "&" + escape(document.title) + "&" + escape(document.referrer) + "&" + escape(navigator.appName) + "&" + escape(navigator.appVersion) + "&" + wwcDate());
var dac = (theURL + "javascript.cgi?jscript&" + yournum + "&" + newnum + "&" + escape(document.location) + "&" + escape(document.title) + "&" + escape(document.referrer) + "&" + escape(navigator.appName) + "&" + escape(navigator.appVersion) + "&" + wwcDate());

if (navigator.javaEnabled()) {
if (navigator.appName == "Microsoft Internet Explorer") {
gnamer = true;
document.write ("<applet codebase=\"" + nonCGI + "js/\" code=wwcreations.class name=wwcreations width=1 height=1  VIEWASTEXT>");
document.write ("<param name=credit value=\"©2001 http://www.worldwidecreations.com\">");
document.write ("<PARAM NAME=url_to_cgi-bin value=\"" + bg + "\">");
document.write ("</applet>");
} else {
gnamer = false;
document.write ("<img name=wwci src=\"" + dac + "\">");
} 
} else { 
gnamer = false;
document.write ("<img name=wwci src=\"" + dac + "\">");
}

ID=window.setTimeout("Update();",7000);

function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
}

function getCookie(name) {
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else
begin += 2;
var end = document.cookie.indexOf(";", begin);
if (end == -1)
end = dc.length;
return unescape(dc.substring(begin + prefix.length, end));
}

function fixDate(date) {
var base = new Date(0);
var skew = base.getTime();
if (skew > 0)
date.setTime(date.getTime() - skew);
}

function wwcDate()
{
	var wwc = new Date();
return wwc.getTime();
}

function doChat() {
if (sul == 2) {
huck = yournum.split("-");
window.open(theURL + "chat.cgi?none&" + huck[0] + "x" + huck[1]  + "&", 'Direct_Chat', 'width=520,height=263,menubar=no,scrollbars=0,resizable=0');
sul = 4;
}
}

function getRandomNum(lbound, ubound) {
return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}

function Update() {
  clearTimeout(ID);
if (gnamer == true) {
pump = document.applets["wwcreations"].bigsocks();
if ((pump == "NOWCHAT") && (sul == 2)) {
window.open(theURL + "chat.cgi?none&" + yournum + "&", 'Direct_Chat', 'width=520,height=263,menubar=no,scrollbars=0,resizable=0');
sul = 4;
}
} else {
newnum = getRandomNum(1, 9999);  
dac = (theURL + "javascript.cgi?jscript&" + yournum + "&" + newnum + "&" + escape(document.location) + "&" + escape(document.title) + "&" + escape(document.referrer) + "&" + escape(navigator.appName) + "&" + escape(navigator.appVersion) + "&" + wwcDate());
document.images.wwci.src=dac;
}
   ID=window.setTimeout("Update();",5000);
}

//-->
