img1 = new Image;img1.src = 'images/nav/navbuttonclick_bg.gif';img2 = new Image;img2.src = 'images/nav/navbuttonover_bg.gif';img3 = new Image;img3.src = 'images/nav/navbutton_bg.gif';//navList = new Array('community_dev','meeting_dates','police_dept','public_works','contact_us','home');function closeAll(whichList) {	for (var f = 0; f < whichList.length; f++) {		currentElement = document.getElementById(whichList[f]+'_content');		//alert(whichList[f]);			currentElement.style.display = 'none';		//buttonElement.style.backgroundImage = 'url(images/nav/navbutton_bg.gif)';	}	//alert(toString(whichList));}function toggleDisplay(which,whichList) {	//alert(which);	for (var f = 0; f < whichList.length; f++) {		currentElement = document.getElementById(whichList[f]+'_content'); 		buttonElement = document.getElementById(whichList[f]);		if (which == whichList[f]+'_content') {			currentElement.style.display ='block';			if (buttonElement) buttonElement.style.backgroundImage = 'url(images/nav/navbuttonclick_bg.gif)';		} else {			currentElement.style.display ='none';			if (buttonElement) buttonElement.style.backgroundImage = 'url(images/nav/navbutton_bg.gif)';		}	}}function toggleDisplayCool(which) {	//alert(which);	// decide which list to use here	lists = new Array('navListTop','navListSub');	for (var l = 0; l < lists.length; l++) {		eval('if ('+lists[l]+'.toString().indexOf(which)) whichList = lists[l];');			eval('whichList = '+whichList);		//eval('toggleDisplay("'+which+'",'+whichList+');');		//alert(whichList);		// ok, back to normal stuff		for (var f = 0; f < whichList.length; f++) {			currentElement = document.getElementById(whichList[f]+'_content'); 			buttonElement = document.getElementById(whichList[f]);			if (which == whichList[f]+'_content') {				currentElement.style.display ='block';				if (buttonElement) buttonElement.style.backgroundImage = 'url(images/nav/navbuttonclick_bg.gif)';			} else {	//			currentElement.style.display ='none';				if (buttonElement) buttonElement.style.backgroundImage = 'url(images/nav/navbutton_bg.gif)';			}		}	}}function doButtonRollover(obj,which) {	contentObj = document.getElementById(obj.id+'_content');	if (contentObj.style.display != 'block') {		if (which == 'over') {			obj.style.backgroundImage = 'url(images/nav/navbuttonover_bg.gif)';		} else if (which == 'off') {			obj.style.backgroundImage = 'url(images/nav/navbutton_bg.gif)';		}	}}