var display_url=1

function showmenuie5(){
	var rightedge=document.body.clientWidth-event.clientX
	var bottomedge=document.body.clientHeight-event.clientY

	if (rightedge<ie5menu.offsetWidth)
		ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth
	else
		ie5menu.style.left=document.body.scrollLeft+event.clientX

	if (bottomedge<ie5menu.offsetHeight) {
		if (event.clientY-ie5menu.offsetHeight < document.body.scrollTop ) 
			ie5menu.style.top=document.body.scrollTop+10
		else 
			ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight
	} else
		ie5menu.style.top=document.body.scrollTop+event.clientY

	ie5menu.style.visibility="visible"
	return false
}

function hidemenuie5(){
	ie5menu.style.visibility="hidden"
}

function highlightie5(){
	if (event.srcElement.className=="menuitems"){
		event.srcElement.style.backgroundColor="#000080"
		event.srcElement.style.color="white"
		if (display_url==1)
			window.status=event.srcElement.url
	}
}

function lowlightie5(){
	if (event.srcElement.className=="menuitems"){
		event.srcElement.style.backgroundColor=""
		event.srcElement.style.color="black"
		window.status=''
	}
}

function jumptoie5(){
	if (event.srcElement.className=="menuitems") {
		if (window.frames)
			window.top.location=event.srcElement.url;
		else
			window.location=event.srcElement.url;
	}
}
