// menu style vars var width = 158; var height = 0; var border = "#CFB89B"; var menubgOn = "#ffffff"; var menubgOff = "#EDE5DA"; //browsers var agt=navigator.userAgent.toLowerCase(); var appVer = navigator.appVersion.toLowerCase(); var is_mac = (agt.indexOf("mac")!=-1); var is_minor = parseFloat(appVer); var is_major = parseInt(is_minor); var is_opera = (agt.indexOf("opera") != -1); var iePos = appVer.indexOf('msie'); var is_mac_ie = false; if (iePos !=-1) { is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos))); is_major = parseInt(is_minor); } var is_ie = ((iePos!=-1) && (!is_opera)); if (is_mac && is_ie) { is_mac_ie = true; } var is_ie5up = (is_ie && is_minor >= 5); var is_ie5_5up =(is_ie && is_minor >= 5.5); var is_safari = ((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?true:false; var nn4 = false; if (document.layers) { nn4 = true; } //rollovers function navOver(imgNum) { } function navOff(imgNum) { } //dtmhl var menuXoffset = 150; var menuYoffset = -1; // functionality variables var delay = 200; var delayStart = 200; var useMask = false; var useDHTML = false; var hideSels = false; var start; var hideFlag; var hideTimer; var showTimer; var curMenu; var curItem; var curNav; var activeMenu; var theMenu; var theImg; var thePos; var theDiv; var theCont; var theTable; var theMask; var onMenu = false; var menusWritten = false; // menu building variables; var menucount = 0; var menustyle = "width:" + width + "px; text-align:left; border-left:" + border + " 1px solid; border-right:" + border + " 1px solid; background-color:" + menubgOff + "; cursor: hand;" var separator = "
\"\"
"; function menuobject (label, url) { this.label = label; this.url = url; return this; } function renderdata () { menuData[catCount++] = tmpData; tmpData = new Array(); count = 0; } // Turn iFrame mask on for IE 5.5+ / PC only if (is_ie && !is_mac_ie) { if (is_ie5_5up) { useMask = true; } else { hideSels = true; } } // Turn on DHTML for 5+ browsers only if (is_ie && !is_ie5up) { useDHTML = false; } else if(!nn4) { useDHTML = true; } function writeMenus() { if(useDHTML) { for (i = 0; i < menuData.length; i++) { document.writeln("
"); if (useMask) { document.writeln("
"); } for (j = 0; j < menuData[i].length; j++) { if (j == 0) { document.write(""); } else if (j < menuData[i].length - 1) { document.write(""); } else { document.write(""); } menucount++; } if (useMask) { document.writeln("
"); } document.writeln("
"); moveMenu(i); } } menusWritten = true; } function moveMenu(num) { tmpMenu = "menu" + num; thePos = getObj("pos" + num); theImg = "nav" + num; xPos = offsetLeft(thePos) + menuXoffset; yPos = offsetTop(thePos) + height + menuYoffset; getObj(tmpMenu).style.left = xPos; getObj(tmpMenu).style.top = yPos; } function showMenus() { unfocus(); if (hideSels) { hideSelect(); } onMenu = true; theMenu = "menu" + curMenu; activeMenu = theMenu; moveMenu(curMenu); if (useMask) { theMask = getObj("iMask"); theTable = "table" + curMenu; theMask.style.left = xPos; theMask.style.top = yPos; theMask.style.width = getObj(theTable).offsetWidth; theMask.style.height = getObj(theTable).offsetHeight; } getObj(theMenu).style.visibility = "visible"; } function startShow(menu) { if (curNav) { navOff(curNav); } navOver(menu); curNav = menu; if (menusWritten && !nn4) { curMenu = menu; if (activeMenu) { getObj(activeMenu).style.visibility = "hidden"; } clearTimer(); if (!onMenu) { if (curItem) { curItem.style.backgroundColor = menubgOff; } showTimer = setTimeout("showMenus()", delayStart); } else { showMenus(); } } else { return false; } } function startHide() { if (!onMenu) { if (curNav) { navOff(curNav); curNav = null; } } if (menusWritten && !nn4) { if (showTimer) clearTimeout(showTimer); start = new Date(); hideFlag = true; hideTimer = setTimeout("hideMenus()", delay); } else { return false; } } function clearTimer() { if (hideTimer) clearTimeout(hideTimer); hideTimer = null; hideFlag = false; } function hideMenus() { if (!hideFlag) return; var elapsed = new Date() - start; if (elapsed < delay) { hideTimer = setTimeout("hideMenus()", delay - elapsed); return; } hideFlag = false; hideAllMenus(); if (hideSels) { showSelect(); } } function hideAllMenus() { changeStatus(''); if (curNav) { navOff(curNav); curNav = null; } for (i = 0; iInformation Center", "?pg=community/information/index.php"); tmpData[count++] = new menuobject("   -About Eagle Mountain", "?pg=community/information/aboutcity.php"); tmpData[count++] = new menuobject("   -Community FAQs", "?pg=community/information/faqs.php"); tmpData[count++] = new menuobject("   -Eagle Mountain News", "?pg=community/information/news.php"); //tmpData[count++] = new menuobject("   -Religious Services", "?pg=community/information/rservices.php"); tmpData[count++] = new menuobject("   -Useful Links", "?pg=community/information/links.php"); tmpData[count++] = new menuobject("Photo Gallery", "?pg=community/gallery/index.php"); tmpData[count++] = new menuobject("Community Calendar", "?pg=community/calendar/index.php"); tmpData[count++] = new menuobject("   -Current Month", "?pg=community/calendar/index.php&m=9&y=2010"); tmpData[count++] = new menuobject("   -Six Month View", "?pg=community/calendar/sixmonthview.php&m=9&y=2010"); tmpData[count++] = new menuobject("Community Forum", "forum/"); tmpData[count++] = new menuobject("   -Search", "forum/search.php"); tmpData[count++] = new menuobject("   -Forum FAQs", "forum/faq.php"); tmpData[count++] = new menuobject("   -Memberlist", "forum/memberlist.php"); tmpData[count++] = new menuobject("   -Log in", "forum/login.php"); tmpData[count++] = new menuobject("   -Join Forum", "forum/profile.php?mode=register"); renderdata(); tmpData[count++] = new menuobject("Buy a Home", "?pg=realestate/buy/index.php"); tmpData[count++] = new menuobject("   -Buyer's Guide", "?pg=realestate/buy/index.php"); tmpData[count++] = new menuobject("   -Homes For Sale", "http://www.utahhomesandrealestate.com/findhomes_city.php?cityId=228"); tmpData[count++] = new menuobject("   -Buying FAQs", "?pg=realestate/buy/faqs.php"); tmpData[count++] = new menuobject("Build a Home", "?pg=realestate/build/index.php"); tmpData[count++] = new menuobject("   -Building Guide", "?pg=realestate/build/index.php"); tmpData[count++] = new menuobject("   -Land For Sale", "http://www.utahhomesandrealestate.com/findland_city.php?cityId=228"); tmpData[count++] = new menuobject("   -Building FAQs", "?pg=realestate/build/faqs.php"); tmpData[count++] = new menuobject("Rent a Home", "?pg=realestate/rent/index.php"); tmpData[count++] = new menuobject("   -Renter's Guide", "?pg=realestate/rent/index.php"); tmpData[count++] = new menuobject("   -Renting FAQs", "?pg=realestate/rent/faqs.php"); tmpData[count++] = new menuobject("Sell a Home", "?pg=realestate/sell/index.php"); tmpData[count++] = new menuobject("   -Sellers's Guide", "?pg=realestate/sell/index.php"); tmpData[count++] = new menuobject("   -Selling FAQs", "?pg=realestate/sell/faqs.php"); renderdata(); tmpData[count++] = new menuobject("Community Directory", "?pg=business/community.php"); tmpData[count++] = new menuobject("Education Directory", "?pg=business/education.php"); tmpData[count++] = new menuobject("Health Care Directory", "?pg=business/healthcare.php"); tmpData[count++] = new menuobject("Services Directory", "?pg=business/services.php"); tmpData[count++] = new menuobject("Retail Directory", "?pg=business/retail.php"); tmpData[count++] = new menuobject("Food Directory", "?pg=business/food.php"); tmpData[count++] = new menuobject("Other Directory", "?pg=business/other.php"); renderdata(); tmpData[count++] = new menuobject("About Us", "?pg=aboutus/index.php"); tmpData[count++] = new menuobject("Contact Us", "?pg=aboutus/contactus.php"); tmpData[count++] = new menuobject("Services", "?pg=aboutus/services.php"); tmpData[count++] = new menuobject("   -Marketing", "?pg=aboutus/marketing.php"); tmpData[count++] = new menuobject("   -Web Development", "?pg=aboutus/webdevelopment.php"); tmpData[count++] = new menuobject("   -Hosting", "?pg=aboutus/hosting.php"); renderdata();