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", "https://www.dutchessny.gov/CountyGov/CountyGovServDir.htm","");
m.addLink("On-line Services ", "https://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", "https://www.dutchessny.gov/CountyGov/DeptDepartments.htm","");
m.addLink("About County Gov't./County Charter/Code of Ethics ", "https://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", "https://www.dutchessny.gov/CountyGov/DCcalofevents.htm","");
m.addLink("County News/Press Releases ", "https://www.dutchessny.gov/CountyGov/DCnews.htm","");
m.addLink("County Publications ", "https://www.dutchessny.gov/CountyGov/19267.htm","");
m.addLink("Employment Opportunities", "http://www.co.dutchess.ny.us/CivilServiceInformationSystem/ApplicantWeb/frmAnnouncementList.aspx","");
m.addLink("Emergency Services", "https://www.dutchessny.gov/CountyGov/EmergencyServicesIndex.htm","");
m.addLink("On-Line Forms ", "https://www.dutchessny.gov/CountyGov/DCforms.htm","");
m.addLink("County Fees & Fee Schedules", "https://www.dutchessny.gov/CountyGov/FeesIndex.htm","");
m.addLink("Environmental Impact Statements ", "https://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", "https://www.dutchessny.gov/Municipalities/RPassessors.htm","");
m.addLink("Municipality Contact and Court Information", "https://www.dutchessny.gov/Municipalities/MUNtownstable.htm","");
m.addLink("Census Data", "https://www.dutchessny.gov/CountyGov/Departments/Planning/PLcensus.htm","");
m.addLink("Demographic Information", "https://www.dutchessny.gov/Municipalities/MUNindex.htm","");
m.addLink("Historians", "https://www.dutchessny.gov/CountyGov/Departments/History/22592.htm","");
m.addLink("Responsibilities of Municipal Boards", "https://www.dutchessny.gov/CountyGov/Departments/Planning/17344.htm","");
m.addLink("Municipal Tax Collectors", "https://www.dutchessny.gov/CountyGov/Departments/RealPropertyTax/RPtc.htm","");
m.addLink("Town Mandated Private Well Water Testing ", "https://www.dutchessny.gov/Municipalities/13331.htm","");
//
m.write();
// ***// drop-down for menu item nr. 3 BUSINESS
m = menue("m3", 260, 356);
// m.addLink("Agriculture ", "https://www.dutchessny.gov/Business/BUSagrindex.htm","target=_self");
m.addLink("Bidding & RFP Opportunities ", "https://www.dutchessny.gov/Business/CSBiddingRFP.htm","target=_self");
m.addLink("Business Groups & Chambers of Commerce ", "https://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 ", "https://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", "https://www.dutchessny.gov/Schools/SCHindex.htm","target=_self");
m.addLink("Private & Parochial Schools", "https://www.dutchessny.gov/Schools/SCHprivateschools.htm","target=_self");
m.addLink("School Districts in Dutchess County ", "https://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", "https://www.marist.edu/admission/adult-returning","target=_blank");
m.addLink("Colleges ", "https://www.dutchessny.gov/Schools/SCHcolleges.htm","target=_self");
m.addLink("Distance Learning ", "https://www.dutchessny.gov/Schools/SCHdlearning.htm","target=_self");
m.addLink("School Tax Collectors by School District ", "https://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.nysed.gov/curriculum-instruction","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", "https://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", "https://www.dutchessny.gov/Tourism/HistIndex.htm","target=_self");
m.addLink("County Parks ", "https://www.dutchessny.gov/Tourism/PPIndex.htm","target=_self");
m.addLink("DC Tourism Bureau", "http://www.dutchesstourism.com/","target=_blank");
m.addLink("Dining and Lodging", "https://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 ", "https://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", "https://www.milb.com/hudson-valley","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 ", "https://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 ", "https://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", "https://www.dutchessny.gov/Community/15510.htm","");
m.addLink("Community Service Agencies", "https://www.dutchessny.gov/Community/CSagencies.htm","");
m.addLink("Emergency Services", "https://www.dutchessny.gov/CountyGov/EmergencyServicesIndex.htm","");
m.addLink("Environment/Land Preservation ", "https://www.dutchessny.gov/Community/ELPindex.htm","");
m.addLink("Health Care & Hospitals", "https://www.dutchessny.gov/Community/HCIndex.htm","");
m.addLink("Housing", "https://www.dutchessny.gov/CountyGov/Departments/Planning/PLhousing.htm","");
m.addLink("Libraries", "https://www.dutchessny.gov/Community/LIBindex.htm","");
m.addLink("Making Your Move Easier", "https://www.dutchessny.gov/Community/11993.htm","");
m.addLink("Mid-Hudson Multiple Listing Service", "http://www.midhudsonmlshomes.com/","");
m.addLink("Senior Citizen Services", "https://www.dutchessny.gov/CountyGov/Departments/Aging/AGIndex.htm","");
m.addLink("Telephone/Cellular Companies", "https://www.dutchessny.gov/Community/PhoneCell.htm","");
m.addLink("Utility & Cable Companies", "https://www.dutchessny.gov/Community/UtilityCable.htm","");
m.addLink("Victims' Resources and Services", "https://www.dutchessny.gov/Community/VictimServices.htm","");
m.addLink("Volunteer Opportunities in Dutchess County", "https://www.dutchessny.gov/Community/VolOpportunities.htm","");
m.addLink("Youth Services", "https://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", "https://www.dutchessny.gov/CountyGov/Departments/CountyExecutive/CEIndex.htm",""); m.addLink("County Legislators", "https://www.dutchessny.gov/CountyGov/Departments/Legislature/CLlegislators.htm",""); m.addLink("Comptroller", "https://www.dutchessny.gov/CountyGov/Departments/Comptroller/COindex.htm",""); m.addLink("County Clerk", "https://www.dutchessny.gov/CountyGov/Departments/CountyClerk/CCindex.htm",""); m.addLink("District Attorney", "https://www.dutchessny.gov/CountyGov/Departments/DistrictAttorney/DAindex.htm",""); m.addLink("Sheriff", "https://www.dutchessny.gov/CountyGov/Departments/Sheriff/SHindex.htm",""); m.addLink("Municipal", "https://www.dutchessny.gov/Municipalities/MUNtownstable.htm",""); m.addLink("New York State ", "https://www.dutchessny.gov/ElectedOfficials/ELStateElectedOffs1.htm",""); m.addLink("Federal ", "https://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';
str += '
\n';
str += '\n';
str += '\n';
// links schreiben
for (i=0; i\n';
if (this.linkarray[i]=="SEPARATOR")
{
str += ' | \n';
}
else
{
str += ' '+this.linkarray[i][0]+' | \n';
}
str += ' \n';
}
//alert(str);
str += ' \n';
str += ' |
\n';
str += '
\n';
str +='
\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 ('');
}
}