﻿//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 miscs  = createNewArray('miscellaneous');

// Class definition of restaurant object
miscellaneous.DeriveFrom(NYCVPMapObjectClass);
function miscellaneous(name, address, Lat, Long)
{
	// call super classes constructor
	this.NYCVPMapObjectClass(name, Lat, Long);
	this.markerColor = "purple";
	this.legend = true;
	this.legendTab = 'legendTab5';
	this.desc = '<div id="miscellaneousDesc">' + name + '<br /><span class="miscellaneousAddress">' + address + '</span></div>';
	this.address = address;
}

miscellaneous.prototype.tip = function()
{
	Tip('<b>' + this.name + '<br />' + this.address, BALLOON, true, ABOVE, true, OFFSETX, -25, BALLOONSTEMOFFSET, -5);
};

miscs[0]= new miscellaneous("BB King Blues Club","<br />237 W 4nd St<br />New York, NY 10036",40.75682307872411, -73.988596200943);
miscs[1]= new miscellaneous("Carnegie Hall","881 7th Ave<br />New York, NY",40.76501454610367, -73.9802598953247);
miscs[2]= new miscellaneous("Columbus Circle","Columbus Cir<br />New York, NY",40.768027, -73.982343);
miscs[3]= new miscellaneous("FAO Schwartz","767 Fifth Avenue<br />(Fifth Ave at 58th Street)<br /> New York, NY 10153",40.76321055961257, -73.9722990989685);
miscs[4]= new miscellaneous("Grand Central Station","101 East 42nd Street<br />New York, NY",40.753003299451564, -73.97708415985107);
miscs[5]= new miscellaneous("Late Show with David Letterman","1697 Broadway<br /> New York, NY 10019",40.76361686714857, -73.98280262947082);
miscs[6]= new miscellaneous("New York Public Library","455 5th Ave<br />New York, NY",40.753133338099026, -73.98206233978271);
miscs[7]= new miscellaneous("Port Authority","8th Avenue<br />New York, NY",40.75716441001952, -73.9902913570404);
miscs[8]= new miscellaneous("Sony Wonder Technology Lab","56th Street between Madison<br/>and Fifth Avenues <br />New York, NY 10022",40.761910358805885, -73.97327542304993);
miscs[9]= new miscellaneous("Time Square-MTV Studios","New York, NY",40.75760326196702, -73.9859676361084);
miscs[10]= new miscellaneous("Toys R' Us","1514 Broadway <br />New York, NY",40.7573432019034, -73.98558139801025);
miscs[11]= new miscellaneous("St. Patrick's Cathedral","460 Madison Ave<br />New York, NY 10022",40.758472830416466, -73.97612929344177);
