//Display the mainnav submenus
function showMenu(menuID) {
	if(document.getElementById(menuID)!=null){
		document.getElementById(menuID+'_orig').className = 'dropdown_hover';
		document.getElementById(menuID).style.display = 'block';
	}
}
//Hide Menu
function hideMenu(menuID) {
	if(document.getElementById(menuID)!=null){
		document.getElementById(menuID).style.display = 'none';
		document.getElementById(menuID+'_orig').className = 'dropdown_orig';
	}
}
//Set the timer for hiding menu
function delayHideMenu(menuID) {
	delayhide=setTimeout("hideMenu('"+menuID+"')",50);
}
//Reset the timer for hiding the menu
function clearHideMenu(menuID) {
	if (typeof delayhide!="undefined") {
		clearTimeout(delayhide);
	}
}

//Show some more info about publications
function more(id){
	var div = document.getElementById(id);
	if(div!=null){
		if(div.style.display=='block'){
			if(id.substr(0,4)=='more'){
				div.parentNode.style.backgroundColor = '#ffffff';
			}
			div.style.display = 'none';
		}else{
			if(id.substr(0,4)=='more'){
				div.parentNode.style.backgroundColor = '#FDF1E5';
			}
			div.style.display = 'block';
		}
	}
}

function hover(id,color){
	var obj = document.getElementById(id);
	if(obj!=null){
		obj.style.backgroundColor = color;
	}
}