function addMarkers(){
mySelect = document.getElementById('selection');
Queensbury = [];New_York = [];White_Plains = [];Forest_Hills = [];Bethpage = [];Binghamton = [];Albany = [];Buffalo = [];Rochester = [];Orchard_Park = [];Syracuse = [];Auburn = [];Plattsburgh = [];Yonkers = [];Hudson = [];Corning = [];Bronx = [];Brooklyn = [];Long_Island_City = [];Bayside = [];Mount_Vernon = [];Poughkeepsie = [];Schenectady = [];Elmira = [];Canandaigua = [];Johnstown = [];Batavia = [];Herkimer = [];Troy = [];Amityville = [];Getzville = [];Jamestown = [];Watertown = [];Melville = [];Commack = [];Old_Forge = [];Latham = [];Utica = [];Morrisville = [];Garden_City = [];Syosset = [];Sanborn = [];Saranac_Lake = [];Olean = [];Middletown = [];Jackson_Heights = [];Suffern = [];Fresh_Meadows = [];Staten_Island = [];Selden = [];Loch_Sheldrake = [];Alfred = [];Canton = [];Delhi = [];Valhalla = [];Dryden = [];Stone_Ridge = [];New__York = [];mySelect.options[mySelect.options.length] = new Option("Albany Schools",'all=Albany');
mySelect.options[mySelect.options.length] = new Option("Alfred Schools",'all=Alfred');
mySelect.options[mySelect.options.length] = new Option("Amityville Schools",'all=Amityville');
mySelect.options[mySelect.options.length] = new Option("Auburn Schools",'all=Auburn');
mySelect.options[mySelect.options.length] = new Option("Batavia Schools",'all=Batavia');
mySelect.options[mySelect.options.length] = new Option("Bayside Schools",'all=Bayside');
mySelect.options[mySelect.options.length] = new Option("Bethpage Schools",'all=Bethpage');
mySelect.options[mySelect.options.length] = new Option("Binghamton Schools",'all=Binghamton');
mySelect.options[mySelect.options.length] = new Option("Bronx Schools",'all=Bronx');
mySelect.options[mySelect.options.length] = new Option("Brooklyn Schools",'all=Brooklyn');
mySelect.options[mySelect.options.length] = new Option("Buffalo Schools",'all=Buffalo');
mySelect.options[mySelect.options.length] = new Option("Canandaigua Schools",'all=Canandaigua');
mySelect.options[mySelect.options.length] = new Option("Canton Schools",'all=Canton');
mySelect.options[mySelect.options.length] = new Option("Commack Schools",'all=Commack');
mySelect.options[mySelect.options.length] = new Option("Corning Schools",'all=Corning');
mySelect.options[mySelect.options.length] = new Option("Delhi Schools",'all=Delhi');
mySelect.options[mySelect.options.length] = new Option("Dryden Schools",'all=Dryden');
mySelect.options[mySelect.options.length] = new Option("Elmira Schools",'all=Elmira');
mySelect.options[mySelect.options.length] = new Option("Forest Hills Schools",'all=Forest_Hills');
mySelect.options[mySelect.options.length] = new Option("Fresh Meadows Schools",'all=Fresh_Meadows');
mySelect.options[mySelect.options.length] = new Option("Garden City Schools",'all=Garden_City');
mySelect.options[mySelect.options.length] = new Option("Getzville Schools",'all=Getzville');
mySelect.options[mySelect.options.length] = new Option("Herkimer Schools",'all=Herkimer');
mySelect.options[mySelect.options.length] = new Option("Hudson Schools",'all=Hudson');
mySelect.options[mySelect.options.length] = new Option("Jackson Heights Schools",'all=Jackson_Heights');
mySelect.options[mySelect.options.length] = new Option("Jamestown Schools",'all=Jamestown');
mySelect.options[mySelect.options.length] = new Option("Johnstown Schools",'all=Johnstown');
mySelect.options[mySelect.options.length] = new Option("Latham Schools",'all=Latham');
mySelect.options[mySelect.options.length] = new Option("Loch Sheldrake Schools",'all=Loch_Sheldrake');
mySelect.options[mySelect.options.length] = new Option("Long Island City Schools",'all=Long_Island_City');
mySelect.options[mySelect.options.length] = new Option("Melville Schools",'all=Melville');
mySelect.options[mySelect.options.length] = new Option("Middletown Schools",'all=Middletown');
mySelect.options[mySelect.options.length] = new Option("Morrisville Schools",'all=Morrisville');
mySelect.options[mySelect.options.length] = new Option("Mount Vernon Schools",'all=Mount_Vernon');
mySelect.options[mySelect.options.length] = new Option("New York Schools",'all=New_York');
mySelect.options[mySelect.options.length] = new Option("New York Schools",'all=New__York');
mySelect.options[mySelect.options.length] = new Option("Old Forge Schools",'all=Old_Forge');
mySelect.options[mySelect.options.length] = new Option("Olean Schools",'all=Olean');
mySelect.options[mySelect.options.length] = new Option("Orchard Park Schools",'all=Orchard_Park');
mySelect.options[mySelect.options.length] = new Option("Plattsburgh Schools",'all=Plattsburgh');
mySelect.options[mySelect.options.length] = new Option("Poughkeepsie Schools",'all=Poughkeepsie');
mySelect.options[mySelect.options.length] = new Option("Queensbury Schools",'all=Queensbury');
mySelect.options[mySelect.options.length] = new Option("Rochester Schools",'all=Rochester');
mySelect.options[mySelect.options.length] = new Option("Sanborn Schools",'all=Sanborn');
mySelect.options[mySelect.options.length] = new Option("Saranac Lake Schools",'all=Saranac_Lake');
mySelect.options[mySelect.options.length] = new Option("Schenectady Schools",'all=Schenectady');
mySelect.options[mySelect.options.length] = new Option("Selden Schools",'all=Selden');
mySelect.options[mySelect.options.length] = new Option("Staten Island Schools",'all=Staten_Island');
mySelect.options[mySelect.options.length] = new Option("Stone Ridge Schools",'all=Stone_Ridge');
mySelect.options[mySelect.options.length] = new Option("Suffern Schools",'all=Suffern');
mySelect.options[mySelect.options.length] = new Option("Syosset Schools",'all=Syosset');
mySelect.options[mySelect.options.length] = new Option("Syracuse Schools",'all=Syracuse');
mySelect.options[mySelect.options.length] = new Option("Troy Schools",'all=Troy');
mySelect.options[mySelect.options.length] = new Option("Utica Schools",'all=Utica');
mySelect.options[mySelect.options.length] = new Option("Valhalla Schools",'all=Valhalla');
mySelect.options[mySelect.options.length] = new Option("Watertown Schools",'all=Watertown');
mySelect.options[mySelect.options.length] = new Option("White Plains Schools",'all=White_Plains');
mySelect.options[mySelect.options.length] = new Option("Yonkers Schools",'all=Yonkers');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
var tmpLatLng=0;
var tmpLen=0;
tmpLatLng=new GLatLng(43.35852700000000226,-73.6576459999999997);
tmpLen=Queensbury.length;
Queensbury[tmpLen] = createMarker(tmpLatLng,"
",iconGr);
Queensbury[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Adirondack Community College",'Queensbury=' + Queensbury.length);
tmpLatLng=new GLatLng(40.76871700000000231,-73.9932220000000029);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("American Academy Mcallister Institute Of Funeral S",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.74560600000000221,-73.9849090000000018);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("American Academy Of Dramatic Arts",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.72329400000000276,-74.0063530000000042);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Art Institute Of New York City",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.75415799999999677,-73.9800549999999930);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Berkeley College",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(41.03419699999999892,-73.7671760000000062);
tmpLen=White_Plains.length;
White_Plains[tmpLen] = createMarker(tmpLatLng,"",iconGr);
White_Plains[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Berkeley College",'White_Plains=' + White_Plains.length);
tmpLatLng=new GLatLng(40.72134299999999740,-73.8480129999999945);
tmpLen=Forest_Hills.length;
Forest_Hills[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Forest_Hills[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bramson Ort College",'Forest_Hills=' + Forest_Hills.length);
tmpLatLng=new GLatLng(40.76024900000000172,-73.4905590000000046);
tmpLen=Bethpage.length;
Bethpage[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Bethpage[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Briarcliffe College",'Bethpage=' + Bethpage.length);
tmpLatLng=new GLatLng(42.17999999999999971,-75.8817999999999983);
tmpLen=Binghamton.length;
Binghamton[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Binghamton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Broome Community College",'Binghamton=' + Binghamton.length);
tmpLatLng=new GLatLng(42.69786500000000018,-73.8101659999999952);
tmpLen=Albany.length;
Albany[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Albany[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bryant And Stratton College-albany",'Albany=' + Albany.length);
tmpLatLng=new GLatLng(42.88642800000000221,-78.8738280000000031);
tmpLen=Buffalo.length;
Buffalo[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Buffalo[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bryant And Stratton College-buffalo",'Buffalo=' + Buffalo.length);
tmpLatLng=new GLatLng(43.18796999999999997,-77.6848240000000060);
tmpLen=Rochester.length;
Rochester[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Rochester[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bryant And Stratton College-greece",'Rochester=' + Rochester.length);
tmpLatLng=new GLatLng(42.83128299999999910,-78.8055039999999991);
tmpLen=Orchard_Park.length;
Orchard_Park[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Orchard_Park[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bryant And Stratton College-lackawanna",'Orchard_Park=' + Orchard_Park.length);
tmpLatLng=new GLatLng(43.05842700000000178,-76.1365700000000060);
tmpLen=Syracuse.length;
Syracuse[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Syracuse[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bryant And Stratton College-main Syracuse",'Syracuse=' + Syracuse.length);
tmpLatLng=new GLatLng(42.94137800000000027,-76.5451050000000066);
tmpLen=Auburn.length;
Auburn[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Auburn[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cayuga County Community College",'Auburn=' + Auburn.length);
tmpLatLng=new GLatLng(44.64810399999999646,-73.4435320000000047);
tmpLen=Plattsburgh.length;
Plattsburgh[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Plattsburgh[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Clinton Community College",'Plattsburgh=' + Plattsburgh.length);
tmpLatLng=new GLatLng(40.93117900000000020,-73.8985820000000046);
tmpLen=Yonkers.length;
Yonkers[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Yonkers[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cochran School Of Nursing",'Yonkers=' + Yonkers.length);
tmpLatLng=new GLatLng(41.03639700000000090,-73.7787759999999934);
tmpLen=White_Plains.length;
White_Plains[tmpLen] = createMarker(tmpLatLng,"",iconRd);
White_Plains[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("College Of Westchester",'White_Plains=' + White_Plains.length);
tmpLatLng=new GLatLng(42.25416899999999742,-73.7936020000000070);
tmpLen=Hudson.length;
Hudson[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Hudson[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Columbia-greene Community College",'Hudson=' + Hudson.length);
tmpLatLng=new GLatLng(42.11879400000000117,-77.0823840000000046);
tmpLen=Corning.length;
Corning[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Corning[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Corning Community College",'Corning=' + Corning.length);
tmpLatLng=new GLatLng(43.04060199999999980,-76.1379459999999994);
tmpLen=Syracuse.length;
Syracuse[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Syracuse[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Crouse Hospital School Of Nursing",'Syracuse=' + Syracuse.length);
tmpLatLng=new GLatLng(40.71735000000000326,-74.0119859999999931);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconGr);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cuny Borough Of Manhattan Community College",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.85730000000000217,-73.9095999999999975);
tmpLen=Bronx.length;
Bronx[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bronx[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cuny Bronx Community College",'Bronx=' + Bronx.length);
tmpLatLng=new GLatLng(40.81813499999999805,-73.9270839999999935);
tmpLen=Bronx.length;
Bronx[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bronx[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cuny Hostos Community College",'Bronx=' + Bronx.length);
tmpLatLng=new GLatLng(40.57841499999999967,-73.9373669999999947);
tmpLen=Brooklyn.length;
Brooklyn[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Brooklyn[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cuny Kingsborough Community College",'Brooklyn=' + Brooklyn.length);
tmpLatLng=new GLatLng(40.74491299999999682,-73.9350529999999963);
tmpLen=Long_Island_City.length;
Long_Island_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Long_Island_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cuny La Guardia Community College",'Long_Island_City=' + Long_Island_City.length);
tmpLatLng=new GLatLng(40.75240699999999805,-73.7591910000000012);
tmpLen=Bayside.length;
Bayside[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bayside[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cuny Queensborough Community College",'Bayside=' + Bayside.length);
tmpLatLng=new GLatLng(40.91203399999999845,-73.8404620000000022);
tmpLen=Mount_Vernon.length;
Mount_Vernon[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Mount_Vernon[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Dorothea Hopfer School Of Nursing-mt Vernon Hospit",'Mount_Vernon=' + Mount_Vernon.length);
tmpLatLng=new GLatLng(41.72161299999999783,-73.9070999999999997);
tmpLen=Poughkeepsie.length;
Poughkeepsie[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Poughkeepsie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Dutchess Community College",'Poughkeepsie=' + Poughkeepsie.length);
tmpLatLng=new GLatLng(42.81984500000000082,-73.9191229999999990);
tmpLen=Schenectady.length;
Schenectady[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Schenectady[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ellis Hospital School Of Nursing",'Schenectady=' + Schenectady.length);
tmpLatLng=new GLatLng(42.09016100000000193,-76.8086679999999972);
tmpLen=Elmira.length;
Elmira[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Elmira[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Elmira Business Institute",'Elmira=' + Elmira.length);
tmpLatLng=new GLatLng(42.882157,-78.872857);
tmpLen=Buffalo.length;
Buffalo[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Buffalo[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Erie Community College",'Buffalo=' + Buffalo.length);
tmpLatLng=new GLatLng(42.87191299999999927,-77.2432040000000057);
tmpLen=Canandaigua.length;
Canandaigua[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Canandaigua[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Finger Lakes Community College",'Canandaigua=' + Canandaigua.length);
tmpLatLng=new GLatLng(42.98160200000000230,-74.2946029999999950);
tmpLen=Johnstown.length;
Johnstown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Johnstown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Fulton-montgomery Community College",'Johnstown=' + Johnstown.length);
tmpLatLng=new GLatLng(40.61694700000000324,-73.9625539999999972);
tmpLen=Brooklyn.length;
Brooklyn[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Brooklyn[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Gamla College",'Brooklyn=' + Brooklyn.length);
tmpLatLng=new GLatLng(43.01453699999999713,-78.1633109999999931);
tmpLen=Batavia.length;
Batavia[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Batavia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Genesee Community College",'Batavia=' + Batavia.length);
tmpLatLng=new GLatLng(40.71512799999999998,-74.0057230000000032);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Globe Institute Of Technology",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.80291299999999665,-73.9437319999999971);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Helene Fuld College Of Nursing",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(43.03081999999999851,-75.0000799999999969);
tmpLen=Herkimer.length;
Herkimer[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Herkimer[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Herkimer County Community College",'Herkimer=' + Herkimer.length);
tmpLatLng=new GLatLng(42.69732400000000183,-73.6882820000000009);
tmpLen=Troy.length;
Troy[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Troy[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Hudson Valley Community College",'Troy=' + Troy.length);
tmpLatLng=new GLatLng(40.69207699999999761,-73.9831570000000056);
tmpLen=Brooklyn.length;
Brooklyn[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Brooklyn[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Institute Of Design And Construction",'Brooklyn=' + Brooklyn.length);
tmpLatLng=new GLatLng(40.76784599999999869,-73.9877520000000004);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Interboro Institute",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.67554599999999709,-73.4166570000000007);
tmpLen=Amityville.length;
Amityville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Amityville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Island Drafting And Technical Institute",'Amityville=' + Amityville.length);
tmpLatLng=new GLatLng(43.01237299999999663,-78.7698610000000059);
tmpLen=Getzville.length;
Getzville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Getzville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-getzville",'Getzville=' + Getzville.length);
tmpLatLng=new GLatLng(42.09509800000000012,-79.2491289999999963);
tmpLen=Jamestown.length;
Jamestown[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Jamestown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Jamestown Business College",'Jamestown=' + Jamestown.length);
tmpLatLng=new GLatLng(42.11360599999999720,-79.2170789999999982);
tmpLen=Jamestown.length;
Jamestown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Jamestown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Jamestown Community College",'Jamestown=' + Jamestown.length);
tmpLatLng=new GLatLng(43.98710200000000014,-75.9391839999999973);
tmpLen=Watertown.length;
Watertown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Watertown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Jefferson Community College",'Watertown=' + Watertown.length);
tmpLatLng=new GLatLng(40.79019799999999662,-73.3710640000000040);
tmpLen=Melville.length;
Melville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Melville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Katharine Gibbs School-melville",'Melville=' + Melville.length);
tmpLatLng=new GLatLng(40.75298699999999740,-73.9839850000000041);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Katharine Gibbs School-new York City",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.84274500000000074,-73.2905370000000004);
tmpLen=Commack.length;
Commack[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Commack[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Long Island Business Institute",'Commack=' + Commack.length);
tmpLatLng=new GLatLng(40.68254499999999751,-73.9958089999999941);
tmpLen=Brooklyn.length;
Brooklyn[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Brooklyn[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Long Island College Hospital School Of Nursing",'Brooklyn=' + Brooklyn.length);
tmpLatLng=new GLatLng(43.71054500000000331,-74.9731900000000024);
tmpLen=Old_Forge.length;
Old_Forge[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Old_Forge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lynn University-old Forge Center",'Old_Forge=' + Old_Forge.length);
tmpLatLng=new GLatLng(42.65862800000000021,-73.8067039999999963);
tmpLen=Albany.length;
Albany[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Albany[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Maria College Of Albany",'Albany=' + Albany.length);
tmpLatLng=new GLatLng(42.74692799999999692,-73.7613390000000066);
tmpLen=Latham.length;
Latham[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Latham[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mildred Elley School",'Latham=' + Latham.length);
tmpLatLng=new GLatLng(43.07646900000000300,-75.2202070000000020);
tmpLen=Utica.length;
Utica[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Utica[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mohawk Valley Community College-utica Branch",'Utica=' + Utica.length);
tmpLatLng=new GLatLng(40.84951800000000332,-73.8669589999999942);
tmpLen=Bronx.length;
Bronx[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Bronx[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Monroe College-main Campus",'Bronx=' + Bronx.length);
tmpLatLng=new GLatLng(43.10109099999999671,-77.6149340000000051);
tmpLen=Rochester.length;
Rochester[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Rochester[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Monroe Community College",'Rochester=' + Rochester.length);
tmpLatLng=new GLatLng(42.89871999999999729,-75.6400679999999994);
tmpLen=Morrisville.length;
Morrisville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Morrisville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Morrisville State College",'Morrisville=' + Morrisville.length);
tmpLatLng=new GLatLng(40.73236299999999943,-73.5926800000000014);
tmpLen=Garden_City.length;
Garden_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Garden_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Nassau Community College",'Garden_City=' + Garden_City.length);
tmpLatLng=new GLatLng(40.71130699999999791,-74.0078740000000010);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("New York Career Institute",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.80766100000000307,-73.5181510000000031);
tmpLen=Syosset.length;
Syosset[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Syosset[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("New York College Of Health Professions",'Syosset=' + Syosset.length);
tmpLatLng=new GLatLng(43.14316000000000173,-78.8736430000000012);
tmpLen=Sanborn.length;
Sanborn[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Sanborn[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Niagara County Community College",'Sanborn=' + Sanborn.length);
tmpLatLng=new GLatLng(44.31785299999999949,-74.1207540000000051);
tmpLen=Saranac_Lake.length;
Saranac_Lake[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Saranac_Lake[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("North Country Community College",'Saranac_Lake=' + Saranac_Lake.length);
tmpLatLng=new GLatLng(42.08149099999999975,-78.4300279999999929);
tmpLen=Olean.length;
Olean[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Olean[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Olean Business Institute",'Olean=' + Olean.length);
tmpLatLng=new GLatLng(43.01057500000000288,-76.1953929999999957);
tmpLen=Syracuse.length;
Syracuse[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Syracuse[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Onondaga Community College",'Syracuse=' + Syracuse.length);
tmpLatLng=new GLatLng(41.43860899999999958,-74.4254430000000013);
tmpLen=Middletown.length;
Middletown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Middletown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Orange County Community College",'Middletown=' + Middletown.length);
tmpLatLng=new GLatLng(40.73747999999999791,-73.9813759999999973);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Phillips Beth Israel School Of Nursing",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.74897299999999944,-73.8916760000000039);
tmpLen=Jackson_Heights.length;
Jackson_Heights[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Jackson_Heights[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Plaza College",'Jackson_Heights=' + Jackson_Heights.length);
tmpLatLng=new GLatLng(43.19672200000000117,-77.5847789999999974);
tmpLen=Rochester.length;
Rochester[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Rochester[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Rochester Business Institute",'Rochester=' + Rochester.length);
tmpLatLng=new GLatLng(41.13322099999999892,-74.0843650000000053);
tmpLen=Suffern.length;
Suffern[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Suffern[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Rockland Community College",'Suffern=' + Suffern.length);
tmpLatLng=new GLatLng(43.082877,-75.268366);
tmpLen=Utica.length;
Utica[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Utica[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Saint Elizabeth College Of Nursing",'Utica=' + Utica.length);
tmpLatLng=new GLatLng(42.73447800000000285,-73.6713620000000020);
tmpLen=Troy.length;
Troy[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Troy[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Samaritan Hospital School Of Nursing",'Troy=' + Troy.length);
tmpLatLng=new GLatLng(42.81571000000000282,-73.9492639999999994);
tmpLen=Schenectady.length;
Schenectady[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Schenectady[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Schenectady County Community College",'Schenectady=' + Schenectady.length);
tmpLatLng=new GLatLng(43.01983700000000254,-76.1601749999999952);
tmpLen=Syracuse.length;
Syracuse[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Syracuse[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Simmons Institute Of Funeral Service Inc",'Syracuse=' + Syracuse.length);
tmpLatLng=new GLatLng(43.05482700000000306,-76.1485009999999959);
tmpLen=Syracuse.length;
Syracuse[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Syracuse[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("St Joseph's College Of Nursing At St Joseph's Hosp",'Syracuse=' + Syracuse.length);
tmpLatLng=new GLatLng(40.73901999999999645,-73.7944839999999970);
tmpLen=Fresh_Meadows.length;
Fresh_Meadows[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Fresh_Meadows[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("St Vincent Catholic Medical Center School Of Nursi",'Fresh_Meadows=' + Fresh_Meadows.length);
tmpLatLng=new GLatLng(40.62168900000000348,-74.0744239999999933);
tmpLen=Staten_Island.length;
Staten_Island[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Staten_Island[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("St Vincent Catholic Medical Center-staten Island",'Staten_Island=' + Staten_Island.length);
tmpLatLng=new GLatLng(40.855634,-73.046496);
tmpLen=Selden.length;
Selden[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Selden[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Suffolk County Community College",'Selden=' + Selden.length);
tmpLatLng=new GLatLng(41.77664699999999697,-74.6659850000000062);
tmpLen=Loch_Sheldrake.length;
Loch_Sheldrake[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Loch_Sheldrake[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Sullivan County Community College",'Loch_Sheldrake=' + Loch_Sheldrake.length);
tmpLatLng=new GLatLng(42.25482900000000086,-77.7905120000000067);
tmpLen=Alfred.length;
Alfred[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Alfred[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Suny College Of Technology At Alfred",'Alfred=' + Alfred.length);
tmpLatLng=new GLatLng(44.60051299999999940,-75.1808769999999952);
tmpLen=Canton.length;
Canton[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Canton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Suny College Of Technology At Canton",'Canton=' + Canton.length);
tmpLatLng=new GLatLng(42.27226999999999890,-74.9220130000000068);
tmpLen=Delhi.length;
Delhi[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Delhi[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Suny College Of Technology At Delhi",'Delhi=' + Delhi.length);
tmpLatLng=new GLatLng(41.07381399999999871,-73.8009950000000003);
tmpLen=Valhalla.length;
Valhalla[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Valhalla[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Suny Westchester Community College",'Valhalla=' + Valhalla.length);
tmpLatLng=new GLatLng(40.73867099999999652,-73.9925479999999993);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Taylor Business Institute",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(40.75069899999999734,-73.9954900000000037);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Technical Career Institutes",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(42.50081000000000131,-76.2983069999999941);
tmpLen=Dryden.length;
Dryden[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Dryden[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Tompkins-cortland Community College",'Dryden=' + Dryden.length);
tmpLatLng=new GLatLng(40.73995500000000191,-74.0027429999999952);
tmpLen=New_York.length;
New_York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Tri-state College Of Acupuncture",'New_York=' + New_York.length);
tmpLatLng=new GLatLng(42.84672199999999975,-78.8119370000000003);
tmpLen=Buffalo.length;
Buffalo[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Buffalo[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Trocaire College",'Buffalo=' + Buffalo.length);
tmpLatLng=new GLatLng(41.85443999999999675,-74.1118199999999944);
tmpLen=Stone_Ridge.length;
Stone_Ridge[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Stone_Ridge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ulster County Community College",'Stone_Ridge=' + Stone_Ridge.length);
tmpLatLng=new GLatLng(43.10166900000000112,-75.2289080000000041);
tmpLen=Utica.length;
Utica[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Utica[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Utica School Of Commerce",'Utica=' + Utica.length);
tmpLatLng=new GLatLng(42.91769599999999940,-78.7947549999999949);
tmpLen=Buffalo.length;
Buffalo[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Buffalo[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Villa Maria College Buffalo",'Buffalo=' + Buffalo.length);
tmpLatLng=new GLatLng(40.75221100000000262,-73.9814590000000009);
tmpLen=New__York.length;
New__York[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New__York[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Wood Tobe-coburn School",'New__York=' + New__York.length);
getPoly("","state","","NY");}
// End addStateMarkers JavaScript Function
//open all when map is defined
function openAll() {
if (map) {
selectChange("all");
} else {
setTimeout("openAll()",200);
}
}
// Takes an array of markers and centers/zooms map based on marker range
function centerByArray(myArray, recenter, newMaxMin){
if (newMaxMin == true)
reMaxMin(myArray);
for (var i = 0; i < myArray.length; i++){
var markLng = myArray[i].point.x;
var markLat = myArray[i].point.y;
if (markLat > maxLat) maxLat = markLat;
if (markLng > maxLng) maxLng = markLng;
if (markLat < minLat) minLat = markLat;
if (markLng < minLng) minLng = markLng;
}
if (recenter)
reCenterMap();
}
// Reinit max/mins
function reMaxMin(myArray){
maxLng = myArray[0].point.x;
maxLat = myArray[0].point.y;
minLng = myArray[0].point.x;
minLat = myArray[0].point.y;
}
// Recenter map based on global max/mins
function reCenterMap(){
//alert('#' + minLat + '#' + minLng + '#' + maxLat + '#' + maxLng);
var bounds = new GLatLngBounds();
bounds.extend(new GLatLng(minLat, minLng));
bounds.extend(new GLatLng(maxLat, maxLng));
var center_lat = (bounds.getNorthEast().lat() + bounds.getSouthWest().lat()) / 2.0;
var center_lng = (bounds.getNorthEast().lng() + bounds.getSouthWest().lng()) / 2.0;
var center = new GLatLng(center_lat, center_lng);
var zoom = map.getBoundsZoomLevel(bounds);
map.setCenter(center,zoom);
//map.setCenter(center,10);
/*
var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 );
var delta = new GSize(maxLng - minLng, maxLat - minLat);
var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize);
if (minZoom < 4) minZoom = 4; // Lowest possible zoom is 4
map.centerAndZoom(center, minZoom);
*/
}
// Fires when drop down list of schools changes
function selectChange(selection) {
if (selection.options) {
var _openNewWindow=true;
var myVal = selection.options[selection.selectedIndex].value;
} else {
var _openNewWindow=false;
var myVal=selection;
}
map.closeInfoWindow();
// Add entire array based on variable type
if (myVal.indexOf('all') != -1 && myVal != 'all'){
var temp = myVal.split('=');
var showArray = temp[1];
// If Array is > X amount of markers, then open in a new page
if (eval(showArray).length > 20)
// New window depends on whether or not we're on the search page
if (location.href.indexOf('schools-by-distance') == -1)
window.open(location.href + '/map/all');
else
window.open('/search////all');
map.removeOverlays(Albany);
map.removeOverlays(Alfred);
map.removeOverlays(Amityville);
map.removeOverlays(Auburn);
map.removeOverlays(Batavia);
map.removeOverlays(Bayside);
map.removeOverlays(Bethpage);
map.removeOverlays(Binghamton);
map.removeOverlays(Bronx);
map.removeOverlays(Brooklyn);
map.removeOverlays(Buffalo);
map.removeOverlays(Canandaigua);
map.removeOverlays(Canton);
map.removeOverlays(Commack);
map.removeOverlays(Corning);
map.removeOverlays(Delhi);
map.removeOverlays(Dryden);
map.removeOverlays(Elmira);
map.removeOverlays(Forest_Hills);
map.removeOverlays(Fresh_Meadows);
map.removeOverlays(Garden_City);
map.removeOverlays(Getzville);
map.removeOverlays(Herkimer);
map.removeOverlays(Hudson);
map.removeOverlays(Jackson_Heights);
map.removeOverlays(Jamestown);
map.removeOverlays(Johnstown);
map.removeOverlays(Latham);
map.removeOverlays(Loch_Sheldrake);
map.removeOverlays(Long_Island_City);
map.removeOverlays(Melville);
map.removeOverlays(Middletown);
map.removeOverlays(Morrisville);
map.removeOverlays(Mount_Vernon);
map.removeOverlays(New_York);
map.removeOverlays(New__York);
map.removeOverlays(Old_Forge);
map.removeOverlays(Olean);
map.removeOverlays(Orchard_Park);
map.removeOverlays(Plattsburgh);
map.removeOverlays(Poughkeepsie);
map.removeOverlays(Queensbury);
map.removeOverlays(Rochester);
map.removeOverlays(Sanborn);
map.removeOverlays(Saranac_Lake);
map.removeOverlays(Schenectady);
map.removeOverlays(Selden);
map.removeOverlays(Staten_Island);
map.removeOverlays(Stone_Ridge);
map.removeOverlays(Suffern);
map.removeOverlays(Syosset);
map.removeOverlays(Syracuse);
map.removeOverlays(Troy);
map.removeOverlays(Utica);
map.removeOverlays(Valhalla);
map.removeOverlays(Watertown);
map.removeOverlays(White_Plains);
map.removeOverlays(Yonkers);
map.addOverlays(eval(showArray));
centerByArray(eval(showArray), true, true); // Center and zoom on set of markers
}
// Add individual markers
if (myVal.indexOf('all') == -1 && myVal != 'all' && myVal.length) {
var temp = myVal.split('=');
var myArray = temp[0];
var myIndex = parseInt(temp[1]) - 1;
document.getElementById('map').width = "750";
map.removeOverlay(eval(myArray)[myIndex]);
map.addOverlay(eval(myArray)[myIndex]);
GEvent.trigger(eval(myArray)[myIndex],'click');
}
// Show all markers
if (myVal == 'all') {
cntMarker = 0;
reMaxMin(Queensbury);map.removeOverlays(Albany);
map.removeOverlays(Alfred);
map.removeOverlays(Amityville);
map.removeOverlays(Auburn);
map.removeOverlays(Batavia);
map.removeOverlays(Bayside);
map.removeOverlays(Bethpage);
map.removeOverlays(Binghamton);
map.removeOverlays(Bronx);
map.removeOverlays(Brooklyn);
map.removeOverlays(Buffalo);
map.removeOverlays(Canandaigua);
map.removeOverlays(Canton);
map.removeOverlays(Commack);
map.removeOverlays(Corning);
map.removeOverlays(Delhi);
map.removeOverlays(Dryden);
map.removeOverlays(Elmira);
map.removeOverlays(Forest_Hills);
map.removeOverlays(Fresh_Meadows);
map.removeOverlays(Garden_City);
map.removeOverlays(Getzville);
map.removeOverlays(Herkimer);
map.removeOverlays(Hudson);
map.removeOverlays(Jackson_Heights);
map.removeOverlays(Jamestown);
map.removeOverlays(Johnstown);
map.removeOverlays(Latham);
map.removeOverlays(Loch_Sheldrake);
map.removeOverlays(Long_Island_City);
map.removeOverlays(Melville);
map.removeOverlays(Middletown);
map.removeOverlays(Morrisville);
map.removeOverlays(Mount_Vernon);
map.removeOverlays(New_York);
map.removeOverlays(New__York);
map.removeOverlays(Old_Forge);
map.removeOverlays(Olean);
map.removeOverlays(Orchard_Park);
map.removeOverlays(Plattsburgh);
map.removeOverlays(Poughkeepsie);
map.removeOverlays(Queensbury);
map.removeOverlays(Rochester);
map.removeOverlays(Sanborn);
map.removeOverlays(Saranac_Lake);
map.removeOverlays(Schenectady);
map.removeOverlays(Selden);
map.removeOverlays(Staten_Island);
map.removeOverlays(Stone_Ridge);
map.removeOverlays(Suffern);
map.removeOverlays(Syosset);
map.removeOverlays(Syracuse);
map.removeOverlays(Troy);
map.removeOverlays(Utica);
map.removeOverlays(Valhalla);
map.removeOverlays(Watertown);
map.removeOverlays(White_Plains);
map.removeOverlays(Yonkers);
map.addOverlays(Albany);
centerByArray(Albany, false, false);
cntMarker += Albany.length;
map.addOverlays(Alfred);
centerByArray(Alfred, false, false);
cntMarker += Alfred.length;
map.addOverlays(Amityville);
centerByArray(Amityville, false, false);
cntMarker += Amityville.length;
map.addOverlays(Auburn);
centerByArray(Auburn, false, false);
cntMarker += Auburn.length;
map.addOverlays(Batavia);
centerByArray(Batavia, false, false);
cntMarker += Batavia.length;
map.addOverlays(Bayside);
centerByArray(Bayside, false, false);
cntMarker += Bayside.length;
map.addOverlays(Bethpage);
centerByArray(Bethpage, false, false);
cntMarker += Bethpage.length;
map.addOverlays(Binghamton);
centerByArray(Binghamton, false, false);
cntMarker += Binghamton.length;
map.addOverlays(Bronx);
centerByArray(Bronx, false, false);
cntMarker += Bronx.length;
map.addOverlays(Brooklyn);
centerByArray(Brooklyn, false, false);
cntMarker += Brooklyn.length;
map.addOverlays(Buffalo);
centerByArray(Buffalo, false, false);
cntMarker += Buffalo.length;
map.addOverlays(Canandaigua);
centerByArray(Canandaigua, false, false);
cntMarker += Canandaigua.length;
map.addOverlays(Canton);
centerByArray(Canton, false, false);
cntMarker += Canton.length;
map.addOverlays(Commack);
centerByArray(Commack, false, false);
cntMarker += Commack.length;
map.addOverlays(Corning);
centerByArray(Corning, false, false);
cntMarker += Corning.length;
map.addOverlays(Delhi);
centerByArray(Delhi, false, false);
cntMarker += Delhi.length;
map.addOverlays(Dryden);
centerByArray(Dryden, false, false);
cntMarker += Dryden.length;
map.addOverlays(Elmira);
centerByArray(Elmira, false, false);
cntMarker += Elmira.length;
map.addOverlays(Forest_Hills);
centerByArray(Forest_Hills, false, false);
cntMarker += Forest_Hills.length;
map.addOverlays(Fresh_Meadows);
centerByArray(Fresh_Meadows, false, false);
cntMarker += Fresh_Meadows.length;
map.addOverlays(Garden_City);
centerByArray(Garden_City, false, false);
cntMarker += Garden_City.length;
map.addOverlays(Getzville);
centerByArray(Getzville, false, false);
cntMarker += Getzville.length;
map.addOverlays(Herkimer);
centerByArray(Herkimer, false, false);
cntMarker += Herkimer.length;
map.addOverlays(Hudson);
centerByArray(Hudson, false, false);
cntMarker += Hudson.length;
map.addOverlays(Jackson_Heights);
centerByArray(Jackson_Heights, false, false);
cntMarker += Jackson_Heights.length;
map.addOverlays(Jamestown);
centerByArray(Jamestown, false, false);
cntMarker += Jamestown.length;
map.addOverlays(Johnstown);
centerByArray(Johnstown, false, false);
cntMarker += Johnstown.length;
map.addOverlays(Latham);
centerByArray(Latham, false, false);
cntMarker += Latham.length;
map.addOverlays(Loch_Sheldrake);
centerByArray(Loch_Sheldrake, false, false);
cntMarker += Loch_Sheldrake.length;
map.addOverlays(Long_Island_City);
centerByArray(Long_Island_City, false, false);
cntMarker += Long_Island_City.length;
map.addOverlays(Melville);
centerByArray(Melville, false, false);
cntMarker += Melville.length;
map.addOverlays(Middletown);
centerByArray(Middletown, false, false);
cntMarker += Middletown.length;
map.addOverlays(Morrisville);
centerByArray(Morrisville, false, false);
cntMarker += Morrisville.length;
map.addOverlays(Mount_Vernon);
centerByArray(Mount_Vernon, false, false);
cntMarker += Mount_Vernon.length;
map.addOverlays(New_York);
centerByArray(New_York, false, false);
cntMarker += New_York.length;
map.addOverlays(New__York);
centerByArray(New__York, false, false);
cntMarker += New__York.length;
map.addOverlays(Old_Forge);
centerByArray(Old_Forge, false, false);
cntMarker += Old_Forge.length;
map.addOverlays(Olean);
centerByArray(Olean, false, false);
cntMarker += Olean.length;
map.addOverlays(Orchard_Park);
centerByArray(Orchard_Park, false, false);
cntMarker += Orchard_Park.length;
map.addOverlays(Plattsburgh);
centerByArray(Plattsburgh, false, false);
cntMarker += Plattsburgh.length;
map.addOverlays(Poughkeepsie);
centerByArray(Poughkeepsie, false, false);
cntMarker += Poughkeepsie.length;
map.addOverlays(Queensbury);
centerByArray(Queensbury, false, false);
cntMarker += Queensbury.length;
map.addOverlays(Rochester);
centerByArray(Rochester, false, false);
cntMarker += Rochester.length;
map.addOverlays(Sanborn);
centerByArray(Sanborn, false, false);
cntMarker += Sanborn.length;
map.addOverlays(Saranac_Lake);
centerByArray(Saranac_Lake, false, false);
cntMarker += Saranac_Lake.length;
map.addOverlays(Schenectady);
centerByArray(Schenectady, false, false);
cntMarker += Schenectady.length;
map.addOverlays(Selden);
centerByArray(Selden, false, false);
cntMarker += Selden.length;
map.addOverlays(Staten_Island);
centerByArray(Staten_Island, false, false);
cntMarker += Staten_Island.length;
map.addOverlays(Stone_Ridge);
centerByArray(Stone_Ridge, false, false);
cntMarker += Stone_Ridge.length;
map.addOverlays(Suffern);
centerByArray(Suffern, false, false);
cntMarker += Suffern.length;
map.addOverlays(Syosset);
centerByArray(Syosset, false, false);
cntMarker += Syosset.length;
map.addOverlays(Syracuse);
centerByArray(Syracuse, false, false);
cntMarker += Syracuse.length;
map.addOverlays(Troy);
centerByArray(Troy, false, false);
cntMarker += Troy.length;
map.addOverlays(Utica);
centerByArray(Utica, false, false);
cntMarker += Utica.length;
map.addOverlays(Valhalla);
centerByArray(Valhalla, false, false);
cntMarker += Valhalla.length;
map.addOverlays(Watertown);
centerByArray(Watertown, false, false);
cntMarker += Watertown.length;
map.addOverlays(White_Plains);
centerByArray(White_Plains, false, false);
cntMarker += White_Plains.length;
map.addOverlays(Yonkers);
centerByArray(Yonkers, false, false);
cntMarker += Yonkers.length;
reCenterMap();
//if (cntMarker > 20)
// New window depends on whether or not we're on the search page
if (location.href.indexOf('schools-by-distance') == -1)
window.open(location.href + '/map/all');
else
window.open('/search////all');
}
}
function createMarker(point, label, icon){
var marker = new GMarker(point, icon);
var html = label;
GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); });
return marker;
}