function addStateMarkers() { mySelect = document.getElementById('selection'); girls[girls.length] = createMarker(new GPoint(-72.084535,41.616825),"
Academy of the Holy Family
54 W. Main St. Box 691
Baltic, CT 06330
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Academy of the Holy Family",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-122.458797,47.268113),"
Annie Wright School
827 N. Tacoma Avenue
Tacoma, WA 98403
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Annie Wright School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-79.409323,43.689616),"
The Bishop Strachan School
298 Lonsdale Rd.
Toronto, --
All-girls school, 7-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Bishop Strachan School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-83.822268,34.302017),"
Brenau Academy
500 Washington Street SE
Gainesville, GA 30501
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Brenau Academy",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-78.875313,42.92423),"
Buffalo Seminary
205 Bidwell Parkway
Buffalo, NY 14222
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Buffalo Seminary",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-79.390374,36.826967),"
Chatham Hall
800 Chatham Hall Circle
Chatham, VA 24531
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chatham Hall",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-71.287817,42.291943),"
Dana Hall School
45 Dana Road
Wellesley, MA 02482
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dana Hall School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-73.665465,42.711862),"
Emma Willard School
285 Pawling Avenue
Troy, NY 12180
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Emma Willard School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-72.835373,41.849302),"
The Ethel Walker School
230 Bushy Hill Road
Simsbury, CT 06070
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Ethel Walker School",'girls=' + girls.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); girls[girls.length] = createMarker(new GPoint(-77.732499,38.9692),"
Foxcroft School
P.O. Box 5555
Middleburg, VA 20118
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Foxcroft School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-76.758345,39.41163),"
Garrison Forest School
300 Garrison Forest Road
Owings Mills, MD 21117
All-girls school, 8-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Garrison Forest School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-78.252693,40.656276),"
Grier School
P.O. Box 308
Tyrone, PA 16686
All-girls school, 6-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Grier School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-79.414579,43.71831),"
Havergal College
1451 Avenue Road
Toronto, ON, --
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Havergal College",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-96.829562,32.907256),"
The Hockaday School
11600 Welch Road
Dallas, TX 75229
All-girls school, 8-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Hockaday School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-76.301985,40.156182),"
Linden Hall
212 East Main Street
Lititz, PA 17543
All-girls school, 6-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Linden Hall",'girls=' + girls.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); girls[girls.length] = createMarker(new GPoint(-73.254221,42.447408),"
Miss Hall's School
492 Holmes Road, PO Box 1166
Pittsfield, MA 01201
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Miss Hall's School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-72.829305,41.722305),"
Miss Porter's School
60 Main Street
Farmington, CT 06032
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Miss Porter's School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-76.627298,39.553815),"
Oldfields School
1500 Glencoe Road
Glencoe, MD 21152
All-girls school, 8-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oldfields School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-74.721791,40.719238),"
Purnell School
51 Pottersville Road, P.O. Box 500
Pottersville, NJ 07979
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Purnell School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-76.899868,37.905395),"
St. Margaret's School
444 Water Lane PO Box 158
Tappahannock, VA 22560
All-girls school, 8-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St. Margaret's School",'girls=' + girls.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); girls[girls.length] = createMarker(new GPoint(-76.685687,39.40758),"
St. Timothy's School
8400 Greenspring Avenue
Stevenson, MD 21153
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St. Timothy's School",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-80.237363,36.089291),"
Salem Academy
500 East Salem Avenue
Winston-Salem, NC 27101
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Salem Academy",'girls=' + girls.length); girls[girls.length] = createMarker(new GPoint(-122.585449,38.013182),"
San Domenico School
1500 Butterfield Road
San Anselmo, CA 94960
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("San Domenico School",'girls=' + girls.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); girls[girls.length] = createMarker(new GPoint(-72.582667,42.612559),"
Stoneleigh-Burnham School
574 Bernardston Road
Greenfield, MA 01301
All-girls school, 7-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stoneleigh-Burnham School",'girls=' + girls.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); 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); } }