//Implied globals for JSLint
// From Tips
/*globals ABOVE, BALLOON, BALLOONSTEMOFFSET, OFFSETX, Tip, UnTip */
//From Google Maps
/*globals GPolygon, GLatLng */
// From NYCVP
/*globals NYCVPMapObjectClass, createNewArray */

var sights = createNewArray('sights');

// Class definition of restaurant object
SightSeeing.DeriveFrom(NYCVPMapObjectClass);
function SightSeeing(name, address, Lat, Long)
{
	// call super classes constructor
	this.NYCVPMapObjectClass(name, Lat, Long);
	this.markerColor = "green";
	this.swapShadowColor = true;
	this.legend = true;
	this.legendTab = 'legendTab4';
	this.desc = '<div id="sightseeingDesc">' + name + '<br /><span class="sightseeingAddress">' + address + '</span></div>';
	this.address = address;
}

SightSeeing.prototype.tip = function()
{
	Tip('<b>' + this.name + '<br />' + this.address, BALLOON, true, ABOVE, true, OFFSETX, -25, BALLOONSTEMOFFSET, -5);
};

// not the best way to do this. It should be part of the object constructor definition but we can't take the time for that right now.
function loadRockefellerPoly()
{
sights[22].polyOverlay = new GPolygon([
								new GLatLng(40.76054512058503, -73.97994875907898),
								new GLatLng(40.758659745513775, -73.9813220500946),
								new GLatLng(40.75728631362886, -73.97812485694885),
								new GLatLng(40.759155474313346, -73.97674083709717),
								new GLatLng(40.76054512058503, -73.97994875907898)],
								"#008800", 2, 1, "#00FF00", 0.2);
}

sights[0] = new SightSeeing("American Museum of Natural History","Central Park West at 79th Street<br />New York, NY", 40.78101262545098, -73.97252440452576);
sights[1] = new SightSeeing("Caroline's Comedy Club","1626 Broadway<br />New York, NY", 40.76110584681915, -73.98410081863403);
sights[2] = new SightSeeing("Children's Museum of Manhattan","212 West 83rd Street<br />New York, NY", 40.78597620312811, -73.97729873657227);
sights[3] = new SightSeeing("Circle Line","Pier 83, W. 42nd Street<br />New York, NY", 40.762716, -74.001475);
sights[4] = new SightSeeing("CitySights","234 W. 42nd St.<br />New York, NY", 40.75661990450192, -73.98842453956604);
sights[5] = new SightSeeing("Empire State Building Observatory","350 5th Avenue<br />New York, NY", 40.748102282514616, -73.98491621017456);
sights[6] = new SightSeeing("Gray Line of New York","777 8th Avenue<br />New York, NY", 40.76082142105966, -73.98745894432068);
sights[7] = new SightSeeing("Ground Zero Museum Workshop","420 West 14th Street<br />New York, NY", 40.741148, -74.006723);
sights[8] = new SightSeeing("Harlem Spirituals","690 8th Avenue<br />New York, NY", 40.75825, -73.989028);
sights[9] = new SightSeeing("LATHER Spa","127 E 57th Street<br />New York, NY", 40.761068, -73.96949);
sights[10] = new SightSeeing("Liberty Helicopters","West 30th Street & 12th Avenue<br />New York, NY", 40.7544418378331, -74.00656700134277);
sights[11] = new SightSeeing("Madame Tussaud's","234 West 42nd Street<br />New York, NY", 40.756554, -73.988171);
sights[12] = new SightSeeing("Metropolitan Museum of Art","5th Ave & 82nd Street<br />New York, NY", 40.77904658869192, -73.96275043487549);
sights[13] = new SightSeeing("Museum of Modern Art","11 West 53rd Street<br />New York, NY", 40.76110584681915, -73.97707343101501);
sights[14] = new SightSeeing("Museum of Radio & Television","25W 52nd St<br />New York, NY 10019",40.760057528710426, -73.9768373966217);
sights[15] = new SightSeeing("NBC Studio Tour","W. 49th St. between 5th & 6th Avenues<br />New York, NY", 40.758472830416466, -73.9790153503418);
sights[16] = new SightSeeing("New York Historical Society Museum","170 Central Park West<br />New York, NY", 40.779292, -73.974502);
sights[17] = new SightSeeing("NY SkyRide","350 5th Avenue<br />New York, NY", 40.74829735476797, -73.98468017578125);
sights[18] = new SightSeeing("New York Water Taxi","South Street Seaport, Pier 17<br />New York, NY", 40.705400207887536, -74.00203943252563);
sights[19] = new SightSeeing("NYCVP Tours","51st St. & Broadway<br />New York, NY", 40.762057, -73.983616);
sights[20] = new SightSeeing("Statue of Liberty & Ground Zero Tour","1585 Broadway at 47th St.<br />New York, NY", 40.75957805987928, -73.98519515991211);
sights[21] = new SightSeeing("Radio City Music Hall Backstage Tour","1260 6th Ave<br />New York, NY", 40.75987874412691, -73.97962689399719);
sights[22] = new SightSeeing("Rockefeller Center Tour","W. 49th St. between 5th & 6th Avenues<br />New York, NY", 40.758703, -73.978574);
sights[23] = new SightSeeing("Top of the Rock","30 Rockefeller Plaza<br />New York, NY", 40.758448, -73.978898);
sights[24] = new SightSeeing("United Nations","First Avenue at 46th Street<br />New York, NY", 40.750979540223256, -73.96777153015137);
sights[25] = new SightSeeing("Statue of Liberty Ferry","Battery Park and Hudson River<br />New York, NY", 40.70195162503384, -74.01648044586182);
sights[26] = new SightSeeing("South Street Seaport","South Street Seaport<br />New York, NY", 40.70619726059497, -74.00124549865723);
