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("Service Directory ", "http://www.dutchessny.gov/CountyGov/CountyGovServDir.htm",""); m.addLink("On-line Services ", "http://www.dutchessny.gov/CountyGov/DCegov.htm",""); m.addLink("County Executive", "http://www.dutchessny.gov/CountyGov/Departments/CountyExecutive/CEIndex.htm",""); m.addLink("Legislature", "http://www.dutchessny.gov/CountyGov/Departments/Legislature/CLindex.htm",""); m.addLink("Departments", "http://www.dutchessny.gov/CountyGov/DeptDepartments.htm",""); m.addLink("Dutchess County Holidays", "http://www.dutchessny.gov/CountyGov/23146.htm",""); m.addLink("About County Gov't./County Charter/Code of Ethics", "http://www.dutchessny.gov/CountyGov/DCoverview.htm",""); m.addLink("Bidding & RFP Opportunities", "http://www.dutchessny.gov/CountyGov/Departments/CentralServices/CSBiddingRFP.htm",""); m.addLink("Dutchess County Consolidated Calendar of Events", "http://www.dutchessny.gov/CountyGov/DCcalofevents.htm",""); m.addLink("County News/Press Releases ", "http://www.dutchessny.gov/CountyGov/DCnews.htm",""); m.addLink("County Publications ", "http://www.dutchessny.gov/CountyGov/19267.htm",""); m.addLink("Employment Opportunities", "http://www.co.dutchess.ny.us/CivilServiceInformationSystem/ApplicantWeb/frmAnnouncementList.aspx",""); m.addLink("Emergency Services", "http://www.dutchessny.gov/CountyGov/EmergencyServicesIndex.htm",""); m.addLink("On-Line Forms", "http://www.dutchessny.gov/CountyGov/DCforms.htm",""); m.addLink("County Fees & Fee Schedules", "http://www.dutchessny.gov/CountyGov/FeesIndex.htm",""); m.addLink("Environmental Impact Statements ", "http://www.dutchessny.gov/CountyGov/10880.htm",""); m.addLink("Help Center...if you can't find it above", "http://www.dutchessny.gov/CountyGov/19415.htm",""); // m.write(); // ***// drop-down for menu item nr. 2 MUNICIPALITIES m = menue("m2", 230, 259); // m.addLink("Municipal Assessors", "http://www.dutchessny.gov/Municipalities/RPassessors.htm",""); m.addLink("Municipality Contact and Court Information", "http://www.dutchessny.gov/Municipalities/MUNtownstable.htm",""); m.addLink("Census Data", "http://www.dutchessny.gov/CountyGov/Departments/Planning/PLcensus.htm",""); m.addLink("Demographic Information", "http://www.dutchessny.gov/Municipalities/MUNindex.htm",""); m.addLink("Historians", "http://www.dutchessny.gov/CountyGov/Departments/History/22592.htm",""); m.addLink("Responsibilities of Municipal Boards", "http://www.dutchessny.gov/CountyGov/Departments/Planning/17344.htm",""); m.addLink("Municipal Tax Collectors", "http://www.dutchessny.gov/CountyGov/Departments/RealPropertyTax/RPtc.htm",""); m.addLink("Town Mandated Private Well Water Testing ", "http://www.dutchessny.gov/Municipalities/13331.htm",""); // m.write(); // ***// drop-down for menu item nr. 3 BUSINESS m = menue("m3", 260, 356); // m.addLink("Agriculture", "http://www.dutchessny.gov/Business/BUSagrindex.htm","target=_self"); m.addLink("Bidding & RFP Opportunities ", "http://www.dutchessny.gov/Business/CSBiddingRFP.htm","target=_self"); m.addLink("Business Groups & Chambers of Commerce", "http://www.dutchessny.gov/Business/BUSChambers.htm","target=_self"); m.addLink("Business Resources", "https://thinkdutchess.com/locate/","target=_blank"); m.addLink("Dutchess County EDC", "http://www.thinkdutchess.com/","target=_blank"); m.addLink("Economic Development", "http://www.dutchessny.gov/Business/BUSedindex.htm","target=_self"); // m.write(); // ***// drop-down for menu item nr. 4 SCHOOLS m = menue("m4", 280, 429); // m.addLink("Education Information", "http://www.dutchessny.gov/Schools/SCHindex.htm","target=_self"); m.addLink("Private & Parochial Schools", "http://www.dutchessny.gov/Schools/SCHprivateschools.htm","target=_self"); m.addLink("School Districts in Dutchess County ", "http://www.dutchessny.gov/Schools/SCHesschools.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.dutchessny.gov/Schools/SCHcolleges.htm","target=_self"); m.addLink("Distance Learning ", "http://www.dutchessny.gov/Schools/SCHdlearning.htm","target=_self"); m.addLink("School Tax Collectors by School District ", "http://www.dutchessny.gov/Schools/RPschooltc.htm","target=_self"); m.addLink("NYS Education Department", "http://www.nysed.gov/","target=_blank"); m.addLink("NYS ED - Office of Curriculum and Instruction", "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("Independence Day Celebrations in Dutchess County", "http://www.dutchessny.gov/Tourism/23350.htm","target=_self"); m.addLink("Directions", "http://www.dutchesstourism.com/getting-here.php","target=_blank"); m.addLink("History of Dutchess County ", "http://www.dutchessny.gov/Tourism/HistIndex.htm","target=_self"); m.addLink("County Parks ", "http://www.dutchessny.gov/Tourism/PPIndex.htm","target=_self"); m.addLink("DC Tourism Bureau", "http://www.dutchesstourism.com/","target=_blank"); m.addLink("Dining and Lodging", "http://www.dutchessny.gov/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.dutchessny.gov/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/farmers-markets.php","target=_blank"); m.addLink("Gardens", "http://www.dutchesstourism.com/parks-and-gardens.php","target=_blank"); m.addLink("Genealogy ", "http://www.dutchessny.gov/Tourism/GeneIndex.htm","target=_self"); m.addLink("Golf Courses", "http://www.dutchesstourism.com/golf.php","target=_blank"); m.addLink("Hiking", "http://www.dutchesstourism.com/hiking.php","target=_blank"); m.addLink("Historic Sites", "http://www.dutchesstourism.com/historic-sites.php","target=_blank"); m.addLink("History Museums", "http://www.dutchesstourism.com/history-museums.php","target=_blank"); m.addLink("Tours and Trails ", "http://www.dutchessny.gov/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.dutchessny.gov/Community/15510.htm",""); m.addLink("Community Service Agencies", "http://www.dutchessny.gov/Community/CSagencies.htm",""); m.addLink("Emergency Services", "http://www.dutchessny.gov/CountyGov/EmergencyServicesIndex.htm",""); m.addLink("Environment/Land Preservation ", "http://www.dutchessny.gov/Community/ELPindex.htm",""); m.addLink("Health Care & Hospitals", "http://www.dutchessny.gov/Community/HCIndex.htm",""); m.addLink("Housing", "http://www.dutchessny.gov/CountyGov/Departments/Planning/PLhousing.htm ",""); m.addLink("Libraries", "http://www.dutchessny.gov/Community/LIBindex.htm",""); m.addLink("Making Your Move Easier", "http://www.dutchessny.gov/Community/11993.htm",""); m.addLink("Mid-Hudson Multiple Listing Service", "http://www.midhudsonmlshomes.com/",""); m.addLink("Senior Citizen Services", "http://www.dutchessny.gov/CountyGov/Departments/Aging/AGIndex.htm",""); m.addLink("Telephone/Cellular Companies", "http://www.dutchessny.gov/Community/PhoneCell.htm",""); m.addLink("Utility & Cable Companies", "http://www.dutchessny.gov/Community/UtilityCable.htm",""); m.addLink("Victims' Resources and Services", "http://www.dutchessny.gov/Community/VictimServices.htm",""); m.addLink("Volunteer Opportunities in Dutchess County", "http://www.dutchessny.gov/Community/VolOpportunities.htm",""); m.addLink("Youth Services", "http://www.dutchessny.gov/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.dutchessny.gov/CountyGov/Departments/CountyExecutive/CEIndex.htm",""); m.addLink("County Legislators", "http://www.dutchessny.gov/CountyGov/Departments/Legislature/CLlegislators.htm",""); m.addLink("Comptroller", "http://www.dutchessny.gov/CountyGov/Departments/Comptroller/COindex.htm",""); m.addLink("County Clerk", "http://www.dutchessny.gov/CountyGov/Departments/CountyClerk/CCindex.htm",""); m.addLink("District Attorney", "http://www.dutchessny.gov/CountyGov/Departments/DistrictAttorney/DAindex.htm",""); m.addLink("Sheriff", "http://www.dutchessny.gov/CountyGov/Departments/Sheriff/SHindex.htm",""); m.addLink("Municipal", "http://www.dutchessny.gov/Municipalities/MUNtownstable.htm",""); m.addLink("New York State ", "http://www.dutchessny.gov/ElectedOfficials/ELStateElectedOffs1.htm",""); m.addLink("Federal ", "http://www.dutchessny.gov/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 (''); } }