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); 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(-73.408248,42.115787),"
Berkshire School
245 North Undermountain Road
Sheffield, MA 01257
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Berkshire 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); boys[boys.length] = createMarker(new GPoint(-70.704079,44.05502),"
Bridgton Academy
PO Box 292
North Bridgton, ME 04057
All-boys school, 12-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Bridgton Academy",'boys=' + boys.length); coEd[coEd.length] = createMarker(new GPoint(-95.412997,32.107838),"
The Brook Hill School
P O Box 668
Bullard, TX 75757
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Brook Hill 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); 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); 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); 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); 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); 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(-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(-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(-71.908354,42.6358),"
Cushing Academy
39 School Street, P.O. Box 8000
Ashburnham, MA 01430
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cushing Academy",'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(-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(-120.125809,34.729917),"
Dunn School
P.O. Box 98, 2755 W. Highway 154
Los Olivos, CA 93441
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Dunn School",'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); 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); 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); 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); 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); } }