function showMenu(id){
	
		document.getElementById(id).setAttribute("src","images/menuOpen.gif");
		document.getElementById('div'+id).style.display = 'block';
		

}


function hideMenu(id){
	
	image = document.getElementById(id).getAttribute("src");
	
	document.getElementById('div'+id).style.display = 'none';

	document.getElementById(id).setAttribute("src","images/menuClosed.gif");
	

}
	

function test(){
	document.getElementById('secondMenu').style.display = 'block';
}


function highlight(id){
	document.getElementById(id).style.backgroundColor = '#999999';
}

function dehighlight(id){
	
		document.getElementById(id).style.backgroundColor = '#ffffff';
}
	


function rollon(xid)
{
	image = document.getElementById(xid).getAttribute("src");
	
	if(image.indexOf('Open')== -1){
		document.getElementById(xid).src = "images/menuOver.gif";
	}
}

function rolloff(xid)
{
	image = document.getElementById(xid).getAttribute("src");
	
	if(image.indexOf('Open')== -1){
		document.getElementById(xid).src = "images/menuClosed.gif";
	}
}

function arrowonprev(xid)
{
	image = document.getElementById(xid).getAttribute("src");
	
	if(image.indexOf('Open')== -1){
		document.getElementById(xid).src = "images/arrowprev.gif";
	}
}

function arrowoffprev(xid)
{
	image = document.getElementById(xid).getAttribute("src");
	
	if(image.indexOf('Open')== -1){
		document.getElementById(xid).src = "images/arrowprevover.gif";
	}
}

function arrowonnext(xid)
{
	image = document.getElementById(xid).getAttribute("src");
	
	if(image.indexOf('Open')== -1){
		document.getElementById(xid).src = "images/arrownext.gif";
	}
}

function arrowoffnext(xid)
{
	image = document.getElementById(xid).getAttribute("src");
	
	if(image.indexOf('Open')== -1){
		document.getElementById(xid).src = "images/arrownextover.gif";
	}
}

function goandopen(go, openid){
	execute(go);
	showMenu(openid);
}


