function addStateMarkers() { mySelect = document.getElementById('selection'); coEd[coEd.length] = createMarker(new GPoint(-81.39728,41.643149),"
Andrews Osborne Academy
38588 Mentor Avenue
Willoughby, OH 44094
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Andrews Osborne Academy",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-122.458797,47.268113),"
Annie Wright School
827 N. Tacoma Avenue
Tacoma, WA 98403
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Annie Wright School",'girls=' + girls.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(-72.603726,42.548158),"
Bement School
94 Old Main Street, PO Box 8
Deerfield, MA 01342
Co-ed school, 3-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bement 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(-79.605708,43.571374),"
Bronte College of Canada
88 Bronte College Court
Mississauga, Ontario, --
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bronte College of Canada",'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); coEd[coEd.length] = createMarker(new GPoint(-71.973239,41.946385),"
Hyde-Woodstock
PO Box 237
Woodstock, CT 06281
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hyde-Woodstock",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-70.027169,44.40958),"
Kents Hill School
PO Box 257, 1614 Main St., Rt. 17
Kents Hill, ME 04349
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kents Hill School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-87.890068,42.248175),"
Lake Forest Academy
1500 West Kennedy Road
Lake Forest, IL 60045
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lake Forest 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); 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(-73.983217,44.27901),"
Northwood School
P.O. Box 1070, 92 Northwood Road
Lake Placid, NY 12946
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northwood School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-119.255147,34.445829),"
Ojai Valley School
723 El Paseo Road
Ojai, CA 93023
Co-ed school, 3-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ojai Valley School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-122.757684,45.475098),"
Oregon Episcopal School
6300 SW Nicol Road
Portland, OR 97223
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oregon Episcopal School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.793636,40.327694),"
The Pennington School
112 W. Delaware Avenue
Pennington, NJ 08534
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Pennington School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.240799,40.970161),"
Ross School
18 Goodfriend Drive
East Hampton, NY 11937
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ross School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.015709,44.418512),"
St. Johnsbury Academy
1000 Main Street, PO Box 906
St. Johnsbury, VT 05819
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Johnsbury Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.939054,45.6502),"
Sedbergh School
810 Cote Azelie RR1
Montebello, Quebec, --
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sedbergh School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-74.988413,40.381852),"
Solebury School
6832 Phillips Mill Road
New Hope, PA 18938
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Solebury School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-90.396519,38.539627),"
Thomas Jefferson School
4100 South Lindbergh Blvd.
Saint Louis, MO 63127
Co-ed school, 7-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.588921,43.444297),"
Tilton School
30 School Street
Tilton, NH 03276
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tilton 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(-88.828846,43.456381),"
Wayland Academy
101 North University
Beaver Dam, WI 53916
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wayland Academy",'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); coEd[coEd.length] = createMarker(new GPoint(-72.036714,42.67519),"
The Winchendon School
172 Ash Street
Winchendon, MA 01475
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Winchendon School",'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); } }