function addStateMarkers() { mySelect = document.getElementById('selection'); 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.09829712,33.57210159),"
Advanced Academy of Georgia
University of West Georgia
Carrollton, GA 30118
Co-ed school, 11-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Advanced Academy of Georgia",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-82.620004,35.568684),"
Asheville School
360 Asheville School Rd.
Asheville, NC 28806
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Asheville School",'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); boys[boys.length] = createMarker(new GPoint(-78.556044,38.265762),"
Blue Ridge School
273 Mayo Drive
St. George, VA 22935
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Blue Ridge School",'boys=' + boys.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(-84.302559,33.983755),"
Brandon Hall School
1701 Brandon Hall Drive
Atlanta, GA 30350
Co-ed school, 4-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brandon Hall School",'coEd=' + coEd.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); boys[boys.length] = createMarker(new GPoint(-80.559302,34.280661),"
Camden Military Academy
520 Hwy. 1 North
Camden, SC 29020
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Camden Military Academy",'boys=' + boys.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); 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); boys[boys.length] = createMarker(new GPoint(-82.493542,35.464827),"
Christ School
500 Christ School Road
Asheville, NC 28704
All-boys school, 8-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Christ School",'boys=' + boys.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(-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(-81.436658,26.337618),"
Donahue Academy of Ave Maria
4955 Seton Way
Ave Maria, FL 34142
Co-ed school, 11-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Donahue Academy of Ave Maria",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-77.088839,38.82517),"
Episcopal High School
1200 N. Quaker Lane
Alexandria, VA 22302
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Episcopal High School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-78.890035,38.067391),"
Fishburne Military School
225 S. Wayne Avenue
Waynesboro, VA 22980
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fishburne Military School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-80.628174,28.079631),"
Florida Air Academy
1950 S. Academy Drive
Melbourne, FL 32901
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Florida Air Academy",'coEd=' + coEd.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); 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); 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(-86.771296,33.342669),"
Indian Springs School
190 Woodward Drive
Indian Springs, AL 35124
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Indian Springs School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-83.743895,35.87612),"
The King's Academy
202 Smothers Road
Seymour, TN 37865
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The King's Academy",'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); 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); coEd[coEd.length] = createMarker(new GPoint(-78.510166,38.875789),"
Massanutten Military Academy
614 South Main Street
Woodstock, VA 22664
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Massanutten Military 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(-78.702172,38.007926),"
Miller School
1000 Samuel Miller Loop
Charlottesville, VA 22903
Co-ed school, 8-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Miller 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(-80.186436,26.326055),"
North Broward Preparatory School
7600 Lyons Road
Coconut Creek, FL 33073
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("North Broward Preparatory School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-81.395846,36.610731),"
Oak Hill Academy
2635 Oak Hill Road
Mouth of Wilson, VA 24363
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oak Hill Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-79.987261,36.174596),"
Oak Ridge Military Academy
2317 Oak Ridge Road
Oak Ridge, NC 27310
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oak Ridge Military Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-83.422144,37.554539),"
Oakdale Christian Academy
5801 Beattyville Rd.
Jackson, KY 41339
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oakdale Christian Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-78.359392,38.023452),"
Oakland School
Boyd Tavern
Keswick, VA 22947
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oakland School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-83.390888,34.961812),"
Rabun Gap-Nacoochee School
339 Nacoochee Drive
Rabun Gap, GA 30568
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rabun Gap-Nacoochee School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-78.198376,38.922718),"
Randolph-Macon Academy
200 Academy Drive
Front Royal, VA 22630
Co-ed school, 6-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Randolph-Macon Academy",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-83.832271,34.336459),"
Riverside Military Academy
2001 Riverside Drive
Gainesville, GA 30501
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Riverside Military Academy",'boys=' + boys.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); coEd[coEd.length] = createMarker(new GPoint(-85.891144,35.217474),"
St. Andrew's-Sewanee School
290 Quintard Rd.
Sewanee, TN 37375
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's-Sewanee School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-78.512647,38.043096),"
St. Anne's-Belfield School
2132 Ivy Road
Charlottesville, VA 22903
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Anne's-Belfield School",'coEd=' + coEd.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); boys[boys.length] = createMarker(new GPoint(-89.328006,30.307026),"
St. Stanislaus College
304 S. Beach Blvd.
Bay St. Louis, MS 39520
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. Stanislaus College",'boys=' + boys.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); coEd[coEd.length] = createMarker(new GPoint(-79.075981,38.150288),"
Stuart Hall School
235 West Frederick Street
Staunton, VA 24401
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Stuart Hall School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-93.627202,35.297455),"
Subiaco Academy
405 North Subiaco Avenue
Subiaco, AR 72865
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Subiaco Academy",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-83.390819,34.73498),"
Tallulah Falls School
PO Box 249
Tallulah Falls, GA 30573
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tallulah Falls School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-79.187224,37.453353),"
Virginia Episcopal School
400 V.E.S. Road
Lynchburg, VA 24503
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Virginia Episcopal School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-86.389888,35.610794),"
The Webb School
319 Webb Road East, P.O. 488
Bell Buckle, TN 37020
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Webb School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-79.288435,37.362861),"
Woodberry Forest School
241 Woodberry Station
Woodberry Forest, VA 22989
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Woodberry Forest School",'boys=' + boys.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); } }