function addMarkers(){ mySelect = document.getElementById('selection'); Albany = [];Yonkers = [];New_York = [];Brooklyn = [];New_Lebanon = [];Cortland_Manor = [];Katonah = [];Bronx = [];Saint_James = [];Amenia = [];Dobbs_Ferry = [];Pawling = [];Old_Westbury = [];Flushing = [];Bedford = [];Buffalo = [];Auburn = [];Bay_Shore = [];Yorktown_Heights = [];Tuxedo_Park = [];Jamaica = [];Saratoga_Springs = [];mySelect.options[mySelect.options.length] = new Option("Albany schools",'all=Albany'); mySelect.options[mySelect.options.length] = new Option("Amenia schools",'all=Amenia'); mySelect.options[mySelect.options.length] = new Option("Auburn schools",'all=Auburn'); mySelect.options[mySelect.options.length] = new Option("Bay Shore schools",'all=Bay_Shore'); mySelect.options[mySelect.options.length] = new Option("Bedford schools",'all=Bedford'); 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("Cortland Manor schools",'all=Cortland_Manor'); mySelect.options[mySelect.options.length] = new Option("Dobbs Ferry schools",'all=Dobbs_Ferry'); mySelect.options[mySelect.options.length] = new Option("Flushing schools",'all=Flushing'); mySelect.options[mySelect.options.length] = new Option("Jamaica schools",'all=Jamaica'); mySelect.options[mySelect.options.length] = new Option("Katonah schools",'all=Katonah'); mySelect.options[mySelect.options.length] = new Option("New Lebanon schools",'all=New_Lebanon'); mySelect.options[mySelect.options.length] = new Option("New York schools",'all=New_York'); mySelect.options[mySelect.options.length] = new Option("Old Westbury schools",'all=Old_Westbury'); mySelect.options[mySelect.options.length] = new Option("Pawling schools",'all=Pawling'); mySelect.options[mySelect.options.length] = new Option("Saint James schools",'all=Saint_James'); mySelect.options[mySelect.options.length] = new Option("Saratoga Springs schools",'all=Saratoga_Springs'); mySelect.options[mySelect.options.length] = new Option("Tuxedo Park schools",'all=Tuxedo_Park'); mySelect.options[mySelect.options.length] = new Option("Yonkers schools",'all=Yonkers'); mySelect.options[mySelect.options.length] = new Option("Yorktown Heights schools",'all=Yorktown_Heights'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Albany[Albany.length] = createMarker(new GPoint(-73.78537200,42.64695300),"
Albany Academy For Girls
140 Academy Road
Albany, NY 12208
All-girls school, PK-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Albany Academy For Girls",'Albany=' + Albany.length); Yonkers[Yonkers.length] = createMarker(new GPoint(-73.90538500,40.91656200),"
Carol And Frank Biondi Educati
463 Hawthorne Ave
Yonkers, NY 10705
Co-ed school, 1-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Carol And Frank Biondi Educati",'Yonkers=' + Yonkers.length); New_York[New_York.length] = createMarker(new GPoint(-73.93812300,40.80787500),"
The Children's Storefront
70 East 129 Street
New York, NY 10035
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Children's Storefront",'New_York=' + New_York.length); New_York[New_York.length] = createMarker(new GPoint(-73.95785600,40.78476200),"
Convent Of The Sacred Heart
1 East 91st Street
New York, NY 10128
All-girls school, PK-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Convent Of The Sacred Heart",'New_York=' + New_York.length); Brooklyn[Brooklyn.length] = createMarker(new GPoint(-73.94172900,40.67243000),"
The Cush Campus Schools
221 Kingston Avenue
Brooklyn, NY 11213
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Cush Campus Schools",'Brooklyn=' + Brooklyn.length); New_Lebanon[New_Lebanon.length] = createMarker(new GPoint(-73.38085000,42.45281300),"
Darrow School
110 Darrow Rd
New Lebanon, NY 12125
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Darrow School",'New_Lebanon=' + New_Lebanon.length); New_York[New_York.length] = createMarker(new GPoint(-73.96797400,40.78742000),"
The Dwight School
291 Central Park West
New York, NY 10024
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Dwight School",'New_York=' + New_York.length); Cortland_Manor[Cortland_Manor.length] = createMarker(new GPoint(-73.90619200,41.31157100),"
The Flying Goose
100 Oregon Road
Cortland Manor, NY 10567
Co-ed school, PK-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Flying Goose",'Cortland_Manor=' + Cortland_Manor.length); New_York[New_York.length] = createMarker(new GPoint(-73.97791200,40.76478800),"
The Geneva School Of Manhattan
123 West 57th Street
New York, NY 10019
Co-ed school, NS-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Geneva School Of Manhattan",'New_York=' + New_York.length); Katonah[Katonah.length] = createMarker(new GPoint(-73.66663600,41.25489700),"
The Harvey School
260 Jay Street
Katonah, NY 10536
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Harvey School",'Katonah=' + Katonah.length); Bronx[Bronx.length] = createMarker(new GPoint(-73.90014200,40.89241600),"
Horace Mann Lower Division
4440 Tibbett Ave
Bronx, NY 10471
Co-ed school, KG-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Horace Mann Lower Division",'Bronx=' + Bronx.length); Saint_James[Saint_James.length] = createMarker(new GPoint(-73.19116000,40.91002300),"
The Knox School
Long Beach Road
Saint James, NY 11780
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Knox School",'Saint_James=' + Saint_James.length); Amenia[Amenia.length] = createMarker(new GPoint(-73.54606200,41.86614200),"
The Maplebrook School
5142 Route 22
Amenia, NY 12501
Co-ed school, NS-NS
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Maplebrook School",'Amenia=' + Amenia.length); Dobbs_Ferry[Dobbs_Ferry.length] = createMarker(new GPoint(-73.87160900,41.01269400),"
The Masters School
49 Clinton Avenue
Dobbs Ferry, NY 10522
Co-ed school, 5-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Masters School",'Dobbs_Ferry=' + Dobbs_Ferry.length); Pawling[Pawling.length] = createMarker(new GPoint(-73.59753300,41.56035600),"
Mizzentop Day School
64 East Main St
Pawling, NY 12564
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mizzentop Day School",'Pawling=' + Pawling.length); Old_Westbury[Old_Westbury.length] = createMarker(new GPoint(-73.60207000,40.76672900),"
Old Westbury Hebrew Cong N School
21 Old Westbury Rd
Old Westbury, NY 11568
Co-ed school, PK-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Old Westbury Hebrew Cong N School",'Old_Westbury=' + Old_Westbury.length); Bronx[Bronx.length] = createMarker(new GPoint(-73.89145000,40.86633600),"
Our Lady Of Refuge School
2708 Briggs Avenue
Bronx, NY 10458
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Our Lady Of Refuge School",'Bronx=' + Bronx.length); Brooklyn[Brooklyn.length] = createMarker(new GPoint(-73.99234900,40.69259000),"
Packer Collegiate Institute
170 Joralemon Street
Brooklyn, NY 11201
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Packer Collegiate Institute",'Brooklyn=' + Brooklyn.length); New_York[New_York.length] = createMarker(new GPoint(-73.96324100,40.77663200),"
The Philosophy Day School
12 East 79th Street
New York, NY 10075
Co-ed school, PK-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Philosophy Day School",'New_York=' + New_York.length); Flushing[Flushing.length] = createMarker(new GPoint(-73.82530000,40.72900000),"
Rainbow Montessori Internation
150-30 Union Turnpike, Flushing
Flushing, NY 11367
Co-ed school, PK-1
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rainbow Montessori Internation",'Flushing=' + Flushing.length); Bedford[Bedford.length] = createMarker(new GPoint(-73.63698100,41.19037200),"
Rippowam Cisqua School
439 Cantitoe St Po Box 488
Bedford, NY 10506
Co-ed school, PK-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rippowam Cisqua School",'Bedford=' + Bedford.length); Bronx[Bronx.length] = createMarker(new GPoint(-73.90111300,40.89981100),"
Riverdale Country School
5250 Fieldston Road
Bronx, NY 10471
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Riverdale Country School",'Bronx=' + Bronx.length); New_York[New_York.length] = createMarker(new GPoint(-73.96292300,40.77682000),"
Rudolf Steiner School
15 East 79th Street
New York, NY 10021
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rudolf Steiner School",'New_York=' + New_York.length); Buffalo[Buffalo.length] = createMarker(new GPoint(-78.78822900,42.89534900),"
St. Andrew School
111 Crocker Avenue
Buffalo, NY 14212
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew School",'Buffalo=' + Buffalo.length); New_York[New_York.length] = createMarker(new GPoint(-73.96539600,40.80711800),"
St. Hilda's & St. Hugh's
619 West 114th Street
New York, NY 10025
Co-ed school, NS-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Hilda's & St. Hugh's",'New_York=' + New_York.length); Auburn[Auburn.length] = createMarker(new GPoint(-76.55560100,42.93353700),"
St. Joseph School
89 E Genesee St
Auburn, NY 13021
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Joseph School",'Auburn=' + Auburn.length); Bay_Shore[Bay_Shore.length] = createMarker(new GPoint(-73.26249300,40.70839900),"
St. Peters by-the-Sea Day School
500 South Country Road
Bay Shore, NY 11706
Co-ed school, NS-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Peters by-the-Sea Day School",'Bay_Shore=' + Bay_Shore.length); Yorktown_Heights[Yorktown_Heights.length] = createMarker(new GPoint(-73.78321900,41.26853200),"
Soundview Preparatory School
370 Underhill Avenue
Yorktown Heights, NY 10598
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Soundview Preparatory School",'Yorktown_Heights=' + Yorktown_Heights.length); Tuxedo_Park[Tuxedo_Park.length] = createMarker(new GPoint(-74.21250900,41.21346200),"
Tuxedo Park School
Mountain Farm Rd
Tuxedo Park, NY 10987
Co-ed school, PK-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tuxedo Park School",'Tuxedo_Park=' + Tuxedo_Park.length); Jamaica[Jamaica.length] = createMarker(new GPoint(-73.79350000,40.71520000),"
Ucp-queens County
82 25 164th Street
Jamaica, NY 11432
Co-ed school, UG-PK
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ucp-queens County",'Jamaica=' + Jamaica.length); Saratoga_Springs[Saratoga_Springs.length] = createMarker(new GPoint(-73.78194800,43.07661900),"
Waldorf School of Saratoga Springs
122 Regent Street
Saratoga Springs, NY 12866
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Waldorf School of Saratoga Springs",'Saratoga_Springs=' + Saratoga_Springs.length); New_York[New_York.length] = createMarker(new GPoint(-73.97528100,40.79293000),"
West Side Montessori School
309 W 92nd St
New York, NY 10025
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("West Side Montessori School",'New_York=' + New_York.length); New_York[New_York.length] = createMarker(new GPoint(-73.99642600,40.73953200),"
Winston Preparatory School
126 West 17 Street
New York, NY 10011
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Winston Preparatory School",'New_York=' + New_York.length); map.removeOverlays(Albany); map.removeOverlays(Amenia); map.removeOverlays(Auburn); map.removeOverlays(Bay_Shore); map.removeOverlays(Bedford); map.removeOverlays(Bronx); map.removeOverlays(Brooklyn); map.removeOverlays(Buffalo); map.removeOverlays(Cortland_Manor); map.removeOverlays(Dobbs_Ferry); map.removeOverlays(Flushing); map.removeOverlays(Jamaica); map.removeOverlays(Katonah); map.removeOverlays(New_Lebanon); map.removeOverlays(New_York); map.removeOverlays(Old_Westbury); map.removeOverlays(Pawling); map.removeOverlays(Saint_James); map.removeOverlays(Saratoga_Springs); map.removeOverlays(Tuxedo_Park); map.removeOverlays(Yonkers); map.removeOverlays(Yorktown_Heights); setTimeout(function(){map.addOverlays(Albany)},1000); setTimeout(function(){map.addOverlays(Amenia)},1000); setTimeout(function(){map.addOverlays(Auburn)},1000); setTimeout(function(){map.addOverlays(Bay_Shore)},1000); setTimeout(function(){map.addOverlays(Bedford)},1000); setTimeout(function(){map.addOverlays(Bronx)},1000); setTimeout(function(){map.addOverlays(Brooklyn)},1000); setTimeout(function(){map.addOverlays(Buffalo)},1000); setTimeout(function(){map.addOverlays(Cortland_Manor)},1000); setTimeout(function(){map.addOverlays(Dobbs_Ferry)},1000); setTimeout(function(){map.addOverlays(Flushing)},1000); setTimeout(function(){map.addOverlays(Jamaica)},1000); setTimeout(function(){map.addOverlays(Katonah)},1000); setTimeout(function(){map.addOverlays(New_Lebanon)},1000); setTimeout(function(){map.addOverlays(New_York)},1000); setTimeout(function(){map.addOverlays(Old_Westbury)},1000); setTimeout(function(){map.addOverlays(Pawling)},1000); setTimeout(function(){map.addOverlays(Saint_James)},1000); setTimeout(function(){map.addOverlays(Saratoga_Springs)},1000); setTimeout(function(){map.addOverlays(Tuxedo_Park)},1000); setTimeout(function(){map.addOverlays(Yonkers)},1000); setTimeout(function(){map.addOverlays(Yorktown_Heights)},1000); maxLng = -73.19116000; maxLat = 43.07661900; minLng = -78.78822900; minLat = 40.67243000; reCenterMap(); } // End addStateMarkers JavaScript Function // 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].getPoint().x; var markLat = myArray[i].getPoint().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].getPoint().x; maxLat = myArray[0].getPoint().y; minLng = myArray[0].getPoint().x; minLat = myArray[0].getPoint().y; } // Recenter map based on global max/mins function reCenterMap() { 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,11); /* 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) { var myVal = selection.options[selection.selectedIndex].value; 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('nearby_schools.php') == -1) window.open(location.href + '/map/' + showArray); else window.open('/search//////' + showArray); map.removeOverlays(Albany); map.removeOverlays(Amenia); map.removeOverlays(Auburn); map.removeOverlays(Bay_Shore); map.removeOverlays(Bedford); map.removeOverlays(Bronx); map.removeOverlays(Brooklyn); map.removeOverlays(Buffalo); map.removeOverlays(Cortland_Manor); map.removeOverlays(Dobbs_Ferry); map.removeOverlays(Flushing); map.removeOverlays(Jamaica); map.removeOverlays(Katonah); map.removeOverlays(New_Lebanon); map.removeOverlays(New_York); map.removeOverlays(Old_Westbury); map.removeOverlays(Pawling); map.removeOverlays(Saint_James); map.removeOverlays(Saratoga_Springs); map.removeOverlays(Tuxedo_Park); map.removeOverlays(Yonkers); map.removeOverlays(Yorktown_Heights); 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(Albany);map.removeOverlays(Albany); map.removeOverlays(Amenia); map.removeOverlays(Auburn); map.removeOverlays(Bay_Shore); map.removeOverlays(Bedford); map.removeOverlays(Bronx); map.removeOverlays(Brooklyn); map.removeOverlays(Buffalo); map.removeOverlays(Cortland_Manor); map.removeOverlays(Dobbs_Ferry); map.removeOverlays(Flushing); map.removeOverlays(Jamaica); map.removeOverlays(Katonah); map.removeOverlays(New_Lebanon); map.removeOverlays(New_York); map.removeOverlays(Old_Westbury); map.removeOverlays(Pawling); map.removeOverlays(Saint_James); map.removeOverlays(Saratoga_Springs); map.removeOverlays(Tuxedo_Park); map.removeOverlays(Yonkers); map.removeOverlays(Yorktown_Heights); map.addOverlays(Albany); centerByArray(Albany, false, false); cntMarker += Albany.length; map.addOverlays(Amenia); centerByArray(Amenia, false, false); cntMarker += Amenia.length; map.addOverlays(Auburn); centerByArray(Auburn, false, false); cntMarker += Auburn.length; map.addOverlays(Bay_Shore); centerByArray(Bay_Shore, false, false); cntMarker += Bay_Shore.length; map.addOverlays(Bedford); centerByArray(Bedford, false, false); cntMarker += Bedford.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(Cortland_Manor); centerByArray(Cortland_Manor, false, false); cntMarker += Cortland_Manor.length; map.addOverlays(Dobbs_Ferry); centerByArray(Dobbs_Ferry, false, false); cntMarker += Dobbs_Ferry.length; map.addOverlays(Flushing); centerByArray(Flushing, false, false); cntMarker += Flushing.length; map.addOverlays(Jamaica); centerByArray(Jamaica, false, false); cntMarker += Jamaica.length; map.addOverlays(Katonah); centerByArray(Katonah, false, false); cntMarker += Katonah.length; map.addOverlays(New_Lebanon); centerByArray(New_Lebanon, false, false); cntMarker += New_Lebanon.length; map.addOverlays(New_York); centerByArray(New_York, false, false); cntMarker += New_York.length; map.addOverlays(Old_Westbury); centerByArray(Old_Westbury, false, false); cntMarker += Old_Westbury.length; map.addOverlays(Pawling); centerByArray(Pawling, false, false); cntMarker += Pawling.length; map.addOverlays(Saint_James); centerByArray(Saint_James, false, false); cntMarker += Saint_James.length; map.addOverlays(Saratoga_Springs); centerByArray(Saratoga_Springs, false, false); cntMarker += Saratoga_Springs.length; map.addOverlays(Tuxedo_Park); centerByArray(Tuxedo_Park, false, false); cntMarker += Tuxedo_Park.length; map.addOverlays(Yonkers); centerByArray(Yonkers, false, false); cntMarker += Yonkers.length; map.addOverlays(Yorktown_Heights); centerByArray(Yorktown_Heights, false, false); cntMarker += Yorktown_Heights.length; centerByArray(Albany,true, false); 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///18637,20429,20259,19776,19779,19689,20431,20417,20409,18931,20410,19072,19800,20553,20425,19903,20490,18835,19894,18637,20429,20134,20259,19776,19229,19651,19779,35541,19689,19936,20708,20431,19748,20497,20417,20407,18931,20410,19072,20393,19800,20055,20537,20553,20695,19463,20425,19903,20490,18835,19894,/all'); //window.open('/map.php?type=2&schools=18637,20429,20259,19776,19779,19689,20431,20417,20409,18931,20410,19072,19800,20553,20425,19903,20490,18835,19894,18637,20429,20134,20259,19776,19229,19651,19779,35541,19689,19936,20708,20431,19748,20497,20417,20407,18931,20410,19072,20393,19800,20055,20537,20553,20695,19463,20425,19903,20490,18835,19894,&school_level=&radius=&zipcode=&school_type_search=&school_type_code='); } } function createMarker(point, label, icon) { var marker = new GMarker(point, icon); var html = label; GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; }