function addStateMarkers() { mySelect = document.getElementById('selection'); 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); 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); coEd[coEd.length] = createMarker(new GPoint(-71.20654,43.581712),"
Brewster Academy
80 Academy Drive
Wolfeboro, NH 03894
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brewster Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.08288,42.707418),"
Brooks School
1160 Great Pond Road
North Andover, MA 01845
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brooks School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-79.799334,36.659673),"
Carlisle School
300 Carlisle Road
Axton, VA 24054
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Carlisle School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-119.5033,34.389796),"
Cate School
1960 Cate Mesa Road, P.O. Box 5005
Carpinteria, CA 93014
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cate School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-75.594869,40.031928),"
CFS, The School at Church Farm
1001 East Lincoln Highway
Exton, PA 19341
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("CFS, The School at Church Farm",'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); 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); coEd[coEd.length] = createMarker(new GPoint(-70.976421,44.019861),"
Fryeburg Academy
745 Main Street
Fryeburg, ME 04037
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fryeburg Academy",'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); 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); coEd[coEd.length] = createMarker(new GPoint(-70.407614,44.19822),"
Hebron Academy
P.O. Box 309
Hebron, ME 04238
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hebron Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-70.027169,44.40958),"
Kents Hill School
PO Box 257, 1614 Main St., Rt. 17
Kents Hill, ME 04349
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kents Hill School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.571599,42.608505),"
Lawrence Academy
Powderhouse Road, P.O. Box 992
Groton, MA 01450
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lawrence Academy",'coEd=' + coEd.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(-104.522939,33.408738),"
New Mexico Military Institute
101 West College Blvd
Roswell, NM 88201
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Mexico Military Institute",'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(-79.636436,45.252399),"
Rosseau Lake College
1967 Bright Street
Rosseau, --
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rosseau Lake College",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-75.697925,39.473931),"
St. Andrew's School, DE
350 Noxontown Road
Middletown, DE 19709
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's School, DE",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-94.362095,45.594855),"
Saint John's Preparatory School
1857 Watertower Road, Box 4000
Collegeville, MN 56321
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Saint John's Preparatory School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-73.392929,42.000938),"
Salisbury School
251 Canaan Road
Salisbury, CT 06068
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Salisbury School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-97.992536,29.903601),"
San Marcos Baptist Academy
2801 Ranch Road 12
San Marcos, TX 78666
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("San Marcos Baptist Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-124.311341,49.088128),"
Shawnigan Lake School
1975 Renfrew Road, Postal Bag 2000
Shawnigan Lake, -- V0R2W1
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Shawnigan Lake School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.128543,40.921678),"
The Stony Brook School
1 Chapman Parkway
Stony Brook, NY 11790
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Stony Brook School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.12333,41.602959),"
The Taft School
110 Woodbury Road
Watertown, CT 06795
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Taft School",'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); 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); } }