function over2 (name) { var divID = name var myDiv = document.getElementById(name); if (myDiv.MouseOver == false) { document.getElementById(divID).style.visibility = "hidden"; } else { document.getElementById(divID).style.visibility = "visible"; }} function out2 (name) { var divID = name var myDiv = document.getElementById(name); if (myDiv.MouseOut == false) { document.getElementById(divID).style.visibility = "visible";} else { document.getElementById(divID).style.visibility = "hidden";}} function main() { var m; // (name, URL, target) m = menue("blank", 0, 0); m.write(); // drop-down for menu item nr. 1 COUNTY GOVERNMENT // menuname,width,left m = menue("m1", 230, 127); m.addLink("County Government Services Directory ", "http://www.co.dutchess.ny.us/CountyGov/CountyGovServDir.htm",""); m.addLink("All Services Directory ", "http://www.co.dutchess.ny.us/CountyGov/AllServices.htm",""); m.addLink("e-Government Services ", "http://www.co.dutchess.ny.us/CountyGov/DCegov.htm",""); m.addLink("County Executive", "http://www.co.dutchess.ny.us/CountyGov/Departments/CountyExecutive/CEIndex.htm",""); m.addLink("Legislature", "http://www.co.dutchess.ny.us/CountyGov/Departments/Legislature/CLindex.htm",""); m.addLink("Departments", "http://www.co.dutchess.ny.us/CountyGov/DeptDepartments.htm",""); m.addLink("County Clerk", "http://www.co.dutchess.ny.us/CountyGov/Departments/CountyClerk/CCindex.htm",""); m.addLink("About County Government", "http://www.co.dutchess.ny.us/CountyGov/DCoverview.htm",""); m.addLink("Bidding & RFP Opportunities", "http://www.co.dutchess.ny.us/CountyGov/Departments/CentralServices/CSBiddingRFP.htm",""); m.addLink("Calendar of Events", "http://www.co.dutchess.ny.us/CountyGov/DCcalofevents.htm",""); m.addLink("GIS in Dutchess County", "http://www.co.dutchess.ny.us/CountyGov/GIS.htm",""); m.addLink("Hotline Numbers", "http://www.co.dutchess.ny.us/CountyGov/Hotline.htm",""); m.addLink("County News/Press Releases", "http://www.co.dutchess.ny.us/CountyGov/DCnews.htm",""); m.addLink("Employment Opportunities", "https://www.co.dutchess.ny.us/CivilServiceInformationSystem/ApplicantWeb/Public/frmAnnouncementList.aspx",""); m.addLink("Emergency Services ", "http://www.co.dutchess.ny.us/CountyGov/EmergencyServicesIndex.htm",""); m.addLink("Dutchess Goes Green", "http://www.co.dutchess.ny.us/CountyGov/12563.htm",""); m.addLink("County Holiday Schedule", "http://www.co.dutchess.ny.us/CountyGov/CalCountyHolidays.htm",""); m.addLink("On-Line Forms", "http://www.co.dutchess.ny.us/CountyGov/DCforms.htm",""); m.addLink("Publications", "http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/PLpublications.htm",""); m.addLink("County Fees & Fee Schedules ", "http://www.co.dutchess.ny.us/CountyGov/FeesIndex.htm",""); m.addLink("Frequently Asked Questions ", "http://www.co.dutchess.ny.us/CountyGov/AllFAQs.htm",""); m.addLink("Environmental Impact Statements", "http://www.co.dutchess.ny.us/CountyGov/10880.htm",""); m.write(); // ***// drop-down for menu item nr. 2 MUNICIPALITIES m = menue("m2", 230, 259); m.addLink("Municipality Information & Links", "http://www.co.dutchess.ny.us/Municipalities/MUNtownstable.htm",""); m.addLink("Assessors", "http://www.co.dutchess.ny.us/CountyGov/Departments/RealPropertyTax/RPassessors.htm",""); m.addLink("Census 2000 ", "http://www.co.dutchess.ny.us/Municipalities/MUNcensusdata.asp",""); m.addLink("Demographic Information", "http://www.co.dutchess.ny.us/Municipalities/MUNindex.htm",""); m.addLink("Historians", "http://www.co.dutchess.ny.us/Municipalities/MUNhistorians.htm",""); m.addLink("Major Development Projects", "http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/PLpublications.htm#projects",""); m.addLink("Responsibilities of Municipal Boards", "http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/17344.htm",""); m.addLink("Municipal Tax Collectors", "http://www.co.dutchess.ny.us/CountyGov/Departments/RealPropertyTax/RPtc.htm",""); m.addLink("City, Town & Village Courts ", "http://www.co.dutchess.ny.us/Municipalities/MUNcourts.htm",""); m.addLink("Town Mandated Private Well Water Testing", "http://www.co.dutchess.ny.us/Municipalities/13331.htm",""); m.write(); // ***// drop-down for menu item nr. 3 BUSINESS m = menue("m3", 260, 356); m.addLink("Agriculture", "http://www.co.dutchess.ny.us/Business/BUSagrindex.htm","target=_self"); m.addLink("Bidding & RFP Opportunities ", "http://www.co.dutchess.ny.us/Business/CSBiddingRFP.htm","target=_self"); m.addLink("Business Groups & Chambers of Commerce", "http://www.co.dutchess.ny.us/Business/BUSChambers.htm","target=_self"); m.addLink("Consumer Affairs ", "http://www.co.dutchess.ny.us/Business/CFindex.htm","target=_self"); m.addLink("Dutchess County EDC", "http://www.thinkdutchess.com/","target=_blank"); m.addLink("Economic Development ", "http://www.co.dutchess.ny.us/Business/BUSedindex.htm","target=_self"); m.addLink("Major Employers", "http://www.thinkdutchess.com/dutchess-county-data/leading-employers.html","target=_blank"); m.addLink("Telecommunication Services/Providers", "http://www.thinkdutchess.com/telecommunications/services-providers.html","target=_blank"); m.write(); // ***// drop-down for menu item nr. 4 SCHOOLS m = menue("m4", 280, 429); m.addLink("Education Information ", "http://www.co.dutchess.ny.us/Schools/SCHindex.htm","target=_self"); m.addLink("Elementary & Secondary Schools", "http://www.co.dutchess.ny.us/Schools/SCHesschools.htm","target=_self"); m.addLink("Private & Parochial Schools", "http://www.co.dutchess.ny.us/Schools/SCHprivateschools.htm","target=_self"); m.addLink("BOCES", "http://www.dcboces.org/index.php","target=_blank"); m.addLink("BOCES Adult Education", "http://www.dcboces.org/adults","target=_blank"); m.addLink("Marist College Adult Education", "http://www.marist.edu/admission/adult/index.html","target=_blank"); m.addLink("Colleges ", "http://www.co.dutchess.ny.us/Schools/SCHcolleges.htm","target=_self"); m.addLink("Distance Learning ", "http://www.co.dutchess.ny.us/Schools/SCHdlearning.htm","target=_self"); m.addLink("School Tax Collectors by School District ", "http://www.co.dutchess.ny.us/Schools/RPschooltc.htm","target=_self"); m.addLink("NYS Education Department", "http://www.nysed.gov/","target=_blank"); m.addLink("NYS Curriculum, Instruction & Instructional Technology", "http://www.emsc.nysed.gov/ciai/home.html","target=_blank"); m.write(); // ***// drop-down for menu item nr. 5 TOURISM m = menue("m5", 260, 497); m.addLink("Directions", "http://www.dutchesstourism.com/mapsdirections.asp#here ","target=_blank"); m.addLink("History of Dutchess County", "http://www.co.dutchess.ny.us/Tourism/HistIndex.htm","target=_self"); m.addLink("County Parks ", "http://www.co.dutchess.ny.us/Tourism/PPIndex.htm","target=_self"); m.addLink("Non-County Parks", "http://www.dutchesstourism.com/parks.asp","target=_blank"); m.addLink("DC Tourism Bureau", "http://www.dutchesstourism.com/","target=_blank"); m.addLink("Dining and Lodging", "http://www.co.dutchess.ny.us/Tourism/VisitIndex.htm","target=_self"); m.addLink("Hudson River Valley National Heritage Area", "http://www.hudsonrivervalley.com/","target=_blank"); m.addLink("Culture & Performing Arts", "http://www.co.dutchess.ny.us/Tourism/CultIndex.htm","target=_self"); m.addLink("Mid-Hudson Civic Center", "http://www.midhudsonciviccenter.com","target=_blank"); m.addLink("Hudson Valley Renegades", "http://www.hvrenegades.com/","target=_blank"); m.addLink("Dutchess County Fair", "http://www.dutchessfair.com/","target=_blank"); m.addLink("Farm Markets", "http://www.dutchesstourism.com/farm.asp","target=_blank"); m.addLink("Gardens", "http://www.dutchesstourism.com/gardens.asp","target=_blank"); m.addLink("Genealogy", "http://www.co.dutchess.ny.us/Tourism/GeneIndex.htm","target=_self"); m.addLink("Golf Courses", "http://www.dutchesstourism.com/golf.asp","target=_blank"); m.addLink("Hiking", "http://www.dutchesstourism.com/hiking.asp","target=_blank"); m.addLink("Historic Sites", "http://www.dutchesstourism.com/historic-sites.asp","target=_blank"); m.addLink("History Museums", "http://www.dutchesstourism.com/historic-museums.asp","target=_blank"); m.addLink("Tours and Trails", "http://www.co.dutchess.ny.us/Tourism/ToursIndex.htm","target=_self"); m.write(); // ***// drop-down for menu item nr. 6 COMMUNITY m = menue("m6", 205, 568); m.addLink("All Hazards Information", "http://www.co.dutchess.ny.us/Community/15510.htm",""); m.addLink("Community Service Agencies", "http://www.co.dutchess.ny.us/Community/CSagencies.htm",""); m.addLink("Emergency Services", "http://www.co.dutchess.ny.us/CountyGov/EmergencyServicesIndex.htm",""); m.addLink("Environment/Land Preservation ", "http://www.co.dutchess.ny.us/Community/ELPindex.htm",""); m.addLink("Health Care & Hospitals", "http://www.co.dutchess.ny.us/Community/HCIndex.htm",""); m.addLink("Housing", "http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/17321.htm",""); m.addLink("Libraries", "http://www.co.dutchess.ny.us/Community/LIBindex.htm",""); m.addLink("Making Your Move Easier", "http://www.co.dutchess.ny.us/Community/11993.htm",""); m.addLink("Mid-Hudson Multiple Listing Service", "http://www.mydreamhouse.com/agencies.htm",""); m.addLink("Senior Citizen Services", "http://www.co.dutchess.ny.us/CountyGov/Departments/Aging/AGIndex.htm",""); m.addLink("Telephone/Cellular Companies", "http://www.co.dutchess.ny.us/Community/PhoneCell.htm",""); m.addLink("Utility & Cable Companies", "http://www.co.dutchess.ny.us/Community/UtilityCable.htm",""); m.addLink("Victims' Resources and Services ", "http://www.co.dutchess.ny.us/Community/VictimServices.htm",""); m.addLink("Volunteer Opportunities in Dutchess County", "http://www.co.dutchess.ny.us/Community/VolOpportunities.htm",""); m.addLink("Youth Services", "http://www.co.dutchess.ny.us/CountyGov/Departments/YouthBureau/YBIndex.htm",""); m.write(); // ***// drop-down for menu item nr. 7 ELECTED OFFICIALS m = menue("m7", 120, 655); m.addLink("County Executive", "http://www.co.dutchess.ny.us/CountyGov/Departments/CountyExecutive/CEIndex.htm",""); m.addLink("County Legislators", "http://www.co.dutchess.ny.us/CountyGov/Departments/Legislature/CLlegislators.htm",""); m.addLink("Comptroller", "http://www.co.dutchess.ny.us/CountyGov/Departments/Comptroller/COindex.htm",""); m.addLink("County Clerk", "http://www.co.dutchess.ny.us/CountyGov/Departments/CountyClerk/CCindex.htm",""); m.addLink("District Attorney", "http://www.co.dutchess.ny.us/CountyGov/Departments/DistrictAttorney/DAindex.htm",""); m.addLink("Sheriff", "http://www.co.dutchess.ny.us/CountyGov/Departments/Sheriff/SHindex.htm",""); m.addLink("Municipal ", "http://www.co.dutchess.ny.us/ElectedOfficials/ELMunElectedOffs.htm",""); m.addLink("New York State", "http://www.co.dutchess.ny.us/ElectedOfficials/ELStateElectedOffs1.htm",""); m.addLink("Federal", "http://www.co.dutchess.ny.us/ElectedOfficials/ELFedElectedOffs1.htm",""); m.write(); // *** // blank menu to display nothing so that dropdown will disappear m = menue("blank", 0, 0); m.write(); // *** OK = true; } var OK = false; if(document.layers) { window.captureEvents(Event.MOUSEUP); window.onmouseup=hide_all; } else { document.onmouseup=hide_all; } function show_layer(x) { // if (OK) { if(document.layers) document.layers[x].visibility="show"; if (document.all) document.all[x].style.visibility="visible"; if ((document.getElementById)&& (!document.all)) document.getElementById(x).style.visibility="visible"; } } function hide_layer(x) { // if (OK) //alert("in hide_layer "+x) { if(document.layers) document.layers[x].visibility="hide"; // alert(document.all) if (document.all) document.all[x].style.visibility="hidden"; // alert("after problem") if ((document.getElementById)&& (!document.all)) document.getElementById(x).style.visibility="hidden"; } } function show_layer_last(x) { if (OK) { if(document.layers) document.layers[x].visibility="hide"; else document.all[x].style.visibility="hidden"; } } function do_menu(x) { // alert("in do_menu " +x) hide_all(); show_layer(x); } function do_menu_last(x) { hide_all(); show_layer_last(x); } function hide_all() { for (n=1; n<=7; n++) { eval("hide_layer('m"+n+"')"); } } /* +++++++++++++++++++++++++++++++++++++++ */ function addLink(name, url, target) { // doesnt work in ie // this.linkarray.push(new Array(name, url)); // this looks ugly, but works this.linkarray = this.linkarray.concat(new Array(new Array(name, url, target))); } function addSeparator() { // doesnt work in ie // this.linkarray.push("SEPARATOR") // this works this.linkarray = this.linkarray.concat(new Array("SEPARATOR")); } // z-index in the following function changed from 10 to 210 to override z-index settings in doiMenu 153 - Dec 2008 function writeMenue() { var str = ""; str += '\n\n\n'; // uncomment the next two lines to get debugging information // alert(this.linkarray.join("\n")); // alert(str); document.write(str); } function menue(name, width, leftPosition) { this.border = "#400900"; // maroon this.overcolor = "#f9f9c0"; // medium beige color // this.bgcolor = "#fff4e5"; // light beige color this.bgcolor = "#fbfff8"; // white this.name = name; this.width = width; this.leftPosition = leftPosition; this.linkarray = new Array(); this.write = writeMenue; this.addLink = addLink; this.addSeparator = addSeparator; return this } // this code does not get executed CM. function bka_writestyle(code, menu_code) { alert("in bka_writestyle") if (menu_code == code) { document.write (''); } else { document.write (''); } }