var mItemArray = new Array("home","about_us","products_services","whats_new_packaging","contact_us","metro_west");
			var delayTimeout;
			
			function menuOff(objRef,childNum) {
				//alert(objRef.id);
				objRef.childNodes[1].style.display = "none";
			}
			
			function mouseOverEvent() {
				event.srcElement.childNodes[1].style.display = "block";
				clearTimeout(delayTimeout);
			}
			function mouseOutEvent() {
				delayTimeout = setTimeout("menuOff(" + event.srcElement.id + ",1)",1000);
				//setTimeout("alert('" + event.srcElement.id + "');",1000);
				//event.srcElement.childNodes[1].style.display = "none";
			}
			
			function setSection() {
				var currSection = WM_readCookie('section');
				document.getElementById(currSection).style.background = "url('images/" + currSection + "/" + currSection + "_highlight.png') 50% 0% no-repeat";
				//document.getElementById(currSection).style.backgroundColor = "#ffffff";
				//alert("url('images/" + currSection + "/" + currSection + "_highlight.png') top left no-repeat");
			}
			
			function initMenuItems() {				
				if(document.all) {
					for(var i = 0;i < mItemArray.length;i++) {
							document.getElementById(mItemArray[i]).attachEvent("onmouseover",window.mouseOverEvent);
							document.getElementById(mItemArray[i]).attachEvent("onmouseleave",window.mouseOutEvent);
					}
				} else {
					for(var i = 0;i < mItemArray.length;i++) {
						document.getElementById(mItemArray[i]).onmouseover = function() {
							if(this.childNodes[2]) {
								this.childNodes[2].style.display = "block";
							}
						}
						document.getElementById(mItemArray[i]).onmouseout = function() {
							if(this.childNodes[2]) {
								this.childNodes[2].style.display = "none";
							}
						}
					}
				}
				
				setSection();
			}
			
			function setAndGo(theSection,theURL) {
				WM_setCookie('section',theSection,48,'/');
				
				window.location = theURL;
			}
			
			window.onload = initMenuItems;