<!-- Begin
/*----------------------------------------------------------------------------------------
|
|        Menu Script by Josh Miller
|        written for City of Elmira Website
|        @ http://www.cityofelmira.net
|
-------------------------------------------------------------------------------------------*/ 

links=new Array();
title=new Array();
check=new Array();
x=0;

title[x]="Back to City Homepage"
links[x]="../index/index.html"
check[x]="elmira"
x++;

title[x]="City Hall Home"
links[x]="../offices/index.html"
check[x]="departments"
x++;

title[x]="Assessor's Office"
links[x]="../offices/assessor.html"
check[x]="assessor"
x++;

title[x]="Boards & Commissions"
links[x]="../offices/boards.html"
check[x]="commissions"
x++;

title[x]="City Council"
links[x]="../offices/council.html"
check[x]="council"
x++;

title[x]="City Court"
links[x]="../offices/court.html"
check[x]="court"
x++;

title[x]="City Manager's Office"
links[x]="../offices/citymanager.html"
check[x]="manager"
x++;

title[x]="Clerk's Office"
links[x]="../offices/clerk.html"
check[x]="clerk"
x++;

title[x]="Community Development"
links[x]="../offices/cd.html"
check[x]="development"
x++;

title[x]="Development Projects"
links[x]="../offices/projects.html"
check[x]="projects"
x++;

title[x]="Finance Department"
links[x]="../offices/chamberlain.html"
check[x]="chamberlain"
x++;

title[x]="Information Technology"
links[x]="../offices/infotech.html"
check[x]="technology"
x++;

title[x]="Law Department"
links[x]="../offices/lawdept.html"
check[x]="department"
x++;

title[x]="Mayor John S. Tonello"
links[x]="../offices/mayor.html"
check[x]="tonello"
x++;

title[x]="Personnel Office"
links[x]="../offices/personnel.html"
check[x]="office"
x++;

title[x]="Purchasing"
links[x]="../offices/purchasing.html"
check[x]="purchasing"
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 mainnav(){
	document.write("<img src='pics/index_left_top.jpg'>");
	document.write("<br><br><ul>");
	for (i=1; i<title.length; i++){
		if(page==check[i]){
			document.write("<li>&nbsp;"+title[i]);
        	}
        	else{
			document.write("<li><a href='"+links[i]+"'>&nbsp;"+title[i]+"</a>");
		}   
	}
	document.write("<li><br><a href='"+links[0]+"'>&nbsp;"+title[0]+"</a>");
	document.write("</ul>");
}

function CityContacts(){
	document.write("<h1>Directory of Services</h1>")
	document.write("<h2><a href='clerk.html'>Clerk's Office</a></h2>")
	document.write("<h3>(607) 737-5673</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Copy of a law/proposed law")
	document.write("<li>&raquo;Handicap Parking Permits")
	document.write("<li>&raquo;FOIL Requests")
	document.write("<li>&raquo;Dog Licenses")
	document.write("<li>&raquo;Register a Bike")
	document.write("<li>&raquo;Get a Marriage License")
	document.write("</ul>")

	document.write("<h2><a href='chamberlain.html'>Chamberlain's Office</a></h2>")
	document.write("<h3>(607) 737-5661</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Pay a parking ticket")
	document.write("<li>&raquo;Pay City taxes")
	document.write("<li>&raquo;Tax information")
	document.write("<li>&raquo;Pay an abatement")
	document.write("</ul>")

	document.write("<h2><a href='assessor.html'>Assessor's Office</a></h2>")
	document.write("<h3>(607) 737-5670</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Tax parcel info")
	document.write("<li>&raquo;STAR Program info")
	document.write("<li>&raquo;Assessment grievances")
	document.write("</ul>")

	document.write("<h2><a href='cd.html'>Community Development</a></h2>")
	document.write("<h3>(607) 737-5691</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;First Time Homebuyer Info")
	document.write("<li>&raquo;Property loan/grants")
	document.write("<li>&raquo;CDBG Funding")
	document.write("<li>&raquo;Community Projects")
	document.write("</ul>")

	document.write("<h2><a href='dps_admin.html'>Public Works Administration</a></h2>")
	document.write("<h3>(607) 737-5679</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Sidewalk Permits")
	document.write("<li>&raquo;Curbcut Permits")
	document.write("<li>&raquo;Excavation Permits")
	document.write("</ul>")

	document.write("<h2><a href='../fire/code_enforcement.html'>Inspection Services</a></h2>")
	document.write("<h3>(607) 737-5654</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Building Permits")
	document.write("<li>&raquo;Demolition Permits")
	document.write("<li>&raquo;Code Violation Complaints")
	document.write("</ul>")

	document.write("<h2><a href='personnel.html'>Personnel</a></h2>")
	document.write("<h3>(607) 737-5993</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Job Applicants")
	document.write("<li>&raquo;Civil Service")
	document.write("</ul>")

	document.write("<h2><a href='../police/index.html'>Police Department</a></h2>")
	document.write("<h3>(607) 735-8600</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Report a crime")
	document.write("<li>&raquo;File a complaint")
	document.write("<li>&raquo;Obtain a Police report")
	document.write("</ul>")

	document.write("<h2><a href='purchasing.html'>Purchasing Department</a></h2>")
	document.write("<h3>(607) 737-2092</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Bid Specifications")
	document.write("</ul>")

	document.write("<h2><a href='http://www.chemungcounty.com/index.asp?pageId=123' target='_blank'>County Clerk</a></h2>")
	document.write("<h3>(607) 737-2920</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;File a DBA Form")
	document.write("</ul>")

	document.write("<h2><a href='http://www.chemungcounty.com/index.asp?pageId=256' target='_blank'>DMV Office</a></h2>")
	document.write("<h3>(607) 737-5470</h3>")
	document.write("<ul>")
	document.write("<li>&raquo;Driver's License")
	document.write("<li>&raquo;Register a Vehicle")
	document.write("</ul>")
}

function WeatherFeature(){
        document.write("<h1>Elmira Weather</h1>");
        document.write("<p class='center'><a href='http://english.wunderground.com/US/NY/Elmira.html'><img src='http://banners.wunderground.com/banner/infoboxtr_both/language/www/US/NY/Elmira.gif' alt='Click for Elmira, New York Forecast' height='108' width='144' border='0'></a></p>");
}












//-->
