<!--
var ht;

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

function showServices()
{
	sm = document.getElementById("servicesMenu");
	se = document.getElementById("services");
	pos = findPos(se);
	sm.style.visibility = "visible";
	sm.style.left = (pos[0]+20) + "px";
	sm.style.top = (pos[1]+20) + "px";

}

function showAbout()
{
	sm = document.getElementById("aboutMenu");
	se = document.getElementById("about");
	pos = findPos(se);
	sm.style.visibility = "visible";
	sm.style.left = (pos[0]+20) + "px";
	sm.style.top = (pos[1]+20) + "px";
}

function showFleet()
{
	sm = document.getElementById("fleetMenu");
	se = document.getElementById("fleet");
	pos = findPos(se);
	sm.style.visibility = "visible";
	sm.style.left = (pos[0]+20) + "px";
	sm.style.top = (pos[1]+20) + "px";
}



function hideServices(now)
{
	if (ht)
	{
		clearTimeout(ht);
		ht = "";
	}
	if (!now)
	{
		ht = window.setTimeout("hideServices(true)",500);
	}
	else
	{
		sm = document.getElementById("servicesMenu");
		sm.style.visibility = "hidden";
		sm = document.getElementById("aboutMenu");
		sm.style.visibility = "hidden";
		sm = document.getElementById("fleetMenu");
		sm.style.visibility = "hidden";
	}
}

function highlightItem(sm)
{
	sm.style.backgroundColor="#6463e5";
	if (ht)
	{
		clearTimeout(ht);
		ht = "";
	}
}

function unHighlightItem(sm)
{
	sm.style.backgroundColor="";
	hideServices();
}

function goto(url)
{
	hideServices(true);
	window.location = url;
}
-->