var menuClicked = false;

function menuColor(el, status, cc)
{
	switch(status)
	{
		case 'over':
			document.getElementById('menu-'+el).style.backgroundColor = '#424242';
			break;
		case 'out':
			if(menuClicked != true)
			{
				document.getElementById('menu-'+el).style.backgroundColor = '#'+cc;
			}
			break;
	}
}

function audio() 
{
var audiowin = null;
Left= (screen.width) ? (screen.width-304) /2:0;
Top= (screen.height) ? (screen.height-200) /2:0;
sett='width=304,height=219,top='+Top+',left='+Left+',scrollbars=no,status=no';
	audiowin = window.open('http://www.bryandalton.nl/audioplayer/','audio',sett);
	audiowin.focus();
}

function pop(url,w,h) 
{
var popwin = null;
Left= (screen.width) ? (screen.width-w) /2:0;
Top= (screen.height) ? (screen.height-h) /2:0;
sett='width='+w+',height='+h+',top='+Top+',left='+Left+',scrollbars=no,status=no';
	popwin = window.open(url,'pop',sett);
	popwin.focus();
}

function showCell(cellId)
{
	if(document.getElementById('cell'+cellId).style.display == "none")
	{
		document.getElementById('icon'+cellId).src="http://www.bryandalton.nl/images/site/open.gif";
		document.getElementById('cell'+cellId).style.display = "block";
	}
	else
	{
		document.getElementById('cell'+cellId).style.display = "none";
		document.getElementById('icon'+cellId).src="http://www.bryandalton.nl/images/site/closed.gif"  ;   
	} 
}