//Implied globals for JSLint
/*global GGeoXml, NYCVPMapObjectClass, createNewArray */

var subways = createNewArray('subway');

// Class definition of restaurant object
Subway.DeriveFrom(NYCVPMapObjectClass);
function Subway(overlay)
{
	this.currentState = 0;
	this.overlay = overlay;
	this.legend = false;
	this.polyOverlay = null;
}

function loadSubways()
{
	subways[0] = new Subway(new GGeoXml("http://www.vanshnookenraggen.com/gmaps/nyc_irt.kml"));
	subways[1] = new Subway(new GGeoXml("http://www.vanshnookenraggen.com/gmaps/nyc_bmt.kml"));
	subways[2] = new Subway(new GGeoXml("http://www.vanshnookenraggen.com/gmaps/nyc_ind.kml"));
	subways[3] = new Subway(new GGeoXml("http://www.vanshnookenraggen.com/gmaps/nyc_path.kml"));
	subways[4] = new Subway(new GGeoXml("http://www.vanshnookenraggen.com/gmaps/nyc_ncs.kml"));
	subways[5] = new Subway(new GGeoXml("http://www.vanshnookenraggen.com/gmaps/nyc_hblr.kml"));
	subways[6] = new Subway(new GGeoXml("http://www.vanshnookenraggen.com/gmaps/nyc_other.kml"));
}
