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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); boys[boys.length] = createMarker(new GPoint(-71.939744,42.740273),"
Hampshire Country School
28 Patey Circle
Rindge, NH 03461
All-boys school, 3-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hampshire Country School",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-71.604902,42.350966),"
Hillside School
404 Robin Hill Road
Marlborough, MA 01752
All-boys school, 5-9
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hillside School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-79.456709,40.488088),"
The Kiski School
1888 Brett Lane
Saltsburg, PA 15681
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("The Kiski School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-72.45345,42.649822),"
Linden Hill School
154 South Mountain Rd
Northfield, MA 01360
All-boys school, 3-9
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Linden Hill School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-71.978549,43.083471),"
Maharishi Academy of Total Knowledge
100 Old North Branch Road
Antrim, NH 03440
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Maharishi Academy of Total Knowledge",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-91.869114,39.172054),"
Missouri Military Academy
204 Grand Avenue
Mexico, MO 65265
All-boys school, 6-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Missouri Military Academy",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-75.521681,40.02323),"
The Phelps School
583 Sugartown Road
Malvern, PA 19355
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("The Phelps School",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-77.092873,38.937851),"
St. Albans School
Mt. St. Alban
Washington, D.C., DC 20016
All-boys school, 9-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. Albans School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-79.471016,44.013292),"
St. Andrew's College
15800 Yonge Street
Aurora, ON, -- L4G 3H7
All-boys school, 6-12
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. Andrew's College",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-117.920165,33.835379),"
St. Catherine's Military Academy
215 N. Harbor Blvd.
Anaheim, CA 92805
All-boys school, 4-8
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. Catherine's Military Academy",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-88.404159,43.064276),"
St. John's Northwestern Military Academy
1101 Genesee Street
Delafield, WI 53018
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. John's Northwestern Military Academy",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-72.213849,41.514501),"
St. Thomas More School
45 Cottage Road
Oakdale, CT 06370
All-boys school, 8-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("St. Thomas More School",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-73.408287,41.730679),"
South Kent School
40 Bull's Ridge Road
South Kent, CT 06785
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("South Kent School",'boys=' + boys.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); boys[boys.length] = createMarker(new GPoint(-73.592985,41.570816),"
Trinity Pawling School
700 Route 22
Pawling, NY 12564
All-boys school, 9-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Trinity Pawling School",'boys=' + boys.length); boys[boys.length] = createMarker(new GPoint(-75.384208,40.052801),"
Valley Forge Military Academy
1001 Eagle Road
Wayne, PA 19087
All-boys school, 7-12, PG
[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Valley Forge Military Academy",'boys=' + boys.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); } }