function addStateMarkers() { mySelect = document.getElementById('selection'); 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); 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); coEd[coEd.length] = createMarker(new GPoint(-123.558769,48.668178),"
Brentwood College School
2735 Mt. Baker Road
Mill Bay, --
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Brentwood College School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.213291,42.704628),"
Buxton School
291 South Street
Williamstown, MA 01267
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Buxton School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.271775,42.38644),"
The Cambridge School of Weston
Georgian Road
Weston, MA 02493
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Cambridge School of Weston",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-71.287817,42.291943),"
Dana Hall School
45 Dana Road
Wellesley, MA 02482
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dana Hall School",'girls=' + girls.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(-80.086059,42.043896),"
Family First Academy
8155 Oliver Road
Erie, PA 16509
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Family First Academy",'coEd=' + coEd.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(-73.301923,41.647383),"
The Glenholme School
81 Sabbaday Lane
Washintgon, CT 06793
Co-ed school, 5-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Glenholme School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-155.700776,20.029304),"
Hawaii Preparatory Academy
65-1692 Kohala Mountain Road
Kamuela, HI 96743
Co-ed school, 6-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hawaii Preparatory Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-69.820655,43.906893),"
Hyde-Bath
616 High Street
Bath, ME 04530
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hyde-Bath",'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); girls[girls.length] = createMarker(new GPoint(-76.301985,40.156182),"
Linden Hall
212 East Main Street
Lititz, PA 17543
All-girls school, 6-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Linden Hall",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-122.626962,40.811028),"
Nawa Academy
17351 Trinity Mountain Road
French Gulch, CA 96033
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Nawa Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.823119,43.436695),"
Proctor Academy
P.O. BOX 500
Andover, NH 03216
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Proctor Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-83.390888,34.961812),"
Rabun Gap-Nacoochee School
339 Nacoochee Drive
Rabun Gap, GA 30568
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rabun Gap-Nacoochee School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.324712,41.748702),"
St. Andrew's School - RI
63 Federal Road
Barrington, RI 02806
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's School - RI",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-85.891144,35.217474),"
St. Andrew's-Sewanee School
290 Quintard Rd.
Sewanee, TN 37375
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's-Sewanee School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-91.307874,41.66373),"
Scattergood Friends School
1951 Delta Avenue
West Branch, IA 52358
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Scattergood Friends School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-124.311341,49.088128),"
Shawnigan Lake School
1975 Renfrew Road, Postal Bag 2000
Shawnigan Lake, -- V0R2W1
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Shawnigan Lake School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-0.536077,51.406358),"
TASIS The American School in England
Coldharbour Lane
Thorpe, Surrey TW20 8TE, --
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("TASIS The American School in England",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.5086,43.141777),"
Vermont Academy
10 Long Walk
Saxtons River, VT 05154
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Vermont Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-117.738524,34.121759),"
The Webb Schools
1175 W. Baseline Road
Claremont, CA 91711
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Webb Schools",'coEd=' + coEd.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); coEd[coEd.length] = createMarker(new GPoint(-72.431297,42.125207),"
Wilbraham & Monson Academy
423 Main Street
Wilbraham, MA 01095
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wilbraham & Monson Academy",'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); } }