﻿<!--
// © 2005 City of Las Vegas | All Rights Reserved | Use only with permission //
// All Contents of this Website are the property of the City of Las Vegas //
// Left Hand Nav Dynamic Menu's

//------------
// Variables
//------------
var menuwidth='145px'   // default menu width -> no value because it's specified in the document it appears in
       // the div class="LhnMenu" is defined in each of the stylesheets located in the CSS Folder under "Left Hand Nav."
       // LhnMenu width = menuwidth - LhnMenu padding-left
var menubgcolor='#e4e8ef'   // menu bgcolor
var disappeardelay=800   // menu disappear speed onMouseOut (in milliseconds)
var hidemenu_onclick="yes"  // hide menu when user clicks within menu
var MoveMenuLeft='110px' // position to the left of the Left Hand Nav
var MoveMenuUp='20'   // number of pixels to move menu's [positive value moves menu up].
var MenuIndex='100'   // z-index of the Menu

//------------
// Menu Arrays
//------------

//-------------------
//Contents for I WANT TO... Menu Items
//-------------------
//Contents for menu 1 [Apply For]
var menu1=new Array()
 menu1[0]='<a href="' + ROOT + '/Government/boards.asp" class="LhnMenuItem"><div class="LhnMenu">Boards and Commissions</div></div></a>'
 menu1[1]='<a href="' + ROOT + '/Apply/grants.asp" class="LhnMenuItem"><div class="LhnMenu">Grants</div></a>'
 menu1[2]='<a href="' + ROOT + '/Apply/jobs.htm" class="LhnMenuItem"><div class="LhnMenu">Jobs</div></a>'
 menu1[3]='<a href="' + ROOT + '/Apply/licenses.asp" class="LhnMenuItem"><div class="LhnMenu">Licenses</div></a>'
 menu1[4]='<a href="' + ROOT + '/Apply/permits.asp" class="LhnMenuItem"><div class="LhnMenu">Permits</div></a>'
 menu1[5]='<a href="' + ROOT + 'http://www.lasvegasnevada.gov/Publications/forms.asp?id=5622#5622" class="LhnMenuItem"><div class="LhnMenu">Planning Applications</div></a>'
  
// Contents for menu 2 [Check Status of]
var menu2=new Array()
 menu2[0]='<a href="' + ROOT + '/CheckStatus/business_licenses.htm" class="LhnMenuItem"><div class="LhnMenu">Business License</div></a>'
 menu2[1]='<a href="' + ROOT + '/CheckStatus/7350.htm" class="LhnMenuItem"><div class="LhnMenu">City Notices and Announcements</div></a>'
 menu2[2]='<a href="' + ROOT + '/CheckStatus/DevelopmentApp.htm" class="LhnMenuItem"><div class="LhnMenu">Development Application</div></a>'
 menu2[3]='<a href="' + ROOT + '/CheckStatus/10781.htm" class="LhnMenuItem"><div class="LhnMenu">Inspections</div></a>'
 menu2[4]='<a href="' + ROOT + '/CheckStatus/14848.htm " class="LhnMenuItem"><div class="LhnMenu">Job Test Scores</div></a>' 
 menu2[5]='<a href="' + ROOT + '/CheckStatus/PlanReview.htm" class="LhnMenuItem"><div class="LhnMenu">Plan Review</div></a>'
 menu2[6]='<a href="' + ROOT + '/CheckStatus/roadwork_traffic.htm" class="LhnMenuItem"><div class="LhnMenu">Roadwork and Traffic</div></a>'
 menu2[7]='<a href="' + ROOT + '/CheckStatus/service_request.htm" class="LhnMenuItem"><div class="LhnMenu">Service Request</div></a>'
 menu2[8]='<a href="' + ROOT + '/CheckStatus/Warrants.htm" class="LhnMenuItem"><div class="LhnMenu">Warrants</div></a>'

//Contents for menu 3 [Find]
var menu3=new Array()
 menu3[0]='<a href="' + ROOT + '/information/arra.htm" class="LhnMenuItem"><div class="LhnMenu">American Recovery and Reinvestment Act (ARRA) </div></a>'
 menu3[1]='<a href="' + ROOT + 'http://www.lvalert.com/" class="LhnMenuItem"><div class="LhnMenu">Emergency Information</div></a>'
 menu3[2]='<a href="' + ROOT + '/Publications/maps.asp" class="LhnMenuItem"><div class="LhnMenu">Maps</div></a>'
 menu3[3]='<a href="' + ROOT + '/Find/meetings.asp" class="LhnMenuItem"><div class="LhnMenu">Meetings & Agendas</div></a>'
 menu3[4]='<a href="' + ROOT + '/Find/find_council.htm" class="LhnMenuItem"><div class="LhnMenu">My Councilperson or Ward</div></a>'
 menu3[5]='<a href="' + ROOT + '/Find/association.htm" class="LhnMenuItem"><div class="LhnMenu">My Neighborhood Association</div></a>'
 menu3[6]='<a href="' + ROOT + '/Find/parks_facilities.asp" class="LhnMenuItem"><div class="LhnMenu">Parks and Facilities</div></a>'
 menu3[7]='<a href="' + ROOT + '/Find/pets.htm" class="LhnMenuItem"><div class="LhnMenu">Pets (Missing or Adoptable)</div></a>'
 menu3[8]='<a href="' + ROOT + '/Find/programs.asp" class="LhnMenuItem"><div class="LhnMenu">Programs</div></a>'
 menu3[9]='<a href="' + ROOT + '/Find/recreation.htm" class="LhnMenuItem"><div class="LhnMenu">Recreational and Cultural Activities</div></a>'
 menu3[10]='<a href="' + ROOT + '/Find/survey_benchmark.htm" class="LhnMenuItem"><div class="LhnMenu">Survey Benchmarks</div></a>'
 menu3[11]='<a href="' + ROOT + '/Find/findmore.asp" class="LhnMenuItem"><div class="LhnMenu">More...</div></a>'

//Contents for menu 4 [Pay]
var menu4=new Array()
 menu4[0]='<a href="' + ROOT + '/Pay/BusinessLicense_Bill.htm" class="LhnMenuItem"><div class="LhnMenu">Business License</div></a>'
 menu4[1]='<a href="' + ROOT + '/Pay/petlicense.htm" class="LhnMenuItem"><div class="LhnMenu">Pet License</div></a>'
 menu4[2]='<a href="http://trweb.co.clark.nv.us/county/treas/content.htm" target="_blank" class="LhnMenuItem"><div class="LhnMenu">Property Taxes<img src="' + ROOT + '/images/icons/icoExternalLink.gif" alt="External Link" width="20" height="14" hspace="0" vspace="0" border="0"></div></a>'
 menu4[3]='<a href="' + ROOT + '/Pay/sewer_bills.htm" class="LhnMenuItem"><div class="LhnMenu">Sewer Bill</div></a>'
 menu4[4]='<a href="' + ROOT + '/Pay/pay_tickets.htm" class="LhnMenuItem"><div class="LhnMenu">Tickets or Citations</div></a>'

//Contents for menu 5 [Register or Subscribe]
var menu5=new Array()
 menu5[0]='<a href="' + ROOT + '/Register/enroll_classes.htm" class="LhnMenuItem"><div class="LhnMenu">Activities or Classes</div></a>'
 menu5[1]='<a href="' + ROOT + '/Register/city_news.htm" class="LhnMenuItem"><div class="LhnMenu">City Newsletters</div></a>'
 menu5[2]='<a href="' + ROOT + '/information/5216.htm" class="LhnMenuItem"><div class="LhnMenu">Corporate Challenge</div></a>'
 menu5[3]='<a href="http://www.nevadadmv.state.nv.us/nvreg.htm" target="_blank" class="LhnMenuItem"><div class="LhnMenu">Motor Vehicle (DMV)<img src="' + ROOT + '/images/icons/icoExternalLink.gif" alt="External Link" width="20" height="14" hspace="0" vspace="0" border="0"></div></a>'
 menu5[4]='<a href="' + ROOT + '/Register/traffic_school.htm" class="LhnMenuItem"><div class="LhnMenu">Traffic School</div></a>'
 menu5[5]='<a href="http://www.accessclarkcounty.com/depts/election/english/Pages/home.aspx" target="_blank" class="LhnMenuItem"><div class="LhnMenu">Vote <img src="' + ROOT + '/images/icons/icoExternalLink.gif" alt="External Link" width="20" height="14" hspace="0" vspace="0" border="0"></div></a>'

//Contents for menu 6 [Relocate]
var menu6=new Array()
 menu6[0]='<a href="' + ROOT + '/Relocate/relocate_business.asp" class="LhnMenuItem"><div class="LhnMenu">Business</div></a>'
 menu6[1]='<a href="' + ROOT + '/Relocate/family.asp" class="LhnMenuItem"><div class="LhnMenu">Family</div></a>'

//Contents for menu 7 [Request Help With]
var menu7=new Array()
 menu7[0]='<a href="' + ROOT + '/RequestHelp/animal_control.htm" class="LhnMenuItem"><div class="LhnMenu">Animal Control</div></a>'
 menu7[1]='<a href="' + ROOT + '/RequestHelp/business_licensing.htm" class="LhnMenuItem"><div class="LhnMenu">Business Licensing</div></a>'
 menu7[2]='<a href="' + ROOT + '/RequestHelp/neighbor_issues.htm" class="LhnMenuItem"><div class="LhnMenu">Neighborhood Problems</div></a>'
 menu7[3]='<a href="' + ROOT + '/RequestHelp/parking_enforce.htm" class="LhnMenuItem"><div class="LhnMenu">Parking Enforcement</div></a>'
 menu7[4]='<a href="' + ROOT + '/RequestHelp/6634.htm" class="LhnMenuItem"><div class="LhnMenu">Sewer Billing</div></a>'
 menu7[5]='<a href="' + ROOT + '/RequestHelp/street_sewer.htm" class="LhnMenuItem"><div class="LhnMenu">Street or Sewer Services</div></a>'
 menu7[6]='<a href="' + ROOT + '/RequestHelp/traffic.htm" class="LhnMenuItem"><div class="LhnMenu">Traffic Control</div></a>'
 menu7[7]='<a href="' + ROOT + '/RequestHelp/signals_signs.htm" class="LhnMenuItem"><div class="LhnMenu">Traffic Signals, Signs, Lighting & Pavement Markings</div></a>'

//Contents for menu 8 [Schedule]
var menu8=new Array()
 menu8[0]='<a href="' + ROOT + '/Schedule/Speakers.htm " class="LhnMenuItem"><div class="LhnMenu">City Speakers</div></a>'
 menu8[1]='<a href="' + ROOT + '/Schedule/inspections.htm" class="LhnMenuItem"><div class="LhnMenu">Inspections</div></a>'

//Contents for menu 9 [Watch]
var menu9=new Array()
 menu9[0]='<a href="' + ROOT + '/Find/meetings.asp" class="LhnMenuItem"><div class="LhnMenu">City Meetings</div></a>'
 menu9[1]='<a href="' + ROOT + '/Watch/city_videos.asp" class="LhnMenuItem"><div class="LhnMenu">City Videos</div></a>'
 menu9[2]='<a href="' + ROOT + '/information/kclv.htm" class="LhnMenuItem"><div class="LhnMenu">KCLV Channel 2</div></a>'
 menu9[3]='<a href="' + ROOT + '/Watch/traffic_cam.htm" class="LhnMenuItem"><div class="LhnMenu">Traffic Cameras</div></a>'

//-------------------
//Contents for ABOUT US Menu Items
//-------------------
//Contents for menu 10 [City Government]
var menu10=new Array()
 menu10[0]='<a href="' + ROOT + '/Government/mayor_oscar_b_goodman.htm" class="LhnMenuItem"><div class="LhnMenu">Mayor</div></a>'
 menu10[1]='<a href="' + ROOT + '/Government/council.htm" class="LhnMenuItem"><div class="LhnMenu">City Council</div></a>'
 menu10[2]='<a href="' + ROOT + '/Government/municipal_judges.htm" class="LhnMenuItem"><div class="LhnMenu">Municipal Judges</div></a>'
 menu10[3]='<a href="' + ROOT + '/Government/city_manager.htm" class="LhnMenuItem"><div class="LhnMenu">City Manager</div></a>'
 menu10[4]='<a href="' + ROOT + '/Government/departments.htm" class="LhnMenuItem"><div class="LhnMenu">Departments</div></a>'
 menu10[5]='<a href="' + ROOT + '/Government/boards.asp" class="LhnMenuItem"><div class="LhnMenu">Boards and Commissions</div></a>'
 menu10[6]='<a href="' + ROOT + '/Government/city_govt.htm" class="LhnMenuItem"><div class="LhnMenu">Overview</div></a>'
 
//Contents for menu 11 [Elections]
var menu11=new Array()
 menu11[0]=''
 menu11[1]='<a href="' + ROOT + '/Elections/Election_2009.asp" class="LhnMenuItem"><div class="LhnMenu">Election 2009</div></a>'
 menu11[2]='<a href="' + ROOT + '/Elections/elections_archive.asp" class="LhnMenuItem"><div class="LhnMenu">Archives and Reports</div></a>'
 menu11[3]='<a href="' + ROOT + '/elections_history.htm" class="LhnMenuItem"><div class="LhnMenu">History</div></a>'

//Contents for menu 12 [Facts and Statistics]
var menu12=new Array()
 menu12[0]='<a href="' + ROOT + '/FactsStatistics/census_data.htm" class="LhnMenuItem"><div class="LhnMenu">Census Data</div></a>'
 menu12[1]='<a href="' + ROOT + '/FactsStatistics/demographics.htm" class="LhnMenuItem"><div class="LhnMenu">Demographics</div></a>'
 menu12[2]='<a href="' + ROOT + '/FactsStatistics/funfacts.htm" class="LhnMenuItem"><div class="LhnMenu">Fun Facts</div></a>'
 menu12[3]='<a href="' + ROOT + '/FactsStatistics/historic_sites.asp" class="LhnMenuItem"><div class="LhnMenu">Historic Locations</div></a>'
 menu12[4]='<a href="' + ROOT + '/FactsStatistics/history.htm" class="LhnMenuItem"><div class="LhnMenu">History</div></a>'

//Contents for menu 13 [Laws and Codes]
var menu13=new Array()
 menu13[0]='<a href="' + ROOT + '/LawsCodes/building_code.htm" class="LhnMenuItem"><div class="LhnMenu">Building Code</div></a>'
 menu13[1]='<a href="' + ROOT + '/LawsCodes/fire_code.asp" class="LhnMenuItem"><div class="LhnMenu">Fire Code</div></a>'
 menu13[2]='<a href="http://www.municode.com/Resources/gateway.asp?pid=16257&sid=28" class="LhnMenuItem" target="_blank"><div class="LhnMenu">Municipal Code<img src="' + ROOT + '/images/icons/icoExternalLink.gif" alt="External Link" width="20" height="14" hspace="0" vspace="0" border="0"></div></a>'
 menu13[3]='<a href="' + ROOT + '/LawsCodes/zoning_laws.asp" class="LhnMenuItem"><div class="LhnMenu">Zoning and Subdivision Laws</div></a>'
 
//Contents for menu 14 [Publications]
var menu14=new Array()
 menu14[0]='<a href="' + ROOT + '/Publications/brochures.asp" class="LhnMenuItem"><div class="LhnMenu">Brochures</div></a>'
 menu14[1]='<a href="' + ROOT + '/Publications/forms.asp" class="LhnMenuItem"><div class="LhnMenu">Forms</div></a>'
 menu14[2]='<a href="' + ROOT + '/Publications/guides.asp" class="LhnMenuItem"><div class="LhnMenu">Instructions and Guides</div></a>'
 menu14[3]='<a href="' + ROOT + '/Publications/maps.asp" class="LhnMenuItem"><div class="LhnMenu">Maps</div></a>'
 menu14[4]='<a href="' + ROOT + '/Publications/news_releases.htm" class="LhnMenuItem"><div class="LhnMenu">News Releases</div></a>'
 menu14[5]='<a href="' + ROOT + '/Publications/newsletters.asp" class="LhnMenuItem"><div class="LhnMenu">Newsletters</div></a>'
 menu14[6]='<a href="' + ROOT + '/Publications/plans.asp" class="LhnMenuItem"><div class="LhnMenu">Plans</div></a>'
 menu14[7]='<a href="' + ROOT + '/Publications/reports.asp" class="LhnMenuItem"><div class="LhnMenu">Reports</div></a>'

//------------
// Functions
//------------
var ie4=document.all
var ns6=document.getElementById&&!document.all
function DivSetVisible(state) { 
var DivRef = document.getElementById('dropmenudiv'); 
var IfrRef = document.getElementById('DivShim'); 
if(state) 
{ 
DivRef.style.display = "block"; 
IfrRef.style.width = DivRef.offsetWidth; 
IfrRef.style.height = DivRef.offsetHeight; 
IfrRef.style.top = DivRef.style.top; 
IfrRef.style.left = DivRef.style.left; 
IfrRef.style.zIndex = DivRef.style.zIndex - 1; 
IfrRef.style.display = "block"; 
} 
else { 
DivRef.style.display = "none"; 
IfrRef.style.display = "none"; 
} 
} 

if (ie4||ns6) {
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
document.write('<iframe id="DivShim" src="javascript:false;" scrolling=no frameborder=0 style="position:absolute; top:0px; left:0px; display:none;"></iframe>')
}
function getposOffset(what, offsettype){
 var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
 var parentEl=what.offsetParent;
 while (parentEl!=null){
  totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
  parentEl=parentEl.offsetParent;
  }
 return totaloffset;
 }
function showhide(obj, e, visible, hidden, menuwidth){
 if (ie4||ns6)
  dropmenuobj.style.left=dropmenuobj.style.top=-500
 if (menuwidth!=""){
  dropmenuobj.widthobj=dropmenuobj.style
  dropmenuobj.widthobj.width=menuwidth
  }
 if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
  obj.visibility=visible
 else if (e.type=="click")
  obj.visibility=hidden
 }
function iecompattest(){
 return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
 }
function clearbrowseredge(obj, whichedge){
var edgeoffset=0
 if (whichedge=="rightedge"){
  var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
  dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
 if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
  edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
  }
 else{
  var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
  dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
 if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
  edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
  }
 return edgeoffset
 }
function populatemenu(what){
 if (ie4||ns6)
  dropmenuobj.innerHTML=what.join("")
}
function dropdownmenu(obj, e, menucontents, menuwidth){
 if (window.event) event.cancelBubble=true
 else if (e.stopPropagation) e.stopPropagation()
  clearhidemenu()
  dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
  populatemenu(menucontents)
 if (ie4||ns6){
  showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth, MoveMenuLeft, MoveMenuUp)
  dropmenuobj.x=getposOffset(obj, "left")
  dropmenuobj.y=getposOffset(obj, "top")
  dropmenuobj.style.left=MoveMenuLeft // dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
  dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight-MoveMenuUp+"px"
  dropmenuobj.style.zIndex=MenuIndex  
  }
 
 return clickreturnvalue()
 }
function clickreturnvalue(){
 if (ie4||ns6) return false
 else return true
 }
function contains_ns6(a, b) {
 while (b.parentNode)
  if ((b = b.parentNode) == a)
  return true;
  return false;
 }
function dynamichide(e){
 if (ie4&&!dropmenuobj.contains(e.toElement))
  delayhidemenu()
 else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
  delayhidemenu()
 }
function hidemenu(e){
 if (typeof dropmenuobj!="undefined"){
 if (ie4||ns6)
  dropmenuobj.style.visibility="hidden"
  DivRef.style.display = "none"; 
IfrRef.style.display = "none"; 
  }
 }
function delayhidemenu(){
 if (ie4||ns6)
  delayhide=setTimeout("hidemenu()",disappeardelay)
  
 }
function clearhidemenu(){
 if (typeof delayhide!="undefined")
  clearTimeout(delayhide)
 //not sure what this was supposed to do...there is no point to clicking on the menu,
 //only submenus, so no reason to process a click on the menu  in any way
 
 //if (hidemenu_onclick=="yes")
 // document.onclick=hidemenu
 }
// -->