var mainStyle =
{
    borderWidth:0,
    borderColor:"",
    backgroundColor:[ "#FFFFFF", "#FFFFFF" ],
    backgroundClass:[ "mainMenuOn", "mainMenuOver" ],
    size:[ 66, 150 ],
    itemoff:[ 0, '+previousItem+0px' ]
};
var subStyle =
{
    borderWidth:0,
    borderColor:"",
    backgroundClass:[ "subMenuOn", "subMenuOver" ],
    size:[ 28, 150 ]
};
var subNoLink =
{
    borderWidth:0,
    borderColor:"",
    backgroundClass:[ "subMenuNoLinkOn", "subMenuNoLinkOver" ],
    size:[ 28, 150 ]
};

var subTwoTopStyle =
{
	border:1,
    borders:[1,1,1,0],
    borderColor:"#0036A8",
    shadow:0,
    backgroundClass:[ "subMenuTwoOn", "subMenuTwoOver" ],
    backgroundColor:[ "#FFFFFF", "#1057FE" ]
};
var subTwoMiddleStyle =
{
	border:1,
    borders:[1,0,1,0],
    shadow:0,
    borderColor:"#0036A8",
    shadow:0,
    backgroundClass:[ "subMenuTwoOn", "subMenuTwoOver" ],
    backgroundColor:[ "#FFFFFF", "#1057FE" ]
};
var subTwoBottomStyle =
{
	border:1,
    borders:[1,0,1,1],
    shadow:0,
    borderColor:"#0036A8",
    shadow:0,
    backgroundClass:[ "subMenuTwoOn", "subMenuTwoOver" ],
    backgroundColor:[ "#FFFFFF", "#1057FE" ]
};

var color2 = {"border":"#0036A8"};
var css2 = {ON:"subMenuTwoOnB", OVER:"subMenuTwoOverB"};
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};

// pull up menu
// printscreen
// measure each name
// add equal amount to each (e.g. 40px)
// then you will have even spacing
var MENU_ITEMS = [
    {pos:'relative', style:mainStyle, blankImage:'images/b.gif'},
    {code:"Who", 
        sub:[
			{"leveloff":[-30,-16], style:subStyle}, // leveloff of second menu (vert,horiz)
            {code:"President's Words", url:"who/presidents_words.php", format:{size:[28,156]}},
            {code:"Officers", url:"who/kla_officers.php", format:{size:[28,87]}},
            {code:"Directors", url:"who/kla_directors.php", format:{size:[28,96]}},
			{code:"Committees", url:"who/kla_committees.php", format:{size:[28,116]}},
            {code:"Membership Profile", url:"who/members_profile.php", format:{size:[28,159]}},
            {code:"Business Members", url:"who/business_members.php", format:{size:[28,157]}}
        ]
    },
    {code:"What",
        sub:[
			 // leveloff (vert,horiz) for submenu from main
            {"leveloff":[-30,-167], style:subStyle},
            {code:"About KLA", url:"what/about_kla.php", format:{size:[28,99]}},
			{code:"Announcements", url:"what/announcements.php", format:{size:[28,133]}},
            {code:"Laws & Regulations", url:"#", format:{size:[28,160]},
				sub:[
					{"itemoff":[24,0], "leveloff":[-144,5], "size":[24,225], "style":STYLE_V_MIDDLE}, // leveloff for third menu (vert,horiz)
					{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:[28,126]}},
            {code:"Local Resources", url:"what/resources.php", format:{size:[28,135]}},
			{code:"Newsletters", url:"what/newsletters.php", format:{size:[28,101]}}
        ]
    },
    {code:"Why",
        sub:[
            {"leveloff":[-30,-311], style:subStyle},
			{code:"Mission Statement", url:"why/mission_statement.php", format:{size:[28,155]}},
            {code:"Areas of Focus", url:"why/statement_of_purpose.php", format:{size:[28,155]}},
            {code:"Become A Member", url:"become_member.php", format:{size:[28,450]}}
        ]
    },
    {code:"Where",
        sub:[
            {"leveloff":[-30,-461], style:subStyle},
			{code:"Keuka Lake Association 142 Main Street, Penn Yan, NY &nbsp;ph. 866-369-3781", url:"#", format:{size:[28,470], style:subNoLink}},
            {code:"Maps", url:"#", format:{size:[28,62]},
				sub:[
					{"itemoff":[24,0], "leveloff":[-121,-27], "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:[28,100]},
				sub:[
					{"itemoff":[24,0], "leveloff":[-145,-7], "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:[28,125]}}
        ]
    },
    {code:"How",
        sub:[
            {"leveloff":[-30,-611], style:subStyle},
            {code:"Water Quality", url:"#", format:{size:[28,118]},
				sub:[
					{"itemoff":[24,0], "leveloff":[-120,5], "size":[24,190], "style":STYLE_V_MIDDLE},
					{code:"Wastewater Management", url:"#", "format":{"style":STYLE_V_FIRST},
						sub:[
							{"itemoff":[24,0], "leveloff":[-12,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":[-84,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:[28,170]},
				sub:[
					{"itemoff":[24,0], "leveloff":[-144,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":[0,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":[0,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":[-36,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:[28,185]}},
            {code:"Navigation & Recreation", url:"#", format:{size:[28,195]},
				sub:[
					{"itemoff":[24,0], "leveloff":[-72,23], "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:[28,80]},
				sub:[
					{"itemoff":[24,0], "leveloff":[-190,5], "size":[24,210], "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":[-372,-176], "size":[24,175]},
							{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":[-228,-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("menu1", MENU_ITEMS);
menu1.initTop();
