function addStateMarkers() { mySelect = document.getElementById('selection'); 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); 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); 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(-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); 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); 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.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); coEd[coEd.length] = createMarker(new GPoint(-71.354201,42.459272),"
Concord Academy
166 Main Street
Concord, MA 01742
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Concord Academy",'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(-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); girls[girls.length] = createMarker(new GPoint(-72.835373,41.849302),"
The Ethel Walker School
230 Bushy Hill Road
Simsbury, CT 06070
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("The Ethel Walker School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-104.715236,38.739758),"
Fountain Valley School of Colorado
6155 Fountain Valley School Road
Colorado Springs, CO 80911
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fountain Valley School of Colorado",'coEd=' + coEd.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); coEd[coEd.length] = createMarker(new GPoint(-71.582122,42.593804),"
Groton School
282 Farmers Row, Box 991
Groton, MA 01450
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Groton School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-75.636972,40.244114),"
Hill School
717 East High Street
Pottstown, PA 19464
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hill School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.440469,41.96427),"
The Hotchkiss School
PO Box 800
Lakeville, CT 06039
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Hotchkiss School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.502981,41.778838),"
Kent School
PO Box 2006
Kent, CT 06757
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kent School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-72.644174,41.85076),"
The Loomis Chaffee School
Office of Admission
Windsor, CT 06095
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Loomis Chaffee 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); coEd[coEd.length] = createMarker(new GPoint(-77.899955,39.828176),"
Mercersburg Academy
300 East Seminary Street
Mercersburg, PA 17236
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mercersburg Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.371622,42.493361),"
Middlesex School
1400 Lowell Road
Concord, MA 01742
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Middlesex School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-73.616262,41.845257),"
Millbrook School
131 Millbrook School Road
Millbrook, NY 12545
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Millbrook School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.07054,42.25648),"
Milton Academy
170 Centre Street
Milton, MA 02186
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Milton Academy",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-72.829305,41.722305),"
Miss Porter's School
60 Main Street
Farmington, CT 06032
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Miss Porter's School",'girls=' + girls.length); coEd[coEd.length] = createMarker(new GPoint(-71.134868,42.648486),"
Phillips Academy Andover
180 Main Street
Andover, MA 01810
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Phillips Academy Andover",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-70.952346,42.981339),"
Phillips Exeter Academy
20 Main Street
Exeter, NH 03833
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Phillips Exeter Academy",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.960109,41.897689),"
Pomfret School
PO Box 128, 398 Pomfret Street
Pomfret, CT 06258
Co-ed school, 9-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pomfret School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.253192,41.588797),"
Portsmouth Abbey School
285 Cory's Lane
Portsmouth, RI 02871
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Portsmouth Abbey School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-79.248669,43.156335),"
Ridley College
2 Ridley Road
St Catharines, --
Co-ed school, Pre-K-12, PG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ridley College",'coEd=' + coEd.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); coEd[coEd.length] = createMarker(new GPoint(-75.697925,39.473931),"
St. Andrew's School, DE
350 Noxontown Road
Middletown, DE 19709
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew's School, DE",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-78.512647,38.043096),"
St. Anne's-Belfield School
2132 Ivy Road
Charlottesville, VA 22903
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Anne's-Belfield School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.311849,41.49655),"
St. George's School
PO Box 1910
Newport, RI 02840
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. George's School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.531945,42.305764),"
St. Mark's School
25 Marlborough Road
Southborough, MA 01772
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Mark's School",'coEd=' + coEd.length); coEd[coEd.length] = createMarker(new GPoint(-71.567187,43.197562),"
St. Paul's School
325 Pleasant Street
Concord, NH 03301
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Paul's School",'coEd=' + coEd.length); girls[girls.length] = createMarker(new GPoint(-76.685687,39.40758),"
St. Timothy's School
8400 Greenspring Avenue
Stevenson, MD 21153
All-girls school, 9-12, PG
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St. Timothy's School",'girls=' + girls.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); 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); } }