<!-- 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]="Permits Home"
links[x]="index.html"
check[x]="applications"
x++;

title[x]="Construction Permits"
links[x]="construction.html"
check[x]="construction"
x++;

title[x]="Demolition Permits"
links[x]="demolition.html"
check[x]="demolition"
x++;

title[x]="Planning Applications"
links[x]="planning.html"
check[x]="planning"
x++;

title[x]="Traffic & Signage"
links[x]="traffic.html"
check[x]="signage"
x++;

title[x]="Special Event Permits"
links[x]="events.html"
check[x]="events"
x++;

title[x]="Application Directions"
links[x]="directions.html"
check[x]="directions"
x++;

title[x]="Permit Fees"
links[x]="fees.html"
check[x]="fees"
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("<table border='0' cellpadding='0' cellspacing='4' width='154'>														");
	document.write("<tr><td><img src='pics/dot.gif' width='5' height='16' border='0'></td></tr>											");
    for (i=1; i<title.length; i++){
		if(page==check[i]){
			document.write("<tr><td align='left'><span class='navhilite'>"+title[i]+"</span></td></tr>									");
        }
        else{
			document.write("<tr><td align='left'><a href='"+links[i]+"' class='leftmenu'>"+title[i]+"</a></td></tr>						");
		}   
	}

		document.write("<tr><td align='left'><br><a href='"+links[0]+"' class='leftmenu'>"+title[0]+"</a></td></tr>						");
	
	document.write("</table>");
}

function rightPermits(){
	document.write("<table border='0' cellpadding='0' cellspacing='0'>")
      	document.write("<tr><td class='rightbar' >&nbsp;Construction Permits</td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Building Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Plumbing Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Electrical Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Excavation Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Sidewalk Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Curb Cut Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Cert. of Occupancy Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='construction.html'>Letter of Compliance</a></td></tr>");

      	document.write("<tr><td class='rightbar' >&nbsp;Demolition Permits</td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='demolition.html'>Demolition Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='demolition.html'>Excavation Permit</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='demolition.html'>Sewer Cap-Off Permit</a></td></tr>");

      	document.write("<tr><td class='rightbar' >&nbsp;Planning Applications</td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='planning.html'>Planning Commission</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='planning.html'>Zoning Board</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='planning.html'>Downtown Development</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='planning.html'>Historic Preservation</a></td></tr>");

      	document.write("<tr><td class='rightbar' >&nbsp;Traffic & Signage</td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='traffic.html'>Traffic Board</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='traffic.html'>Crossing Sign</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='traffic.html'>Multi-way Stop Sign</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='traffic.html'>Special Hauling Permit</a></td></tr>");

      	document.write("<tr><td class='rightbar' >&nbsp;Special Events</td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='events.html'>Special Events Permit</a></td></tr>");

      	document.write("<tr><td class='rightbar' >&nbsp;Permit Resources</td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='fees.html'>Permit Fees</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='javascript:download(81)'>Zoning Ordinance</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='javascript:download(167)'>Zoning Map</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='directions.html'>Application Directions</a></td></tr>");
	document.write("<tr><td class='righttext'>•&nbsp;<a href='https://www.wcb.state.ny.us/icexempt/index.jsp' target='_blank'>WC/DB Form CE-200</a></td></tr>");
	document.write("</table>")




}



//-->
