﻿<!--
var slideShowSpeed = 4000;
var crossFadeDuration = 50;
var Pic = new Array();

Pic[0] = 'images/slide1.jpg';
Pic[1] = 'images/slide2.jpg';
Pic[2] = 'images/slide3.jpg';
Pic[3] = 'images/slide4.jpg';
Pic[4] = 'images/slide5.jpg';

var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();

for (i = 0; i < p; i++) {
    preLoad[i] = new Image();
    preLoad[i].src = Pic[i];
}

function InsertHeader()
{
    document.write('\
        <div class="quicklink_bar">\
	    <table class="quicklink_table">\
		<tr>\
		    <td>\
			<a href="../default.html">Home</a>\
		    </td>\
		    <td>\
			<a href="../other/site_map.html">Site Map</a>\
		    </td>\
		    <td>\
			<a href="../visiting/events.php">Events</a>\
		    </td>\
		    <td>\
			<a href="../business/business_directory.php">Business Directory</a>\
		    </td>\
		    <td>\
			<a href="../other/map.html">Map</a>\
		    </td>\
		    <td>\
			<a href="../town_hall/directory.html">Contact Us</a>\
		    </td>\
		    <td>\
			<a href="../other/links.html">Links</a>\
		    </td>\
		    <td style="padding-top: 0px; margin-left: 85px; padding-left: 85px;">\
			<div class="search_box">\
		        <form action="http://www.ingersoll.ca/other/results.html" id="searchbox_002528607845667610809:bek6gvmz2gu">\
			<input type="hidden" name="cx" value="002528607845667610809:bek6gvmz2gu" />\
			<input type="hidden" name="cof" value="FORID:11" />\
  			<input type="text" name="q" size="25" />\
			<div style="position: absolute; left: 165px; top: -1px;">\
  			<input type="image" width="25" alt="Try our new search" src="http://www.ingersoll.ca/images/search_image.png" name="sa" value="Search" />\
			</div>\
			</form>\
			<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_002528607845667610809%3Abek6gvmz2gu&lang=en"></script>\
            		</div> \
		    </td>\
		</tr>\
	    </table>\
	</div>\
	<div class="header_images">\
        <a href="http://www.ingersoll.ca"><img id="clock_tower" class="clock_tower" src="../images/clock_tower.png" alt="Clock Tower on the Town Hall" onload="InsertCompatibility(this)"></img></a>\
	 <img id="town_words" class="town_words" src="../images/town_words.png" alt="Ingersoll, A Heritage and a Future" onload="InsertCompatibility(this)"></img>\
	<img id="town_collage" class="town_collage" src="../images/town_collage.png" alt="Town of Ingersoll" onload="InsertCompatibility(this)"></img>\
        <div class="top_menu">\
	    <div onmouseover="ChangeButton(0,0)" onmouseout="ChangeButton(0,1)" id="button0" class="living_here_button"><a href="../living_here/default.html">RESIDENTS</a></div>\
	    <div onmouseover="ChangeButton(1,0)" onmouseout="ChangeButton(1,1)" id="button1" class="visiting_button"><a href="../visiting/default.html">VISITING</a></div>\
	    <div onmouseover="ChangeButton(2,0)" onmouseout="ChangeButton(2,1)" id="button2" class="business_button"><a href="../business/default.html">ECONOMIC DEVELOPMENT</a></div>\
	    <div onmouseover="ChangeButton(3,0)" onmouseout="ChangeButton(3,1)" id="button3" class="town_hall_button"><a href="../town_hall/default.html">TOWN HALL</a></div>\
	    <div onmouseover="ChangeButton(4,0)" onmouseout="ChangeButton(4,1)" id="button4" class="services_button"><a href="../on_line_services/default.html">ON-LINE SERVICES</a></div>\
        </div>\
	</div>\
    ');
}

function InsertHeader2()
{
    document.write('\
	<div class="quicklink_bar">\
	    <table class="quicklink_table">\
		<tr>\
		    <td>\
			<a href="default.html">Home</a>\
		    </td>\
		    <td>\
			<a href="other/site_map.html">Site Map</a>\
		    </td>\
		    <td>\
			<a href="visiting/events.php">Events</a>\
		    </td>\
		    <td>\
			<a href="business/business_directory.php">Business Directory</a>\
		    </td>\
		    <td>\
			<a href="other/map.html">Map</a>\
		    </td>\
		    <td>\
			<a href="town_hall/directory.html">Contact Us</a>\
		    </td>\
		    <td>\
			<a href="../other/links.html">Links</a>\
		    </td>\
		    <td style="padding-top: 0px; margin-left: 85px; padding-left: 85px;">\
			<div class="search_box">\
		        <form action="http://www.ingersoll.ca/other/results.html" id="searchbox_002528607845667610809:bek6gvmz2gu">\
			<input type="hidden" name="cx" value="002528607845667610809:bek6gvmz2gu" />\
			<input type="hidden" name="cof" value="FORID:11" />\
  			<input type="text" name="q" size="25" />\
			<div style="position: absolute; left: 165px; top: -1px;">\
  			<input type="image" width="25" alt="Try our new search" src="http://www.ingersoll.ca/images/search_image.png" name="sa" value="Search" />\
			</div>\
			</form>\
			<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_002528607845667610809%3Abek6gvmz2gu&lang=en"></script>\
            		</div> \
		    </td>\
		</td>\
	    </table>\
	</div>\
	<div class="header_images">\
        <img id="clock_tower" class="clock_tower" src="images/clock_tower.png" alt="Clock Tower on the Town Hall" onload="InsertCompatibility(this)"></img>\
	<img id="town_words" class="town_words" src="images/town_words.png" alt="Ingersoll, A Heritage and a Future" onload="InsertCompatibility(this)"></img>\
	<img id="town_collage" class="town_collage" src="images/town_collage.png" alt="Town of Ingersoll" onload="InsertCompatibility(this)"></img>\
	<div class="top_menu">\
	    <div onmouseover="ChangeButton2(0,0)" onmouseout="ChangeButton2(0,1)" id="button0" class="living_here_button"><a href="living_here/default.html">RESIDENTS</a></div>\
	    <div onmouseover="ChangeButton2(1,0)" onmouseout="ChangeButton2(1,1)" id="button1" class="visiting_button"><a href="visiting/default.html">VISITING</a></div>\
	    <div onmouseover="ChangeButton2(2,0)" onmouseout="ChangeButton2(2,1)" id="button2" class="business_button"><a href="business/default.html">ECONOMIC DEVELOPMENT</a></div>\
	    <div onmouseover="ChangeButton2(3,0)" onmouseout="ChangeButton2(3,1)" id="button3" class="town_hall_button"><a href="town_hall/default.html">TOWN HALL</a></div>\
	    <div onmouseover="ChangeButton2(4,0)" onmouseout="ChangeButton2(4,1)" id="button4" class="services_button"><a href="on_line_services/default.html">ON-LINE SERVICES</a></div>\
        </div>\
	</div>\
    ');
}
function InsertFooter()
{
    document.write('\
	<div class="footer">\
	    <img id="data_bottom3" class="data_bottom2" alt="" src="../images/data_bottom.png" onload="InsertCompatibility(this)"></img>\
            <div class="date_time_stamp">\
                <script type="text/javascript">InsertDateTimeStamp()</script>\
            </div>\
	    <div class="footer_left">\
                <a href="../other/site_requirements.html">Site Requirements</a> |\
	        <a href="../other/disclaimer.html">Disclaimer</a> |\
	        <a href="../other/privacy_policy.html">Privacy Policy</a> |\
	        <a href="../other/site_map.html">Site Map</a><br/>\
                Copyright © 2006 - 2008 The Corporation of the Town of Ingersoll. Site Design by & Maintained by Town of Ingersoll<br/>\
                Submit questions or comments to <a href="../other/comments.aspx">comments@ingersoll.ca</a>\
            </div>\
            <div class="footer_right">\
                130 Oxford Street, 2nd Floor<br/>\
		Ingersoll, Ontario<br/>\
		N5C 2V5<br/>\
		Tel: (519) 485-0120<br/>\
		Fax: (519) 485-3543<br/>\
            </div>\
	    <img id="watermark" onload="InsertCompatibility(this)" class="watermark" src="../images/crest_trans.png" alt=""></img>\
	    <img id="footer_image" onload="InsertCompatibility(this)" class="footer_background" src="../images/footer.png" alt=""></img>\
	</div>\
    ');
}
function InsertFooter2()
{
    document.write('\
	<div class="footer">\
	    <img id="data_bottom2" class="data_bottom3" alt="" src="../images/data_bottom.png" onload="InsertCompatibility(this)"></img>\
            <div class="date_time_stamp2">\
                <script type="text/javascript">InsertDateTimeStamp()</script>\
            </div>\
	    <div class="footer_left">\
                <a href="site_requirements.html">Site Requirements</a> |\
	        <a href="disclaimer.html">Disclaimer</a> |\
	        <a href="privacy_policy.html">Privacy Policy</a> |\
	        <a href="site_map.html">Site Map</a><br/>\
                Copyright © 2006 - 2008 The Corporation of the Town of Ingersoll. Site Design by & Maintained by Town of Ingersoll<br/>\
                Submit questions or comments to <a href="../other/comments.aspx">comments@ingersoll.ca</a>\
            </div>\
            <div class="footer_right">\
                130 Oxford Street, 2nd Floor<br/>\
		Ingersoll, Ontario<br/>\
		N5C 2V5<br/>\
		Tel: (519) 485-0120<br/>\
		Fax: (519) 485-3543<br/>\
            </div>\
	    <img id="watermark" onload="InsertCompatibility(this)" class="watermark" src="../images/crest_trans.png" alt=""></img>\
	    <img id="footer_image" onload="InsertCompatibility(this)" class="footer_background" src="../images/footer.png" alt=""></img>\
	</div>\
    ');
}
function InsertFooter3()
{
    document.write('\
	<div class="footer">\
	    <img id="data_bottom2" class="data_bottom3" alt="" src="images/data_bottom.png" onload="InsertCompatibility(this)"></img>\
            <div class="date_time_stamp2">\
                <script type="text/javascript">InsertDateTimeStamp()</script>\
            </div>\
	    <div class="footer_left">\
                <a href="other/site_requirements.html">Site Requirements</a> |\
	        <a href="other/disclaimer.html">Disclaimer</a> |\
	        <a href="other/privacy_policy.html">Privacy Policy</a> |<br/>\
		Copyright © 2006 - 2008 The Corporation of the Town of Ingersoll. Site Design by & Maintained by Town of Ingersoll<br/>\
                Submit questions or comments to <a href="other/comments.aspx">comments@ingersoll.ca</a>\
            </div>\
            <div class="footer_right">\
                130 Oxford Street, 2nd Floor<br/>\
		Ingersoll, Ontario<br/>\
		N5C 2V5<br/>\
		Tel: (519) 485-0120<br/>\
		Fax: (519) 485-3543<br/>\
            </div>\
	    <img id="footer_image2" onload="InsertCompatibility(this)" class="footer_background" src="images/footer.png" alt=""></img>\
	</div>\
    ');
}
function InsertLivingHereMenu(sub_menu)
{
    document.write('\
	<div class="menu">\
            <img alt="" style="width: 211px;" src="../images/menu_top.jpg"></img>\
            <img onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" id="home" class="home" style="left: 100px;" alt="" src="../images/home.png"></img>\
	    <a onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" class="menu_header" href="default.html">residents</a>\
	    <ul class="menu_level1">\
		<li><a href="about_ingersoll.html">about ingersoll</a></li>\
		<li><a href="accessibility.html">accessibility</a></li>\
		<li><a href="para_transit.html">paratransit</a></li>\
		<li><a href="parking.html">parking</a></li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu1\',8);">building & planning</a>\
		    <ul id="sub_menu1" style="display: none" class="menu_level2">\
			<li><a href="building_services.html">building services</a>\
			<li><a href="building_fees.html">building fees</a>\
			<li><a href="planning.html">planning</a>\
			<li><a href="planning_applications.html">planning applications</a>\
		    </ul>\
		</li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu2\',8);">emergency services</a>\
		    <ul id="sub_menu2" style="display: none" class="menu_level2">\
			<li><a href="emergency_information.html">emergency information</a></li>\
			<li><a href="emergency_planning.html">emergency planning</a></li>\
		    </ul>\
		</li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu8\',8);">fire services</a>\
		    <ul id="sub_menu8" style="display: none" class="menu_level2">\
			<li><a href="fire_prevention.html">prevention &amp; public education</a></li>\
			<li><a href="fire_station.html">fire station &amp; apparatus</a></li>\
			<li><a href="training.html">training</a></li>\
			<li><a href="faqs.html">faqs</a></li>\
			<li><a href="links.html">links</a></li>\
		    </ul>\
		</li>\
		<li><a href="garbage_recycling.html">garbage & recycling</a></li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu3\',8);">licences, certificates & permits</a>\
		    <ul id="sub_menu3" style="display: none" class="menu_level2">\
			<li><a href="birth_certificates.html">birth certificates</a>\
			<li><a href="building_permits.html">building permits</a>\
			<li><a href="death_certificates.html">death certificates</a>\
			<li><a href="dog_licences.html">dog licences</a>\
			<li><a href="marriage_licences.html">marriage licences</a>\
		    </ul>\
		</li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu4\',8);">property taxes</a>\
		    <ul id="sub_menu4" style="display: none" class="menu_level2">\
			<li><a href="property_taxes_due_dates.html">property taxes & due dates</a>\
			<li><a href="taxation_information.html">taxation information</a>\
			<li><a href="assessment_information.html">assessment information</a>\
			<li><a href="tax_rates.html">tax rates</a>\
			<li><a href="pre_authorized_payments.html">pre-authorized payments</a>\
		    </ul>\
		</li>\
		<li><a href="financial_reports_MPMP.html">financial reports & mpmp</a>\
		<li><a href="javascript:ToggleMenu(\'sub_menu5\',8);">recreation & parks</a>\
		    <ul id="sub_menu5" style="display: none" class="menu_level2">\
			<li><a href="areas_responsibilities.html">areas & responsibilities</a>\
			<li><a href="vpcc.html">victoria park community<br/>center</a>\
			<li><a href="idma.html">ingersoll district memorial<br/>arena</a>\
			<li><a href="programs.html">programs</a>\
			<li><a href="memberships.html">memberships</a>\
			<li><a href="registrations.html">registrations and policies</a>\
		    </ul>\
		</li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu6\',8);">cheese & agricultural museum</a>\
		    <ul id="sub_menu6" style="display: none;" class="menu_level2">\
			<li><a href="brief_history.html">a brief history</a>\
			<li><a href="museum_information.html">driving directions & hours</a>\
			<li><a href="out_reach_programs.html">out reach programs</a>\
			<li><a href="upcoming_events.html">upcoming events & exhibits</a>\
			<li><a href="volunteer_opportunities.html">volunteer opportunities</a>\
		    </ul>\
		</li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu7\',8);">ingersoll C.O.P.S. committee</a>\
		    <ul id="sub_menu7" style="display: none" class="menu_level2">\
			<li><a href="mission_statement.html">mission statement</a>\
			<li><a href="letter.html">letter to the editor</a>\
		    </ul>\
		</li>\
		<li><a href="services_for_seniors.html">ingersoll services for seniors</a></li>\
		<li><a href="youth_center.html">youth center</a></li>\
	    </ul>\
	</div>\
	<img id="menu_bottom" class="menu_bottom" src="../images/menu_bottom.png" onload="InsertCompatibility(this)" alt=""></img>\
    ');
}
function InsertVisitingMenu(sub_menu)
{
    document.write('\
	<div class="menu">\
            <img alt="" style="width: 211px;" src="../images/menu_top.jpg"></img>\
            <img onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" id="home" class="home" style="left: 80px;" alt="" src="../images/home.png"></img>\
	    <a onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" class="menu_header" href="default.html">visiting</a>\
	    <ul class="menu_level1">\
		<li><a href="history.html">history</a></li>\
		<li><a href="things_to_do.html">things to do</a></li>\
		<li><a href="places_to_stay.html">places to stay</a></li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu1\',2);">festival & events</a>\
		    <ul id="sub_menu1" style="display: none;" class="menu_level2">\
			<li><a href="events.php">events</a>\
			<li><a href="festival_of_lights.html">festival of lights</a>\
			<li><a target="_blank" href="../harvest_festival/index.html">harvest festival</a>\
			<li><a target="_blank" href="http://www.canterburyfolkfestival.on.ca">canterbury folk festival</a>\
		    </ul>\
		</li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu2\',2);">cheese & agricultural museum</a>\
		    <ul id="sub_menu2" style="display: none;" class="menu_level2">\
			<li><a href="../living_here/brief_history.html">a brief history</a>\
			<li><a href="../living_here/museum_information.html">driving directions & hours</a>\
			<li><a href="../living_here/out_reach_programs.html">out reach programs</a>\
			<li><a href="../living_here/upcoming_events.html">upcoming events & exhibits</a>\
			<li><a href="../living_here/volunteer_opportunities.html">volunteer opportunities</a>\
		    </ul>\
		</li>\
	    </ul>\
	</div>\
	<img id="menu_bottom" class="menu_bottom" src="../images/menu_bottom.png" onload="InsertCompatibility(this)" alt=""></img>\
    ');
}
function InsertBusinessMenu(sub_menu)
{
    document.write('\
	<div class="menu">\
            <img alt="" style="width: 211px;" src="../images/menu_top.jpg"></img>\
            <img onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" id="home" class="home" style="left: 100px;" alt="" src="../images/home.png"></img>\
	    <a onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" class="menu_header" href="default.html">economic development</a>\
	    <ul class="menu_level1">\
		<li><a href="mandate_resources.html">mandate & resources</a></li>\
		<li><a href="alliance_memberships.html">alliance & memberships</a></li>\
		<li><a href="publications.html">presentations &amp; publications</a></li>\
		<li><a href="business_directory.php">business directory</a></li>\
		<li><a href="business_links.html">business links</a></li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu2\',2);">business improvement area</a>\
		    <ul id="sub_menu2" style="display: none;" class="menu_level2">\
			<li><a href="bia_wedding_committee.html">wedding committee</a></li>\
			<li><a href="bia_whatis.html">what is a bia?</a></li>\
			<li><a href="bia_minutes.html">meeting minutes</a></li>\
			<li><a href="bia_mandate.html">mandate</a></li>\
			<li><a href="bia_benefits.html">benefits</a></li>\
			<li><a href="bia_board.html">board of directors</a></li>\
			<li><a href="economic_development_programs.html">BIA programs</a>\
		    </ul>\
		</li>\
		<li><a href="economic_development_programs.html">economic development programs</a>\
		<li><a href="industrial_land.html">industrial land for sale</a></li>\
		<li><a href="commercial_land.html">commercial land for sale</a></li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu1\',2);">community profile</a>\
		    <ul id="sub_menu1" style="display: none;" class="menu_level2">\
			<li><a href="building_statistics.html">building statistics</a>\
			<li><a href="location.html">location</a>\
			<li><a href="demographics.html">demographics</a>\
			<li><a href="education.html">education</a>\
			<li><a href="labour.html">labour</a>\
			<li><a href="transportation.html">transportation</a>\
			<li><a href="taxation.html">taxation</a>\
			<li><a href="utilities.html">utilities</a>\
			<li><a href="protective_services.html">protective services</a>\
			<li><a href="quality_of_life.html">quality of life</a>\
		    </ul>\
		</li>\
		<li><a target="_blank" href="http://maps.county.oxford.on.ca/econing/">mapping</a>\
		<li><a target="_blank" href="http://www.tourismoxford.ca/">tourism</a>\
	    </ul>\
	</div>\
	<img id="menu_bottom" class="menu_bottom" src="../images/menu_bottom.png" onload="InsertCompatibility(this)" alt=""></img>\
    ');
}
function InsertTownhallMenu(sub_menu)
{
    document.write('\
	<div class="menu">\
            <img alt="" style="width: 211px;" src="../images/menu_top.jpg"></img>\
            <img onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" id="home" class="home" style="left: 100px;" alt="" src="../images/home.png"></img>\
	    <a onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" class="menu_header" href="default.html">town hall</a>\
	    <ul class="menu_level1">\
		<li><a href="javascript:ToggleMenu(\'sub_menu1\',4);">mayor & council</a>\
		    <ul id="sub_menu1" style="display: none;" class="menu_level2">\
			<li><a href="welcome.html">welcome</a>\
			<li><a href="town_council.html">town council</a>\
			<li><a href="election_results.html">election results</a>\
		    </ul>\
		</li>\
		<li><a href="minutes_agendas.html">minutes & agendas</a></li>\
		<li><a href="town_administration.html">town administration</a></li>\
		<li><a href="bids_tenders.html">bids &amp; tenders</a></li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu4\',4);">budget & finances</a>\
		    <ul id="sub_menu4" style="display: none;" class="menu_level2">\
			<li><a href="finance_information.html">information</a>\
			<li><a href="../living_here/financial_reports_mpmp.html">financial reports & mpmp</a>\
			<li><a href="budgets.html">budgets</a>\
			<li><a href="various_fees.html">various fees</a>\
		    </ul>\
		</li>\
		<li><a href="employment.html">employment</a></li>\
		<li><a href="public_notices.html">public notices</a>\
		<li><a href="municipal_elections.html">municipal elections</a></li>\
		<li><a href="by_laws.html">by laws</a></li>\
		<li><a href="javascript:ToggleMenu(\'sub_menu3\',4);">town directory</a>\
		    <ul id="sub_menu3" style="display: none;" class="menu_level2">\
			<li><a href="directory.html">directory</a>\
			<li><a href="services.html">services</a>\
		    </ul>\
		</li>\
	    </ul>\
	</div>\
	<img id="menu_bottom" class="menu_bottom" src="../images/menu_bottom.png" onload="InsertCompatibility(this)" alt=""></img>\
    ');
}
function InsertOnLineServicesMenu(sub_menu)
{
    document.write('\
	<div class="menu">\
            <img alt="" style="width: 211px;" src="../images/menu_top.jpg"></img>\
            <img onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" id="home" class="home" style="left: 160px;" alt="" src="../images/home.png"></img>\
	    <a onmouseover="ToggleImage(\'home\')" onmouseout="ToggleImage(\'home\')" class="menu_header" href="default.html">on-line services</a>\
	    <ul class="menu_level1">\
		<li><a href="administration_forms.html">administration</a></li>\
		<li><a href="treasury_taxation_forms.html">treasury & taxation</a></li>\
		<li><a href="building_forms.html">building</a></li>\
		<li><a href="recreation_forms.html">recreation</a></li>\
		<li><a href="engineering_forms.html">engineering</a></li>\
	    <li><a href="community_plans.html">community plans</a></li>\
		<li><a href="emergency_management_plans.html">emergency management</a></li>\
	    </ul>\
	</div>\
	<img id="menu_bottom" class="menu_bottom" src="../images/menu_bottom.png" onload="InsertCompatibility(this)" alt=""></img>\
    ');
}
function InsertDateTimeStamp()
{
    date_updated = new Date(document.lastModified);
    date_month = date_updated.getMonth() + 1;
    date_day = date_updated.getDate();
    date_year = date_updated.getYear();
    date_hour = date_updated.getHours();
    date_minutes = date_updated.getMinutes();

    if (date_hour > 11){meridiem = "PM";}
    else{meridiem = "AM";}

    if (date_hour > 12){date_hour -=12;}   
    
    if (date_minutes > 10){document.write("Last Updated: " + date_month + "/" + date_day + "/" + date_year + " " + date_hour + ":" + date_minutes +" " + meridiem +"");}
    else {document.write("Last Updated: " + date_month + "/" + date_day + "/" + date_year + " " + date_hour + ":0" + date_minutes +" " + meridiem +"");}
}
function InsertCompatibility(myImage)
{
    var arVersion = navigator.appVersion.split("MSIE");
    var version = parseFloat(arVersion[1]);
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "";
	   var imgTitle = (myImage.title) ? "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' ";
	   if(myImage.id == "footer_image")
	   {
               var imgStyle = "display:inline-block; position: absolute; top: -25px; left: 59px;" + myImage.style.cssText;
	   }
	   else if(myImage.id == "footer_image2")
	   {
               var imgStyle = "display:inline-block; position: absolute; top: -25px; left: 72px;" + myImage.style.cssText;
	   }
	   else if(myImage.id=="town_words")
	   {
	       var imgStyle = "display:inline-block; z-index: 100; position: absolute; left: 90px; top: 20px;" + myImage.style.cssText;
	   }
	   else if(myImage.id=="town_collage")
	   {
	       var imgStyle = "display:inline-block; z-index: 90; position: absolute; left: 345px; top: 0px;" + myImage.style.cssText;
	   }
	   else if(myImage.id=="clock_tower")
	   {
	       var imgStyle = "display:inline-block; z-index: 100; position: absolute; left: 0px; top: 7px;" + myImage.style.cssText;
	   }
	   else if(myImage.id=="home")
	   {
	       var imgStyle = "display:inline-block; position: absolute; top: 63px; left: 110px;" + myImage.style.cssText;
	   }
	   else if(myImage.id=="menu_bottom")
	   {
	       var imgStyle = "display:inline-block; position: absolute; top: 100%; left: -1px; width: 212px; height: 11px;" + myImage.style.cssText;
	   }
	   else if(myImage.id=="data_bottom2")
	   {
	       var imgStyle = "display:inline-block; position: absolute; top: -15px; left: 0px; width: 583px; height: 9px;" + myImage.style.cssText;
	   }
	   else if(myImage.id=="data_bottom3")
	   {
	       var imgStyle = "display:inline-block; position: absolute; top: -15px; left: 217px; width: 583px; height: 9px;" + myImage.style.cssText;
	   }	   
	   else if(myImage.id=="watermark")
	   {
	       var imgStyle = "display:inline-block; position: absolute; top: -170px; left: 657px;" + myImage.style.cssText;
	   }
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>";
	   myImage.outerHTML = strNewHTML;
    }
}
function ChangeButton(buttonId,status)
{
    var id ="button" + buttonId;    
    var dirs=window.location.href.split('/');
    var current_dir=dirs[dirs.length-2];
    if(status == 0)
    {
	if(buttonId==4 && current_dir.toLowerCase()!="on_line_services"){document.getElementById(id).style.backgroundImage="url(../images/button_down.png)";}
	else if(buttonId==3 && current_dir.toLowerCase()!="town_hall"){document.getElementById(id).style.backgroundImage="url(../images/button_down2.png)";}
	else if(buttonId==2 && current_dir.toLowerCase()!="business"){document.getElementById(id).style.backgroundImage="url(../images/button_down4.png)";}
	else if(buttonId==1 && current_dir.toLowerCase()!="visiting"){document.getElementById(id).style.backgroundImage="url(../images/button_down3.png)";}
        else if(buttonId==0 && current_dir.toLowerCase()!="living_here"){document.getElementById(id).style.backgroundImage="url(../images/button_down2.png)";}
        document.getElementById(id).style.backgroundRepeat="no-repeat";
    }    
    else
    {
	if(buttonId==4 && current_dir.toLowerCase()!="on_line_services"){document.getElementById(id).style.backgroundImage="none";}
	else if(buttonId==3 && current_dir.toLowerCase()!="town_hall"){document.getElementById(id).style.backgroundImage="none";}
	else if(buttonId==2 && current_dir.toLowerCase()!="business"){document.getElementById(id).style.backgroundImage="none";}
	else if(buttonId==1 && current_dir.toLowerCase()!="visiting"){document.getElementById(id).style.backgroundImage="none";}
        else if(buttonId==0 && current_dir.toLowerCase()!="living_here"){document.getElementById(id).style.backgroundImage="none";}                  	   	
    }
}
function ChangeButton2(buttonId,status)
{
    var id ="button" + buttonId;    
    var dirs=window.location.href.split('/');
    var current_dir=dirs[dirs.length-2];
    if(status == 0)
    {
	if(buttonId==4 && current_dir.toLowerCase()!="on_line_services"){document.getElementById(id).style.backgroundImage="url(images/button_down.png)";}
	else if(buttonId==3 && current_dir.toLowerCase()!="town_hall"){document.getElementById(id).style.backgroundImage="url(images/button_down2.png)";}
	else if(buttonId==2 && current_dir.toLowerCase()!="business"){document.getElementById(id).style.backgroundImage="url(images/button_down4.png)";}
	else if(buttonId==1 && current_dir.toLowerCase()!="visiting"){document.getElementById(id).style.backgroundImage="url(images/button_down3.png)";}
        else if(buttonId==0 && current_dir.toLowerCase()!="living_here"){document.getElementById(id).style.backgroundImage="url(images/button_down2.png)";}
        document.getElementById(id).style.backgroundRepeat="no-repeat";
    }    
    else
    {
	if(buttonId==4 && current_dir.toLowerCase()!="on_line_services"){document.getElementById(id).style.backgroundImage="none";}
	else if(buttonId==3 && current_dir.toLowerCase()!="town_hall"){document.getElementById(id).style.backgroundImage="none";}
	else if(buttonId==2 && current_dir.toLowerCase()!="business"){document.getElementById(id).style.backgroundImage="none";}
	else if(buttonId==1 && current_dir.toLowerCase()!="visiting"){document.getElementById(id).style.backgroundImage="none";}
        else if(buttonId==0 && current_dir.toLowerCase()!="living_here"){document.getElementById(id).style.backgroundImage="none";}                  	   	
    }
}
function PageLoad(openSubMenu)
{
    var dirs=window.location.href.split('/');
    var current_dir=dirs[dirs.length-2];
    
    if(current_dir.toLowerCase()=="living_here")
    {
	document.getElementById("button0").style.backgroundImage="url(../images/button_selected2.png)";
    }
    else if(current_dir.toLowerCase()=="visiting")
    {
	document.getElementById("button1").style.backgroundImage="url(../images/button_selected3.png)";
    }
    else if(current_dir.toLowerCase()=="business")
    {
	document.getElementById("button2").style.backgroundImage="url(../images/button_selected4.png)";
    }
    else if(current_dir.toLowerCase()=="town_hall")
    {
	document.getElementById("button3").style.backgroundImage="url(../images/button_selected2.png)";
    }
    else if(current_dir.toLowerCase()=="on_line_services")
    {
	document.getElementById("button4").style.backgroundImage="url(../images/button_selected.png)";
    }

    if(openSubMenu){document.getElementById("sub_menu"+openSubMenu).style.display="block";}
}
function ToggleImage(id)
{
    anImage=document.getElementById(id);
    if(anImage.style.display=="block"){anImage.style.display="none";}
    else{anImage.style.display="block";}
}
function ToggleMenu(id,menus){
    var numSubMenus=menus;
    aMenu=document.getElementById(id);
    if(aMenu.style.display=="none"){aMenu.style.display="block";}
    else{aMenu.style.display="none";}

    for (numSubMenus;numSubMenus>0;numSubMenus--)
    {
        aMenu=document.getElementById("sub_menu"+numSubMenus);
        if(aMenu!=document.getElementById(id)){aMenu.style.display="none"}
    }
}
function ToggleDiv(id)
{
    aDiv=document.getElementById(id);    
    if(aDiv.style.display=="block"){aDiv.style.display="none";}
    else{aDiv.style.display="block";}
}
function AddOption(selectbox,text,value)
{
    optn = document.createElement("OPTION");
    optn.text = text;
    optn.value = value;
    selectbox.options.add(optn);
}

function UpdateProvinces()
{            
    provinceDDL = document.getElementById("ProvinceDropDownList");
    states = new Array("AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NV","NE","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY");
    provs = new Array("ON","QC","BC","AB","SK","MB","NL","NB","NS","PE","YT","NT","NU");
    temp = provinceDDL.length;
                    
                    for(i=0;i<temp;i++)
                    {
                        provinceDDL.remove(0);
                    }
                    if(document.getElementById("CountryDropDownList").selectedIndex == 1)
                    {             
                        for(i=0;i<states.length;i++)
                            AddOption(provinceDDL,states[i],null);            
                    }
                    else
                    {
                       for(i=0;i<provs.length;i++)
                            AddOption(provinceDDL,provs[i],null);            
                    }
                }
                function ChangeTextOnFocus(name,emptyvalue)
                {    
                    if(document.getElementById(name).value == emptyvalue)
                    {                
                        document.getElementById(name).value = "";             
                    }
                    document.getElementById(name).style.color = "#000000";
                    document.getElementById(name).style.backgroundColor = "#DDDDFF";
                }
                function ChangeTextOnBlur(name,emptyvalue)
                {                                                    
                    if(document.getElementById(name).value=="")
                    {
                        document.getElementById(name).value=emptyvalue;
                        document.getElementById(name).style.color="#AAAAAA";
                    }
                    document.getElementById(name).style.backgroundColor = "#FFFFFF";
                }     
                function ValidateForm()
                {
                    var error = true;
                    var errorColor = "#FFDDDD";
                    control = ["FirstNameTextBox","LastNameTextBox","AreaCodeTextBox","PrefixTextBox","PhoneNumberTextBox","EmailTextBox","AddressTextBox","CityTextBox","PostalCode1TextBox","PostalCode2TextBox","CommentsTextBox"];
                    emptyvalue = ["first name","last name","xxx","xxx","xxxx","email address","house # and street name","city name","xxx","xxx","leave comments here"];
                    for(i=0;i<control.length;i++)
                    {
                        if(document.getElementById(control[i]).value == emptyvalue[i])
                        {
                            document.getElementById(control[i]).style.backgroundColor = errorColor;
                            error = false;
                        }            
                    }
                    if(error==false)
                    {
                        document.getElementById("StatusLabel").innerText = "Please complete fields highlighted in red!";
                        document.getElementById("StatusLabel").style.color = "#AA0000";
                        document.getElementById("StatusLabel").style.display = "inline";
                    }
                    else
                    {
                        document.getElementById("StatusLabel").innerText = "Your comment has been sent!";
                        document.getElementById("StatusLabel").style.color = "#00AA00";
                        document.getElementById("StatusLabel").style.display = "inline";
                    }
                    return error;
                }   
                function ChangeCountry()
                {
                    if(document.getElementById("CountryDropDownList").selectedIndex == 0)
                    {
                        document.getElementById("ProvinceDropDownList").style.display = "inline";
                        document.getElementById("StateDropDownList").style.display = "none";
                    }
                    else
                    {
                        document.getElementById("ProvinceDropDownList").style.display = "none";
                        document.getElementById("StateDropDownList").style.display = "inline";
                    }
                }
                function IsNumber(evt)
                {
                    var charCode = (evt.which) ? evt.which : event.keyCode;
                    if(charCode >= 48 && charCode <= 57)
                        return true;
                    else
                        return false;
                }

function runSlideShow() 
{
    if (document.all){
        document.images.SlideShow.style.filter="blendTrans(duration=2)";
	document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
	document.images.SlideShow.filters.blendTrans.Apply();
    }

    document.images.SlideShow.src = preLoad[j].src;
    if (document.all) {
	document.images.SlideShow.filters.blendTrans.Play();
    }
    j = j + 1;
    if (j > (p - 1)){
	j = 0;
    }
    t = setTimeout('runSlideShow()', slideShowSpeed);
}

function quickLinks()
{
    window.location.href = ""+document.myform.mylist.value;
}


function changeImage(img_name,img_src) {
	document[img_name].src=img_src;
}

function changeImageText(img_name,img_src,txt_desc) {
	document[img_name].src=img_src;
	document.getElementById('description').innerHTML=txt_desc;
}
//-->