<!-- Copyright 2001 Uptime Networks | http://www.jwcomputersystems.net/ -->

var isNet4, isIE4, isIE5, styleSwitch, layerRef, lastmenu;
var x=0;
var y=0;

	isNet4 = false;
	isIE4 = false;
	isIE5 = false;
	lastmenu = "";
	
	  if (navigator.appName == "Netscape")
	  {
	    isNet4 = true;
		layerRef = "document.layers";
		styleSwitch = "";
		document.onmousemove = mouseMove;
	    document.captureEvents(Event.MOUSEMOVE);
	  }
	  if (navigator.appName == "Microsoft Internet Explorer")
	  {
	    if(navigator.appVersion.indexOf("IE 5") != -1)
			isIE5 = true;
		else
			isIE4 = true;
		layerRef = "document.all";
		styleSwitch = ".style";
		document.onmousemove = mouseMove;
	  }
	  function showLayer(lname)
	  { 
	    if (lastmenu != "") resetLayer();  
	    eval(layerRef+'[lname]'+styleSwitch+'.visibility="visible"');	
		lastmenu = lname;
	  }
	  function hideLayer(lname)
	  {
	  eval(layerRef+'[lname]'+styleSwitch+'.visibility="hidden"');
	  }
	  function resetLayer()
	  {
	   if (lastmenu != "") eval(layerRef+'[lastmenu]'+styleSwitch+'.visibility="hidden"');
	  }	  
	  function mouseMove(e)
	  {
		if(isIE4){
			x=event.x;
			y=event.y;
			}
		if(isIE5){
			x=event.x + document.body.scrollLeft;
			y=event.y + document.body.scrollTop;		
			}
		if(isNet4){
			x=e.pageX;
			y=e.pageY;
			}

		if (lastmenu == 'whovr'		&& (x > 350 || x < 225 || y < 100 || y > 225)) hideLayer('whovr');
		if (lastmenu == 'whatvdo'	&& (x > 475 || x < 350 || y < 100 || y > 260)) hideLayer('whatvdo');
		if (lastmenu == 'resources'	&& (x > 600 || x < 475 || y < 100 || y > 205)) hideLayer('resources');

	  }

// Opens new window with linked pages/form
function NewWindow(name)
{
OpenWin = this.open(name, "CtrlWindow",
"toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
}


// Protection from right-click
function right(e)
{
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2)){
alert("Copyright 2001 Uptime Networks\nPlease contact us if you have any questions");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Copyright 2001 Uptime Networks\nPlease contact us if you have any questions");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
