
function fndrop(){
	src=window.event.srcElement;
	i=src.id.substring(11,12);
	mnuhead=document.all["menuheader_" + i];
	label=document.all["label_" + i];
	mnu=document.all["menuitem_" + i];
	mnu.style.position="absolute";
	mnu.style.left=fngetx(src);
	mnu.style.top=88;
	mnu.style.visibility="visible"
	//mnuhead.style.background="002868";
	mnuhead.style.cursor="hand";
	label.style.color="FC7F3F";
}
function fnNodrop(){
	src=window.event.srcElement;
	i=src.id.substring(11,12);
	mnuhead=document.all["menuheader_" + i];
	label=document.all["label_" + i];
	//mnu=document.all["menuitem_" + i];
	//mnu.style.position="absolute";
	//mnu.style.left=fngetx(src);
	//mnu.style.top=110;
	//mnu.style.visibility="visible"
	//mnuhead.style.background="002868";
	mnuhead.style.cursor="hand";
	label.style.color="FC7F3F";
}

//hides the menu
function fnhide(){
	src=window.event.srcElement;
	i=src.id.substring(11,12);
	mnuhead=document.all["menuheader_" + i];
	label=document.all["label_" + i];
	mnu=document.all["menuitem_" + i];
	mnu.style.visibility="hidden";
	mnuhead.style.cursor="";
	//mnuhead.style.background="cccccc";
	label.style.color="002868";
}
function fnNohide(){
	src=window.event.srcElement;
	i=src.id.substring(11,12);
	mnuhead=document.all["menuheader_" + i];
	label=document.all["label_" + i];
	//mnu=document.all["menuitem_" + i];
	//mnu.style.visibility="hidden";
	mnuhead.style.cursor="";
	//mnuhead.style.background="cccccc";
	label.style.color="002868";
}
//highlights the menu item
function fnhighlight()
{
src=window.event.srcElement;
i=src.id;
document.all[i].style.background="FC7F3F";

}
//unhighlights the menu item
function fnhighlightout()
{
src=window.event.srcElement;
i=src.id;
document.all[i].style.background="white";
}
//retrieves left position
function fngetx(it){
	var curleft = 0;
	if (document.getElementById || document.all)
	{
		while (it.offsetParent)
		{
			curleft += it.offsetLeft;
			it = it.offsetParent;
		}
	}
	else if (document.layers)
		curleft += it.x;
	return curleft;
}

links = new Array();

function fnlocate(url) {
src = window.event.srcElement;
i = src.id;
if (i.indexOf("menu") == 0)
{
location.href=url;
}
else
{
ilen = i.length;
if (ilen == 6)
{
count = i.substring(5,6);
linkurl = links[count];
}
else
{
count = i.substring(5,ilen);
linkurl = links[count];
}
location.href=linkurl;
}
}
			