var menuTimeOut;

function showMenu(item) {
	if(menuTimeOut)	clearTimeout(menuTimeOut);
	d = getName(item);
	d.style.display = "block";
	
	menuTimeOut = setTimeout('hideMenu("' + item + '")', 2000)
}

function hideMenu(item) {
	d = getName(item);
	d.style.display = "none";
				
}

function changeBG(item) {
	if (item.style.backgroundColor == '#dbdbdb' || item.style.backgroundColor == '') {
		item.style.backgroundColor = '#ffffff';
	} else {
		item.style.backgroundColor = '';
	}
}

function getName(mid) {
	if( ((parseInt(navigator.appVersion)) > 4) || (navigator.appName == 'Microsoft Internet Explorer')) {
	if (document.all && !document.getElementById) { // check for IE4
		myElement = eval("document.all") // for IE4
		} else {
				myElement = eval("document.getElementById('" + mid + "')"); //For IE 5 and Netscape 6+
		}
	}
	return myElement;
}		