// JavaScript Document

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Patrick Lewis (gtrwiz@aol.com) -->
<!-- Web Site:  http://www.patricklewis.net -->
<!-- Begin
//   ##############  SIMPLE  BROWSER SNIFFER
if (document.layers) {navigator.family = "nn4"}
if (document.all) {navigator.family = "ie4"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {navigator.family = "gecko"}

//  #########  popup text 
//descarray = new Array(
//"This site has some of the greatest scripts around!",
//"These popups can have varying width. It is dependant upon the text message.",
//"You can have <b>two</b> lines <br>and HTML content.",
//"You can also have images in here like this:<br><img src=greenbar.gif>",
//"You can put in a really long <br>description if it is nessary to <br>explain something in detail, <br>like a warning about content <br>or privacy.",
//"</center>Lastly, you can have links like these:<br><a href='http://javascript.internet.com/'>JavaScript Source</a><br><a href='http://javascript.internet.com/'>JavaScript Source</a><br><a href='http://javascript.internet.com/'>JavaScript Source</a><br>With a change in the onmouseout event handler."
//);

overdiv="0";
//  #########  CREATES POP UP BOXES 
function popLayer(a) {
	if (!descarray[a]) {
		descarray[a]="<font color=red>This popup (#"+a+") isn't setup correctly - needs description</font>";
	}
	if (navigator.family == "gecko") {
		pad="0"; bord="1 bordercolor=black";
	} else {
		pad="1"; bord="0";
	}
	desc = "<table cellspacing=0 cellpadding="+pad+" border="+bord+"  bgcolor=000000><tr><td>\n"
		+"<table cellspacing=0 cellpadding=3 border=0 width=100%><tr><td bgcolor=ffffdd><center><font size=-1>\n"
		+descarray[a]
		+"\n</td></tr></table>\n"
		+"</td></tr></table>";
	if (navigator.family =="nn4") {
		document.infobulle.document.write(desc);
		document.infobulle.document.close();
		document.infobulle.left=x+15;
		document.infobulle.top=y-5;
		}
	else if (navigator.family =="ie4") {
		infobulle.innerHTML=desc;
		infobulle.style.pixelLeft=x+15;
		infobulle.style.pixelTop=y-5;
		}
	else if (navigator.family =="gecko") {
		document.getElementById("infobulle").innerHTML=desc;
		document.getElementById("infobulle").style.left=x+15+"px";
		document.getElementById("infobulle").style.top=y-5+"px";
	}
}

function hideLayer() {
	if (overdiv == "0") {
		if (navigator.family =="nn4") {
			eval(document.infobulle.top="-500");
		} else if (navigator.family =="ie4") {
			infobulle.innerHTML="";
		} else if (navigator.family =="gecko") {
			document.getElementById("infobulle").style.top="-500px";
		}
	}
}

//  ########  TRACKS MOUSE POSITION FOR POPUP PLACEMENT
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function handlerMM(e) {
	x = (isNav) ? e.pageX : event.clientX + document.documentElement.scrollLeft;
	y = (isNav) ? e.pageY : event.clientY + document.documentElement.scrollTop;
}
if (isNav) {
	document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;

