function addMarkers(){ mySelect = document.getElementById('selection'); Crossett = [];Eureka_Springs = [];Arkadelphia = [];Little_Rock = [];Bald_Knob = [];Forrest_City = [];Searcy = [];Hot_Springs = [];Russellville = [];West_Helena = [];N_Little_Rock = [];Bryant = [];Marianna = [];North_Little_Rock = [];Monticello = [];Harrison = [];Fort_Smith = [];Mena = [];Warm_Springs = [];Dell = [];Nashville = [];Rogers = [];Pine_Bluff = [];Mountain_Home = [];Elm_Springs = [];Jonesboro = [];Van_Buren = [];Camden = [];Alexander = [];mySelect.options[mySelect.options.length] = new Option("Alexander schools",'all=Alexander'); mySelect.options[mySelect.options.length] = new Option("Arkadelphia schools",'all=Arkadelphia'); mySelect.options[mySelect.options.length] = new Option("Bald Knob schools",'all=Bald_Knob'); mySelect.options[mySelect.options.length] = new Option("Bryant schools",'all=Bryant'); mySelect.options[mySelect.options.length] = new Option("Camden schools",'all=Camden'); mySelect.options[mySelect.options.length] = new Option("Crossett schools",'all=Crossett'); mySelect.options[mySelect.options.length] = new Option("Dell schools",'all=Dell'); mySelect.options[mySelect.options.length] = new Option("Elm Springs schools",'all=Elm_Springs'); mySelect.options[mySelect.options.length] = new Option("Eureka Springs schools",'all=Eureka_Springs'); mySelect.options[mySelect.options.length] = new Option("Forrest City schools",'all=Forrest_City'); mySelect.options[mySelect.options.length] = new Option("Fort Smith schools",'all=Fort_Smith'); mySelect.options[mySelect.options.length] = new Option("Harrison schools",'all=Harrison'); mySelect.options[mySelect.options.length] = new Option("Hot Springs schools",'all=Hot_Springs'); mySelect.options[mySelect.options.length] = new Option("Jonesboro schools",'all=Jonesboro'); mySelect.options[mySelect.options.length] = new Option("Little Rock schools",'all=Little_Rock'); mySelect.options[mySelect.options.length] = new Option("Marianna schools",'all=Marianna'); mySelect.options[mySelect.options.length] = new Option("Mena schools",'all=Mena'); mySelect.options[mySelect.options.length] = new Option("Monticello schools",'all=Monticello'); mySelect.options[mySelect.options.length] = new Option("Mountain Home schools",'all=Mountain_Home'); mySelect.options[mySelect.options.length] = new Option("N Little Rock schools",'all=N_Little_Rock'); mySelect.options[mySelect.options.length] = new Option("Nashville schools",'all=Nashville'); mySelect.options[mySelect.options.length] = new Option("North Little Rock schools",'all=North_Little_Rock'); mySelect.options[mySelect.options.length] = new Option("Pine Bluff schools",'all=Pine_Bluff'); mySelect.options[mySelect.options.length] = new Option("Rogers schools",'all=Rogers'); mySelect.options[mySelect.options.length] = new Option("Russellville schools",'all=Russellville'); mySelect.options[mySelect.options.length] = new Option("Searcy schools",'all=Searcy'); mySelect.options[mySelect.options.length] = new Option("Van Buren schools",'all=Van_Buren'); mySelect.options[mySelect.options.length] = new Option("Warm Springs schools",'all=Warm_Springs'); mySelect.options[mySelect.options.length] = new Option("West Helena schools",'all=West_Helena'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Crossett[Crossett.length] = createMarker(new GPoint(-91.93630200,33.16955600),"
Abiding Faith Christian School
1552 Hwy 52 West
Crossett, AR 71635
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Abiding Faith Christian School",'Crossett=' + Crossett.length); Eureka_Springs[Eureka_Springs.length] = createMarker(new GPoint(-93.74550000,36.38630000),"
The Academy Of Excellence
Po Box 427
Eureka Springs, AR 72632
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Academy Of Excellence",'Eureka_Springs=' + Eureka_Springs.length); Arkadelphia[Arkadelphia.length] = createMarker(new GPoint(-93.06988110,34.18271400),"
Arkadelphia Christian School
129 Malvern Rd
Arkadelphia, AR 71923
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Arkadelphia Christian School",'Arkadelphia=' + Arkadelphia.length); Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33788500,34.76619400),"
Arkansas River Valley Montessori
1509 N Pierce Street
Little Rock, AR 72207
Co-ed school, PK-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Arkansas River Valley Montessori",'Little_Rock=' + Little_Rock.length); Bald_Knob[Bald_Knob.length] = createMarker(new GPoint(-91.57442600,35.32218800),"
Bald Knob Church Of God
199 Stewards Loop
Bald Knob, AR 72010
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bald Knob Church Of God",'Bald_Knob=' + Bald_Knob.length); Forrest_City[Forrest_City.length] = createMarker(new GPoint(-90.78970600,35.02680300),"
Calvary Christian School
1611 North Washington St
Forrest City, AR 72335
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Calvary Christian School",'Forrest_City=' + Forrest_City.length); Searcy[Searcy.length] = createMarker(new GPoint(-91.88032800,35.26567300),"
Center Hill School
143 S Butler Lane
Searcy, AR 72143
Co-ed school, K-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Center Hill School",'Searcy=' + Searcy.length); Hot_Springs[Hot_Springs.length] = createMarker(new GPoint(-93.05231400,34.50942400),"
Christian Ministries Academy
Po Box 8500
Hot Springs, AR 71910
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Christian Ministries Academy",'Hot_Springs=' + Hot_Springs.length); Russellville[Russellville.length] = createMarker(new GPoint(-93.13481600,35.27826700),"
Community Christian School
Po Box 10028
Russellville, AR 72812
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Community Christian School",'Russellville=' + Russellville.length); West_Helena[West_Helena.length] = createMarker(new GPoint(-90.65670000,34.54750000),"
Desoto School
Po Box 2807
West Helena, AR 72390
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Desoto School",'West_Helena=' + West_Helena.length); N_Little_Rock[N_Little_Rock.length] = createMarker(new GPoint(-92.19438700,34.77138300),"
Faith Christian Academy
314 Emily
N. Little Rock, AR 72117
Co-ed school, 3-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Faith Christian Academy",'N_Little_Rock=' + N_Little_Rock.length); Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34440100,34.67439900),"
Faith Christian School Of Litt
6111 W 83rd St
Little Rock, AR 72209
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Faith Christian School Of Litt",'Little_Rock=' + Little_Rock.length); Bryant[Bryant.length] = createMarker(new GPoint(-92.48959300,34.59203100),"
Family Church Academy
Po Box 150
Bryant, AR 72089
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Family Church Academy",'Bryant=' + Bryant.length); Marianna[Marianna.length] = createMarker(new GPoint(-90.76732800,34.72007100),"
Friendship Christian Academy
3712 Highway 1 S
Marianna, AR 72360
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Friendship Christian Academy",'Marianna=' + Marianna.length); North_Little_Rock[North_Little_Rock.length] = createMarker(new GPoint(-92.26736600,34.76859100),"
Full Counsel Preparatory Academy
1521 Main Street
North Little Rock, AR 72114
Co-ed school, K-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Full Counsel Preparatory Academy",'North_Little_Rock=' + North_Little_Rock.length); Monticello[Monticello.length] = createMarker(new GPoint(-91.79220000,33.58030000),"
Grace Christian Academy
Po Box 524
Monticello, AR 71657
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grace Christian Academy",'Monticello=' + Monticello.length); Harrison[Harrison.length] = createMarker(new GPoint(-93.05482900,36.25935000),"
Grace Christian School
P.o. Box 7
Harrison, AR 72601
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grace Christian School",'Harrison=' + Harrison.length); Fort_Smith[Fort_Smith.length] = createMarker(new GPoint(-94.40361600,35.30702300),"
Harvest Time Christian
3100 Briar Cliff Avenue
Fort Smith, AR 72908
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Harvest Time Christian",'Fort_Smith=' + Fort_Smith.length); Mena[Mena.length] = createMarker(new GPoint(-94.24467900,34.57062500),"
Lakeview Christ School
1904 Cordie Dr
Mena, AR 71953
Co-ed school, PK-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lakeview Christ School",'Mena=' + Mena.length); Searcy[Searcy.length] = createMarker(new GPoint(-91.71420400,35.23407900),"
Liberty Christian School
1202 Benton Street
Searcy, AR 72143
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Liberty Christian School",'Searcy=' + Searcy.length); Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.43980000,34.80250000),"
Little Rock Christian Academy
Po Box 17450
Little Rock, AR 72222
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Little Rock Christian Academy",'Little_Rock=' + Little_Rock.length); Warm_Springs[Warm_Springs.length] = createMarker(new GPoint(-91.07020000,36.47890000),"
The Lord S Ranch
Po Box 315
Warm Springs, AR 72478
Co-ed school, 3-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Lord S Ranch",'Warm_Springs=' + Warm_Springs.length); Dell[Dell.length] = createMarker(new GPoint(-90.05690000,35.85160000),"
Mississippi Cty Christian Aca
P. O. Box 236
Dell, AR 72426
Co-ed school, 1-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mississippi Cty Christian Aca",'Dell=' + Dell.length); Nashville[Nashville.length] = createMarker(new GPoint(-93.84707300,33.95368100),"
Nashville Christian Academy
Po Box 128
Nashville, AR 71852
Co-ed school, PK-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Nashville Christian Academy",'Nashville=' + Nashville.length); Rogers[Rogers.length] = createMarker(new GPoint(-94.13576200,36.29980000),"
New Covenant Christian Academy
2298 S 13th Street
Rogers, AR 72758
Co-ed school, PK-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Covenant Christian Academy",'Rogers=' + Rogers.length); Pine_Bluff[Pine_Bluff.length] = createMarker(new GPoint(-92.10460000,34.13750000),"
New Life Christian School
Po Box 1720 3201 Ridge Way Rd
Pine Bluff, AR 71613
Co-ed school, K-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Life Christian School",'Pine_Bluff=' + Pine_Bluff.length); Mountain_Home[Mountain_Home.length] = createMarker(new GPoint(-92.37800000,36.24000000),"
North Central Christian School
Po Box 898
Mountain Home, AR 72654
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("North Central Christian School",'Mountain_Home=' + Mountain_Home.length); Elm_Springs[Elm_Springs.length] = createMarker(new GPoint(-94.23410000,36.20610000),"
Northwest Arkansas Christian A
9165 Nations Dr., Po Box 30
Elm Springs, AR 72728
Co-ed school, KG-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northwest Arkansas Christian A",'Elm_Springs=' + Elm_Springs.length); Jonesboro[Jonesboro.length] = createMarker(new GPoint(-90.74446100,35.81550200),"
Ridgefield Christian School
3824 Casey Springs Road
Jonesboro, AR 72404
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ridgefield Christian School",'Jonesboro=' + Jonesboro.length); Fort_Smith[Fort_Smith.length] = createMarker(new GPoint(-94.37530000,35.33390000),"
River Valley Christian School
Po Box 3366
Fort Smith, AR 72913
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("River Valley Christian School",'Fort_Smith=' + Fort_Smith.length); Van_Buren[Van_Buren.length] = createMarker(new GPoint(-94.28326000,35.46055100),"
Sonshine Christian School
5530 Alma Highway
Van Buren, AR 72956
Co-ed school, 1-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sonshine Christian School",'Van_Buren=' + Van_Buren.length); Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.34528300,34.64810800),"
Southwest Christian Academy
11301 Geyer Springs Road
Little Rock, AR 72209
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southwest Christian Academy",'Little_Rock=' + Little_Rock.length); Fort_Smith[Fort_Smith.length] = createMarker(new GPoint(-94.38479000,35.40053700),"
Union Christian Academy
4201 Windsor Drive
Fort Smith, AR 72904
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Union Christian Academy",'Fort_Smith=' + Fort_Smith.length); Camden[Camden.length] = createMarker(new GPoint(-92.84668400,33.59693700),"
Victory Christian School
1244 Maul Road
Camden, AR 71701
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Victory Christian School",'Camden=' + Camden.length); Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.33981700,34.69041700),"
Victory Christian Schools
5705 West 65th St.
Little Rock, AR 72209
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Victory Christian Schools",'Little_Rock=' + Little_Rock.length); Alexander[Alexander.length] = createMarker(new GPoint(-92.44459500,34.61582400),"
Woodland Hills Christian School
15100 Jason Drive
Alexander, AR 72002
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Woodland Hills Christian School",'Alexander=' + Alexander.length); Little_Rock[Little_Rock.length] = createMarker(new GPoint(-92.31061100,34.72907700),"
Words Of Outreach Christian Academy
3300 Asher Avenue
Little Rock, AR 72204
Co-ed school, 5-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Words Of Outreach Christian Academy",'Little_Rock=' + Little_Rock.length); map.removeOverlays(Alexander); map.removeOverlays(Arkadelphia); map.removeOverlays(Bald_Knob); map.removeOverlays(Bryant); map.removeOverlays(Camden); map.removeOverlays(Crossett); map.removeOverlays(Dell); map.removeOverlays(Elm_Springs); map.removeOverlays(Eureka_Springs); map.removeOverlays(Forrest_City); map.removeOverlays(Fort_Smith); map.removeOverlays(Harrison); map.removeOverlays(Hot_Springs); map.removeOverlays(Jonesboro); map.removeOverlays(Little_Rock); map.removeOverlays(Marianna); map.removeOverlays(Mena); map.removeOverlays(Monticello); map.removeOverlays(Mountain_Home); map.removeOverlays(N_Little_Rock); map.removeOverlays(Nashville); map.removeOverlays(North_Little_Rock); map.removeOverlays(Pine_Bluff); map.removeOverlays(Rogers); map.removeOverlays(Russellville); map.removeOverlays(Searcy); map.removeOverlays(Van_Buren); map.removeOverlays(Warm_Springs); map.removeOverlays(West_Helena); setTimeout(function(){map.addOverlays(Alexander)},1000); setTimeout(function(){map.addOverlays(Arkadelphia)},1000); setTimeout(function(){map.addOverlays(Bald_Knob)},1000); setTimeout(function(){map.addOverlays(Bryant)},1000); setTimeout(function(){map.addOverlays(Camden)},1000); setTimeout(function(){map.addOverlays(Crossett)},1000); setTimeout(function(){map.addOverlays(Dell)},1000); setTimeout(function(){map.addOverlays(Elm_Springs)},1000); setTimeout(function(){map.addOverlays(Eureka_Springs)},1000); setTimeout(function(){map.addOverlays(Forrest_City)},1000); setTimeout(function(){map.addOverlays(Fort_Smith)},1000); setTimeout(function(){map.addOverlays(Harrison)},1000); setTimeout(function(){map.addOverlays(Hot_Springs)},1000); setTimeout(function(){map.addOverlays(Jonesboro)},1000); setTimeout(function(){map.addOverlays(Little_Rock)},1000); setTimeout(function(){map.addOverlays(Marianna)},1000); setTimeout(function(){map.addOverlays(Mena)},1000); setTimeout(function(){map.addOverlays(Monticello)},1000); setTimeout(function(){map.addOverlays(Mountain_Home)},1000); setTimeout(function(){map.addOverlays(N_Little_Rock)},1000); setTimeout(function(){map.addOverlays(Nashville)},1000); setTimeout(function(){map.addOverlays(North_Little_Rock)},1000); setTimeout(function(){map.addOverlays(Pine_Bluff)},1000); setTimeout(function(){map.addOverlays(Rogers)},1000); setTimeout(function(){map.addOverlays(Russellville)},1000); setTimeout(function(){map.addOverlays(Searcy)},1000); setTimeout(function(){map.addOverlays(Van_Buren)},1000); setTimeout(function(){map.addOverlays(Warm_Springs)},1000); setTimeout(function(){map.addOverlays(West_Helena)},1000); maxLng = -90.05690000; maxLat = 36.47890000; minLng = -94.40361600; minLat = 33.16955600; reCenterMap(); } // End addStateMarkers JavaScript Function // Takes an array of markers and centers/zooms map based on marker range function centerByArray(myArray, recenter, newMaxMin) { if (newMaxMin == true) reMaxMin(myArray); for (var i = 0; i < myArray.length; i++) { var markLng = myArray[i].getPoint().x; var markLat = myArray[i].getPoint().y; if (markLat > maxLat) maxLat = markLat; if (markLng > maxLng) maxLng = markLng; if (markLat < minLat) minLat = markLat; if (markLng < minLng) minLng = markLng; } if (recenter) reCenterMap(); } // Reinit max/mins function reMaxMin(myArray) { maxLng = myArray[0].getPoint().x; maxLat = myArray[0].getPoint().y; minLng = myArray[0].getPoint().x; minLat = myArray[0].getPoint().y; } // Recenter map based on global max/mins function reCenterMap() { var bounds = new GLatLngBounds(); bounds.extend(new GLatLng(minLat, minLng)); bounds.extend(new GLatLng(maxLat, maxLng)); 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 = map.getBoundsZoomLevel(bounds); map.setCenter(center,zoom); //map.setCenter(center,11); /* var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 ); var delta = new GSize(maxLng - minLng, maxLat - minLat); var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize); if (minZoom < 4) minZoom = 4; // Lowest possible zoom is 4 map.centerAndZoom(center, minZoom); */ } // Fires when drop down list of schools changes function selectChange(selection) { var myVal = selection.options[selection.selectedIndex].value; map.closeInfoWindow(); // Add entire array based on variable type if (myVal.indexOf('all') != -1 && myVal != 'all') { var temp = myVal.split('='); var showArray = temp[1]; // If Array is > X amount of markers, then open in a new page if (eval(showArray).length > 20) // New window depends on whether or not we're on the search page if (location.href.indexOf('nearby_schools.php') == -1) window.open(location.href + '/map/' + showArray); else window.open('/search//////' + showArray); map.removeOverlays(Alexander); map.removeOverlays(Arkadelphia); map.removeOverlays(Bald_Knob); map.removeOverlays(Bryant); map.removeOverlays(Camden); map.removeOverlays(Crossett); map.removeOverlays(Dell); map.removeOverlays(Elm_Springs); map.removeOverlays(Eureka_Springs); map.removeOverlays(Forrest_City); map.removeOverlays(Fort_Smith); map.removeOverlays(Harrison); map.removeOverlays(Hot_Springs); map.removeOverlays(Jonesboro); map.removeOverlays(Little_Rock); map.removeOverlays(Marianna); map.removeOverlays(Mena); map.removeOverlays(Monticello); map.removeOverlays(Mountain_Home); map.removeOverlays(N_Little_Rock); map.removeOverlays(Nashville); map.removeOverlays(North_Little_Rock); map.removeOverlays(Pine_Bluff); map.removeOverlays(Rogers); map.removeOverlays(Russellville); map.removeOverlays(Searcy); map.removeOverlays(Van_Buren); map.removeOverlays(Warm_Springs); map.removeOverlays(West_Helena); map.addOverlays(eval(showArray)); centerByArray(eval(showArray), true, true); // Center and zoom on set of markers } // Add individual markers if (myVal.indexOf('all') == -1 && myVal != 'all' && myVal.length) { var temp = myVal.split('='); var myArray = temp[0]; var myIndex = parseInt(temp[1]) - 1; document.getElementById('map').width = "750"; map.removeOverlay(eval(myArray)[myIndex]); map.addOverlay(eval(myArray)[myIndex]); GEvent.trigger(eval(myArray)[myIndex],'click'); } // Show all markers if (myVal == 'all') { cntMarker = 0; reMaxMin(Crossett);map.removeOverlays(Alexander); map.removeOverlays(Arkadelphia); map.removeOverlays(Bald_Knob); map.removeOverlays(Bryant); map.removeOverlays(Camden); map.removeOverlays(Crossett); map.removeOverlays(Dell); map.removeOverlays(Elm_Springs); map.removeOverlays(Eureka_Springs); map.removeOverlays(Forrest_City); map.removeOverlays(Fort_Smith); map.removeOverlays(Harrison); map.removeOverlays(Hot_Springs); map.removeOverlays(Jonesboro); map.removeOverlays(Little_Rock); map.removeOverlays(Marianna); map.removeOverlays(Mena); map.removeOverlays(Monticello); map.removeOverlays(Mountain_Home); map.removeOverlays(N_Little_Rock); map.removeOverlays(Nashville); map.removeOverlays(North_Little_Rock); map.removeOverlays(Pine_Bluff); map.removeOverlays(Rogers); map.removeOverlays(Russellville); map.removeOverlays(Searcy); map.removeOverlays(Van_Buren); map.removeOverlays(Warm_Springs); map.removeOverlays(West_Helena); map.addOverlays(Alexander); centerByArray(Alexander, false, false); cntMarker += Alexander.length; map.addOverlays(Arkadelphia); centerByArray(Arkadelphia, false, false); cntMarker += Arkadelphia.length; map.addOverlays(Bald_Knob); centerByArray(Bald_Knob, false, false); cntMarker += Bald_Knob.length; map.addOverlays(Bryant); centerByArray(Bryant, false, false); cntMarker += Bryant.length; map.addOverlays(Camden); centerByArray(Camden, false, false); cntMarker += Camden.length; map.addOverlays(Crossett); centerByArray(Crossett, false, false); cntMarker += Crossett.length; map.addOverlays(Dell); centerByArray(Dell, false, false); cntMarker += Dell.length; map.addOverlays(Elm_Springs); centerByArray(Elm_Springs, false, false); cntMarker += Elm_Springs.length; map.addOverlays(Eureka_Springs); centerByArray(Eureka_Springs, false, false); cntMarker += Eureka_Springs.length; map.addOverlays(Forrest_City); centerByArray(Forrest_City, false, false); cntMarker += Forrest_City.length; map.addOverlays(Fort_Smith); centerByArray(Fort_Smith, false, false); cntMarker += Fort_Smith.length; map.addOverlays(Harrison); centerByArray(Harrison, false, false); cntMarker += Harrison.length; map.addOverlays(Hot_Springs); centerByArray(Hot_Springs, false, false); cntMarker += Hot_Springs.length; map.addOverlays(Jonesboro); centerByArray(Jonesboro, false, false); cntMarker += Jonesboro.length; map.addOverlays(Little_Rock); centerByArray(Little_Rock, false, false); cntMarker += Little_Rock.length; map.addOverlays(Marianna); centerByArray(Marianna, false, false); cntMarker += Marianna.length; map.addOverlays(Mena); centerByArray(Mena, false, false); cntMarker += Mena.length; map.addOverlays(Monticello); centerByArray(Monticello, false, false); cntMarker += Monticello.length; map.addOverlays(Mountain_Home); centerByArray(Mountain_Home, false, false); cntMarker += Mountain_Home.length; map.addOverlays(N_Little_Rock); centerByArray(N_Little_Rock, false, false); cntMarker += N_Little_Rock.length; map.addOverlays(Nashville); centerByArray(Nashville, false, false); cntMarker += Nashville.length; map.addOverlays(North_Little_Rock); centerByArray(North_Little_Rock, false, false); cntMarker += North_Little_Rock.length; map.addOverlays(Pine_Bluff); centerByArray(Pine_Bluff, false, false); cntMarker += Pine_Bluff.length; map.addOverlays(Rogers); centerByArray(Rogers, false, false); cntMarker += Rogers.length; map.addOverlays(Russellville); centerByArray(Russellville, false, false); cntMarker += Russellville.length; map.addOverlays(Searcy); centerByArray(Searcy, false, false); cntMarker += Searcy.length; map.addOverlays(Van_Buren); centerByArray(Van_Buren, false, false); cntMarker += Van_Buren.length; map.addOverlays(Warm_Springs); centerByArray(Warm_Springs, false, false); cntMarker += Warm_Springs.length; map.addOverlays(West_Helena); centerByArray(West_Helena, false, false); cntMarker += West_Helena.length; centerByArray(Crossett,true, false); if (cntMarker > 20) // New window depends on whether or not we're on the search page if (location.href.indexOf('schools-by-distance') == -1) window.open(location.href + '/map/all'); else window.open('/search///30759,33067,1010,840,838,878,851,961,894,903,33351,959,1012,969,1011,33065,924,950,882,33857,854,1000,873,843,33067,32050,1010,840,838,878,997,851,907,961,894,903,33351,959,34703,883,1012,969,1011,1017,33065,924,902,950,882,35809,895,949,33857,35808,854,32048,33353,1000,873,/all'); //window.open('/map.php?type=2&schools=30759,33067,1010,840,838,878,851,961,894,903,33351,959,1012,969,1011,33065,924,950,882,33857,854,1000,873,843,33067,32050,1010,840,838,878,997,851,907,961,894,903,33351,959,34703,883,1012,969,1011,1017,33065,924,902,950,882,35809,895,949,33857,35808,854,32048,33353,1000,873,&school_level=&radius=&zipcode=&school_type_search=&school_type_code='); } } function createMarker(point, label, icon) { var marker = new GMarker(point, icon); var html = label; GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; }