﻿<!--

// 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 Show Me ... Menu Items
//-------------------
//Contents for menu 1 [NHJTCA]
var menu1=new Array()
 menu1[0]='<a href="' + ROOT + '/mission.html" class="LhnMenuItem"><div class="LhnMenu">Mission Statement</div></div></a>'
 menu1[1]='<a href="' + ROOT + '/purpose.html" class="LhnMenuItem"><div class="LhnMenu">Purpose</div></a>'
 menu1[2]='<a href="' + ROOT + '/officers.html" class="LhnMenuItem"><div class="LhnMenu">Officers</div></a>'
 menu1[3]='<a href="' + ROOT + '/Handbook2005-FINAL.doc" class="LhnMenuItem"><div class="LhnMenu">Official Handbook</div></a>'
 
  
// Contents for menu 2 [Contest Results]
var menu2=new Array()
 menu2[0]='<a href="' + ROOT + '/contestresults.html" class="LhnMenuItem"><div class="LhnMenu">Links to Documents</div></a>'
 
//Contents for menu 3 [Upcoming Contests]
var menu3=new Array()
 menu3[0]='<a href="' + ROOT + '/upcomingcontests.html" class="LhnMenuItem"><div class="LhnMenu">Links to Event Information</div></a>'
 
//Contents for menu 4 [Clinics and Camps]
var menu4=new Array()
 menu4[0]='<a href="' + ROOT + '/clinicsandcamps.html" class="LhnMenuItem"><div class="LhnMenu">Links to Event Information</div></a>'
 
//Contents for menu 5 [References]
var menu5=new Array()
 menu5[0]='<a href="' + ROOT + '/references.html" class="LhnMenuItem"><div class="LhnMenu">Links to Documents</div></a>'
 
//Contents for menu 6 [Videos/DVD Sales]
var menu6=new Array()
 menu6[0]='<a href="' + ROOT + '/contentsales.html" class="LhnMenuItem"><div class="LhnMenu">Order Form</div></a>'

//Contents for menu 7 [Join Now]
var menu7=new Array()
 menu7[0]='<a href="' + ROOT + '/register.asp" class="LhnMenuItem"><div class="LhnMenu">Register with NHJTCA</div></a>'

//Contents for menu 8 [Log Into Members Area]
var menu8=new Array()
 menu8[0]='<a href="' + ROOT + '/login.asp" class="LhnMenuItem"><div class="LhnMenu">For Registered Users</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/537.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.asp" 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]=''
 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.ordlink.com/codes/lasvegas/index.htm" 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
 }
// -->