// this function traps the co ordinates of the top nav rows
function trap()
{
ne = (document.layers)? true:false;
ie = (document.all)? true:false;
nn = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"))? true:false;
if (ie)
{
document.all.toprowtext.onmousemove=displaytop;
//	document.all.bottrowtext.onmousemove=displaybott;
}
else if(ne) 
{
document.toprowtext.captureEvents(Event.MOUSEMOVE);
document.toprowtext.onmousemove=displaytop;
//	document.bottrowtext.captureEvents(Event.MOUSEMOVE);
//	document.bottrowtext.onmousemove=displaybott;
}
else if(nn) 
{
document.getElementById("toprowtext").addEventListener("mousemove",displaytop,true)
//	document.getElementById("bottrowtext").addEventListener("mousemove",displaybott,true)
}
}
// this function controls the movement of the glow of the top nav row
function displaytop(e)
{
var xpos
var ypos
ne = (document.layers)? true:false;
ie = (document.all)? true:false;
nn = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"))? true:false;
if (ie)
{
document.all.glowbott.style.visibility="hidden";
xpos=event.x
ypos=event.y
//	window.status=(xpos+" : "+ypos);//for debugging--- will display the coordinates in the status bar
if (xpos <= 365)//check if the x position of the glow is less than 365px
{
document.all.glowtop.style.visibility="visible";
document.all.glowtop.style.left=310;
}
else if ( xpos >= 700 )//check if the x position of the glow is less than 700px
{
document.all.glowtop.style.visibility="visible";
document.all.glowtop.style.left=645;
}
else{
document.all.glowtop.style.visibility="visible";
document.all.glowtop.style.left=xpos-60;
}
}
else if (ne)
{
document.glowbott.visibility = "hidden";
xpos=e.pageX
ypos=e.pageY
//	status=(xpos+" : "+ypos);
if (xpos <= 365)
{
document.glowtop.visibility="visible";
document.glowtop.left=310;
}
else if ( xpos >= 700 )
{
document.glowtop.visibility="visible";
document.glowtop.left=645;
}
else
{
document.glowtop.visibility="visible";
document.glowtop.left=xpos-60;
}
return true
}
else if (nn)
{
document.getElementById("glowbott").style.visibility = "hidden";
xpos=e.pageX
ypos=e.pageY
//	status=(xpos+" : "+ypos);
if (xpos <= 365)
{
document.getElementById("glowtop").style.visibility="visible";
document.getElementById("glowtop").style.left=310;
}
else if ( xpos >= 700 )
{
document.getElementById("glowtop").style.visibility="visible";
document.getElementById("glowtop").style.left=645;
}
else
{
document.getElementById("glowtop").style.visibility="visible";
document.getElementById("glowtop").style.left=xpos-60;
}
return true
}
}
// this function controls the movement of the glow of the bottom nav row
function displaybott(e)
{
var xpos
var ypos
ne = (document.layers)? true:false;
ie = (document.all)? true:false;
nn = (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko"))? true:false;
if (ie)
{
document.all.glowtop.style.visibility="hidden";
xpos=event.x
ypos=event.y
//	window.status=(xpos+" : "+ypos);
if (xpos <= 440)
{
document.all.glowbott.style.visibility="visible";
document.all.glowbott.style.left=380;
}else if ( xpos >= 700 )
{
document.all.glowbott.style.visibility="visible";
document.all.glowbott.style.left=645;
}
else
{
document.all.glowbott.style.visibility="visible";
document.all.glowbott.style.left=xpos-60;	
}
}
else if (ne)
{
document.glowtop.visibility = "hidden";
xpos=e.pageX
ypos=e.pageY
//		status=(xpos+" : "+ypos);
if (xpos <= 440)
{
document.glowbott.visibility="visible";
document.glowbott.left=380;
}
else if ( xpos >= 700 )
{
document.glowbott.visibility="visible";
document.glowbott.left=645;
}
else
{
document.glowbott.visibility="visible";
document.glowbott.left=xpos-60;	
}
}
else if (nn)
{
document.getElementById("glowtop").style.visibility = "hidden";
xpos=e.pageX
ypos=e.pageY
//		status=(xpos+" : "+ypos);
if (xpos <= 440)
{
document.getElementById("glowbott").style.visibility="visible";
document.getElementById("glowbott").style.left=380;
}
else if ( xpos >= 700 )
{
document.getElementById("glowbott").style.visibility="visible";
document.getElementById("glowbott").style.left=645;
}
else
{
document.getElementById("glowbott").style.visibility="visible";
document.getElementById("glowbott").style.left=xpos-60;	
}
}
return true
}