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); boys[boys.length] = createMarker(new GPoint(-117.354441,33.1624),"
Army and Navy Academy
2605 Carlsbad Blvd.
Carlsbad, CA 92008
All-boys school, 7-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Army and Navy Academy",'boys=' + boys.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(-121.951613,37.833705),"
The Athenian School
2100 Mt. Diablo Scenic Blvd.
Danville, CA 94506
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Athenian School",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-72.836502,41.781261),"
Avon Old Farms School
500 Old Farms Road
Avon, CT 06001
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Avon Old Farms School",'boys=' + boys.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(-74.96288,40.983113),"
Blair Academy
2 Park Street
Blairstown, NJ 07825
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Blair Academy",'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); 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); 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(-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); boys[boys.length] = createMarker(new GPoint(-72.036496,43.676448),"
Cardigan Mountain School
62 Alumni Drive
Canaan, NH 03741
All-boys school, 6-9
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Cardigan Mountain School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-77.188705,40.422305),"
Carson Long Military Institute
200 N. Carlisle St.
New Bloomfield, PA 17068
All-boys school, 6-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Carson Long Military Institute",'boys=' + boys.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(-71.234103,42.386016),"
Chapel Hill-Chauncy Hall
785 Beaver Street
Waltham, MA 02452
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Chapel Hill-Chauncy Hall",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.901089,41.500662),"
Cheshire Academy
10 Main Street
Cheshire, CT 06410
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cheshire Academy",'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); 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); coEd[coEd.length] = createMarker(new GPoint(-71.354201,42.459272),"
Concord Academy
166 Main Street
Concord, MA 01742
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Concord Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-86.407273,41.222456),"
Culver Academies
1300 Academy Road #157
Culver, IN 46511
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Culver Academies",'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); 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); coEd[coEd.length] = createMarker(new GPoint(-71.532888,42.305315),"
Fay School
48 Main Street
Southborough, MA 01772
Co-ed school, 6-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fay 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); 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(-73.193369,41.746775),"
The Forman School
12 Norfolk Road, P.O. Box 80
Litchfield, CT 06759
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Forman School",'coEd=' + coEd.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(-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); boys[boys.length] = createMarker(new GPoint(-77.107054,39.034361),"
Georgetown Preparatory School
10900 Rockville Pike North
Bethesda, MD 20852
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Georgetown Preparatory School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-70.895894,42.750704),"
The Governor's Academy <br> (formerly Governor Dummer Academy)
1 Elm Street
Byfield, MA 01922
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Governor's Academy <br> (formerly Governor Dummer Academy)",'coEd=' + coEd.length); boys[boys.length] = createMarker(new GPoint(-78.583241,42.708586),"
The Gow School
2491 Emery Rd.
South Wales, NY 14139
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("The Gow School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-80.862222,41.772859),"
Grand River Academy
3042 College St.
Austinburg, OH 44010
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Grand River Academy",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-72.554108,42.975764),"
The Greenwood School
14 Greenwood Lane
Putney, VT 05346
All-boys school, 4-9
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("The Greenwood School",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-73.310565,41.629329),"
The Gunnery
99 Green Hill Rd.
Washington, CT 06793
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Gunnery",'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); 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); } }