/***** modified 1 oct 2008 by ted koterwas: this is a bit of a kludge, but will *** prevent the menu from appearing if there are no items in the menu.*** i've wrapped the statement for showing the menu in it's own function and added logic*** to check the number of items in the corresponding data set *** the problem, of course, is that it relies implicitly on the datasets being loaded first. it*** would probably be better to send the number of items in the dataset as an argument*** but that would require changing scripts on every single page.*/function hideAllMenus(){	hideMenu('play');	hideMenu('ponder');	hideMenu('about');	hideMenu('mind_site');	}function rolloverMenu(button){	hideMenu('play');	hideMenu('ponder');	hideMenu('about');	hideMenu('mind_site');	MM_swapImage(button,'','../../../images/'+button+'_btn_ro.jpg',1);	showMenu(button)		}	function rolloverMenuTopLevel(button){	hideMenu('play');	hideMenu('ponder');	hideMenu('about');	hideMenu('mind_site');	MM_swapImage(button,'','images/'+button+'_btn_ro.jpg',1);	showMenu(button)		}		function rolloverMenuLevel1(button){	hideMenu('play');	hideMenu('ponder');	hideMenu('about');	hideMenu('mind_site');		MM_swapImage(button,'','../images/'+button+'_btn_ro.jpg',1);	showMenu(button)}function showMenu(button){	var itemCount = 0;		switch (button){		case 'play':			itemCount = (playSection.getData().length)?playSection.getData().length:0;			break;		case 'ponder':			itemCount = (ponderSection.getData().length)?ponderSection.getData().length:0;			break;		case 'about':			itemCount = (aboutSection.getData().length)?aboutSection.getData().length:0;			break;		case 'mind_site':			itemCount = (mind_siteSection.getData().length)?mind_siteSection.getData().length:0;			break;	}	if (itemCount > 0){		var thisMenu = button+"Menu";		document.getElementById(thisMenu).style.display = "block";	}}	function hideMenu(button){	MM_swapImgRestore();	var button = button;	var thisMenu = button+"Menu";	document.getElementById(thisMenu).style.display = "none";	}hideMenu('play');hideMenu('ponder');hideMenu('about');hideMenu('mind_site');