var menuskin=1
var display_url=1
function showmenuie5(varHorse,varDob){
ie5menu.style.Horse=varHorse
ie5menu.style.Dob=varDob
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)
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 hidemenuie5old(){
ie5menu.style.visibility="hidden"
}
function hidemenuie5(){
if (event.srcElement.className=="Horse"){
showmenuie5(event.srcElement.style.Name,event.srcElement.style.DOB)
} else {
ie5menu.style.visibility="hidden" }
}

function highlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor="highlight"
event.srcElement.style.color="white"
if (display_url==1)
window.status=event.srcElement.value+ " for " +ie5menu.style.Horse
}
}

function lowlightie5(){
if (event.srcElement.className=="menuitems"){
event.srcElement.style.backgroundColor=""
event.srcElement.style.color="black"
window.status=''
}
}

function jumptoie5(){
var eventSource=event.srcElement
if (eventSource.className=="menuitems"){
	if (eventSource.getAttribute("target")!=null){
		if (eventSource.getAttribute("target")=="Framemain"){
			window.open(eventSource.url+ie5menu.style.Horse,eventSource.getAttribute("target"))
		} else {
	window.open(eventSource.url+ie5menu.style.Horse+'&DOB='+ie5menu.style.Dob,eventSource.getAttribute("target"))
	}
	} else {
	window.location=eventSource.url+ie5menu.style.Horse+'&DOB='+ie5menu.style.Dob
	}
}
}

function openpopupmenu(Horse,DOB){
var popurl="../popup.asp?Horse="+Horse+"&DOB="+DOB
winpops=window.open(popurl,"","width=50,height=200,screenX=200,screenY=200,")
return false
}

