function addStateMarkers() { mySelect = document.getElementById('selection'); boys[boys.length] = createMarker(new GPoint(-95.198571,42.639483),"
Academy of St. Xavier
300 Cayuga Street
Storm Lake, IA 50588
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Academy of St. Xavier",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-82.745501,27.777543),"
Admiral Farragut Academy
501 Park Street North
St. Petersburg, FL 33710
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Admiral Farragut Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-85.332423,35.085592),"
Baylor School
171 Baylor School Road
Chattanooga, TN 37405
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Baylor School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-81.627032,30.243634),"
The Bolles School
7400 San Jose Blvd.
Jacksonville, FL 32217
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Bolles School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.412634,41.585649),"
Canterbury School
101 Aspetuck Avenue
New Milford, CT 06776
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Canterbury School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.807511,41.45667),"
Choate Rosemary Hall
333 Christian Street
Wallingford, CT 06492
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choate Rosemary Hall",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-85.955658,10.40543),"
Country Day School, Costa Rica
400 mts Sur del Hotel Melia Conchal
<br>Brasilito de Santa Cruz, Guanacaste, -- 1000
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Country Day School, Costa Rica",'coEd=' + coEd.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(-85.18276,34.224318),"
Darlington School
1014 Cave Spring Road
Rome, GA 30161
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Darlington School",'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); girls[girls.length] = createMarker(new GPoint(-118.183414,34.180484),"
Flintridge Sacred Heart Academy
440 St. Katherine Dr.
La Canada-Flintridge, CA 91011
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Flintridge Sacred Heart Academy",'girls=' + girls.length); boys[boys.length] = createMarker(new GPoint(-78.265719,37.78217),"
Fork Union Military Academy
P.O. 278, 4744 James Madison Hwy
Fork Union, VA 23055
All-boys school, 6-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fork Union Military Academy",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-104.715236,38.739758),"
Fountain Valley School of Colorado
6155 Fountain Valley School Road
Colorado Springs, CO 80911
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fountain Valley School of Colorado",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-79.400065,36.832311),"
Hargrave Military Academy
200 Military Drive
Chatham, VA 24531
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hargrave Military Academy",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-155.700776,20.029304),"
Hawaii Preparatory Academy
65-1692 Kohala Mountain Road
Kamuela, HI 96743
Co-ed school, 6-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hawaii Preparatory Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.440469,41.96427),"
The Hotchkiss School
PO Box 800
Lakeville, CT 06039
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Hotchkiss School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.502981,41.778838),"
Kent School
PO Box 2006
Kent, CT 06757
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kent 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.644174,41.85076),"
The Loomis Chaffee School
Office of Admission
Windsor, CT 06095
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Loomis Chaffee School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-77.232151,38.964335),"
The Madeira School
8328 Georgetown Pike
McLean, VA 22102-1200
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Madeira School",'girls=' + girls.length); boys[boys.length] = createMarker(new GPoint(-85.273401,35.030406),"
McCallie School
Missionary Ridge 500 Dodds Avenue
Chattanooga, TN 37404
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("McCallie School",'boys=' + boys.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.07054,42.25648),"
Milton Academy
170 Centre Street
Milton, MA 02186
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Milton Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.488606,42.673004),"
Northfield Mount Hermon School
One Lamplighter Way
Mount Hermon, MA 01354
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northfield Mount Hermon School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.134868,42.648486),"
Phillips Academy Andover
180 Main Street
Andover, MA 01810
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Phillips Academy Andover",'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(-121.871756,36.593685),"
Santa Catalina School
1500 Mark Thomas Drive
Monterey, CA 93940
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Santa Catalina School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-121.94939,36.582754),"
Stevenson School
3152 Forest Lake Road
Pebble Beach, CA 93953
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Stevenson School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.649803,41.985481),"
Suffield Academy
Suffield Academy
Suffield, CT 06078
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Suffield Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-117.738524,34.121759),"
The Webb Schools
1175 W. Baseline Road
Claremont, CA 91711
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Webb Schools",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-81.43737,41.243839),"
Western Reserve Academy
115 College Street
Hudson, OH 44236
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Western Reserve Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.798108,41.885944),"
Westminster School
995 Hopmeadow Street
Simsbury, CT 06070
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Westminster School",'coEd=' + coEd.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(-75.897931,41.263129),"
Wyoming Seminary Upper School
201 North Sprague Avenue
Kingston, PA 18704
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wyoming Seminary Upper School",'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); 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); } }