// this function traps the co ordinates of the top nav rows
function trap()
{
	if (document.all)
	{
	document.all.toprowtext.onmousemove=displaytop;
	}
	else if(document.layers) 
	{
	document.toprowtext.captureEvents(Event.MOUSEMOVE);
	document.toprowtext.onmousemove=displaytop;
	}
}
// this function controls the movement of the glow of the top nav row
function displaytop(e)
{
var xpos
var ypos
	if (document.all)
	{
	xpos=event.x
	ypos=event.y
//	window.status=(xpos+" : "+ypos);//for debugging--- will display the coordinates in the status bar
	if (xpos <= 280)//check if the x position of the glow is less than 365px
	{
	document.all.glowtop.style.visibility="visible";
	document.all.glowtop.style.left=280;
	}
	else if ( xpos >= 621 )//check if the x position of the glow is less than 700px
	{
	document.all.glowtop.style.visibility="visible";
	document.all.glowtop.style.left=621;
	}
	else{
	document.all.glowtop.style.visibility="visible";
	document.all.glowtop.style.left=xpos-35;
	}
	}
	
	else if (document.layers)
	{
	xpos=e.pageX
	ypos=e.pageY
//	status=(xpos+" : "+ypos);
	if (xpos <= 280)
	{
	document.glowtop.visibility="visible";
	document.glowtop.left=280;
	}
	else if ( xpos >= 621 )
	{
	document.glowtop.visibility="visible";
	document.glowtop.left=621;
	}
	else{
	document.glowtop.visibility="visible";
	document.glowtop.left=xpos-35;
	}
	return true
	}
}

