 /********************************************************************************
* This script has been modified from its original version:   
*   Line ~ 53 - BaseHref depends on isHome variable.	
*   Line ~ 65 - Need special BaseHref + ImgHref notation to workaround code logic.
*   (c) Ger Versluis 2000 version 9.10 14 October 2002
*	You may use this script on non commercial sites.
*	For info write to menus@burmees.nl
*	You may remove all comments for faster loading
***********************************************************************************/
	var NoOffFirstLineMenus=7;			// Number of main menu  items
						// Colorvariables:
						// Color variables take HTML predefined color names or "#rrggbb" strings
						//For transparency make colors and border color ""
	var LowBgColor="#336699";			// Background color when mouse is not over
	var HighBgColor="#CCCCCC";			// Background color when mouse is over
	var FontLowColor="#EFEFEF";			// Font color when mouse is not over
	var FontHighColor="#003366";			// Font color when mouse is over
	var BorderColor="black";			// Border color
	var BorderWidthMain=1;			// Border width main items
	var BorderWidthSub=1;			// Border width sub items
 	var BorderBtwnMain=1;			// Border between elements main items 1 or 0
	var BorderBtwnSub=1;			// Border between elements sub items 1 or 0
	var FontFamily="Verdana, Arial, Helvetica, sans-serif";	// Font family menu items
	var FontSize=8;				// Font size menu items
	var FontBold=1;				// Bold menu items 1 or 0
	var FontItalic=0;				// Italic menu items 1 or 0
	var MenuTextCentered="left";		// Item text position left, center or right
	var MenuCentered="left";			// Menu horizontal position can be: left, center, right, justify,
						//  leftjustify, centerjustify or rightjustify. PartOfWindow determines part of window to use
	var MenuVerticalCentered="top";		// Menu vertical position top, middle,bottom or static
	var ChildOverlap=.2;			// horizontal overlap child/ parent
	var ChildVerticalOverlap=.2;			// vertical overlap child/ parent
	var StartTop=0;				// Menu offset x coordinate. If StartTop is between 0 and 1 StartTop is calculated as part of windowheight
	var StartLeft=0;				// Menu offset y coordinate. If StartLeft is between 0 and 1 StartLeft is calculated as part of windowheight
	var VerCorrect=0;				// Multiple frames y correction
	var HorCorrect=0;				// Multiple frames x correction
	var LeftPaddng=3;				// Left padding
	var TopPaddng=2;				// Top padding
	var FirstLineHorizontal=0;			// First level items layout horizontal 1 or 0
	var MenuFramesVertical=0;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var UnfoldDelay=500;			// delay before sub unfolds	
	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
	var FirstLineFrame="";			// Frame where first level appears
	var SecLineFrame="";			// Frame where sub levels appear
	var DocTargetFrame="";			// Frame where target documents appear
	var TargetLoc="MenuPos";				// span id for relative positioning
	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
	var BottomUp=0;				// enables/ disables Bottom up unfold 1 or 0
	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
	var ImgHref ="../";
	var BaseHref="../";				// BaseHref lets you specify the BaseHref directory for relative links. 
	if (typeof(isHome) != "undefined"){
		BaseHref = "";
		ImgHref = "";
	}
						// The script precedes your relative links with BaseHref
						// For instance: 
						// when your BaseHref= "http://www.MyDomain/" and a link in the menu is "subdir/MyFile.htm",
						// the script renders to: "http://www.MyDomain/subdir/MyFile.htm"
						// Can also be used when you use images in the textfields of the menu
						// "MenuX=new Array("<img src=\""+BaseHref+"MyImage\">"
						// For testing on your harddisk use syntax like: BaseHref="file:///C|/MyFiles/Homepage/"

	var Arrws=[BaseHref + ImgHref + "gif/interface/tri.gif",5,10,"",10,5,"",5,10,"",10,5];

						// Arrow source, width and height.
						// If arrow images are not needed keep source ""

	var MenuUsesFrames=0;			// MenuUsesFrames is only 0 when Main menu, submenus,
						// document targets and script are in the same frame.
						// In all other cases it must be 1

	var RememberStatus=0;			// RememberStatus: When set to 1, menu unfolds to the presetted menu item. 
						// When set to 2 only the relevant main item stays highligthed
						// The preset is done by setting a variable in the head section of the target document.
						// <head>
						//	<script type="text/javascript">var SetMenu="2_2_1";</script>
						// </head>
						// 2_2_1 represents the menu item Menu2_2_1=new Array(.......
	var PartOfWindow=.8;			// PartOfWindow: When MenuCentered is justify, sets part of window width to stretch to

						// Below some pretty useless effects, since only IE6+ supports them
						// I provided 3 effects: MenuSlide, MenuShadow and MenuOpacity
						// If you don't need MenuSlide just leave in the line var MenuSlide="";
						// delete the other MenuSlide statements
						// In general leave the MenuSlide you need in and delete the others.
						// Above is also valid for MenuShadow and MenuOpacity
						// You can also use other effects by specifying another filter for MenuShadow and MenuOpacity.
						// You can add more filters by concanating the strings
	var BuildOnDemand=0;			// 1/0 When set to 1 the sub menus are build when the parent is moused over
	var MenuSlide="";
//	var MenuSlide="progid:DXImageTransform.Microsoft.RevealTrans(duration=3, transition=19)";
//	var MenuSlide="progid:DXImageTransform.Microsoft.GradientWipe(duration=.5, wipeStyle=1)";

	var MenuShadow="";
//	var MenuShadow="progid:DXImageTransform.Microsoft.DropShadow(color=#888888, offX=2, offY=2, positive=1)";
//	var MenuShadow="progid:DXImageTransform.Microsoft.Shadow(color=#888888, direction=135, strength=3)";

	var MenuOpacity="";
//	var MenuOpacity="progid:DXImageTransform.Microsoft.Alpha(opacity=90)";

	function BeforeStart(){return}
	function AfterBuild(){return}
	function BeforeFirstOpen(){return}
	function AfterCloseAll(){return}

// Menu tree:
// MenuX=new Array("ItemText","Link","background image",number of sub elements,height,width,"bgcolor","bghighcolor",
//	"fontcolor","fonthighcolor","bordercolor","fontfamily",fontsize,fontbold,fontitalic,"textalign","statustext");
// Color and font variables defined in the menu tree take precedence over the global variables
// Fontsize, fontbold and fontitalic are ignored when set to -1.
// For rollover images ItemText format is:  "rollover?"+BaseHref+"Image1.jpg?"+BaseHref+"Image2.jpg" 

Menu1=new Array("Home",BaseHref + "home.html","",0,20,148,"","","","","","",-1,-1,-1,"","");

Menu2=new Array("About Us",BaseHref+"html/subcats/about.shtml","",9,20,144,"","","","","","",-1,-1,-1,"","");
	Menu2_1=new Array("About Us > Home",BaseHref+"html/subcats/about.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_2=new Array(" - Greetings from the Chair",BaseHref+"html/about/greeting.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_3=new Array(" - Agency Strategic Plan",BaseHref+"html/about/strategy.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_4=new Array(" - Contact DCP",BaseHref+"html/about/location.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_5=new Array(" - City Planning Commission",BaseHref+"html/about/plancom.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_6=new Array(" - Press Releases",BaseHref+"html/about/prarch.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_7=new Array(" - Employment Opportunities",BaseHref+"html/about/joblist.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_8=new Array(" - Language Access Plan",BaseHref+"html/about/language.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu2_9=new Array(" - DCP Site Map",BaseHref+"hometext.html#dcpsite","",0,20,210,"","","","","","",-1,-1,-1,"","");

Menu3=new Array("Zoning",BaseHref + "html/subcats/zoning.shtml","",6,20,144,"","","","","","",-1,-1,-1,"","");
	Menu3_1=new Array("Zoning > Home",BaseHref + "html/subcats/zoning.shtml","",0,20,180,"","","","","","",-1,-1,-1,"","");
	Menu3_2=new Array(" - About Zoning",BaseHref + "html/zone/zonehis.shtml","",0,20,180,"","","","","","",-1,-1,-1,"","");
	Menu3_3=new Array(" - Zoning Maps",BaseHref + "html/zone/zh_zmaptable.shtml","",4,20,180,"","","","","","",-1,-1,-1,"","");	
		Menu3_3_1=new Array(" - About the Maps",BaseHref + "html/zone/zh_readmap.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");	
		Menu3_3_2=new Array(" - Access the Maps",BaseHref + "html/zone/zh_zmaptable.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");	
		Menu3_3_3=new Array(" - Update Log",BaseHref + "html/zone/zmapupdates.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");	
		Menu3_3_4=new Array(" - (E) Designation FAQs",BaseHref + "html/env_review/e_designation_faqs.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");		
	Menu3_4=new Array(" - Zoning Text",BaseHref + "html/zone/zonetext.shtml","",3,20,180,"","","","","","",-1,-1,-1,"","");
		Menu3_4_1=new Array(" - About the Text",BaseHref + "html/zone/zh_abouttext.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
		Menu3_4_2=new Array(" - Access the Text",BaseHref + "html/zone/zonetext.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
		Menu3_4_3=new Array(" - Amendment Index",BaseHref + "html/zone/zonedate.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");	
	Menu3_5=new Array(" - Reference",BaseHref + "html/zone/zh_resdistricts.shtml","",4,20,180,"","","","","","",-1,-1,-1,"","");
		Menu3_5_1=new Array(" - Residence Districts",BaseHref + "html/zone/zh_resdistricts.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
		Menu3_5_2=new Array(" - Commercial Districts",BaseHref + "html/zone/zh_commdistricts.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
		Menu3_5_3=new Array(" - Manufacturing Districts",BaseHref + "html/zone/zh_manudistricts.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
		Menu3_5_4=new Array(" - Special Districts",BaseHref + "html/zone/zh_special_purp_dist.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu3_6=new Array(" - Zoning Glossary",BaseHref + "html/zone/glossary.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	
Menu4=new Array("Land Use Process",BaseHref + "html/subcats/landuse.shtml","",10,20,144,"","","","","","",-1,-1,-1,"","");
	Menu4_1=new Array("Land Use > Home",BaseHref + "html/subcats/landuse.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu4_2=new Array(" - Commission Meetings",BaseHref + "html/luproc/calbeg.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu4_3=new Array(" - Commission Reports",BaseHref + "html/app_cpc/redirect_cpc.html","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu4_4=new Array(" - Application Status Reports",BaseHref + "html/lu_apps/lu_app1.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu4_5=new Array(" - Community-Based Planning",BaseHref + "html/community_planning/index.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");	
    Menu4_6=new Array(" - Environmental Review",BaseHref + "html/env_review/env_review.shtml","",4,20,220,"","","","","","",-1,-1,-1,"","");	
		Menu4_6_1=new Array(" - Home",BaseHref + "html/env_review/env_review.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");	
		Menu4_6_2=new Array(" - EIS Documents",BaseHref + "html/env_review/eis.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");	
		Menu4_6_3=new Array(" - Scoping Documents",BaseHref + "html/env_review/scope.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");	
		Menu4_6_4=new Array(" - (E) Designation FAQs",BaseHref +"html/env_review/e_designation_faqs.shtml","",0,20,210,"","","","","","",-1,-1,-1,"","");
	Menu4_7=new Array(" - Land Use Review Procedure",BaseHref + "html/luproc/ulpro.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu4_8=new Array(" - Land Use Review Forms",BaseHref + "html/luproc/ulurp.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu4_9=new Array(" - ULURP & CEQR Fees",BaseHref + "html/luproc/ulurpfee.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu4_10=new Array(" - Waterfront Program (WRP)",BaseHref + "html/wrp/wrp.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	
	
Menu5=new Array("Projects/Proposals",BaseHref + "html/subcats/studies.shtml","",6,20,144,"","","","","","",-1,-1,-1,"","");

// BRONX
	Menu5_1=new Array("Bronx",BaseHref + "html/subcats/bronx.shtml","",4,20,115,"","","","","","",-1,-1,-1,"","");
		Menu5_1_1=new Array("Lower Density Growth Management Area",BaseHref + "html/ldgma/index.shtml","",0,20,278,"","","","","","",-1,-1,-1,"","");
		Menu5_1_2=new Array("161st Street/River Avenue",BaseHref + "html/161st_river/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_1_3=new Array("Lower Concourse",BaseHref + "html/lower_concourse/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");		
		Menu5_1_4=new Array("More...",BaseHref + "html/subcats/bronx.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","")

// BROOKLYN			
	Menu5_2=new Array("Brooklyn",BaseHref + "html/subcats/brooklyn.shtml","",4,20,115,"","","","","","",-1,-1,-1,"","");
		Menu5_2_1=new Array("Carroll Gardens/Columbia Street",BaseHref + "html/carroll_columbia/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_2_2=new Array("Sunset Park",BaseHref + "html/sunset_park/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_2_3=new Array("Gowanus Canal Corridor",BaseHref + "html/gowanus/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");	
		Menu5_2_4=new Array("More...",BaseHref + "html/subcats/brooklyn.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");				
		

// MANHATTAN
	Menu5_3=new Array("Manhattan",BaseHref + "html/subcats/manhattan.shtml","",4,20,115,"","","","","","",-1,-1,-1,"","");
		Menu5_3_1=new Array("Hudson Yards Parking",BaseHref + "html/hudson_yards_parking/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","")
		Menu5_3_2=new Array("Fulton/Nassau Crossroads",BaseHref + "html/subcats/manhattan.shtml#crossroads","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_3_3=new Array("East River Waterfront",BaseHref + "html/erw/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_3_4=new Array("More...",BaseHref + "html/subcats/manhattan.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","")
		
		
// QUEENS		
	Menu5_4=new Array("Queens",BaseHref + "html/subcats/queens.shtml","",3,20,115,"","","","","","",-1,-1,-1,"","");
		Menu5_4_1=new Array("Astoria",BaseHref + "html/astoria/index.shtml","",0,20,245,"","","","","","",-1,-1,-1,"","");
		Menu5_4_2=new Array("Middle Village, Glendale & Maspeth",BaseHref + "html/mid_glen_maspeth/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_4_3=new Array("More...",BaseHref + "html/subcats/queens.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");

// STATEN ISLAND
Menu5_5=new Array("Staten Island",BaseHref + "html/subcats/statenisland.shtml","",3,20,115,"","","","","","",-1,-1,-1,"","");
		Menu5_5_1=new Array("West Shore",BaseHref + "html/west_shore/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_5_2=new Array("Fresh Kills Park",BaseHref + "html/fkl/fkl_index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu5_5_3=new Array("More...",BaseHref + "html/subcats/statenisland.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	
	
// CITYWIDE
	Menu5_6=new Array("Citywide",BaseHref + "html/subcats/citywide.shtml","",7,20,115,"","","","","","",-1,-1,-1,"","");		
				Menu5_6_1=new Array("Comprehensive Waterfront Plan",BaseHref + "html/cwp/index.shtml","",0,20,260,"","","","","","",-1,-1,-1,"","");
				Menu5_6_2=new Array("Public Space Design",BaseHref + "html/public_spaces/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
				Menu5_6_3=new Array("Residential Streetscape Preservation",BaseHref + "html/rsp/index.shtml","",0,20,260,"","","","","","",-1,-1,-1,"","");
				Menu5_6_4=new Array("FRESH Food Stores",BaseHref + "html/fresh/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
				Menu5_6_5=new Array("Privately Owned Public Spaces",BaseHref + "html/pops/pops.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
				Menu5_6_6=new Array("Green Initiatives",BaseHref + "html/green_initiatives/index.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		        Menu5_6_7=new Array("More...",BaseHref + "html/subcats/citywide.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");	

Menu6=new Array("Reference",BaseHref + "html/subcats/resources.shtml","",9,20,144,"","","","","","",-1,-1,-1,"","");
	Menu6_1=new Array("Reference > Home",BaseHref + "html/subcats/resources.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_2=new Array(" - Transportation Planning", BaseHref + "html/transportation/main.shtml","",5,20,230,"","","","","","",-1,-1,-1,"","");
		Menu6_2_1=new Array("Transportation > Home",BaseHref + "html/transportation/main.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu6_2_2=new Array("Bicycle Planning",BaseHref +"html/transportation/td_projectbicycle.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu6_2_3=new Array("Pedestrian Planning",BaseHref + "html/transportation/td_projectspedestrian.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu6_2_4=new Array("Roadway Planning",BaseHref + "html/transportation/td_projectsroadway.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
		Menu6_2_5=new Array("Parking Facilities",BaseHref + "html/parking/pidpindex.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_3=new Array(" - Population",BaseHref + "html/census/popdiv.shtml","",8,20,230,"","","","","","",-1,-1,-1,"","");		
	    Menu6_3_1=new Array("Population > Home",BaseHref + "html/census/popdiv.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	    Menu6_3_2=new Array("Population & Housing",BaseHref + "html/census/pop_housing_char.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	  Menu6_3_3=new Array("The Newest New Yorkers",BaseHref + "html/census/nny.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	  Menu6_3_4=new Array("Reports and Presentations",BaseHref + "html/census/demographic_studies.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");			
	  Menu6_3_5=new Array("Historical Information",BaseHref + "html/census/hist_pop_info.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");			
	  Menu6_3_6=new Array("Current Population Estimates",BaseHref + "html/census/popcur.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");			
	  Menu6_3_7=new Array("Projecting the Future",BaseHref + "html/census/projecting_future.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");			
	   Menu6_3_8=new Array("Census FactFinder",BaseHref + "html/app_pa/redirect_pa.html","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_4=new Array(" - Address Translator", BaseHref + "html/app_at/redirect_at.html","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_5=new Array(" - Census FactFinder", BaseHref + "html/app_pa/redirect_pa.html","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_6=new Array(" - Land Use Facts",BaseHref + "html/landusefacts/landusefactshome.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_7=new Array(" - District Profiles",BaseHref + "html/lucds/cdstart.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_8=new Array(" - City of Neighborhoods",BaseHref + "html/neighbor/neigh.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");
	Menu6_9=new Array(" - Socioeconomic & Housing",BaseHref + "html/resource/socio.shtml","",0,20,230,"","","","","","",-1,-1,-1,"","");	
	
	
Menu7=new Array("Products",BaseHref + "html/subcats/products.shtml","",4,20,144,"","","","","","",-1,-1,-1,"","");
	Menu7_1=new Array("Products > Home",BaseHref + "html/subcats/products.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu7_2=new Array(" - BYTES of the BIG APPLE",BaseHref + "html/bytes/applbyte.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu7_3=new Array(" - Publications",BaseHref + "html/pub/publist.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
	Menu7_4=new Array(" - Subscription Information",BaseHref + "html/products/subscribe.shtml","",0,20,220,"","","","","","",-1,-1,-1,"","");
