//PRELOAD ROLLOVER IMAGES
<!--
if (document.images) {
	preload1= new Image(); 
	preload1.src="/img/menu-airports_RO.jpg"; 
	preload2= new Image(); 
	preload2.src="/img/menu-entertainment_RO.jpg"; 
	preload3= new Image(); 
	preload3.src="/img/menu-food_RO.jpg";
	preload4= new Image(); 
	preload4.src="/img/menu-healthcare_RO.jpg"; 
	preload5= new Image(); 
	preload5.src="/img/menu-hospitality_RO.jpg";  
	preload6= new Image(); 
	preload6.src="/img/menu-mfg_RO.jpg";
	preload7= new Image(); 
	preload7.src="/img/menu-retail_RO.jpg"; 
	preload8= new Image(); 
	preload8.src="/img/menu-schools_RO.jpg"; 
	preload9= new Image(); 
	preload9.src="/img/menu-severeEnv_RO.jpg";
	preload10= new Image();
	preload10.src="/img/menu-government_RO.jpg";
}
//-->

//ARRAY TO HOLD CATEGORIES
var arrCategories=new Array(10);
arrCategories[0]="airports";
arrCategories[1]="entertainment";
arrCategories[2]="food";
arrCategories[3]="healthcare";
arrCategories[4]="hospitality";
arrCategories[5]="mfg";
arrCategories[6]="retail";
arrCategories[7]="schools";
arrCategories[8]="severeEnv";
arrCategories[9]="government";

//CLOSE MENU FUNCTION
function closeMenu(targetDIV) {
	targetDIV.className="menuClosed";
}

//OPEN MENU FUNCTION
function openMenu(targetDIV) {
	var targetHDR = targetDIV.id;
	
	//CHECK IF MENU IS ALREADY OPEN
	//var strSearch = document["img_" + targetHDR].src;
	//alert(document.getElementById("img_" + targetHDR).src);
	var strSearch = document.getElementById("img_" + targetHDR).src;
	
	//alert (strSearch + "\n\n" + strSearch.indexOf("_RO.jpg"));
	if (strSearch.indexOf("_RO.jpg")!=-1) {
		//SELECTED MENU IS ALREADY OPEN - CLOSE ALL OPEN MENUS
		//CHANGE ALL CATEGORY HDRS TO "CLOSED" AND CLOSE ALL MENUS
		 var x=0;
		 for (x=0; x < arrCategories.length; x++) {
			document.getElementById("img_" + arrCategories[x]).src="/img/menu-" + arrCategories[x] + ".jpg";
			closeMenu(document.getElementById(arrCategories[x]));
		} 			 
	} else {	
		//SELECTED CATEGORY WAS NOT OPEN...
		//CHANGE ALL CATEGORY HDRS TO "CLOSED" AND CLOSE ALL MENUS
		for (x=0; x < arrCategories.length; x++) {
			document.getElementById("img_" + arrCategories[x]).src="/img/menu-" + arrCategories[x] + ".jpg";
			closeMenu(document.getElementById(arrCategories[x]));
		 } 		
		 
		//OPEN SELECTED CATEGORY (change DIV style to open which contains "display: visible")
		targetDIV.className="menuOpen";
		//CHANGE SELECTED CATEGORY HDR TO "OPEN"
		document.getElementById("img_" + targetHDR).src="/img/menu-" + targetHDR + "_RO.jpg";
	}
}

