//Code to track the mouse
var posX = 0;
var posY = 0;

window.document.onmousemove = getMouseXY;

function getMouseXY(e) {

	if(navigator.appName == "Netscape"){
		posX = e.pageX
	 	posY = e.pageY

	} else {
		posX = event.clientX + document.body.scrollLeft
 		posY = event.clientY + document.body.scrollTop
	}

	if (posX <= 0) {posX = 0} 
	if (posY <= 0) {posY = 0}   

	//see if i need to trun off
	var currentBullet = document.getElementById("ActiveCategoryID").value;
	if(currentBullet != ''){
		if(posX > 365){
			//alert("too wide");
			HideOtherSubDivs(0);
			HideActiveBullet();
			document.getElementById("ActiveCategoryID").value = "";
		}
		else if(posX < 15){
			//alert("too thin");
			HideOtherSubDivs(0);
			HideActiveBullet();
			document.getElementById("ActiveCategoryID").value = "";
		}
		else if(posY > 475){
			//alert("too tall");
			HideOtherSubDivs(0);
			HideActiveBullet();
			document.getElementById("ActiveCategoryID").value = "";
		}
		else if(posY < 129){
			//alert("too short");
			HideOtherSubDivs(0);
			HideActiveBullet();
			document.getElementById("ActiveCategoryID").value = "";
		}
	}	
 	return true
}

//set the top coord of the menu
function getCoords(menuDivID){
	//var xCoord = posX;
	var yCoord = posY;
	document.getElementById(menuDivID).style.pixelTop = (yCoord-5);
}