function addStateMarkers() { mySelect = document.getElementById('selection'); coEd[coEd.length] = createMarker(new GPoint(-71.271775,42.38644),"
The Cambridge School of Weston
Georgian Road
Weston, MA 02493
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Cambridge School of Weston",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-76.546749,37.609504),"
Christchurch School
49 Seahorse Lane
Christchurch, VA 23031
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Christchurch School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-83.245219,42.58384),"
Cranbrook Schools
PO Box 801 39221 Woodward Ave.
Bloomfield Hills, MI 48303
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cranbrook Schools",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.601999,42.54247),"
Deerfield Academy
Office of Admission
Deerfield, MA 01342
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Deerfield Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.895923,40.26181),"
George School
Box 4460
Newtown, PA 18940
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("George School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-68.589532,44.413244),"
George Stevens Academy
23 Union Street
Blue Hill, ME 04614
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("George Stevens Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-75.636972,40.244114),"
Hill School
717 East High Street
Pottstown, PA 19464
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hill School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-80.694328,40.075265),"
The Linsly School
60 Knox Lane
Wheeling, WV 26003
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Linsly School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.57628,42.098013),"
The MacDuffie School
One Ames Hill Drive
Springfield, MA 01105
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The MacDuffie School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.871609,41.012694),"
The Masters School
49 Clinton Avenue
Dobbs Ferry, NY 10522
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Masters School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-77.899955,39.828176),"
Mercersburg Academy
300 East Seminary Street
Mercersburg, PA 17236
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mercersburg Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.371622,42.493361),"
Middlesex School
1400 Lowell Road
Concord, MA 01742
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Middlesex School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-81.674845,28.596677),"
Montverde Academy
17235 Seventh St.
Montverde, FL 34756
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Montverde Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.925175,41.658549),"
Oakwood Friends School
22 Spackenkill Road
Poughkeepsie, NY 12603
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oakwood Friends School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.793636,40.327694),"
The Pennington School
112 W. Delaware Avenue
Pennington, NJ 08534
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Pennington School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.253192,41.588797),"
Portsmouth Abbey School
285 Cory's Lane
Portsmouth, RI 02871
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Portsmouth Abbey School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-80.147156,26.385019),"
Saint Andrew's School
3900 Jog Road
Boca Raton, FL 33434
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Saint Andrew's School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-78.65225,35.781285),"
Saint Mary's School
900 Hillsborough St.
Raleigh, NC 27603
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Saint Mary's School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-70.761159,41.697687),"
Tabor Academy
66 Front Street
Marion, MA 02738
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tabor Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-111.799059,34.805434),"
Verde Valley School
3511 Verde Valley School Road
Sedona, AZ 86351
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Verde Valley School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-73.123138,41.527244),"
Westover School
1237 Whittemore Rd., P.O. Box 847
Middlebury, CT 06762
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Westover School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-72.672417,42.266543),"
The Williston Northampton School
19 Payson Avenue
Easthampton, MA 01027
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Williston Northampton School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-122.215246,37.37478),"
Woodside Priory School (The Priory)
302 Portola Road
Portola Valley, CA 94028
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Woodside Priory School (The Priory)",'coEd=' + coEd.length); var markers = coEd.concat(boys); markers = girls.concat(markers); var bounds = arrayBounds(markers); 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 = myMap.getBoundsZoomLevel(bounds); if(zoom==17) zoom=4; myMap.setCenter(center,zoom); myMap.addOverlays(coEd); myMap.addOverlays(boys); myMap.addOverlays(girls); } // End addStateMarkers JavaScript Function function createMarker(point, label, icon) { var marker = new GMarker(point, icon); var html = label; GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } function selectChange(selection) { var myVal = selection.options[selection.selectedIndex].value; if (myVal.indexOf('boys') != -1 && myVal.indexOf('all') == -1) { var temp = myVal.split('='); var myIndex = parseInt(temp[1]) - 1; myMap.removeOverlay(boys[myIndex]); myMap.addOverlay(boys[myIndex]); GEvent.trigger(boys[myIndex],'click'); } if (myVal.indexOf('coEd') != -1 && myVal.indexOf('all') == -1) { var temp = myVal.split('='); var myIndex = parseInt(temp[1]) - 1; myMap.removeOverlay(coEd[myIndex]); myMap.addOverlay(coEd[myIndex]); GEvent.trigger(coEd[myIndex],'click'); } if (myVal.indexOf('girls') != -1 && myVal.indexOf('all') == -1) { var temp = myVal.split('='); var myIndex = parseInt(temp[1]) - 1; myMap.removeOverlay(girls[myIndex]); myMap.addOverlay(girls[myIndex]); GEvent.trigger(girls[myIndex],'click'); } if (myVal.indexOf('all') != -1 && myVal != 'all') { var temp = myVal.split('='); var showArray = temp[1]; myMap.clearOverlays() myMap.addOverlays(eval(showArray)); } if (myVal == 'all') { myMap.clearOverlays() myMap.addOverlays(coEd); myMap.addOverlays(boys); myMap.addOverlays(girls); } }