<!-- Begin
/*----------------------------------------------------------------------------------------
|
|        Sitewide Tools and Functions Script by Josh Miller
|        written for City of Elmira Website
|        @ http://www.cityofelmira.net
|
-------------------------------------------------------------------------------------------*/ 

var url=document.location.toString();
if(url.indexOf("ci.elmira.ny.us")>0){
	url=url.replace("ci.elmira.ny.us","cityofelmira.net")
	document.location=url;
}

var url=document.location.toString();
if(url.indexOf("207.56.125.155")>0){
	url=url.replace("207.56.125.155","www.cityofelmira.net")
	document.location=url;
}


document.write("<link rel=\"alternate\" type=\"application/rss+xml\" title=\"City of Elmira Updates and Notices\" href=\"http://feeds.rapidfeeds.com/6106/\">")
document.write("<script language=\"javascript\" type=\"text/javascript\" src=\"../_citydownloads.js\"></script>")


if (navigator.appName == "Netscape" && navigator.appVersion < "5.0"){
}
else{
	document.write("<link rel='stylesheet' href='../_printer.css' type='text/css' media='print'>")
}


domain="http://www.cityofelmira.net"

indexlinks=new Array();
indextitle=new Array();
indexcheck=new Array();
x=0;

indextitle[x]="Back to City Homepage"
indexlinks[x]="../index/index.html"
indexcheck[x]="elmira"
x++;

indextitle[x]="About Elmira"
indexlinks[x]="../about/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Elmira City Hall"
indexlinks[x]="../offices/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Fire Department"
indexlinks[x]="../fire/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Police Department"
indexlinks[x]="../police/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Public Works"
indexlinks[x]="../dps/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Animal Shelter"
indexlinks[x]="../shelter/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Mark Twain Golf Course"
indexlinks[x]="../golf/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Downtown Development"
indexlinks[x]="../edd/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Permits & Applications"
indexlinks[x]="../permits/index.html"
indexcheck[x]=""
x++;

indextitle[x]="Pages in History"
indexlinks[x]="../history/index.html"
indexcheck[x]=""
x++;

//Get the title to determine what page the user is viewing
x=document.title;                                                       	//get the title and store as a string in x
x=x.toLowerCase();                                                        	//make the whole title lower case
y=x.lastIndexOf(' ');                                                		//find the last space in the title and store in y
y=y+1;                                                                      //add 1 to y to find the letter after the last space
z=x.length;                                                                 //get the length of the whole string and store in z
page=x.substring(y,z);                                                		//store in page the last word of the html page's title

function sitebottomnav(){
	document.write("<script type=\"text/javascript\">var addthis_pub=\"cityofelmira\";</script>")
	document.write("<a href=\"http://www.addthis.com/bookmark.php?v=20\" onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\"><img src=\"http://s7.addthis.com/static/btn/lg-share-en.gif\" width=\"125\" height=\"16\" alt=\"Bookmark and Share\" style=\"border:0\"/></a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/200/addthis_widget.js\"></script>")
	document.write("<br>");
	document.write("<br>");

		document.write("        <span class='footer'> |       ");
		for(i=1;i<indexlinks.length;i++){
			document.write("        <a href='"+indexlinks[i]+"' class='footer'>"+indextitle[i]+"</a> |        ");
			if ( i==6 || i==101){
			document.write("<br> |");
			}
		}
		document.write("        <br><br></span>        ");
		document.write("<span class='footer'><b>City Employees:</b> <a href='https://mail.cityofelmira.net' target='_blank'>Outlook Web Access</a><br></span>        ");

        document.write("        <span class='copyright'><br><a href='../index/website.html' class='lefttool' title='About this Website'>City of Elmira | Copyright &copy; 2009 | All Rights Reserved</a> <a href='../index/privacy.html' class='lefttool' title='Privacy Policy'>| Privacy Policy</a></span><a href='http://officeofstrategicinfluence.com/spam/'>&nbsp;</a><br />	");
}

function Footer(){
	document.write("|&nbsp;");
	for(i=1;i<indexlinks.length;i++){
		document.write("<a href='"+indexlinks[i]+"'>"+indextitle[i]+"</a>&nbsp;|        ");
		if ( i==6 || i==101){
			document.write("<br> |&nbsp;");
		}
	}
	document.write("<div id='copyright'><p><a href='../index/website.html' title='About this Website'>City of Elmira | Copyright &copy; 2009 | All Rights Reserved</a></p></div>");
}

function siteIndexes(){
	document.write("<table border='0' cellpadding='0' cellspacing='4' width='154'>													");
	document.write("<tr><td align='left'><a href='../index/contact.html' class='leftmenu'>Contact City Hall</a></td></tr>								");
	document.write("<tr><td align='left'><a href='../pressroom/index.html' class='leftmenu'>Press Room</a></td></tr>								");
	document.write("<tr><td align='left'><a href='../index/calendar.html' class='leftmenu'>Community Calendar</a></td></tr>		");
	document.write("<tr><td align='left'><a href='../index/gallery.html' class='leftmenu'>Photo Galleries</a></td></tr>		");
	document.write("<tr><td align='left'><a href='javascript:openMap();' class='leftmenu'>Elmira Maps</a></td></tr>										");
//	document.write("<tr><td align='left'><a href='../index/government.html' class='leftmenu'>Government</a></td></tr>										");
//	document.write("<tr><td align='left'><a href='../index/business.html' class='leftmenu'>Business</a></td></tr>										");
//	document.write("<tr><td align='left'><a href='../index/community.html' class='leftmenu'>Community</a></td></tr>										");
	document.write("<tr><td align='left'><a href='../index/egov.html' class='leftmenu'>E-Government</a></td></tr>									");

	document.write("<tr><td align='left'><a href='../index/rssupdates.html'class='leftmenu'>RSS Updates &nbsp;<img src='../index/pics/feed2.png' border='0' height='12' width='12'>&nbsp;</a></td></tr>");
	document.write("<tr><td align='left'>")
	document.write("<script type=\"text/javascript\">var addthis_pub=\"cityofelmira\";</script>")
	document.write("<a href=\"http://www.addthis.com/bookmark.php?v=20\" onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\" class='leftmenu'>Bookmark & Share &nbsp;<img src='../index/pics/share.gif' border='0' height='12' width='12' alt=\"Bookmark and Share\" style=\"border:0\"/>&nbsp;</a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/200/addthis_widget.js\"></script>")
	document.write("</td></tr>")


//	document.write("<tr><td align='left'><a href='#' class='leftmenu'>Elmira FAQ</a></td></tr>										");
//	document.write("<tr><td align='left'><a href='#' class='leftmenu'>Site Index</a></td></tr>	
	document.write("<tr><td align='center'><script language=\"JavaScript\" src=\"http://elocallink.tv/mlink/mlink.php?x=BjVSYA9u\"></script></td></tr>									");
	document.write("</table><br>");
        document.write("        <form method='GET' action='http://search.blossom.com/query/311'>        ");
        document.write("        <input type='text' name='key2' size='18'><input type='submit' name='submit' value='Search'>        ");
        document.write("        </form>        ");
}

function SiteIndexes(){
	document.write("<ul>");
	document.write("<li><a href='../index/contact.html'>&nbsp;Contact City Hall</a>");
	document.write("<li><a href='../pressroom/index.html' class='leftmenu'>&nbsp;Press Room</a>");
	document.write("<li><a href='../index/calendar.html' class='leftmenu'>&nbsp;Community Calendar</a>");
	document.write("<li><a href='../index/gallery.html' class='leftmenu'>&nbsp;Photo Galleries</a>");
	document.write("<li><a href='javascript:openMap();' class='leftmenu'>&nbsp;Elmira Maps</a>");
//	document.write("<li><a href='../index/government.html' class='leftmenu'>&nbsp;Government</a>");
//	document.write("<li><a href='../index/business.html' class='leftmenu'>&nbsp;Business</a>");
//	document.write("<li><a href='../index/community.html' class='leftmenu'>&nbsp;Community</a>");
	document.write("<li><a href='../index/egov.html' class='leftmenu'>&nbsp;E-Government</a>");
	document.write("<li><a href='../index/rssupdates.html' class='leftmenu'>RSS Updates &nbsp;<img src='../index/pics/feed2.png' height='12' width='12' border='0'></a>");
	document.write("<script type=\"text/javascript\">var addthis_pub=\"cityofelmira\";</script>")
	document.write("<a href=\"http://www.addthis.com/bookmark.php?v=20\" onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout=\"addthis_close()\" onclick=\"return addthis_sendto()\">Bookmark & Share &nbsp;<img src='../index/pics/share.gif' border='0' height='12' width='12' alt=\"Bookmark and Share\" style=\"border:0\"/>&nbsp;</a><script type=\"text/javascript\" src=\"http://s7.addthis.com/js/200/addthis_widget.js\"></script>")
//	document.write("<li><a href='#' class='leftmenu'>&nbsp;Elmira FAQ</a>");
//	document.write("<li><a href='#' class='leftmenu'>&nbsp;Site Index</a>");
	document.write("<li><script language=\"JavaScript\" src=\"http://elocallink.tv/mlink/mlink.php?x=BjVSYA9u\"></script>");
	document.write("</ul><p class='center'>");
	document.write("<form method='GET' action='http://search.blossom.com/query/311'>");
	document.write("<input type='text' name='key2' size='18'><input type='submit' name='submit' value='Search'>");
	document.write("</form></p>");
}

function citynav(){
        document.write("        <table border='0' cellpadding='0' cellspacing='0' width='140'>        ");
        document.write("        <tr><td align='left'><span class='navbar'>Go To</span><br></td></tr>        ");
        document.write("        <tr><td align='center'><form name='QL'><select name='quick' onChange='QuickLinks(this.form)'>        ");
        document.write("        <option value='#'>Select One</option>        ");
        document.write("        <option value='../index/index.html'>City Homepage</option>        ");
        document.write("        <option value='../about/index.html'>About Elmira</option>        ");
        document.write("        <option value='../offices/index.html'>Elmira City Hall</option>        ");
        document.write("        <option value='../edd/index.html'>Downtown Elmira</option>        ");
        document.write("        <option value='../fire/index.html'>Fire Department</option>        ");
        document.write("        <option value='../permits/index.html'>Permits</option>        ");
        document.write("        <option value='../police/index.html'>Police Department</option>        ");
        document.write("        <option value='../dps/index.html'>Public Works</option>        ");
        document.write("        <option value='../history/index.html'>Pages in History</option>        ");
        document.write("        </select></form></td></tr></table>        ");
        document.write("        <table border='0' cellpadding='0' cellspacing='4' width='154'>        ");
        document.write("        <tr><td align='left'><a href='javascript:print()' class='lefttool'>Print this Page</a></td></tr>        ");
        document.write("        <tr><td align='left'><a href='javascript:sendlink()' class='lefttool'>Email this Page</a></td></tr>        ");
        document.write("        <tr><td align='left'><a href='javascript:addbookmark()' class='lefttool'>Bookmark Page</a></td></tr>        ");
		document.write("		<tr><td align='left'><a href=\"javascript:sethome()\" class='lefttool' style=\"cursor:hand\"  onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage(document.location);\">Set as Home Page</a></td></tr>")
        document.write("        <tr><td align='left'><a href='javascript:reportProblem()' class='lefttool'>Problem with Webpage</a><br><br></td></tr>        ");
        document.write("        <tr><td align='left'><a href='../index/mail.html' class='lefttool'>Email the Webmaster</a></td></tr>        ");
        document.write("        </table>        ");
		//<!-- BEGIN WebSTAT Activation Code -->
		document.write("<sc"+"ript type=\"text/javascript\" language=\"JavaScript\" src=\"http://hits.webstat.com/cgi-bin/wsv2.cgi?54793\"></scr"+"ipt>");
		document.write("<nos"+"cript>");
		document.write("<a href='http://www.webstat.com'>");
		document.write("<img SRC='http://hits.webstat.com/scripts/wsb.php?ac=54793' border='0' alt='WebSTAT - Free Web Statistics'></a>");
		document.write("</nosc"+"ript>");
}

function CityNav(){
        document.write("<h2>Go To</h2>");
        document.write("<p class='center'><form name='QL'><select name='quick' onChange='QuickLinks(this.form)'>");
        document.write("<option value='#'>Select One</option>");
        document.write("<option value='../index/index.html'>City Homepage</option>");
        document.write("<option value='../about/index.html'>About Elmira</option>");
        document.write("<option value='../offices/index.html'>Elmira City Hall</option>");
        document.write("<option value='../edd/index.html'>Downtown Elmira</option>");
        document.write("<option value='../fire/index.html'>Fire Department</option>");
        document.write("<option value='../police/index.html'>Police Department</option>");
        document.write("<option value='../dps/index.html'>Public Works</option>");
        document.write("<option value='../history/index.html'>Pages in History</option>");
        document.write("</select></form></p>");
        document.write("<ul>");
        document.write("<li><a href='javascript:print()' class='lefttool'>&nbsp;Print this Page</a>");
        document.write("<li><a href='javascript:sendlink()' class='lefttool'>&nbsp;Email this Page</a>");
        document.write("<li><a href='javascript:addbookmark()' class='lefttool'>&nbsp;Bookmark Page</a>");
	document.write("<li><a href=\"javascript:sethome()\" class='lefttool' style=\"cursor:hand\"  onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage(document.location);\">&nbsp;Set as Home Page</a>")
        document.write("<li><a href='javascript:reportProblem()' class='lefttool'>&nbsp;Problem with Webpage</a><br><br>");
        document.write("<li><a href='../index/mail.html' class='lefttool'>&nbsp;Email the Webmaster</a>");
        document.write("</ul>        ");
//<!-- BEGIN WebSTAT Activation Code -->
	document.write("<sc"+"ript type=\"text/javascript\" language=\"JavaScript\" src=\"http://hits.webstat.com/cgi-bin/wsv2.cgi?54793\"></scr"+"ipt>");
	document.write("<nos"+"cript>");
	document.write("<a href='http://www.webstat.com'>");
	document.write("<img SRC='http://hits.webstat.com/scripts/wsb.php?ac=54793' border='0' alt='WebSTAT - Free Web Statistics'></a>");
	document.write("</nosc"+"ript>");
}



function QuickLinks()
{
        var number = document.QL.quick.selectedIndex;
        location.href = document.QL.quick.options[number].value;
}

function sethome(){
	if (!document.all) {
		alert("This feature does not work in your browser.  We recommend you view this site with Internet Explorer 5.0 or above.");
		event.returnValue = false;
	}
}//end function

function sendlink(){
        linktosend=document.location
        Linkwindow=window.open("", "sendwin", "height=460,width=365,toolbar=no,scrollbars=no,menubar=no										");
        Linkwindow.document.write(" 	<head><title>Email Link</title>        																");
        Linkwindow.document.write(" 	<LINK rel='stylesheet' type='text/css' href='../_elmira.css'>								");
        Linkwindow.document.write(" 	<style>td{font-family:tahoma; font-size:10pt; color:#000000;}</style></head>        								");
        Linkwindow.document.write(" 	<body  background='../index/pics/bg.gif' bgcolor='#FFFFFF' leftmargin='0' marginwidth='2' topmargin='0' marginheight='0'>       		");
        Linkwindow.document.write("		<span class='title'>Email this link to a Friend</span><br>        								");
        Linkwindow.document.write("		&nbsp;&nbsp;&nbsp;<a href='"+linktosend+"' target='_blank' class='linktosend'>"+linktosend+"</a>   	");
        Linkwindow.document.write("		<form method='get' action='../scripts/sendlink.asp' name='mail'>							");
        Linkwindow.document.write("		<input type='hidden' value='"+linktosend+"' name='link'>        									");
        Linkwindow.document.write("		<table border='0'>        																			");
        Linkwindow.document.write("		<tr><td>Recipient's Name:</td><td><input type='text' name='toname'></td></tr>        				");
        Linkwindow.document.write("		<tr><td>Recipient's Email:</td><td><input type='text' name='to'></td></tr>        					");
        Linkwindow.document.write("		<tr><td>Your Name:</td><td><input type='text' name='fromname'></td></tr>        					");
        Linkwindow.document.write("		<tr><td>Your Email Address:</td><td><input type='text' name='replyto'></td></tr>       				");
        Linkwindow.document.write("		<td colspan='2'>Your Message:<br><textarea type='text' name='message' wrap='virtual' rows='10' cols='40'></textarea></td></tr>		");
        Linkwindow.document.write("		<tr><td colspan='2' align='center'><input type='submit' value='Send Mail'>&nbsp;&nbsp;<input type='reset' value='Clear'><br>        ");
        Linkwindow.document.write("		<a href='javascript:close()'>Close this window</a>        											");
        Linkwindow.document.write("		<br><br><span class='text'>Copyright © City of Elmira</span>										");
        Linkwindow.document.write("		</td></tr></table>        																			");
        Linkwindow.document.write("		</form></body></html>        																		");
	//if user does not close, the previous window, close it and then recreate it
        Linkwindow.document.close();
	//bring the new window to the front
        Linkwindow.document.focus();
        self.name="main"
}

function sendlinks(){
        linktosend=prompt("Enter the website address:");
        Linkwindow=window.open("", "sendwin", "height=460,width=365,toolbar=no,scrollbars=no,menubar=no										");
        Linkwindow.document.write(" 	<head><title>Email Link</title>        																");
        Linkwindow.document.write(" 	<LINK rel='stylesheet' type='text/css' href='../_elmira.css'>								");
        Linkwindow.document.write(" 	<style>td{font-family:tahoma; font-size:10pt; color:#000000;}</style></head>        								");
        Linkwindow.document.write(" 	<body  background='../index/pics/bg.gif' bgcolor='#FFFFFF' leftmargin='0' marginwidth='2' topmargin='0' marginheight='0'>       		");
        Linkwindow.document.write("		<span class='title'>Email this link to a Friend</span><br>        								");
        Linkwindow.document.write("		&nbsp;&nbsp;&nbsp;<a href='"+linktosend+"' target='_blank' class='linktosend'>"+linktosend+"</a>   	");
        Linkwindow.document.write("		<form method='get' action='../scripts/_sendlink.asp' name='mail'>							");
        Linkwindow.document.write("		<input type='hidden' value='"+linktosend+"' name='link'>        									");
        Linkwindow.document.write("		<table border='0'>        																			");
        Linkwindow.document.write("		<tr><td>Recipient's Name:</td><td><input type='text' name='toname'></td></tr>        				");
        Linkwindow.document.write("		<tr><td>Recipient's Email:</td><td><input type='text' name='to'></td></tr>        					");
        Linkwindow.document.write("		<tr><td>Your Name:</td><td><input type='text' name='fromname'></td></tr>        					");
        Linkwindow.document.write("		<tr><td>Your Email Address:</td><td><input type='text' name='replyto'></td></tr>       				");
        Linkwindow.document.write("		<td colspan='2'>Your Message:<br><textarea type='text' name='message' wrap='virtual' rows='10' cols='40'></textarea></td></tr>		");
        Linkwindow.document.write("		<tr><td colspan='2' align='center'><input type='submit' value='Send Mail'>&nbsp;&nbsp;<input type='reset' value='Clear'><br>        ");
        Linkwindow.document.write("		<a href='javascript:close()'>Close this window</a>        											");
        Linkwindow.document.write("		<br><br><span class='text'>Copyright © City of Elmira</span>										");
        Linkwindow.document.write("		</td></tr></table>        																			");
        Linkwindow.document.write("		</form></body></html>        																		");
	//if user does not close, the previous window, close it and then recreate it
        Linkwindow.document.close();
	//bring the new window to the front
        Linkwindow.document.focus();
        self.name="main"
}

function addbookmark(){
        if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion >= "4.0"){
                if (document.all){
                        window.external.AddFavorite(document.location,document.title)
                }
        }
        else{
                alert("Press CONTROL-D to bookmark this page.");
        }
}//end function

function reportProblem(){
        linktosend=document.location;
        linktitle=document.title;
        resolution=screen.width+" x "+screen.height+" x "+screen.colorDepth+" bit";
        browser=navigator.appName+" "+navigator.appVersion;
        ProblemWindow=window.open("", "probwin", "height=460,width=365,toolbar=no,scrollbars=no,menubar=no									");
        ProblemWindow.document.write("	<head><title>Report a Problem with Webpage</title>        														");
        ProblemWindow.document.write("	<LINK rel='stylesheet' type='text/css' href='../_elmira.css'>        						");
        ProblemWindow.document.write("	<style>td{font-family:tahoma; color:#000000;}</style></head>        								");
        ProblemWindow.document.write("	<body  background='../index/pics/bg.gif' bgcolor='#FFFFFF' leftmargin='0' marginwidth='2' topmargin='0' marginheight='0'>        		");
        ProblemWindow.document.write("	<span class='title'>Problem with Webpage</span><br>        										");
        ProblemWindow.document.write("	<form method='get' action='../scripts/problemreport.asp' name='problem'>					");
        ProblemWindow.document.write("	<input type='hidden' value='"+linktosend+"' name='link'>        									");
        ProblemWindow.document.write("	<input type='hidden' value='"+linktitle+"' name='linktitle'>        								");
        ProblemWindow.document.write("	<input type='hidden' value='"+resolution+"' name='resolution'>        								");
        ProblemWindow.document.write("	<input type='hidden' value='"+browser+"' name='browser'>        									");
        ProblemWindow.document.write("	<table border='0'>        																			");
        ProblemWindow.document.write("	<tr><td>Your Name:</td><td><input type='text' name='from'></td></tr>      							");
        ProblemWindow.document.write("	<tr><td>Your Email:</td><td><input type='text' name='replyto'></td></tr>       		 				");
        ProblemWindow.document.write("	<tr><td>Problem:</td><td><select name='subject'>        											");
        ProblemWindow.document.write("	<option value='Problem with Page'>General problem</option>        									");
        ProblemWindow.document.write("	<option value='Spelling Error on Page'>Spelling error</option>        								");
        ProblemWindow.document.write("	<option value='Problem with Information on Page'>Inaccurate/outdated content</option>       	 	");
        ProblemWindow.document.write("	<option value='Problem with Picture on Page'>Missing pictures</option>        						");
        ProblemWindow.document.write("	<option value='Bad Link on Page'>Bad link</option>        											");
        ProblemWindow.document.write("	<option value='Display Problem with Page'>Display problem</option>        							");
        ProblemWindow.document.write("	<option value='Problem with Page'>Other</option></select></td></tr>        							");
        ProblemWindow.document.write("	<td colspan='2'>Describe the Problem:<br>        													");
        ProblemWindow.document.write("	<textarea type='text' name='problem' wrap='virtual' rows='10' cols='40'></textarea>        			");
        ProblemWindow.document.write("	<br>Your input is greatly appreciated.  The webmaster will review your problem and reply with an explanation or make corrections as soon as possible.</td></tr>		");
        ProblemWindow.document.write("	<tr><td colspan='2' align='center'><input type='submit' value='Send Mail'>&nbsp;&nbsp;<input type='reset' value='Clear'><br>        								");
        ProblemWindow.document.write("	<a href='javascript:close()'>Close this window</a>        											");
        ProblemWindow.document.write("	<br><br><span class='text'>Copyright © City of Elmira</span>										");
        ProblemWindow.document.write("	</td></tr></table></form></body></html>        														");
	//if user does not close, the previous window, close it and then recreate it
        ProblemWindow.document.close();
  	//bring the new window to the front
        ProblemWindow.document.focus();
        self.name="main"
}

function websiteUpdates(){
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
	document.write("<tr><td><span class='subtitle'>Subscribe for Website Updates</span><br></td></tr>");
	document.write("<tr><td class='smalltext'><p class='justify'>If you would like to stay informed about events in the City of Elmira and surrounding areas, enter your email address below to subscribe to the Elmira Website Updates list.  You will receive email whenever a Press Release is posted, a new page is added, or a major update to our website is released.</p><br></td></tr>");
	document.write("<tr><td><br>");
	document.write("<form name='subscribe' action='../index/_updates.asp' method='get'>");
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='300'>");
	document.write("<tr><td><span class='featureheader'>Subscribe:</span></td>");
	document.write("<td><input type='text' name='subscribe' size='24'></td></tr>");
	document.write("<tr><td><span class='featureheader'>Unsubscribe:</span></td>");
	document.write("<td><input type='text' name='unsubscribe' size='24'></td></tr>");
	document.write("<tr><td colspan='2' align='center'><input type='submit' name='submit' value='Submit'></td></tr>");
	document.write("</table>");
	document.write("<br><span class='smalltext'>We will never share your email address for any reason.</span>");
	document.write("</form></td></tr></table>")
}

function printMayor(){
	document.write("<td width='190' valign='top' align='left'><a href='../offices/mayor.html' class='rightheader'>Mayor John S. Tonello</a><br>");
	document.write("<a href='../offices/citymanager.html' class='rightheader'>City Manager John J. Burin</a></td>");
}

function map(str){
	if (parent.mapWindow){
		mapWindow.close()
	}
	mapWindow=window.open("", "newwin", "height=504,width=700,toolbar=no,scrollbars=no,menubar=no");
	mapWindow.document.write(" <title>Interactive Map</title><frameset cols='500,200' framespacing='0' border='0' frameborder='0'> ");
	mapWindow.document.write(" <frame name='map'  src='../map/map.html?"+str+"'  scrolling='auto' noresize>	");
	mapWindow.document.write(" <frame name='menu' src='../map/menu.html?"+str+"' scrolling='auto' noresize>	");
	mapWindow.document.write(" <noframes><body><p>This page uses frames, but your browser doesn't support them.</p> </body></noframes>	");
	mapWindow.document.write(" </frameset>	")
}

function openMap(){
	if (parent.mapWindow){
		mapWindow.close()
	}
	mapWindow=window.open("", "newwin", "height=504,width=700,toolbar=no,scrollbars=no,menubar=no");
	mapWindow.document.write(" <title>Interactive Map</title><frameset cols='500,200' framespacing='0' border='0' frameborder='0'> ");
	mapWindow.document.write(" <frame name='map'  src='../map/map.html?map=1'  scrolling='auto' noresize>	");
	mapWindow.document.write(" <frame name='menu' src='../map/mainmenu.html' scrolling='auto' noresize>	");
	mapWindow.document.write(" <noframes><body><p>This page uses frames, but your browser doesn't support them.</p> </body></noframes>	");
	mapWindow.document.write(" </frameset>	")
}

function blowup(path, windowWidth, windowHeight){
	pic = new Image()
	pic.src = path;

	if (parent.picWindow){
		picWindow.close()
	}
	picWindow = window.open("", "picwin", "toolbar=no,scrollbars=no,resizable=no,width="+ (parseInt(windowWidth)+20)  + ",height="+ (parseInt(windowHeight)+45)) 
    picWindow.document.write(" <head><title>City of Elmira</title><LINK rel='stylesheet' type='text/css' href='../_elmira.css'></head>");
	picWindow.document.write("<body background='pics/bg.gif'><p align='center'><img src='"+pic.src+"' border='1'><br>")
	picWindow.document.write("<a href='javascript:window.close()'>Close Window</a></p>")
}

function printToday(){
	today=new Date();
	document.write("<span class='datetime'><b>"+today.toLocaleDateString()+"</b></span>");
}

function insertCommas(num){
	var agt=navigator.userAgent.toLowerCase();
	if(agt.indexOf('mac')!=-1){}
	else{
		num = num.toString().split('').reverse().join('').replace(/(?=\d*\.?)(\d{3})/img,'$1,').split('').reverse().join('');
		if(num.indexOf(',')==0)
			return num.substring(1,num.length);
		else
			return num;
		}		//end insertCommas()
	}

function HasItExpired(date){
	today=new Date(); day=date-today;
	return day >= -86400000;
}

function HasItBegun(date){
	today=new Date();day=date-today;
	return (day < 0);
}


//-->