var dm, dmHeight, dmContentHeight, dmTimeout;

function dropMenuInit() {
	dm = document.getElementById("Dropmenu");
	dmHeight = 0;
	dmContentHeight = dm.children.length * 20;
	if (dm.parentNode.addEventListener) {
		dm.parentNode.addEventListener("mouseover", menuRoll, false);
		dm.parentNode.addEventListener("mouseout", menuShut, false);
	}
	
	else if (dm.parentNode.attachEvent) {
		dm.parentNode.attachEvent("onmouseover", menuRoll);
		dm.parentNode.attachEvent("onmouseout", menuShut);
	}
}

function menuRoll() {
	if (dmTimeout) window.clearTimeout(dmTimeout);
	if (dmHeight < dmContentHeight) {
		dmHeight += 1;
		dm.style.height = dmHeight + "px";
		dmTimeout = window.setTimeout("menuRoll()",10);
	}
}

function menuShut() {
	if (dmTimeout) window.clearTimeout(dmTimeout);
	if (dmHeight > 0) {
		dmHeight -= 1;
		dm.style.height = dmHeight + "px";
		dmTimeout = window.setTimeout("menuShut()",10);
	}
}

if (window.addEventListener) window.addEventListener("load", dropMenuInit, false)
else if (window.attachEvent) window.attachEvent("onload", dropMenuInit)