<!-- Begin
/*----------------------------------------------------------------------------------------
|
|        Road and Traffic Advisory Script by Josh Miller
|        written for City of Elmira Website
|        @ http://www.cityofelmira.net
|
-------------------------------------------------------------------------------------------*/ 

area=new Array();
agency=new Array();
rbegin=new Array();
rexpire=new Array();
reason=new Array();
detours=new Array()
rinfo=new Array();
x=0;

area[x]= "Franklin St & Broadway intersection"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("July 29, 2010")
rexpire[x]= new Date("July 29, 2010")
reason[x]= "In order to complete the gas tie in work at the intersection for today only there will be no right or left turn from Franklin St to Broadway. Street will be normal flow after the tie in is complete."
detours[x]= ""
rinfo[x]= ""
x++; 

area[x]= "Grand Central Ave between Diven Ave & Division St"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("July 28, 2010")
rexpire[x]= new Date("August 13, 2010")
reason[x]= "Work will begin to replace the gas main and gas services between Diven Ave and Division St on Grand Central Ave"
detours[x]= "none planned, crews and equipment on the road"
rinfo[x]= ""
x++; 

area[x]= "Judson St from Kennedy Valve parking lot to Water St."
agency[x]= "City of Elmira"
rbegin[x]= new Date("July 26, 2010")
rexpire[x]= new Date("July 30, 2010")
reason[x]= "Water main installation"
detours[x]= "Judson to Oshu St"
rinfo[x]= ""
x++; 

area[x]= "corner of lake st and water st"
agency[x]= "Chemung County"
rbegin[x]= new Date("July 26, 2010")
rexpire[x]= new Date("July 26, 2010")
reason[x]= "Remove manhole frame and cover "
detours[x]= ""
rinfo[x]= "We will be merging traffic to one lane on water St. near the intersection of Lake St. Length of the one lane merge about 200 feet. The project should only take about 1hr. Start time will be 9:00 am "
x++; 

area[x]= "The intersection Of Broadway and Franklin St"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("July 21, 2010")
rexpire[x]= new Date("July 28, 2010")
reason[x]= "Starting on July 21 work will start to replace the gas mains in the intersection of Broadway and Franklin St to prepare for the Broadway Street paving project"
detours[x]= "there are no detours planned, but there will be lane closings and flaggers directing traffic in the intersection area"
rinfo[x]= "There will be no right turn on to Franklin St and no left turn onto Broadway at the intersection at various times during the construction. Watch for traffic and flaggers in the intersection"
x++; 

area[x]= "Judson St from Kennedy Valve parking lot to Water St."
agency[x]= "City of Elmira"
rbegin[x]= new Date("July 21, 2010")
rexpire[x]= new Date("July 22, 2010")
reason[x]= "Water Main tie in from Kennedy valve building"
detours[x]= "Judson will dead end at Kennedy Valve Lot at water ST end."
rinfo[x]= ""
x++; 

area[x]= "Pennsylvania Ave & Baty Street"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("July 12, 2010")
rexpire[x]= new Date("July 12, 2010")
reason[x]= "Baty Street at the intersection of Pennsylvania Ave will be closed in order to complete the gas main work on Baty Street. Traffic flow on Pennsylvania Ave will be maintained"
detours[x]= ""
rinfo[x]= "weather dependant In case of rain will be rescheduled for the following day"
x++; 

area[x]= "Morrow St"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("July 12, 2010")
rexpire[x]= new Date("July 23, 2010")
reason[x]= "Crews will be on Morrow street installing gas services as part the gas system upgrade. Work will continue until all the services are replaced"
detours[x]= ""
rinfo[x]= "crews and equipment on the street"
x++; 

area[x]= "West Clinton Street from Walnut to Columbia"
agency[x]= "City of Elmira"
rbegin[x]= new Date("July 7, 2010")
rexpire[x]= new Date("July 7, 2010")
reason[x]= "Paving"
detours[x]= ""
rinfo[x]= ""
x++; 

area[x]= "West gray Street from Columbia"
agency[x]= "City of Elmira"
rbegin[x]= new Date("June 28, 2010")
rexpire[x]= new Date("June 28, 2010")
reason[x]= "T&L pave "
detours[x]= "no "
rinfo[x]= "Street will be closed "
x++; 

area[x]= "West Chemung St"
agency[x]= "City of Elmira"
rbegin[x]= new Date("June 23, 2010")
rexpire[x]= new Date("June 23, 2010")
reason[x]= "Storm Water tie in."
detours[x]= "Hudson st."
rinfo[x]= ""
x++; 

area[x]= "Gray Street from Walnut to Columbia Street "
agency[x]= "City of Elmira"
rbegin[x]= new Date("June 23, 2010")
rexpire[x]= new Date("June 23, 2010")
reason[x]= "Milling off 2 1/2 inches"
detours[x]= "no "
rinfo[x]= ""
x++; 


area[x]= "Washington Ave at the intersection of N Main St"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 23, 2010")
rexpire[x]= new Date("June 23, 2010")
reason[x]= "Washinton Ave will be excavated across the intersection to allow for installing conduits to serve Elmira College"
detours[x]= "no detour is planned, traffic flow to be maintained with flaggers on the street"
rinfo[x]= "scheduled weather permitting"
x++;

area[x]= "Corner of Lake St and Water St"
agency[x]= "Chemung County"
rbegin[x]= new Date("June 23, 2010")
rexpire[x]= new Date("June 23, 2010")
reason[x]= "Clean out manhole"
detours[x]= "None"
rinfo[x]= "We will be merging traffic to one lane on Water St. near the intersection of Lake St. Length of the one lane merge about 200 feet. The project should only take about 3hrs."
x++; 

area[x]= "West Chemung St."
agency[x]= "City of Elmira"
rbegin[x]= new Date("June 22, 2010")
rexpire[x]= new Date("June 22, 2010")
reason[x]= "Tieing into the storm drain"
detours[x]= "Hudson St."
rinfo[x]= ""
x++; 

area[x]= "W Gray St between Columbia St and Davis St"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 21, 2010")
rexpire[x]= new Date("June 24, 2010")
reason[x]= "The final gas main tie in work will be starting on Monday on W Gray Street for the new gas main that has been installed"
detours[x]= "W Gray will be closed from Columbia St to Davis St to allow for the work to be completed. Traffic will be routed to W Water St, weather permitting."
rinfo[x]= ""
x++;

area[x]= "Morrow Street"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 21, 2010")
rexpire[x]= ""
reason[x]= "Sullivan Trail construction will be replaing the gas main on Morrow St for NYSEG"
detours[x]= "none planned, men and equipment on the street"
rinfo[x]= ""
x++; 
 

area[x]= "W Gray St between Columbia St and Davis St"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 7, 2010")
rexpire[x]= new Date("June 11, 2010")
reason[x]= "New gas services are being installed in conjunction with the C/Elmira paving program"
detours[x]= "Traffic detoured to W Water St, local traffic only on W Gray St and flagging as required"
rinfo[x]= ""
x++; 

area[x]= "Baty St between Collins St and Pennsylvania Ave"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 7, 2010")
rexpire[x]= new Date("June 11, 2010")
reason[x]= "New gas main and services are being installed in conjunction with the C/Elmira paving program"
detours[x]= "none expected , men and equipment on the street and flagging as required"
rinfo[x]= ""
x++; 

area[x]= "Maple Ave between E Miller St and Fairway Ave"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 7, 2010")
rexpire[x]= new Date("June 11, 2010")
reason[x]= "New gas main and services are being installed in conjunction with the C/Elmira paving program"
detours[x]= "none expected , men and equipment on the street and flagging as required"
rinfo[x]= ""
x++; 

area[x]= "Baty Street between Pennsylvania Ave and Collins St"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 3, 2010")
rexpire[x]= ""
reason[x]= "Construction will be starting to replace the gas main and services on Baty Street in conjunction with the C/Elmira Paving program"
detours[x]= "none expected, crews and equipment on the street"
rinfo[x]= "work is weather dependant"
x++; 

area[x]= "W. Clinton St. from Walnut Street to Columbia Street "
agency[x]= "City of Elmira"
rbegin[x]= new Date("June 2, 2010")
rexpire[x]= new Date("June 2, 2010")
reason[x]= "T&L pave on West Clinton Street from Walnut to Davis Street and from Davis Street to columbia Street street will be close to all traffic "
detours[x]= "No "
rinfo[x]= "there will be no parking on the street at all "
x++; 

area[x]= "W Gray St between Davis St and Elm St "
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 1, 2010")
rexpire[x]= new Date("June 4, 2010")
reason[x]= "crews are installing new gas services on W Gray St in conjunction with the C/Elmira paving program"
detours[x]= "none expected limited traffic"
rinfo[x]= "crew and equipment on both side of W Gray St, flaggers may be present at times"
x++; 

area[x]= "Maple Ave between E Miller St and Fairway Ave"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("June 1, 2010")
rexpire[x]= new Date("June 10, 2010")
reason[x]= "crews are installing new gas main and services on Maple Ave in conjunction with the C/Elmira paving program"
detours[x]= "none expected"
rinfo[x]= "crew and equipment on the west side of Maple Ave, flaggers may be present at times"
x++; 

area[x]= "Washington Ave between Davis St and Walnut St"
agency[x]= "A. L. Blades"
rbegin[x]= new Date("May 13, 2010")
rexpire[x]= ""
reason[x]= "The City of Elmira and A. L. Blades are rebuilding Washington Ave between Walnut St and Davis St"
detours[x]= "Eastbound: Left turn onto Walnut Street, Right turn onto Roe Avenue, Right turn onto Davis Street, and then Left turn back onto Washington Avenue. Westbound: Right turn onto Davis Street, Left turn onto Roe Avenue, Left turn onto Walnut Street, then Right turn back onto Washington Avenue. "
rinfo[x]= "Washington Ave at Davis can be used to drop off or pick up patrons at business locations. "
x++; 


area[x]= "Johnson Street Closed at Washington Ave "
agency[x]= "A. L. Blades"
rbegin[x]= new Date("May 13, 2010")
rexpire[x]= ""
reason[x]= "The City of Elmira and A. L. Blades are rebuilding Washington Ave between Walnut St and Davis St"
detours[x]= ""
rinfo[x]= " "
x++; 


area[x]= "Lincoln Street Closed at Washington Ave "
agency[x]= "A. L. Blades"
rbegin[x]= new Date("May 13, 2010")
rexpire[x]= ""
reason[x]= "The City of Elmira and A. L. Blades are rebuilding Washington Ave between Walnut St and Davis St"
detours[x]= ""
rinfo[x]= " "
x++; 


area[x]= "Broadway from Franklin Street south to South Avenue"
agency[x]= "Elmira Water Board"
rbegin[x]= new Date("February 18, 2010")
rexpire[x]= new Date("February 18, 2010")
reason[x]= "Replacing Water Service Lines, Gate Valves, and Fire Hydrants."
detours[x]= "From Broadway east on Franklin Street to south on Pennsylvania Avenue to west on South Avenue back to Broadway."
rinfo[x]= "Road closing will be between the hours of 9:00 am to 2:00 pm."
x++; 

area[x]= "Eastside Power Interruption"
agency[x]= "City of Elmira"
rbegin[x]= new Date("December 3, 2009")
rexpire[x]= new Date("December 3, 2009")
reason[x]= "FYI - NYSEG will be shutting down their Madison Avenue Sub-Station this Thursday (12/3) at 3:40pm. The shutdown will last for 1-3 minutes, and will affect much of Elmira's east-side, including the following traffic signals:<ol><li>Madison Ave and Water Street<li>Madison Ave and Market Street <li>Madison Avenue and Church Street <li>Madison Avenue/Lake Street and Washington Ave<li>Lake Street and 2nd Street <li>Lake Street and Grand Central Avenue<li>Lake Street and Division Street <li>Lake Street and Link Road (Clemens Center Parkway Extension)<li>Division St and Grand Central Avenue</ol>"
detours[x]= "None planned."
rinfo[x]= "Please drive carefully. New York State law provides that a signal without power (black signal) is the same as an all-way stop sign. All drivers should stop at a black signal, and proceed when safe to do so."
x++; 


area[x]= "Walnut Street Bridge"
agency[x]= "City of Elmira"
rbegin[x]= new Date("November 24, 2009")
rexpire[x]= new Date("November 24, 2009")
reason[x]= "Routine Bridge Inspection from 7:00am to 10:00am."
detours[x]= "None "
rinfo[x]= ""
x++; 


area[x]= "Washington Ave: Walnut St to Hoffman St"
agency[x]= "City of Elmira"
rbegin[x]= new Date("October 27, 2009")
rexpire[x]= new Date("October 27, 2009")
reason[x]= "Paving "
detours[x]= "Going West: Hoffman to Roe to Walnut. Going East: Walnut to Roe to Hoffman"
rinfo[x]= ""
x++; 


area[x]= "Washington Ave: Walnut St to Hoffman St"
agency[x]= "City of Elmira"
rbegin[x]= new Date("October 26, 2009")
rexpire[x]= new Date("October 26, 2009")
reason[x]= "Milling pavement "
detours[x]= "Going west on Washington , Walnut to Roe ave. to Hoffman Street Going east on Washington , Hoffman to Roe ave. to Walnut All cross street will be closed from wWalnut to Hoffman Street "
rinfo[x]= "We will work with the school buses."
x++; 


area[x]= "N Main and W Fifth Streets"
agency[x]= "Sullivan Trail Construction"
rbegin[x]= new Date("October 28, 2009")
rexpire[x]= new Date("October 30, 2009")
reason[x]= "Installation of Natual Gas lines for NYSEG"
detours[x]= "East and West Bound traffic on West 5th should detour to Washington Ave or 2nd Streets to avoid any delays."
rinfo[x]= "Traffic will be reduced to one lane during construction. Watch for flagmen "
x++; 


area[x]= "Walnut St bridge"
agency[x]= "City of Elmira"
rbegin[x]= new Date("October 22, 2009")
rexpire[x]= new Date("October 22, 2009")
reason[x]= "Bridge inspection"
detours[x]= "No detour. Lane closure in effect"
rinfo[x]= "8:00am to 5:00pm"
x++; 


area[x]= "216 Harriett St"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 16, 2009")
rexpire[x]= new Date("October 16, 2009")
reason[x]= "NYSEG will be excavating in front of 216 Harriett St for maintenance work"
detours[x]= "None. Men and equipment on the street"
rinfo[x]= "weather dependant"
x++; 

area[x]= "400 High St"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 16, 2009")
rexpire[x]= new Date("October 16, 2009")
reason[x]= "NYSEG will be excavating in front of 400 High St for maintenance work"
detours[x]= "None. Men and equipment on the street"
rinfo[x]= "weather dependant"
x++; 


area[x]= "405 Gaines"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 16, 2009")
rexpire[x]= new Date("October 16, 2009")
reason[x]= "NYSEG will be excavating in front of 405 Gaines St for maintenance work"
detours[x]= "None. Men and equipment on the street"
rinfo[x]= "weather dependant"
x++; 


area[x]= "706 Penna Ave"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 16, 2009")
rexpire[x]= new Date("October 16, 2009")
reason[x]= "NYSEG will be excavating in front of 706 Penna Ave for maintenance work "
detours[x]= "None. Men and equipment on the street"
rinfo[x]= "weather dependant"
x++; 


area[x]= "221 South Ave"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 16, 2009")
rexpire[x]= new Date("October 16, 2009")
reason[x]= "NYSEG will be excavating in front of 221 South Ave for maintenance work "
detours[x]= "None. Men and equipment on the street"
rinfo[x]= "weather dependant"
x++; 


area[x]= "308 - 310 W Gray St"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 15, 2009")
rexpire[x]= new Date("October 15, 2009")
reason[x]= "NYSEG will be excavating in front of 308 - 310 W Gray St for maintenance work "
detours[x]= "None. Men and equipment on the street"
rinfo[x]= "weather dependant"
x++; 


area[x]= "1122 Ovid St"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 15, 2009")
rexpire[x]= new Date("October 15, 2009")
reason[x]= "NYSEG will be excavating in front of 1122 Ovid St for maintenance work "
detours[x]= "None. Men and equipment on the street"
rinfo[x]= "weather dependant"
x++; 


area[x]= "311 Roe Ave"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 15, 2009")
rexpire[x]= new Date("October 15, 2009")
reason[x]= "NYSEG will be excavating in front of 313 Roe Ave Ave for maintenance work "
detours[x]= "None. Men and equipment on the street"
rinfo[x]= ""
x++; 


area[x]= "303 Gunniup Ave"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 14, 2009")
rexpire[x]= new Date("October 14, 2009")
reason[x]= "NYSEG will be excavating in front of 303 Gunniup Ave for maintenance work."
detours[x]= "None. Men and equipment on the street"
rinfo[x]= ""
x++; 


area[x]= "Tompkins Street: Davis St to Walnut St"
agency[x]= "Sullivan Trail Construction co."
rbegin[x]= new Date("October 12, 2009")
rexpire[x]= new Date("October 13, 2009")
reason[x]= "Construction of new natural gas main for NYSEG"
detours[x]= "Traffic will be detoured to Millard and Johnson Streets."
rinfo[x]= "Work will begin at 7:00am and be compeleted by 5:00pm each day"
x++; 

area[x]= "E Miller St"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 5, 2009")
rexpire[x]= new Date("October 5, 2009")
reason[x]= "NYSEG will be installing a new gas service to the new church on E Miller St."
detours[x]= "none planned"
rinfo[x]= ""
x++; 

area[x]= "373 W First St"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 6, 2009")
rexpire[x]= new Date("October 6, 2009")
reason[x]= "NYSEG will be replacing the gas service to 373 W First Street"
detours[x]= "none planned"
rinfo[x]= "men and equipment in the road"
x++; 

area[x]= "822 Sunset Dr"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 7, 2009")
rexpire[x]= new Date("October 7, 2009")
reason[x]= "NYSEG will be replacing the gas service to 822 Sunset Dr "
detours[x]= "none planned"
rinfo[x]= "men and equipment in the road"
x++; 

area[x]= "403 Baty St"
agency[x]= "NYSEG"
rbegin[x]= new Date("October 8, 2009")
rexpire[x]= new Date("October 8, 2009")
reason[x]= "NYSEG will be replacing the gas service to 403 Baty St."
detours[x]= "none planned"
rinfo[x]= "men and equipment in the road"
x++; 


area[x]= "Hudson Street: S. Main St to Fulton St"
agency[x]= "City of Elmira"
rbegin[x]= new Date("September 25, 2009")
rexpire[x]= new Date("September 25, 2009")
reason[x]= "Paving"
detours[x]= "Going west on Hudson: left on Fulton St to Chemung St to South Main St.  Going east on Hudson: right on S. Main St to Chemung St to Fulton St back to Hudson St."
rinfo[x]= ""
x++; 


area[x]= "Walnut Street Bridge"
agency[x]= "City of Elmira"
rbegin[x]= new Date("September 23, 2009")
rexpire[x]= new Date("October 1, 2009")
reason[x]= "Bridge Inspection"
detours[x]= "Use Main Street Bridge."
rinfo[x]= "Actual work days will be: 9/23 9/24 and 10/1. Work hours from 8:00am to 5:00pm. Various lane closures will be in effect."
x++; 

area[x]= "College Ave: Thurston to City Line"
agency[x]= "Bothar Construction Co"
rbegin[x]= new Date("July 13, 2009")
rexpire[x]= new Date("October 30, 2009")
reason[x]= "Reconstruction of College Ave, including sewer line and new drainage structures."
detours[x]= "Truck detours will be posted along business Route 14: McCanns Blvd to Grand Central to Clemens Center Parkway to Woodlawn Ave."
rinfo[x]= "Traffic will be maintained throughout the project. One-way traffic with flaggers possible during the hours of 7:00am to 4:00pm.  Access to area businesses will be maintained 24/7."
x++; 







var advisory="";
var rstore=new Array();
var advisoryCounter=0;
rtoday=new Date();
rcounter=0;
for (i=0;i<area.length;i++){
	if ((rbegin[i]-rtoday)<=+86400000){
		if (rexpire[i]==""){
			rstore[rcounter]=i;
			rcounter++
		}
		else if (rexpire[i]-rtoday >=-86400000){	
			rstore[rcounter]=i;
			rcounter++
		}
	}
}

function printAdvisory(){
	if (rstore.length==0){
		advisory="There are no Road and Traffic Advisories for today";
	}
	else{	
		for(i=0;i<rstore.length;i++){
			advisory=advisory+"<br>&nbsp;&nbsp;<a href='../dps/streetwork.html?"+rstore[i]+"' class='advisory' title='Click for Advisory information'>"+area[rstore[i]]+"</a>"
		}
	}
	return advisory; 
}

function printTrafficAdvisories(){
	if(rstore.length > 0){
		document.write("	<table border='0' cellpadding='2' cellspacing='0' width='384'><tr>");
		document.write("	<td valign='top' align='left' width='70'><a href='../dps/streetwork.html' title='Click here for more advisories'><img src='../thumbs/trafficwork.jpg' border='0'></a></td>	");
		document.write("	<td valign='top' align='left' width='314'><a href='../dps/streetwork.html' class='featureheader' title='Click here for more advisories'>Road & Traffic Advisories</a><span class='featuretext'>"+printAdvisory()+"<br>");
		document.write("	<span class ='smalltext'>&nbsp;&nbsp;&nbsp;<a href='../dps/streetwork.html' title='Click here for more'>&raquo;Click here for more</a></span></td></tr>");
		document.write("	<tr><td colspan='2' align='center' valign='middle'><span class='featuredivider'>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - </span></td></tr></table>");
	}
}

// End -->