var mainStyle =
{
    borderWidth:0,
    borderColor:"",
    backgroundColor:[ "#FFFFFF", "#FFFFFF" ],
    backgroundClass:[ "mainMenuOn", "mainMenuOver" ],
    size:[ 55, 105 ],
    itemoff:[ 0, '+previousItem+0px' ]
};
var subLeftStyle =
{
    border:1,
    borderColor:"#2163FE",
    borders:[1,1,0,1],
    backgroundClass:[ "subMenuOn", "subMenuOver" ],
    size:[ 55, 150 ]
};
var subRightStyle =
{
    border:1,
    borderColor:"#2163FE",
    borders:[0,1,1,1],
    backgroundClass:[ "subMenuOn", "subMenuOver" ],
    size:[ 55, 150 ]
};
var subMiddleStyle =
{
    border:1,
    borderColor:"#2163FE",
    borders:[0,1,0,1],
    backgroundClass:[ "subMenuOn", "subMenuOver" ],
    size:[ 55, 150 ]
};

var subTwoTopStyle =
{
	border:1,
    borders:[1,1,1,0],
    borderColor:"#0142D8",
    shadow:0,
    backgroundClass:[ "subMenuTwoOn", "subMenuTwoOver" ],
    backgroundColor:[ "#DDE8FF", "#2163FE" ]
};
var subTwoMiddleStyle =
{
	border:1,
    borders:[1,0,1,0],
    shadow:0,
    borderColor:"#0142D8",
    shadow:0,
    backgroundClass:[ "subMenuTwoOn", "subMenuTwoOver" ],
    backgroundColor:[ "#DDE8FF", "#2163FE" ]
};
var subTwoBottomStyle =
{
	border:1,
	// borders: left top right bottom
    borders:[1,0,1,1],
    shadow:0,
    borderColor:"#0142D8",
    shadow:0,
    backgroundClass:[ "subMenuTwoOn", "subMenuTwoOver" ],
    backgroundColor:[ "#DDE8FF", "#2163FE" ]
};

var color2 = {"border":"#0036A8"};
var css2 = {ON:"dropMenu", OVER:"dropMenuOver"};
var STYLE_V_FIRST = {"border":1, "borders":[1,1,1,0], "shadow":0, "color":color2, "css":css2};
var STYLE_V_MIDDLE = {"border":1, "borders":[1,0,1,0], "shadow":0, "color":color2, "css":css2};
var STYLE_V_LAST = {"border":1, "borders":[1,0,1,1], "shadow":0, "color":color2, "css":css2};


// measure length of title and add 37 to get size of each submenu title
var MENU_ITEMS = [
    {pos:'relative', style:mainStyle, blankImage:'../images/b.gif'},
    {code:"Who",
        sub:[
			{"leveloff":[56,10], style:subMiddleStyle},
            {code:"President's Words", url:"../who/presidents_words.php", format:{size:[35,153]}, style:subLeftStyle},
            {code:"Officers", url:"../who/kla_officers.php", format:{size:[35,86]}},
            {code:"Directors", url:"../who/kla_directors.php", format:{size:[35,95]}},
			{code:"Committees", url:"../who/kla_committees.php", format:{size:[35,114]}},
            {code:"Membership Profile", url:"../who/members_profile.php", format:{size:[35,154]}},
            {code:"Business Members", url:"../who/business_members.php", format:{size:[35,160]}, style:subRightStyle}
        ]
    },
    {code:"What",
        sub:[
			 // leveloff (vert,horiz) for submenu from main
            {"leveloff":[56,-109], style:subMiddleStyle},
            {code:"About KLA", url:"../what/about_kla.php", format:{size:[35,102]}, style:subLeftStyle},
            {code:"Announcements", url:"../what/announcements.php", format:{size:[35,138]}},
            {code:"Laws & Regulations", url:"#", format:{size:[35,160]},
				sub:[
					{"itemoff":[24,0], "leveloff":[36,15], "size":[24,225], "style":STYLE_V_MIDDLE},
					{code:"Boating Regulations", url:"../what/pdf/boating_regulations_2009.pdf", "format":{"style":STYLE_V_FIRST}},
					{code:"Navigation Law Amendments", url:"../what/laws_navigation_amendments.php"},
					{code:"Docking & Mooring", url:"../what/laws_docking_mooring.php"},
					{code:"Fishing Regulations", url:"../what/fishing_regulations.php"},
					{code:"Outlet - Special Release", url:"../what/keuka_outlet_special_water_release_policy.php"},
					{code:"NYS Drinking Water Program", url:"../what/nys_drinking_water_program.php", "format":{"style":STYLE_V_LAST}},
				]
			},
            {code:"Polls / Surveys", url:"../kla_poll.php", format:{size:[35,127]}},
            {code:"Local Resources", url:"../what/resources.php", format:{size:[35,140]}},
            {code:"Newsletters", url:"../what/newsletters.php", format:{size:[35,106]}, style:subRightStyle}
        ]
    },
    {code:"Why",
        sub:[
            {"leveloff":[56,-197], style:subMiddleStyle},
            {code:"Mission Statement", url:"../why/mission_statement.php", format:{size:[35,154]}, style:subLeftStyle},
 			{code:"Areas of Focus", url:"../why/statement_of_purpose.php", format:{size:[35,154]}},
            {code:"Become A Member", url:"../become_member.php", format:{size:[35,250]}, style:subRightStyle}
        ]
    },
    {code:"Where",
        sub:[
            {"leveloff":[56,-22], style:subMiddleStyle},
			{code:"Keuka Lake Story", url:"../education/klb_keuka_lake_story.php", format:{size:[35,145]}, style:subLeftStyle},
            {code:"Maps", url:"#", format:{size:[35,71]},
				sub:[
					{"itemoff":[24,0], "leveloff":[36,0], "size":[24,226], "style":STYLE_V_MIDDLE},
					{code:"Regional Map", url:"../where_maps/regional_map.php", "format":{"style":STYLE_V_FIRST}},
					{code:"Keuka Lake Map", url:"../where_maps/keuka_lake_map.php"},
					{code:"Lake Depth Map", url:"../where_maps/keuka_lake_depth.php"},
					{code:"Watershed Municipal Boundaries", url:"../where_maps/keuka_lake_watershed_municipal_boundaries.php"},
					{code:"Watershed Tributaries", url:"../where_maps/keuka_lake_watershed_tributaries.php", "format":{"style":STYLE_V_LAST}},
				]
			},
            {code:"Slideshows", url:"#", format:{size:[35,107]},
				sub:[
					{"itemoff":[24,0], "leveloff":[36,5], "size":[24,130], "style":STYLE_V_MIDDLE},
					{code:"Calendar Photos", url:"../slideshows/calendars.php", "format":{"style":STYLE_V_FIRST}},
					{code:"Spring Photos", url:"../slideshows/seasonal.php?id=1"},
					{code:"Summer Photos", url:"../slideshows/seasonal.php?id=2"},
					{code:"Fall Photos", url:"../slideshows/seasonal.php?id=3"},
					{code:"Winter Photos", url:"../slideshows/seasonal.php?id=4"},
					{code:"All Season Photos", url:"../slideshows/seasonal.php?id=5", "format":{"style":STYLE_V_LAST}},
				]
			},
            {code:"Photo Contest", url:"../photo_contest.php", format:{size:[35,135]}, style:subRightStyle}
        ]
    },
    {code:"How",
        sub:[
            {"leveloff":[56,-410], style:subMiddleStyle},
            {code:"Water Quality", url:"#", format:{size:[35,118]}, style:subLeftStyle,
				sub:[
					{"itemoff":[24,0], "leveloff":[36,5], "size":[24,190], "style":STYLE_V_MIDDLE},
					{code:"Wastewater Management", url:"#", "format":{"style":STYLE_V_FIRST},
						sub:[
							{"itemoff":[24,0], "leveloff":[3,191], "size":[24,257], "style":STYLE_V_MIDDLE},
								{code:"&middot;&nbsp;What is KWIC", url:"../how/wq_what_is_kwic.php", "format":{"style":STYLE_V_FIRST}},
								{code:"&middot;&nbsp;KWIC History", url:"../how/wq_kwic_history.php"},
								{code:"&middot;&nbsp;Wastewater Treatment - Inspections", url:"../how/treatment_systems_inspections.php"},
								{code:"&middot;&nbsp;Septic Systems: How they Work", url:"../education/klb_septic_systems.php", "format":{"style":STYLE_V_LAST}},
						]
					},
					{code:"Storm Water Management", url:"../education/klb_drainage_runoff.php"},
					{code:"Home Owner Practices", url:"#",
						sub:[
							{"itemoff":[24,0], "leveloff":[-12,191], "size":[24,215], "style":STYLE_V_MIDDLE},
								{code:"&middot;&nbsp;10 Things You Can Do", url:"../education/klb_ten_things.php", "format":{"style":STYLE_V_FIRST}},
								{code:"&middot;&nbsp;Landscaping and Gardening", url:"../education/klb_landscaping_gardening.php"},
								{code:"&middot;&nbsp;Household Chemicals", url:"../education/klb_household_chemicals.php"},
								{code:"&middot;&nbsp;Spring Cleaning and the Lake", url:"../how/wq_spring_cleaning_for_water_qaulity.php"},
								{code:"&middot;&nbsp;Wells and Water Supply", url:"../education/klb_water_supply.php"},
								{code:"&middot;&nbsp;Water Testing and Treatment", url:"../education/klb_water_testing.php", "format":{"style":STYLE_V_LAST}},
						]
					},
					{code:"Lake Monitoring", url:"../how/lake_monitoring.php"},
					{code:"Water Quality Monitoring", url:"../how/wq_lake_testing_monitoring.php", "format":{"style":STYLE_V_LAST}},
				]
			},
            {code:"Watershed Protection", url:"#", format:{size:[35,180]},
				sub:[
					{"itemoff":[24,0], "leveloff":[36,5], "size":[24,260], "style":STYLE_V_MIDDLE},
					{code:"What is a Watershed?", url:"../how/what_is_a_watershed.pdf", "format":{"style":STYLE_V_FIRST}},
					{code:"Watershed Managment", url:"../how/water_shed_managment.php"},
					{code:"Watershed Protection Plan", url:"#",
						sub:[
							{"itemoff":[24,0], "leveloff":[-12,261], "size":[24,215], "style":STYLE_V_MIDDLE},
								{code:"&middot;&nbsp;Watershed Managment Intro", url:"../how/wsm_introduction.php", "format":{"style":STYLE_V_FIRST}},
								{code:"&middot;&nbsp;Watershed Management Plan", url:"../how/wsm_watershed_management_plan.php"},
								{code:"&middot;&nbsp;Watershed Description", url:"../how/wsm_watershed_description.php"},
								{code:"&middot;&nbsp;Findings & Recommendations", url:"../how/wsm_findings.php", "format":{"style":STYLE_V_LAST}},
						]
					},
					{code:"Hydrofracking &amp; Waste Water Disposal", url:"#",
						sub:[
							{"itemoff":[24,0], "leveloff":[-12,261], "size":[24,215], "style":STYLE_V_MIDDLE},
								{code:"&middot;&nbsp;Marcellus Shale Drilling", url:"../how/hydrofracking/marcellus_shale.pdf", target:"_blank", "format":{"style":STYLE_V_FIRST}},
								{code:"&middot;&nbsp;Eric Massa Letter", url:"../how/hydrofracking/eric_massa_letter_11_30_09.pdf", target:"_blank"},
								{code:"&middot;&nbsp;Letter to DEC", url:"../how/hydrofracking/Letter_to_DEC.pdf", target:"_blank"},
								{code:"&middot;&nbsp;Senator Winner Response", url:"../how/hydrofracking/Senator_Winner_response.pdf", target:"_blank"},
								{code:"&middot;&nbsp;Pulteney Waste Water Well", url:"../how/hydrofracking/Pulteney_Injection_Well_Letter.pdf", target:"_blank"},
								{code:"&middot;&nbsp;Contacts - Hydrofracking", url:"../how/hydrofracking/Contacts_Hydrofracking_02_25_10.pdf", target:"_blank", "format":{"style":STYLE_V_LAST}},
						]
					},
					{code:"Land Use Action Plan", url:"../how/land_use_action_plan.php"},
					{code:"Watershed & Development", url:"#", "format":{"style":STYLE_V_LAST},
						sub:[
							{"itemoff":[24,0], "leveloff":[-12,261], "size":[24,75], "style":STYLE_V_MIDDLE},
							{code:"&middot;&nbsp;Part I", url:"../education/watershed_development_and_wildlife_I.pdf", "format":{"style":STYLE_V_FIRST}},
							{code:"&middot;&nbsp;Part II", url:"../education/watershed_development_and_wildlife_II.pdf"},
							{code:"&middot;&nbsp;Part III", url:"../education/watershed_development_and_wildlife_III.pdf"},
							{code:"&middot;&nbsp;Part IV", url:"../education/watershed_development_and_wildlife_IV.pdf", "format":{"style":STYLE_V_LAST}},
						]
					},
				]
			},
            {code:"Lake Level Management", url:"../how/keuka_lake_water_level.php", format:{size:[35,185]}},
            {code:"Navigation & Recreation", url:"#", format:{size:[35,195]},
				sub:[
					{"itemoff":[24,0], "leveloff":[36,24], "size":[24,150], "style":STYLE_V_MIDDLE},
					{code:"Committee Mission", url:"../how/navigation_recreation.php", "format":{"style":STYLE_V_FIRST}},
					{code:"Angler Diary Program", url:"../how/navigation_recreation_angler_diary_program.php"},
					{code:"Freshwater Sportfish", url:"../how/keuka_lake_fish.pdf", "format":{"style":STYLE_V_LAST}},
				]
			},
			{code:"Education", url:"#", format:{size:[35,95]},style:subRightStyle,
				sub:[
					{"itemoff":[24,0], "leveloff":[36,-139], "size":[24,205], "style":STYLE_V_MIDDLE},
					{code:"Aquatic Vegetation", url:"../education/aquatic_vegitation.php", "format":{"style":STYLE_V_FIRST}},
					{code:"Exotic Fish Virus", url:"../education/exotic_fish_virus.php"},
					{code:"Lake Foam", url:"../education/lake_foam.php"},
					{code:"Water Chestnut", url:"../education/waterchestnut_sea_grant_fact_sheet.pdf"},
					{code:"Scholarships", url:"../how/scholarship.php"},
					{code:"Critter Corner", url:"#",
						sub:[
							{"itemoff":[24,0], "leveloff":[-132,-176], "size":[24,175], "style":STYLE_V_MIDDLE},
							{code:"&middot;&nbsp;Acorns &amp; Critters", url:"../education/acorns_critters_12_09.pdf", "format":{"style":STYLE_V_FIRST}},
							{code:"&middot;&nbsp;Bats", url:"../education/cc_bats.php"},
							{code:"&middot;&nbsp;Bee", url:"../education/bee_buster-6-06.pdf"},
							{code:"&middot;&nbsp;Christmas Birds", url:"../education/christmas_bird_count-09-05.pdf"},
							{code:"&middot;&nbsp;Crayfish", url:"../education/cc_crayfish.php"},
							{code:"&middot;&nbsp;Deer", url:"../education/cc_oh_deer.php"},
							{code:"&middot;&nbsp;Fish Hawks", url:"../education/return_of_the_fish_hawks-9-04.pdf"},
							{code:"&middot;&nbsp;Gulls", url:"../education/solving_gull_problem-3-05.pdf"},
							{code:"&middot;&nbsp;Osprey", url:"../education/osprey-6-05.pdf"},
							{code:"&middot;&nbsp;Owls", url:"../education/owls_of_keuka_lake.pdf"},
							{code:"&middot;&nbsp;Rats, Mice &amp; Chipmunks", url:"../education/rats_mice_chipmunks.pdf"},
							{code:"&middot;&nbsp;Sea Gulls", url:"../education/sea-gulls.pdf"},
							{code:"&middot;&nbsp;Skunks", url:"../education/skunked-6-07.pdf"},
							{code:"&middot;&nbsp;Smelt", url:"../education/whither_the_smelt-3-06.pdf"},
							{code:"&middot;&nbsp;Snakes", url:"../education/cc_snakes.php"},
							{code:"&middot;&nbsp;Snowbirds", url:"../education/real_snowbirds-12-03.pdf"},
							{code:"&middot;&nbsp;Swallows", url:"../education/what_to_do_about_swallows-9-05.pdf"},
							{code:"&middot;&nbsp;Wildlife Mishaps", url:"../education/wildlife_mishaps-3-08.pdf"},
							{code:"&middot;&nbsp;Winter Temps", url:"../education/winter_temps.pdf", "format":{"style":STYLE_V_LAST}},
						]
					},
					{code:"Keuka Lake Book", url:"../education/keuka_lake_book.php",
						sub:[
							{"itemoff":[24,0], "leveloff":[-108,-201], "size":[24,200], "style":STYLE_V_MIDDLE},
							{code:"&middot;&nbsp;10 Things To Protect Lake", url:"../education/klb_ten_things.php", "format":{"style":STYLE_V_FIRST}},
							{code:"&middot;&nbsp;Introduction", url:"../education/klb_introduction.php"},
							{code:"&middot;&nbsp;Keuka Lake Story", url:"../education/klb_keuka_lake_story.php"},
							{code:"&middot;&nbsp;Water Supply", url:"../education/klb_water_supply.php"},
							{code:"&middot;&nbsp;Water Testing & Treatment", url:"../education/klb_water_testing.php"},
							{code:"&middot;&nbsp;Invasive Species", url:"../education/klb_invasive_species.php"},
							{code:"&middot;&nbsp;Septic Systems", url:"../education/klb_septic_systems.php"},
							{code:"&middot;&nbsp;Shoreline Development", url:"../education/klb_shoreline_development.php"},
							{code:"&middot;&nbsp;Drainage &amp; Runoff", url:"../education/klb_drainage_runoff.php"},
							{code:"&middot;&nbsp;Landscaping &amp; Gardening", url:"../education/klb_landscaping_gardening.php"},
							{code:"&middot;&nbsp;Household Chemicals", url:"../education/klb_household_chemicals.php"},					
							{code:"&middot;&nbsp;Recreation", url:"../education/klb_recreation.php", "format":{"style":STYLE_V_LAST}},
						]
					},
					{code:"Voting &amp; Dual Residency", url:"../education/voting_dual_residency.php", "format":{"style":STYLE_V_LAST}},
				]
			}
        ]
    },
];
 
var menu1 = new COOLjsMenuPRO("menu3", MENU_ITEMS);
menu1.initTop();
