function displayMyMenu(){
		var menuEdge=event.clientX+myRightMenu.offsetWidth;
		var menuBottom=event.clientY+myRightMenu.offsetHeight;
		//variables used to determine where outside menu edges are in window

		if (menuEdge<document.body.clientWidth){
			myRightMenu.style.left=event.clientX;
			myRightMenu.style.top=event.clientY;
			//display menu in typical IE style
		}

		else{
			myRightMenu.style.left=event.clientX-myRightMenu.offsetWidth;
			myRightMenu.style.top=event.clientY;
			//positions menu to left of cursor
		}		

		if (menuBottom>document.documentElement.clientHeight){
			myRightMenu.style.top=event.clientY-myRightMenu.offsetHeight;
			//positions menu above cursor if clipped by window bottom
		}
		myRightMenu.style.visibility="visible";
		//makes menu appear
		return false;
}

function hideMyMenu(){
		myRightMenu.style.visibility="hidden"
		//makes menu disappear
}

function menuActions(){
		if (event.srcElement.className=="menuText"){
			if (event.srcElement.url != ''){
				if (event.srcElement.getAttribute("target")!=null)
					window.open(event.srcElement.url,event.srcElement.getAttribute("target"))
				else
					window.location=event.srcElement.url
			}
		}
//function looks for div fields to determine action to take - such as jumping to links 
}

function rollOverItem(){
		if (event.srcElement.className=="menuText"){
			event.srcElement.style.backgroundColor="#F3EEEB";
			//sets item background to grey when selected
			event.srcElement.style.color="#000000";
			//sets item text to black when selected
		}
}

function rollOffItem(){

		if (event.srcElement.className=="menuText"){
			event.srcElement.style.backgroundColor="";
			//sets item background back to normal when deselected
			event.srcElement.style.color="#000000";
			//sets item text back to black
		}
} 


