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); 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(-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(-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(-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); 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); 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(-85.425795,41.724904),"
Howe Military School & Summer Camp
5755 North State Road 9/P.O. Box 240
Howe, IN 46746
Co-ed school, 5-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Howe Military School & Summer Camp",'coEd=' + coEd.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(-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); 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(-74.027129,41.44596),"
New York Military Academy
78 Academy Avenue
Cornwall-on-Hudson, NY 12520
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New York Military 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(-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); 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); coEd[coEd.length] = createMarker(new GPoint(-98.601761,29.635594),"
TMI -The Episcopal School of Texas
20955 West Tejas Trail
San Antonio, TX 78257
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("TMI -The Episcopal School of Texas",'coEd=' + coEd.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); coEd[coEd.length] = createMarker(new GPoint(-93.873143,39.186442),"
Wentworth Military Academy & College
1880 Washington Ave.
Lexington, MO 64067
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wentworth Military Academy & College",'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); } }