var items_state = new Array();
var mytimeout=new Array();

function menunews(type,myid,waitforclick)
{
	var time=1500;
	if (items_state[myid]== undefined)
		items_state[myid]="none";
	if (type=='none') {
   		mytimeout[myid]=setTimeout("showhide('"+myid+"','none')",time);
	}
   	  else 
	{
   		clearTimeout(mytimeout[myid]);
		showhide(myid,'block');
	}
}

function showhide(layer_ref,type) {
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = type");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = type;
}
if (document.getElementById && !document.all) {
maxwell_smart = document.getElementById(layer_ref);
maxwell_smart.style.display = type;
}
}

