/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=7  //used to set how much space you want between top items. percentage or pixels. Igonored if menuPlacement
oCMenu.fromLeft=4  //Controls the left position of the menue. if menuplacement is used and rows=1 property ignored
oCMenu.fromTop=0   //Top position of the menu. It can be specified in percentage or in a pixel
oCMenu.rows=1  //In a row  -- 0 = in a column
oCMenu.menuPlacement="center" //0 = Beside each other - adding pxbetween  center right bottom bottomcenter
                                                             
oCMenu.offlineRoot="file:///D|/Inetpub/wwwroot/coolmenus/" //path to root directory where you have your files offline.
oCMenu.onlineRoot="http://www.norfolk.gov"  //should be the root of your web
oCMenu.resizeCheck=1 //will check for resize
oCMenu.wait=600 //how long script should wait before hiding the open menu items after mouse leaves
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Netscape 4 and Opera form work-around !! !! !! !! !!
if(bw.ns4 || bw.op5 || bw.op6){
  oCMenu.onshow="document.layers?document.layers.formLayer.visibility='hidden':document.getElementById('formDiv').style.visibility='hidden';"
  oCMenu.onhide="document.layers?document.layers.formLayer.visibility='visible':document.getElementById('formDiv').style.visibility='visible';"
}

//Background bar properties
oCMenu.useBar=1  //0 = no bar and 1 = we have a bar
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" //height of the background bar.  Set this to menu if you want same height as the menu
oCMenu.barClass="clBar"  //should be a CSS class that will be used for the background bar
oCMenu.barX=0  //left position of the bar.  Set this to menu if you want it be the same as the left position of menu
oCMenu.barY=0   //top position of the bar.  Set to menu if you want it be same as the top position of menu
oCMenu.barBorderX=0   //controls the horizontal border of the background bar.  Specified in pixels
oCMenu.barBorderY=0    //controls the vertical border for the background-bar.  Specified in pixels
oCMenu.barBorderClass=""   //should be a CSS class that will be the class for the background border

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width="9%"  //width of all the items on the current level. Can set for each individual menu item
oCMenu.level[0].height=16  //height of all the items on the current level
oCMenu.level[0].regClass="clLevel0"   //CSS class used for all items in the level
oCMenu.level[0].overClass="clLevel0over"    //CSS class mouse over
oCMenu.level[0].borderX=0  //horizontal border of the current level specified in pixels.  0 no horizontal border
oCMenu.level[0].borderY=0  //same as border x on applies to vertical borders.
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0 //with the align property.  if levels align property align then set to 20 then the element will appear 20 pixels more to the right
oCMenu.level[0].offsetY=0  //with align propert.  align=bottom 20 pixels from the bottom of the item mouseovered
oCMenu.level[0].rows=0  //0 = items beside eachother  1 = itmems beneath each other
oCMenu.level[0].arrow=0   //value must be an image file and must be specified with the full path
oCMenu.level[0].arrowWidth=0  //width of the arrow image
oCMenu.level[0].arrowHeight=0   //height of the arrow image
oCMenu.level[0].align="bottom"   //in co-operation with offsetX and offsetY.  controls alignment of the subitems


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=220
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1  //horizontal border of the current level specified in pixels.  0 no horizontal border
oCMenu.level[1].borderY=1  //with align propert.  align=bottom 20 pixels from the bottom of the item mouseovered
oCMenu.level[1].align="right"  //in co-operation with offsetX and offsetY.  controls alignment of the subitems
oCMenu.level[1].offsetX=0  //if levels align property align then set to 20 then the element will appear 20 pixels more to the right
oCMenu.level[1].offsetY=0  //with align propert.  align=bottom 20 pixels from the bottom of the item mouseovered
oCMenu.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=210
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0  //if levels align property align then set to 20 then the element will appear 20 pixels more to the right
oCMenu.level[2].offsetY=0  //with align propert.  align=bottom 20 pixels from the bottom of the item mouseovered
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
/*** HOME ***/
oCMenu.makeMenu('top9','','&nbsp;Home','/')

/*** RESIDENTS ***/
oCMenu.makeMenu('top0','','&nbsp;Residents','/Residents/')
	oCMenu.makeMenu('sub00','top0','Guide to Services','/Residents/guide.asp')
	oCMenu.makeMenu('sub01','top0','Neighborhood >>','/Neighborhoods/')
		oCMenu.makeMenu('sub011','sub01','Home','/Neighborhoods/','',160,0)
		oCMenu.makeMenu('sub012','sub01','Neighborhood Revitalization','/Neighborhoods/Revitalization.asp','',160,0)
		oCMenu.makeMenu('sub013','sub01','Community Outreach','/Neighborhoods/BCOhome.asp','',160,0)
		oCMenu.makeMenu('sub014','sub01','Neighborhood University','/Neighborhoods/NU.asp','',160,0)
		oCMenu.makeMenu('sub015','sub01','Norfolk Civic Leagues','/Neighborhoods/CivicLeagues.asp','',160,0)
	oCMenu.makeMenu('sub02','top0','Recreation >>','/rpos/')
		oCMenu.makeMenu('sub021','sub02','Home','/rpos/','',160,0)
		oCMenu.makeMenu('sub022','sub02','Recreation Centers','/rpos/Recreation_Centers.asp','',160,0)
		oCMenu.makeMenu('sub023','sub02','Beaches','/rpos/Beaches.asp','',160,0)
		oCMenu.makeMenu('sub024','sub02','Pools','/rpos/Pools.asp','',160,0)
		oCMenu.makeMenu('sub025','sub02','Parks','/rpos/parks.asp','',160,0)	
		oCMenu.makeMenu('sub026','sub02','Golf Courses','/rpos/Golf.asp','',160,0)		
		oCMenu.makeMenu('sub027','sub02','Boat Ramps','/rpos/BoatRamp.asp','',160,0)		
    oCMenu.makeMenu('sub03','top0','Public Safety >>','/')
	       oCMenu.makeMenu('sub031','sub03','Police','/Police/','',160,0)
	       oCMenu.makeMenu('sub032','sub03','Fire-Rescue','/NFR/','',160,0)
	       oCMenu.makeMenu('sub033','sub03','Sheriff','http://www.norfolksheriffsoffice.com','_blank',160,0)
	       oCMenu.makeMenu('sub034','sub03','Emergency Response','/Emergency/','',160,0)
	       oCMenu.makeMenu('sub035','sub03','Commonwealths Attorney','/Commatty/','',160,0)
		   oCMenu.makeMenu('sub036','sub03','Crime Line','http://www.888lockuup.com/','_blank',160,0)
	oCMenu.makeMenu('sub04','top0','Real Estate Assessments','/realestate/','')
        oCMenu.makeMenu('sub05','top0','Utilities','/utilities/','')
	oCMenu.makeMenu('sub06','top0','Garbage','/publicworks/waste.asp','')
	oCMenu.makeMenu('sub07','top0','Taxes >>','/Residents/','')
		   oCMenu.makeMenu('sub071','sub07','Tax Abatement Program','/Assessor/','',160,0)
	       oCMenu.makeMenu('sub072','sub07','Car & Personal Prop. Taxes','/Revenue/persprop/main.htm','',160,0)
	       oCMenu.makeMenu('sub073','sub07','Real Estate Tax Relief','/revenue/retxrelf/main.htm','',160,0)
	       oCMenu.makeMenu('sub074','sub07','State Income Tax','/Revenue/inctax/main.htm','',160,0)
	oCMenu.makeMenu('sub08','top0','Come Home to Norfolk','/Planning/comehome/','')
	oCMenu.makeMenu('sub09','top0','Consumer Affairs','http://www.vdacs.state.va.us/consumers/','_blank')
	oCMenu.makeMenu('sub010','top0','DowntownNorfolk.Org','http://www.downtownnorfolk.org/','_blank')
	//oCMenu.makeMenu('sub0101','top0','Telephone Numbers','/telephone/numbers.asp','_blank')

/*** VISITORS ***/
oCMenu.makeMenu('top1','','&nbsp;Visitors','/Visitors/')
	oCMenu.makeMenu('sub10','top1','Attractions >>','/')
		   /*** oCMenu.makeMenu('sub111','sub10','Attucks Theater','http://www.sevenvenues.com/default.asp?lnopt=11&sn1opt=1&sn2opt=1&sn3opt=1&month=8&year=2005&newsID=0','_blank',180,0) ***/
		   oCMenu.makeMenu('sub112','sub10','Battleship Wisconsin','http://www.nauticus.org/wisconsin.html','_blank',180,0)
		   oCMenu.makeMenu('sub113','sub10','Botanical Garden','http://www.norfolkbotanicalgarden.org/','_blank',180,0)
		   /*** oCMenu.makeMenu('sub114','sub10','Chrysler Hall','http://www.sevenvenues.com/default.asp?lnopt=7&sn1opt=1&sn2opt=1&sn3opt=1&month=8&year=2005&newsID=0','_blank',180,0) ***/
		   oCMenu.makeMenu('sub115','sub10','Chrysler Museum','http://www.chrysler.org/','_blank',180,0)
		   oCMenu.makeMenu('sub116','sub10','Cruise Ships','http://www.cruisenorfolk.org/','_blank',180,0)
		   oCMenu.makeMenu('sub117','sub10','Festevents','http://www.festeventsva.org/','_blank',180,0)
		   /*** oCMenu.makeMenu('sub118','sub10','Harbor Park','http://www.sevenvenues.com/default.asp?lnopt=8&sn1opt=1&sn2opt=1&sn3opt=1&month=8&year=2005&newsID=0','_blank',180,0) ***/
		   /*** oCMenu.makeMenu('sub119','sub10','Harrison Opera House','http://www.sevenvenues.com/default.asp?lnopt=9&sn1opt=1&sn2opt=1&sn3opt=1&month=8&year=2005&newsID=0','_blank',180,0) ***/
		   oCMenu.makeMenu('sub120','sub10','MacArthur Memorial','http://www.MacArthurMemorial.org/','_blank',180,0)
		   oCMenu.makeMenu('sub121','sub10','Nauticus','http://www.nauticus.org/','_blank',180,0)
		   /*** oCMenu.makeMenu('sub122','sub10','Norfolk Scope','http://www.sevenvenues.com/default.asp?lnopt=6&sn1opt=1&sn2opt=1&sn3opt=1&month=8&year=2005&newsID=0','_blank',180,0) ***/
		   oCMenu.makeMenu('sub123','sub10','Roper Performing Arts Center','http://www.tcc.edu/roper/index.htm','_blank',180,0)
		   oCMenu.makeMenu('sub124','sub10','The Selden Arcade','http://www.theselden.com/','_blank',180,0)
		   oCMenu.makeMenu('sub126','sub10','Virginia Zoo','http://www.virginiazoo.org/','_blank',180,0)
		   /*** oCMenu.makeMenu('sub127','sub10','Wells Theater','http://www.sevenvenues.com/default.asp?lnopt=10&sn1opt=1&sn2opt=1&sn3opt=1&month=8&year=2005&newsID=0','_blank',180,0) ***/		   		   
	oCMenu.makeMenu('sub11','top1','Tourism >>','http://www.norfolkcvb.com/index.html','_blank')
		   oCMenu.makeMenu('sub101','sub11','Arts','/Arts/','',180,0)
		   oCMenu.makeMenu('sub102','sub11','Lodging','http://www.norfolkcvb.com/visitors/accommodations.php','_blank',180,0)
	       oCMenu.makeMenu('sub103','sub11','Attractions','http://www.norfolkcvb.com/what-to-see/attractions.php','_blank',180,0)
	       oCMenu.makeMenu('sub104','sub11','Dining and Nightlife','http://www.norfolkcvb.com/what-to-see/dining.php','_blank',180,0)
	       oCMenu.makeMenu('sub105','sub11','Shopping','http://www.norfolkcvb.com/what-to-see/shopping.php','_blank',180,0)
	       oCMenu.makeMenu('sub106','sub11','Arts & Entertainment','http://www.norfolkcvb.com/what-to-see/arts.php','_blank',180,0)
	       oCMenu.makeMenu('sub107','sub11','Sports & Recreation','http://www.norfolkcvb.com/what-to-see/sports.php','_blank',180,0)		   
	oCMenu.makeMenu('sub12','top1','Come Home to Norfolk','/Planning/comehome/','')
	oCMenu.makeMenu('sub14','top1','Museums','/Visitors/museum.asp','')
	oCMenu.makeMenu('sub15','top1','Parking','/Parking/','')
	oCMenu.makeMenu('sub16','top1','Transportation >>','/')
		   oCMenu.makeMenu('sub161','sub16','HRT- Hampton Roads Transit','http://www.gohrt.com/','_blank',180,0)
		   oCMenu.makeMenu('sub162','sub16','NET- Norfolk Electric Transit','/Visitors/net.asp','',180,0)
	       oCMenu.makeMenu('sub163','sub16','Norfolk Airport','http://www.norfolkairport.com/','_blank',180,0)
		   oCMenu.makeMenu('sub164','sub16','Rental Car','http://www.norfolkairport.com/transportation/rentalcar.htm','_blank',180,0)
		   oCMenu.makeMenu('sub165','sub16','Taxi Cab','http://www.norfolkairport.com/transportation/taxicab.htm','_blank',180,0)
	       
	oCMenu.makeMenu('sub17','top1','All About Navy','https://cnic.navy.mil/norfolksta/index.htm','_blank')
	oCMenu.makeMenu('sub18','top1','About Norfolk','http://www.norfolk.gov/About/','')
	oCMenu.makeMenu('sub19','top1','Your757.com Every event, Every day','http://www.your757.com/','_blank')	

/*** BUSINESS ***/
oCMenu.makeMenu('top2','','&nbsp;Business','/Business/')
	oCMenu.makeMenu('sub21','top2','City Code','http://www.municode.com/resources/gateway.asp?pid=10121&sid=46','_blank')
	oCMenu.makeMenu('sub22','top2','Courts','/Courts/','')
	oCMenu.makeMenu('sub23','top2','Current Bids & RFPs','/Purchasing/bids.asp','')
	oCMenu.makeMenu('sub24','top2','Economic Development','http://www.norfolkdevelopment.com/','_blank')
	oCMenu.makeMenu('sub25','top2','Licenses & Taxes >>','/Business/','')
		   oCMenu.makeMenu('sub251','sub25','Admissions Tax','/Revenue/bustax/fiducial.htm','',180,0)
		   oCMenu.makeMenu('sub252','sub25','Business License','/Revenue/bustax/buslic.htm','',180,0)
	       oCMenu.makeMenu('sub253','sub25','Fiduciary Taxes','/Revenue/bustax/fiducial.htm','',180,0)
	       oCMenu.makeMenu('sub254','sub25','Report a Violation','/Revenue/taxcomp/violates.htm','',180,0)
	       oCMenu.makeMenu('sub255','sub25','Tangible Personal Prop. Tax','/Revenue/persprop/main.htm','',180,0)
	oCMenu.makeMenu('sub26','top2','Right of Way Information >>','http://www.norfolk.gov/publicworks/trans.asp','')
		   oCMenu.makeMenu('sub261','sub26','ROW Manual (PDF)','http://www.norfolk.gov/publicworks/Norfolk_ROW_ER_Manual_July_20021.pdf','_blank',180,0)
		   oCMenu.makeMenu('sub262','sub26','Permit Fees (PDF)','http://www.norfolk.gov/publicworks/PDFFiles/Row_fee_increase_05.pdf','_blank',180,0)

/*** CITY HALL ***/
oCMenu.makeMenu('top3','','&nbsp;City Hall','/City_Hall/')
	oCMenu.makeMenu('sub31','top3','City Council','/City_Hall/')
	oCMenu.makeMenu('sub32','top3','City Council Agenda','/council_members/CouncilAgenda/docket.htm','_blank')
              oCMenu.makeMenu('sub33','top3','City Council Brief','/City_Hall/council_brief.asp')
              oCMenu.makeMenu('sub34','top3','City Council Informal Agenda','/council_members/CouncilAgenda/informal agenda.htm','_blank')
	oCMenu.makeMenu('sub35','top3','City Council Minutes','/City_Hall/minutesCC.asp')	
	oCMenu.makeMenu('sub36','top3','City Council Schedule','/City_Hall/scheduleCC.asp')
    oCMenu.makeMenu('sub37','top3','City Manager&#39s Office','/City_Hall/RWilliams.asp')	
	oCMenu.makeMenu('sub38','top3','Mayor&#39s Office','http://www.norfolk.gov/mayor/','_blank')
    /*** oCMenu.makeMenu('sub40','top3','State of the City Address','/City_Hall/soc/2007.htm','_blank') ***/

/*** EDUCATION ***/
oCMenu.makeMenu('top4','','&nbsp;Education','/Education/')
	oCMenu.makeMenu('sub41','top4','Schools >>','/education/')
	       oCMenu.makeMenu('sub412','sub41','Public Schools','http://www.nps.k12.va.us/','_blank',180,0)	
	       oCMenu.makeMenu('sub411','sub41','Private Schools','/education/private_schools.asp','',180,0)
	       oCMenu.makeMenu('sub413','sub41','Advanced Learning','/education/colleges.asp','',180,0)
	       oCMenu.makeMenu('sub415','sub41','Hampton Roads School Zone','http://hamptonroads.com/schoolzone/','_blank',180,0)
	oCMenu.makeMenu('sub42','top4','Norfolk Public Library','http://www.npl.lib.va.us/','_blank')
	oCMenu.makeMenu('sub43','top4','NPL Catalog Search','http://catalog.norfolk.gov/web2/tramp2.exe/log_in?setting_key=english','_blank')
	oCMenu.makeMenu('sub44','top4','Local History','/education/history.asp')
	oCMenu.makeMenu('sub45','top4','Neighborhood University','/neighborhoods/NU.asp')

/*** NEWS ***/
oCMenu.makeMenu('top6','','&nbsp;News & TV','/News/Press/prlist.asp')
	oCMenu.makeMenu('sub64','top6','Press Release','/News/Press/prlist.asp')
	oCMenu.makeMenu('sub61','top6','Norfolks Neighborhood Network TV-48','/tv48/')
	oCMenu.makeMenu('sub66','top6','Civic Connection Newsletter','/civic_connect/')

/*** JOBS ***/
oCMenu.makeMenu('top5','','&nbsp;Jobs','http://agency.governmentjobs.com/norfolk/default.cfm','_blank')
	/***oCMenu.makeMenu('sub55','top5','Executive Employment Opportunities','/City_Hall/Executive_Employment_Opportunities.asp','')***/
	oCMenu.makeMenu('sub52','top5','Work In Norfolk','http://agency.governmentjobs.com/norfolk/default.cfm','_blank')
	oCMenu.makeMenu('sub56','top5','Volunteer Opportunities','/volunteer_opportunities/default.asp','')
	oCMenu.makeMenu('sub54','top5','Benefits','/Human_Resources/benefits.asp','')
	oCMenu.makeMenu('sub51','top5','Human Resources','/Human_Resources/','')

/*** AtoZ ***/
oCMenu.makeMenu('top7','','A to Z','/AtoZ/')

/*** SITE MAP ***/
//oCMenu.makeMenu('top10','','Site Map','/SiteMap/')

/*** STAFF ***/
oCMenu.makeMenu('top8','','&nbsp;Staff','/Staff/')

//Leave this line - it constructs the menu
oCMenu.construct()		