var hBar = new ItemStyle(39, 2, '', 0, 0, '#75856b', '#f4f5f0', 'lowHText', 'highHText', 'itemBorder', 'itemBorder',
 null, null, 'hand', 'hand');
var dBar = new ItemStyle(154, 0, '', 0, 0, '', '', 'lowDText', 'highDText', '2', '', null, null, 'hand', 'hand');
var sBar = new ItemStyle(39, 2, '', 0, 0, '#eaecdf', '#fefffc', 'lowSText', 'highHText', 'itemBorder', 'itemBorder',
 null, null, 'hand', 'hand');
var qQuickLinksBar = new ItemStyle(40, 4, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var qmapBar = new ItemStyle(40, 2, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var qtransBar = new ItemStyle(40, 2, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var qnewsBar = new ItemStyle(40, 2, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var qweatherBar = new ItemStyle(40, 2, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var qNYSBar = new ItemStyle(40, 2, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var qFedBar = new ItemStyle(40, 2, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var qonlineBar = new ItemStyle(40, 2, '', 0, 0, '', '', 'lowQText', 'highQText', '', '', null, null, 'hand', 'hand');
var subM = new ItemStyle(25, 0, '', 0, 0, '90#3d4f43', '100#f4f5f0', 'lowText', 'highTextPopout', 'itemPopBorder', 'itemPopBorder', null, null, 'hand', 'hand');
var subQ = new ItemStyle(22, 0, '', 0, 0, '#e6e2a6', '#FFFFFF', 'lowQText', 'highQText', 'itemBorder', 'itemBorderPop', 95, 95, 'hand', 'default');
var subD = new ItemStyle(20, 0, '', '', 0, '#FFDDAD', '#FFFFFF', 'lowQText', 'highQText', '', '', null, null, 'hand', 'default');
var subDrop = new ItemStyle(14, 0, '', '', 0, '#d7ddc9', '#FFFFFF', 'lowDropText', 'highDropText', '', '', null, null, 'hand', 'hand');
var subBlank = new ItemStyle(40, 1, '&gt;', -15, 5, '#CCCCDD', '#6699CC', 'lowText', 'highText',
 'itemBorderBlank', 'itemBorder', null, null, 'hand', 'default');
var button = new ItemStyle(22, 1, '&gt;', -15, 2, '10#006633', '10#CC6600', 'buttonText', 'buttonHover',
 'buttonBorder', 'buttonBorderOver', 80, 95, 'crosshair', 'default');
var pMenu = new PopupMenu('pMenu');
with (pMenu)
{
startMenu('rootQuickLinks', true, 612, 265, 143, qQuickLinksBar, '', false);
addItem('SWAP:<img src="graphics/OurDutchess.jpg" border="0" alt="About Dutchess County">^<img src="graphics/OurDutchessHL.jpg" border="0" alt="About Dutchess County">', 'mOurDutchess', 'sm:');
addItem('SWAP:<img src="graphics/EmergencyPreparedness.jpg" border="0" alt="Be Prepared - Get Emergency Information">^<img src="graphics/EmergencyPreparednessHL.jpg" border="0" alt="Be Prepared - Get Emergency Information">', 'http://www.co.dutchess.ny.us/QuickLinks/17006.htm', '');
addItem('SWAP:<img src="graphics/Mapping.jpg" border="0" alt="Mapping">^<img src="graphics/MappingHL.jpg" border="0" alt="Mapping">', 'mMapping', 'sm:');
addItem('SWAP:<img src="graphics/OnlineServices.jpg" border="0" alt="Onine Services">^<img src="graphics/OnlineServicesHL.jpg" border="0" alt="Online Services">', 'mOnlineServices', 'sm:');
addItem('SWAP:<img src="graphics/Transportation.jpg" border="0" alt="Transportation">^<img src="graphics/TransportationHL.jpg" border="0" alt="Transportation">', 'mTransportation', 'sm:');
addItem('SWAP:<img src="graphics/Newspapers.jpg" border="0" alt="Local Newspapers">^<img src="graphics/NewspapersHL.jpg" border="0" alt="Local Newspapers">', 'mNewspapers', 'sm:');
addItem('SWAP:<img src="graphics/NYSSites.jpg" border="0" alt="New York State Sitesr">^<img src="graphics/NYSSitesHL.jpg" border="0" alt="New York State Sites">', 'mNYSSites', 'sm:');
addItem('SWAP:<img src="graphics/FederalSites.jpg" border="0" alt="Federal Sites">^<img src="graphics/FederalSitesHL.jpg" border="0" alt="Federal Sites">', 'mFedSites', 'sm:');
addItem('SWAP:<img src="graphics/Weather.jpg" border="0" alt="Weather">^<img src="graphics/WeatherHL.jpg" border="0" alt="Weather">', 'mWeather', 'sm:');
startMenu('mOurDutchess', true, -165, 0, 170, subQ);
addItem('Dutchess at a Glance', 'http://www.co.dutchess.ny.us/Glance/GlanceIndex.htm', '');
addItem('Dutchess County History', 'http://www.co.dutchess.ny.us/Tourism/History/HistIndex.htm', '');
addItem('Making Your Move Easier', 'http://www.co.dutchess.ny.us/Community/11993.htm', '');
startMenu('mMapping', true, -145, 0, 155, subQ);
addItem('GIS in Dutchess County', 'http://www.co.dutchess.ny.us/CountyGov/GIS.htm', '');
addItem('GeoAccess', 'window.open("http://geoaccess.co.dutchess.ny.us/geoaccessv2/")', 'js:');
addItem('ParcelAccess', 'window.open("http://geoaccess.co.dutchess.ny.us/parcelaccess/")', 'js:');
startMenu('mOnlineServices', true, -325, 0, 440, subQ);
addItem('Active Commodity Contracts', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CentralServices/14801.htm', '');
addItem('Bidding & RFP Opportunities', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CentralServices/CSBiddingRFP.htm', '');
addItem('County Clerk Document Search', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyClerk/12976.htm', '');
addItem('eNotifier Service', 'http://www.co.dutchess.ny.us/CountyGov/rssDCOnlineWebFeeds.htm', '');
addItem('Recruitment/Exam Announcements', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Personnel/PSExamAnnouncements.htm', '');
addItem('Mapping - GeoAccess & ParcelAccess', 'http://www.co.dutchess.ny.us/CountyGov/Mapping.htm', '');
addItem('Park Reservations', 'http://www.co.dutchess.ny.us/ParkReservations/public/SelectPark.aspx', '');
addItem('Poughkeepsie-Dutchess County Transportation Council Traffic Data Online', 'http://www.co.dutchess.ny.us/PlnRoadCnts/Default.aspx', '');
addItem('Real Estate Tax Auction', 'http://www.co.dutchess.ny.us/CountyGov/Departments/RealPropertyTax/RPauction.htm', '');
addItem('Recycled Equipment', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CentralServices/14043.htm', '');
addItem('RSS Feeds', 'http://www.co.dutchess.ny.us/CountyGov/rssDCOnlineWebFeeds.htm#RSS', '');
addItem('Website Survey', 'http://www.co.dutchess.ny.us/websitesur.asp', '');
addItem('Your Dutchess Direct', 'http://www.co.dutchess.ny.us/CountyGov/14258.htm', '');
addItem('Show ALL Dutchess County e-Government Services', 'http://www.co.dutchess.ny.us/CountyGov/DCegov.htm', '');
startMenu('mTransportation', true, -405, 0, 405, subQ);
addItem('Amtrak', 'window.open("http://www.amtrak.com/servlet/ContentServer?pagename=Amtrak/HomePage")', 'js:');
addItem('Dial-A-Ride', 'http://www.co.dutchess.ny.us/CountyGov/Departments/MassTransit/PLdialaride.htm', '');
addItem('Dutchess County Airport', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Airport/ARindex.htm', '');
addItem('LOOP Bus Schedules and Maps', 'http://www.co.dutchess.ny.us/CountyGov/Departments/MassTransit/PLLoopSchedules.htm', '');
addItem('Metro-North Railroad', 'window.open("http://www.mta.info/mnr/index.html")', 'js:');
addItem('Paratransit Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/MassTransit/PLParaTransit.htm', '');
addItem('Park and Ride Lots', 'http://www.co.dutchess.ny.us/CountyGov/Departments/MassTransit/PLParkRide.htm', '');
addItem('Private Bus Carriers', 'http://www.co.dutchess.ny.us/CountyGov/Departments/TransportationCouncil/PLpdctclinks.htm#Transit', '');
addItem('RailLink Schedules', 'http://www.co.dutchess.ny.us/CountyGov/Departments/MassTransit/PLLoopSchedules.htm#CTCMaps', '');
addItem('Stewart International Airport', 'window.open("http://www.panynj.gov/airports/stewart.html")', 'js:');
addItem('Transportation Council', 'http://www.co.dutchess.ny.us/CountyGov/Departments/TransportationCouncil/PLpdctcIndex.htm', '');
addItem('Transportation Management Center', 'window.open("http://www.hudsonvalleytraveler.com/")', 'js:');
startMenu('mNewspapers', true, -185, 0, 180, subQ);
addItem('Kingston Daily Freeman', 'window.open("http://www.dailyfreeman.com/")', 'js:');
addItem('Mid Hudson News', 'window.open("http://www.midhudsonnews.com/")', 'js:');
addItem('Poughkeepsie Journal', 'window.open("http://www.poughkeepsiejournal.com/")', 'js:');
addItem('Times Herald Record', 'window.open("http://www.recordonline.com/")', 'js:');
addItem('Hudson Valley Press', 'window.open("http://www.hvpress.net/")', 'js:');
addItem('Millerton News', 'window.open("http://www.tcextra.com/towns/millertonnews.htm")', 'js:');
addItem('The Millbrook Independent', 'window.open("http://www.themillbrookindependent.com/index.html")', 'js:');
startMenu('mNYSSites', true, -405, 0, 400, subQ);
addItem('State Forms', 'http://www.co.dutchess.ny.us/QuickLinks/FRMState.htm', '');
addItem('Amber Alert', 'window.open("http://www.criminaljustice.state.ny.us/missing/aware/amber.htm")', 'js:');
addItem('Department of Environmental Conservation', 'window.open("http://www.dec.ny.gov/")', 'js:');
addItem('Division of Criminal Justice', 'window.open("http://www.criminaljustice.state.ny.us/")', 'js:');
addItem('Economic Development Council', 'window.open("http://www.nysedc.org/")', 'js:');
addItem('Empire State Development', 'window.open("http://www.empire.state.ny.us/")', 'js:');
addItem('Governor\'s Traffic Safety Committee', 'window.open("http://www.safeny.com/")', 'js:');
addItem('Hudson River Valley Greenway', 'window.open("http://www.hudsongreenway.state.ny.us/")', 'js:');
addItem('Motor Vehicle Department', 'window.open("http://www.nydmv.state.ny.us/")', 'js:');
addItem('New York MapSite', 'window.open("http://www.new-york-mapsite.com/")', 'js:');
addItem('New York Public Interest Research Group', 'window.open("http://www.nypirg.org/")', 'js:');
addItem('New York State Agency Contact Information', 'window.open("http://www.nysegov.com/citGuide.cfm?superCat=454&cat=455")', 'js:');
addItem('New York State Association of Counties', 'window.open("http://www.nysac.org/counties/index.php")', 'js:');
addItem('New York State Commission on Public Integrity', 'window.open("http://www.nyintegrity.org/")', 'js:');
addItem('New York State Education Department', 'window.open("http://www.nysed.gov/")', 'js:');
addItem('New York State Energy Research and Development Authority', 'window.open("http://nyserda.ny.gov/")', 'js:');
addItem('New York State Website', 'window.open("http://www.state.ny.us/")', 'js:');
addItem('Office for the Aging', 'window.open("http://www.aging.ny.gov/")', 'js:');
addItem('Office of Real Property Services', 'window.open("http://www.orps.state.ny.us/")', 'js:');
addItem('Sex Offender Registry', 'window.open("http://www.criminaljustice.state.ny.us/nsor/index.htm")', 'js:');
addItem('Taxation and Finance', 'window.open("http://www.tax.state.ny.us/")', 'js:');
startMenu('mFedSites', true, -280, 0, 290, subQ);
addItem('Federal Forms and Publications', 'window.open("http://www.forms.gov/")', 'js:');
addItem('Administration on Aging', 'window.open("http://www.aoa.gov/")', 'js:');
addItem('Bureau of Consular Affairs', 'window.open("http://travel.state.gov/")', 'js:');
addItem('Census Bureau', 'window.open("http://www.census.gov/")', 'js:');
addItem('Centers for Disease Control and Prevention', 'window.open("http://www.cdc.gov/")', 'js:');
addItem('Consumer Product Safety Commission', 'window.open("http://www.cpsc.gov/")', 'js:');
addItem('Department of Health and Human Services', 'window.open("http://www.hhs.gov/")', 'js:');
addItem('Department of Labor', 'window.open("http://www.dol.gov/")', 'js:');
addItem('Environmental Protection Agency', 'window.open("http://www.epa.gov/")', 'js:');
addItem('Food and Drug Administration', 'window.open("http://www.fda.gov/")', 'js:');
addItem('Internal Revenue Service', 'window.open("http://www.irs.gov/")', 'js:');
addItem('National Highway Traffic Safety Administration', 'window.open("http://www.nhtsa.dot.gov/")', 'js:');
addItem('National Institutes of Health', 'window.open("http://www.nih.gov/")', 'js:');
addItem('National Weather Service', 'window.open("http://www.weather.gov/")', 'js:');
addItem('Senior Health - National Institutes of Health', 'window.open("http://nihseniorhealth.gov/")', 'js:');
addItem('Social Security Administration', 'window.open("http://www.ssa.gov/")', 'js:');
addItem('United States Government Website', 'window.open("http://www.firstgov.gov/")', 'js:');
startMenu('mWeather', true, -185, 0, 190, subQ);
addItem('Local Forecast', 'window.open("http://forecast.weather.gov/MapClick.php?CityName=Poughkeepsie&state=NY&site=ALY&textField1=41.6958&textField2=-73.9225&e=0")', 'js:');
addItem('General Weather Information', 'window.open("http://www.erh.noaa.gov/aly/")', 'js:');
startMenu('root', true, 8, 177, 160, hBar, '', false);
addItem('&nbsp;&nbsp;&nbsp;All Services Directory', 'http://www.co.dutchess.ny.us/CountyGov/AllServices.htm', '');
addItem('&nbsp;&nbsp;&nbsp;County Government', 'mCountyGovernment', 'sm:');
addItem('&nbsp;&nbsp;&nbsp;Municipalities', 'mMunicipalities', 'sm:');
addItem('&nbsp;&nbsp;&nbsp;Business', 'mBusiness', 'sm:');
addItem('&nbsp;&nbsp;&nbsp;Schools', 'mSchools', 'sm:');
addItem('&nbsp;&nbsp;&nbsp;Tourism/Recreation ', 'mTourism', 'sm:');
addItem('&nbsp;&nbsp;&nbsp;Community', 'mCommunity', 'sm:');
addItem('&nbsp;&nbsp;&nbsp;Elected Officials', 'mElectedOfficials', 'sm:');
startMenu('mCountyGovernment', true, 165, -122, 260, subM);
addItem('County Government Services Directory', 'http://www.co.dutchess.ny.us/CountyGov/CountyGovServDir.htm', '');
addItem('All Services Directory', 'http://www.co.dutchess.ny.us/CountyGov/AllServices.htm', '');
addItem('e-Government Services', 'http://www.co.dutchess.ny.us/CountyGov/DCegov.htm', '');
addItem('County Executive', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyExecutive/CEIndex.htm', '');
addItem('Legislature', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Legislature/CLindex.htm', '');
addItem('Departments', 'http://www.co.dutchess.ny.us/CountyGov/DeptDepartments.htm', '');
addItem('County Clerk', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyClerk/CCindex.htm', '');
addItem('About County Government', 'http://www.co.dutchess.ny.us/CountyGov/DCoverview.htm', '');
addItem('Bidding & RFP Opportunities', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CentralServices/CSBiddingRFP.htm', '');
addItem('Calendar of Events', 'http://www.co.dutchess.ny.us/CountyGov/DCcalofevents.htm', '');
addItem('GIS in Dutchess County', 'http://www.co.dutchess.ny.us/CountyGov/GIS.htm', '');
addItem('Hotline Numbers', 'http://www.co.dutchess.ny.us/CountyGov/Hotline.htm', '');
addItem('County News/Press Releases', 'http://www.co.dutchess.ny.us/CountyGov/DCnews.htm', '');
addItem('County Publications', 'http://www.co.dutchess.ny.us/CountyGov/19267.htm', '');
addItem('Employment Opportunities', 'http://www.co.dutchess.ny.us/CivilServiceInformationSystem/ApplicantWeb/frmAnnouncementList.aspx', '');
addItem('Emergency Services', 'http://www.co.dutchess.ny.us/CountyGov/EmergencyServicesIndex.htm', '');
addItem('Dutchess Goes Green', 'http://www.co.dutchess.ny.us/CountyGov/12563.htm', '');
addItem('County Holiday Schedule', 'http://www.co.dutchess.ny.us/CountyGov/CalCountyHolidays.htm', '');
addItem('On-line Forms', 'http://www.co.dutchess.ny.us/CountyGov/DCforms.htm', '');
addItem('County Fees & Fee Schedules', 'http://www.co.dutchess.ny.us/CountyGov/FeesIndex.htm', '');
addItem('Frequently Asked Questions', 'http://www.co.dutchess.ny.us/CountyGov/AllFAQs.htm', '');
addItem('Environmental Impact Statements', 'http://www.co.dutchess.ny.us/CountyGov/10880.htm', '');
startMenu('mMunicipalities', true, 165, -147, 275, subM);
addItem('Municipality Information and Links', 'http://www.co.dutchess.ny.us/Municipalities/MUNtownstable.htm', '');
addItem('Assessors', 'http://www.co.dutchess.ny.us/CountyGov/Departments/RealPropertyTax/RPassessors.htm', '');
addItem('Census Data', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/PLcensus.htm', '');
addItem('Demographic Information', 'http://www.co.dutchess.ny.us/Municipalities/MUNindex.htm', '');
addItem('Historians', 'http://www.co.dutchess.ny.us/Municipalities/MUNhistorians.htm', '');
addItem('Responsibilities of Municipal Boards', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/17344.htm', '');
addItem('Municipal Tax Collectors', 'http://www.co.dutchess.ny.us/CountyGov/Departments/RealPropertyTax/RPtc.htm', '');
addItem('City, Town & Village Courts', 'http://www.co.dutchess.ny.us/Municipalities/MUNcourts.htm', '');
addItem('Town Mandated Private Well Water Testing', 'http://www.co.dutchess.ny.us/Municipalities/13331.htm', '');
startMenu('mBusiness', true, 165, -122, 285, subM);
addItem('Agriculture', 'http://www.co.dutchess.ny.us/Business/BUSagrindex.htm', '');
addItem('Bidding & RFP Opportunities', 'http://www.co.dutchess.ny.us/Business/CSBiddingRFP.htm', '');
addItem('Business Groups & Chambers of Commerce', 'http://www.co.dutchess.ny.us/Business/BUSChambers.htm', '');
addItem('Business Resources', 'window.open("http://www.thinkdutchess.com/dcedc/business_resources.html")', 'js:');
addItem('Dutchess County EDC', 'window.open("http://www.thinkdutchess.com/")', 'js:');
addItem('Economic Development', 'http://www.co.dutchess.ny.us/Business/BUSedindex.htm', '');
startMenu('mSchools', true, 165, -197, 350, subM);
addItem('Education Information', 'http://www.co.dutchess.ny.us/Schools/SCHindex.htm', '');
addItem('Elementary & Secondary Schools', 'http://www.co.dutchess.ny.us/Schools/SCHesschools.htm', '');
addItem('Private & Parochial Schools', 'http://www.co.dutchess.ny.us/Schools/SCHprivateschools.htm', '');
addItem('BOCES', 'window.open("http://www.dcboces.org/index.php")', 'js:');
addItem('BOCES Adult Education', 'window.open("http://www.dcboces.org/adults/")', 'js:');
addItem('Marist College Adult Education', 'window.open("http://www.marist.edu/admission/adult/index.html")', 'js:');
addItem('Colleges', 'http://www.co.dutchess.ny.us/Schools/SCHcolleges.htm', '');
addItem('Distance Learning', 'http://www.co.dutchess.ny.us/Schools/SCHdlearning.htm', '');
addItem('School Tax Collectors by School District', 'http://www.co.dutchess.ny.us/Schools/RPschooltc.htm', '');
addItem('NYS Education Department', 'window.open("http://www.nysed.gov/")', 'js:');
addItem('NYS Curriculum, Instruction & Instructional Technology', 'window.open("http://www.emsc.nysed.gov/ciai/home.html")', 'js:');
startMenu('mTourism', true, 165, -72, 290, subM);
addItem('Directions', 'window.open("http://www.dutchesstourism.com/mapsdirections.asp#here")', 'js:');
addItem('History of Dutchess County', 'http://www.co.dutchess.ny.us/Tourism/HistIndex.htm', '');
addItem('County Parks', 'http://www.co.dutchess.ny.us/Tourism/PPIndex.htm', '');
addItem('Non-County Parks', 'window.open("http://www.dutchesstourism.com/parks.asp")', 'js:');
addItem('DC Tourism Bureau', 'window.open("http://www.dutchesstourism.com/")', 'js:');
addItem('Dining and Lodging', 'http://www.co.dutchess.ny.us/Tourism/VisitIndex.htm', '');
addItem('Hudson River Valley National Heritage Area', 'window.open("http://www.hudsonrivervalley.com/")', 'js:');
addItem('Culture & Performing Arts', 'http://www.co.dutchess.ny.us/Tourism/CultIndex.htm', '');
addItem('Mid-Hudson Civic Center', 'window.open("http://www.midhudsonciviccenter.com/")', 'js:');
addItem('Hudson Valley Renegades', 'window.open("http://www.hvrenegades.com/")', 'js:');
addItem('Dutchess County Fair', 'window.open("http://www.dutchessfair.com/")', 'js:');
addItem('Farm Markets', 'window.open("http://www.dutchesstourism.com/farm.asp")', 'js:');
addItem('Gardens', 'window.open("http://www.dutchesstourism.com/gardens.asp")', 'js:');
addItem('Genealogy', 'http://www.co.dutchess.ny.us/Tourism/GeneIndex.htm', '');
addItem('Golf Courses', 'window.open("http://www.dutchesstourism.com/golf.asp")', 'js:');
addItem('Hiking', 'window.open("http://www.dutchesstourism.com/hiking.asp")', 'js:');
addItem('Historic Sites', 'window.open("http://www.dutchesstourism.com/historic-sites.asp")', 'js:');
addItem('History Museums', 'window.open("http://www.dutchesstourism.com/historic-museums.asp")', 'js:');
addItem('Tours and Trails', 'http://www.co.dutchess.ny.us/Tourism/ToursIndex.htm', '');
startMenu('mCommunity', true, 165, -172, 290, subM);
addItem('All Hazards Information', 'http://www.co.dutchess.ny.us/Community/15510.htm', '');
addItem('Community Service Agencies', 'http://www.co.dutchess.ny.us/Community/CSagencies.htm', '');
addItem('Emergency Services', 'http://www.co.dutchess.ny.us/CountyGov/EmergencyServicesIndex.htm', '');
addItem('Environment/Land Preservation', 'http://www.co.dutchess.ny.us/Community/ELPindex.htm', '');
addItem('Health Care & Hospitals', 'http://www.co.dutchess.ny.us/Community/HCIndex.htm', '');
addItem('Housing', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/17321.htm', '');
addItem('Libraries', 'http://www.co.dutchess.ny.us/Community/LIBindex.htm', '');
addItem('Making Your Move Easier', 'http://www.co.dutchess.ny.us/Community/11993.htm', '');
addItem('Mid-Hudson Multiple Listing Service', 'window.open("http://www.midhudsonmlshomes.com/")', 'js:');
addItem('Senior Citizen Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Aging/AGIndex.htm', '');
addItem('Telephone/Cellular Companies', 'http://www.co.dutchess.ny.us/Community/PhoneCell.htm', '');
addItem('Utility & Cable Companies', 'http://www.co.dutchess.ny.us/Community/UtilityCable.htm', '');
addItem('Victims\' Resources and Services ', 'http://www.co.dutchess.ny.us/Community/VictimServices.htm', '');
addItem('Volunteer Opportunities in Dutchess County', 'http://www.co.dutchess.ny.us/Community/VolOpportunities.htm', '');
addItem('Youth Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/YouthBureau/YBindex.htm', '');
startMenu('mElectedOfficials', true, 165, -147, 175, subM);
addItem('County Executive', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyExecutive/CEIndex.htm', '');
addItem('County Legislators', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Legislature/CLlegislators.htm', '');
addItem('Comptroller', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Comptroller/COindex.htm', '');
addItem('County Clerk', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyClerk/CCindex.htm', '');
addItem('District Attorney', 'http://www.co.dutchess.ny.us/CountyGov/Departments/DistrictAttorney/DAindex.htm', '');
addItem('Sheriff', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Sheriff/SHindex.htm', '');
addItem('Municipal', 'http://www.co.dutchess.ny.us/Municipalities/MUNtownstable.htm', '');
addItem('New York State', 'http://www.co.dutchess.ny.us/ElectedOfficials/ELStateElectedOffs1.htm', '');
addItem('Federal', 'http://www.co.dutchess.ny.us/ElectedOfficials/ELFedElectedOffs1.htm', '');
startMenu('rootsrch', true, 8, 497, 160, sBar, '', false);
addItem('&nbsp;&nbsp;&nbsp;Search Our Website', 'http://www.co.dutchess.ny.us/Search/SearchPage2.asp', '');
startMenu('rootd', false, 345, 96, 17, dBar, '', false);
addItem('SWAP:<img src="graphics/FindCoDept.jpg" border="0" alt="Find a County Department">^<img src="graphics/FindCoDeptHL.jpg" border="0" alt="Find a County Department">', 'mDepartments', 'sm:');
startMenu('mDepartments', true, -230, -77, 225, subDrop);
addItem('Aging Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Aging/AGIndex.htm', '');
addItem('Airport', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Airport/ARIndex.htm', '');
addItem('Board of Elections', 'http://www.co.dutchess.ny.us/CountyGov/Departments/BOE/BEIndex.htm', '');
addItem('Budget Office', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Budget/BDIndex.htm', '');
addItem('Central Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CentralServices/CSIndex.htm', '');
addItem('Comptroller', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Comptroller/COIndex.htm', '');
addItem('Computer Information Systems, Office of', 'http://www.co.dutchess.ny.us/CountyGov/Departments/OCIS/OCIndex.htm', '');
addItem('County Attorney', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyAttorney/CAIndex.htm', '');
addItem('County Clerk', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyClerk/CCIndex.htm', '');
addItem('County Executive', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyExecutive/CEIndex.htm', '');
addItem('County Legislature', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Legislature/CLIndex.htm', '');
addItem('Criminal Justice Council', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CriminalJusticeCouncil/CJIndex.htm', '');
addItem('District Attorney', 'http://www.co.dutchess.ny.us/CountyGov/Departments/DistrictAttorney/DAIndex.htm', '');
addItem('Dutchess TASC', 'http://www.co.dutchess.ny.us/CountyGov/Departments/DTASC/DTindex.htm', '');
addItem('Emergency Response', 'http://www.co.dutchess.ny.us/CountyGov/Departments/EmergencyResponse/ERIndex.htm', '');
addItem('Finance', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Finance/FNIndex.htm', '');
addItem('Health, Department of', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Health/HDIndex.htm', '');
addItem('Human Resources', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Personnel/PSIndex.htm', '');
addItem('Jail', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Jail/JLIndex.htm', '');
addItem('Long Term Care-DUTCHESS NY Connects', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Aging/AGCasa.htm', '');
addItem('Mass Transit (LOOP Bus System)', 'http://www.co.dutchess.ny.us/CountyGov/Departments/MassTransit/PLLoopbus.htm', '');
addItem('Mental Hygiene', 'http://www.co.dutchess.ny.us/CountyGov/Departments/MentalHygiene/MHIndex.htm', '');
addItem('Motor Vehicle Bureau', 'http://www.co.dutchess.ny.us/CountyGov/Departments/CountyClerk/CCcontact.htm', '');
addItem('Planning and Development', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Planning/PLIndex.htm', '');
addItem('Probation', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Probation/PRIndex.htm', '');
addItem('Public Defender', 'http://www.co.dutchess.ny.us/CountyGov/Departments/PublicDefender/PDIndex.htm', '');
addItem('Public Works', 'http://www.co.dutchess.ny.us/CountyGov/Departments/PublicWorks/PWIndex.htm', '');
addItem('Public Works - Parks', 'http://www.co.dutchess.ny.us/CountyGov/Departments/DPW-Parks/PPIndex.htm', '');
addItem('Real Property Tax', 'http://www.co.dutchess.ny.us/CountyGov/Departments/RealPropertyTax/RPIndex.htm', '');
addItem('Resource Recovery Agency', 'http://www.co.dutchess.ny.us/CountyGov/Departments/ResourceRec/RRindex.htm', '');
addItem('Services for Aging, Veterans and Youth', 'http://www.co.dutchess.ny.us/CountyGov/Departments/SAVY/SAVYIndex.htm', '');
addItem('Sheriff\'s Office', 'http://www.co.dutchess.ny.us/CountyGov/Departments/Sheriff/SHIndex.htm', '');
addItem('Social Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/SocialServices/SSIndex.htm', '');
addItem('Solid Waste Management', 'http://www.co.dutchess.ny.us/CountyGov/Departments/SolidWasteMgmt/SWindex.htm', '');
addItem('STOP-DWI', 'http://www.co.dutchess.ny.us/CountyGov/Departments/STOPDWI/DWIndex.htm', '');
addItem('Traffic Safety Board', 'http://www.co.dutchess.ny.us/CountyGov/Departments/TrafficSafety/TSIndex.htm', '');
addItem('Transportation Council', 'http://www.co.dutchess.ny.us/CountyGov/Departments/TransportationCouncil/PLpdctcIndex.htm', '');
addItem('Veterans Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/VeteransAffairs/VAIndex.htm', '');
addItem('Water and Wastewater Authority', 'http://www.co.dutchess.ny.us/CountyGov/Departments/WaterandWaste/WRIndex.htm', '');
addItem('Youth Services', 'http://www.co.dutchess.ny.us/CountyGov/Departments/YouthBureau/YBIndex.htm', '');
showDelay = 90;
hideDelay = 50;
}
// Animation:
function menuAnim(menuObj, menuName, dir)
{
 // The array index of the named menu (e.g. 'mFile') in the menu object (e.g. 'pMenu').
 var mD = menuObj.menu[menuName][0];
 // Add timer and counter variables to the menu data structure, we'll need them.
 if (!mD.timer) mD.timer = 0;
 if (!mD.counter) mD.counter = 0;
 with (mD)
 {  
  clearTimeout(timer);
  if (dir>0 && !menuObj.litNow[menuObj.menu[menuName][0].parentMenu]) dir = -100;  
  if (!lyr || !lyr.ref) return; 
  if (!visNow && dir>0) dir = 0-dir;  
  if (dir>0) lyr.vis('visible'); 
  lyr.sty.zIndex = dir>0 ? mD.zIndex + 1 : 1001;  
  lyr.clip(0, 0, menuW+2, (menuH+2)*Math.pow(Math.sin(Math.PI*counter/200),0.75) );
  counter += dir;
  if (counter>100) { counter = 100; lyr.sty.zIndex = mD.zIndex }
  else if (counter<0) { counter = 0; lyr.vis('hidden') }
  else timer = setTimeout('menuAnim('+menuObj.myName+',"'+menuName+'",'+dir+')', 40);
 }
};
addMenuBorder(pMenu, window.subBlank, null, '#666666', 1, '#CCCCDD', 2);
addDropShadow(pMenu, window.hBar, [60,"#333333",6,6,-4,-4]);
addDropShadow(pMenu, window.sBar, [60,"#333333",6,6,-4,-4]);
addDropShadow(pMenu, window.subM,
 [30,"#333333",6,6,-4,-4], [30,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subQ,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subD,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subDrop,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
addDropShadow(pMenu, window.subBlank,
 [40,"#333333",6,6,-4,-4], [40,"#666666",4,4,0,0]);
if ((navigator.userAgent.indexOf('rv:0.')==-1) &&
    !(isOp&&!document.documentElement) && !(isIE4&&!window.external))
{
 pMenu.showMenu = new Function('mN','menuAnim(this, mN, 15)');
 pMenu.hideMenu = new Function('mN','menuAnim(this, mN, -15)');
}
page.elmPos=function(e,p)
{
 var x=0,y=0,w=p?p:this.win;
 e=e?(e.substr?(isNS4?w.document.anchors[e]:getRef(e,w)):e):p;
 if(isNS4){if(e&&(e!=p)){x=e.x;y=e.y};if(p){x+=p.pageX;y+=p.pageY}}
 if (e && this.MS && navigator.platform.indexOf('Mac')>-1 && e.tagName=='A')
 {
  e.onfocus = new Function('with(event){self.tmpX=clientX-offsetX;' +
   'self.tmpY=clientY-offsetY}');
  e.focus();x=tmpX;y=tmpY;e.blur()
 }
 else while(e){x+=e.offsetLeft;y+=e.offsetTop;e=e.offsetParent}
 return{x:x,y:y};
};
function addMenuBorder(mObj, iS, alpha, bordCol, bordW, backCol, backW)
{
 // Loop through the menu array of that object, finding matching ItemStyles.
 for (var mN in mObj.menu)
 {
  var mR=mObj.menu[mN], dS='<div style="position:absolute; background:';
  if (mR[0].itemSty != iS) continue;
  // Loop through the items in that menu, move them down and to the right a bit.
  for (var mI=1; mI<mR.length; mI++)
  {
   mR[mI].iX += bordW+backW;
   mR[mI].iY += bordW+backW;
  }
  // Extend the total dimensions of menu accordingly.
  mW = mR[0].menuW += 2*(bordW+backW);
  mH = mR[0].menuH += 2*(bordW+backW);

  // Set the menu's extra content string with divs/layers underneath the items.
  if (isNS4) mR[0].extraHTML += '<layer bgcolor="'+bordCol+'" left="0" top="0" width="'+mW+
   '" height="'+mH+'" z-index="980"><layer bgcolor="'+backCol+'" left="'+bordW+'" top="'+
   bordW+'" width="'+(mW-2*bordW)+'" height="'+(mH-2*bordW)+'" z-index="990"></layer></layer>';
  else mR[0].extraHTML += dS+bordCol+'; left:0px; top:0px; width:'+mW+'px; height:'+mH+
   'px; z-index:980; '+
   (alpha!=null?'filter:alpha(opacity='+alpha+'); -moz-opacity:'+alpha+'%; opacity:'+(alpha/100):'')+
   '">'+dS+backCol+'; left:'+bordW+'px; top:'+bordW+'px; width:'+(mW-2*bordW)+'px; height:'+
   (mH-2*bordW)+'px; z-index:990"></div></div>';
 }
};
function addDropShadow(mObj, iS)
{
 for (var mN in mObj.menu)
 {
  var a=arguments, mD=mObj.menu[mN][0], addW=addH=0;
  if (mD.itemSty != iS) continue;
  for (var shad=2; shad<a.length; shad++)
  {
   var s = a[shad];
   // Safari 1.2 bug: it inherits alpha values SIDEWAYS!?!? What were they thinking?
   var alpha = (s[0]!=null && navigator.userAgent.indexOf('AppleWebKit') == -1);
   if (isNS4) mD.extraHTML += '<layer bgcolor="'+s[1]+'" left="'+s[2]+'" top="'+s[3]+'" width="'+
    (mD.menuW+s[4])+'" height="'+(mD.menuH+s[5])+'" z-index="'+(arguments.length-shad)+'"></layer>';
   else mD.extraHTML += '<div style="position:absolute; background:'+s[1]+'; left:'+s[2]+
    'px; top:'+s[3]+'px; width:'+(mD.menuW+s[4])+'px; height:'+(mD.menuH+s[5])+'px; -z-index:'+
    (a.length-shad)+'; '+
    (alpha?'filter:alpha(opacity='+s[0]+'); -moz-opacity:'+s[0]+'%; opacity:'+(s[0]/100):'')+
    '"></div>';
   addW=Math.max(addW, s[2]+s[4]);
   addH=Math.max(addH, s[3]+s[5]);
  }
  mD.menuW+=addW; mD.menuH+=addH;
 }
};
pMenu.onclick = function() { with (this)
{
 // links for top level menus
 if (overM == 'rootQuickLinks' && overI == 1) location.href = 'http://www.co.dutchess.ny.us/Glance/GlanceIndex.htm';
 if (overM == 'rootQuickLinks' && overI == 2) location.href = 'http://www.co.dutchess.ny.us/QuickLinks/17006.htm';
 if (overM == 'rootQuickLinks' && overI == 3) location.href = 'http://www.co.dutchess.ny.us/CountyGov/Mapping.htm';
 if (overM == 'rootQuickLinks' && overI == 4) location.href = 'http://www.co.dutchess.ny.us/CountyGov/DCegov.htm'; 
 if (overM == 'rootQuickLinks' && overI == 5) location.href = 'http://www.co.dutchess.ny.us/QuickLinks/Transportation.htm';
 if (overM == 'rootQuickLinks' && overI == 6) location.href = 'http://www.co.dutchess.ny.us/QuickLinks/Newspapers.htm';
 if (overM == 'rootQuickLinks' && overI == 7) location.href = 'http://www.co.dutchess.ny.us/QuickLinks/NYSSites.htm';
 if (overM == 'rootQuickLinks' && overI == 8) location.href = 'http://www.co.dutchess.ny.us/QuickLinks/FedSites.htm';
 if (overM == 'root' && overI == 1) location.href = 'http://www.co.dutchess.ny.us/CountyGov/AllServices.htm';
 if (overM == 'root' && overI == 2) location.href = 'http://www.co.dutchess.ny.us/CountyGov/CountyGovInfo.htm';
 if (overM == 'root' && overI == 3) location.href = 'http://www.co.dutchess.ny.us/Municipalities/Municipalities.htm';
 if (overM == 'root' && overI == 4) location.href = 'http://www.co.dutchess.ny.us/Business/Business.htm';
 if (overM == 'root' && overI == 5) location.href = 'http://www.co.dutchess.ny.us/Schools/Schools.htm';
 if (overM == 'root' && overI == 6) location.href = 'http://www.co.dutchess.ny.us/Tourism/Tourism.htm';
 if (overM == 'root' && overI == 7) location.href = 'http://www.co.dutchess.ny.us/Community/Community.htm';
 if (overM == 'root' && overI == 8) location.href = 'http://www.co.dutchess.ny.us/ElectedOfficials/ElectedOfficials.htm';
 if (overM == 'rootd' && overI == 1) location.href = 'http://www.co.dutchess.ny.us/CountyGov/DeptDepartments.htm';
 if (overM == 'rootsrch' && overI == 1) location.href = 'http://www.co.dutchess.ny.us/Search/SearchPage2.asp';
}};
