function addMarkers() { mySelect = document.getElementById('selection'); Champaign = [];Rantoul = [];Fisher = [];Gifford = [];Homer = [];Broadlands = [];Urbana = [];Mahomet = [];Ludlow = [];Ogden = [];Pesotum = [];Philo = [];Royal = [];Thomasboro = [];Sadorus = [];Sidney = [];Longview = [];St_Joseph = [];Saint_Joseph = [];Tolono = [];mySelect.options[mySelect.options.length] = new Option("Broadlands schools",'all=Broadlands'); mySelect.options[mySelect.options.length] = new Option("Champaign schools",'all=Champaign'); mySelect.options[mySelect.options.length] = new Option("Fisher schools",'all=Fisher'); mySelect.options[mySelect.options.length] = new Option("Gifford schools",'all=Gifford'); mySelect.options[mySelect.options.length] = new Option("Homer schools",'all=Homer'); mySelect.options[mySelect.options.length] = new Option("Longview schools",'all=Longview'); mySelect.options[mySelect.options.length] = new Option("Ludlow schools",'all=Ludlow'); mySelect.options[mySelect.options.length] = new Option("Mahomet schools",'all=Mahomet'); mySelect.options[mySelect.options.length] = new Option("Ogden schools",'all=Ogden'); mySelect.options[mySelect.options.length] = new Option("Pesotum schools",'all=Pesotum'); mySelect.options[mySelect.options.length] = new Option("Philo schools",'all=Philo'); mySelect.options[mySelect.options.length] = new Option("Rantoul schools",'all=Rantoul'); mySelect.options[mySelect.options.length] = new Option("Royal schools",'all=Royal'); mySelect.options[mySelect.options.length] = new Option("Sadorus schools",'all=Sadorus'); mySelect.options[mySelect.options.length] = new Option("Saint Joseph schools",'all=Saint_Joseph'); mySelect.options[mySelect.options.length] = new Option("Sidney schools",'all=Sidney'); mySelect.options[mySelect.options.length] = new Option("St Joseph schools",'all=St_Joseph'); mySelect.options[mySelect.options.length] = new Option("Thomasboro schools",'all=Thomasboro'); mySelect.options[mySelect.options.length] = new Option("Tolono schools",'all=Tolono'); mySelect.options[mySelect.options.length] = new Option("Urbana schools",'all=Urbana'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Champaign[Champaign.length] = createMarker(new GPoint(-88.25777435,40.09395218),"
Bottenfield Elementary School
1801 S Prospect Ave
Champaign, IL 61820

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bottenfield Elementary School",'Champaign=' + Champaign.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.16908264,40.30694962),"
Broadmeadow Elementary School
500 Sunview Dr
Rantoul, IL 61866

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Broadmeadow Elementary School",'Rantoul=' + Rantoul.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.27253723,40.09806442),"
Carrie Busey Elementary School
1605 W Kirby Ave
Champaign, IL 61821

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Carrie Busey Elementary School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.28147888,40.10696411),"
Centennial High School
913 S Crescent Dr
Champaign, IL 61821

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Centennial High School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.25210571,40.11643600),"
Central High School
610 W University Ave
Champaign, IL 61820

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Central High School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.23336029,40.11526489),"
Champaign Early Childhood Cntr Elementary School
809 N Neil St
Champaign, IL 61820

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Champaign Early Childhood Cntr Elementary School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.24377441,40.12655258),"
Columbia Center
1103 N Neil St
Champaign, IL 61820

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Columbia Center",'Champaign=' + Champaign.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.15064200,40.30943400),"
Connections - High School Level
201 S Sheldon St
Rantoul, IL 61866

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Connections - High School Level",'Rantoul=' + Rantoul.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.26313019,40.11716461),"
Dr Howard Elementary School
1117 W Park Ave
Champaign, IL 61821

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dr Howard Elementary School",'Champaign=' + Champaign.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.13632202,40.31645584),"
Eastlawn Elementary School
650 N Maplewood Dr
Rantoul, IL 61866

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eastlawn Elementary School",'Rantoul=' + Rantoul.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.24706268,40.11033630),"
Edison Middle School
306 W Green St
Champaign, IL 61820

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Edison Middle School",'Champaign=' + Champaign.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.15391541,40.30686188),"
Educ For Employment Sys 330
400 E Wabash Ave
Rantoul, IL 61866

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Educ For Employment Sys 330",'Rantoul=' + Rantoul.length); Fisher[Fisher.length] = createMarker(new GPoint(-88.35729980,40.31660080),"
Fisher Grade School
Po Box 700
Fisher, IL 61843

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fisher Grade School",'Fisher=' + Fisher.length); Fisher[Fisher.length] = createMarker(new GPoint(-88.35729980,40.31660080),"
Fisher Jr/sr High School
Po Box 670
Fisher, IL 61843

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fisher Jr/sr High School",'Fisher=' + Fisher.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.25328064,40.12332535),"
Franklin Middle School
817 N Harris Ave
Champaign, IL 61820

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Franklin Middle School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.27307892,40.13635635),"
Garden Hills Elementary School
2001 Garden Hills Dr
Champaign, IL 61821

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Garden Hills Elementary School",'Champaign=' + Champaign.length); Gifford[Gifford.length] = createMarker(new GPoint(-88.02320099,40.31959915),"
Gifford Grade School
Po Box 70
Gifford, IL 61847

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Gifford Grade School",'Gifford=' + Gifford.length); Homer[Homer.length] = createMarker(new GPoint(-87.96434784,40.03623581),"
Heritage Elementary School -homer
512 W 1st St
Homer, IL 61849

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Heritage Elementary School -homer",'Homer=' + Homer.length); Broadlands[Broadlands.length] = createMarker(new GPoint(-87.99659729,39.91310120),"
Heritage High School
Po Box 260
Broadlands, IL 61816

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Heritage High School",'Broadlands=' + Broadlands.length); Homer[Homer.length] = createMarker(new GPoint(-87.96434784,40.03623581),"
Heritage Junior High School
512 W 1st St
Homer, IL 61849

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Heritage Junior High School",'Homer=' + Homer.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.15391541,40.30686188),"
J W Eater Junior High School
400 E Wabash Ave
Rantoul, IL 61866

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("J W Eater Junior High School",'Rantoul=' + Rantoul.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.28142548,40.10440063),"
Jefferson Middle School
1115 S Crescent Dr
Champaign, IL 61821

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Jefferson Middle School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.29187775,40.10515213),"
Kenwood Elementary School
1001 S Stratford Dr
Champaign, IL 61821

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kenwood Elementary School",'Champaign=' + Champaign.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.19052124,40.09645844),"
Leal Elementary School
312 W Oregon
Urbana, IL 61801

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Leal Elementary School",'Urbana=' + Urbana.length); Mahomet[Mahomet.length] = createMarker(new GPoint(-88.39440155,40.20149994),"
Lincoln Trail Elementary School
Po Box 200
Mahomet, IL 61853

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lincoln Trail Elementary School",'Mahomet=' + Mahomet.length); Ludlow[Ludlow.length] = createMarker(new GPoint(-88.12779999,40.37910080),"
Ludlow Elementary School
Po Box 130
Ludlow, IL 60949

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ludlow Elementary School",'Ludlow=' + Ludlow.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.22232056,40.12023544),"
M L King Junior Elementary School
1108 W Fairview Ave
Urbana, IL 61801

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("M L King Junior Elementary School",'Urbana=' + Urbana.length); Mahomet[Mahomet.length] = createMarker(new GPoint(-88.39440155,40.20149994),"
Mahomet-seymour High School
Po Box 1098
Mahomet, IL 61853

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mahomet-seymour High School",'Mahomet=' + Mahomet.length); Mahomet[Mahomet.length] = createMarker(new GPoint(-88.39440155,40.20149994),"
Mahomet-seymour Junior High School
Po Box 560
Mahomet, IL 61853

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mahomet-seymour Junior High School",'Mahomet=' + Mahomet.length); Mahomet[Mahomet.length] = createMarker(new GPoint(-88.40807343,40.19655228),"
Middletown Early Childhood Center
Po Box 229
Mahomet, IL 61853

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Middletown Early Childhood Center",'Mahomet=' + Mahomet.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.15071869,40.31439972),"
Northview Elementary School
400 N Sheldon St
Rantoul, IL 61866

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Northview Elementary School",'Rantoul=' + Rantoul.length); Ogden[Ogden.length] = createMarker(new GPoint(-87.96620178,40.13750076),"
Ogden Elementary School
Po Box 99
Ogden, IL 61859

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ogden Elementary School",'Ogden=' + Ogden.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.15064200,40.30943400),"
Pathways
201 S Sheldon St
Rantoul, IL 61866

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pathways",'Rantoul=' + Rantoul.length); Pesotum[Pesotum.length] = createMarker(new GPoint(-88.28089905,39.91550064),"
Pesotum Grade School
P O Box 19
Pesotum, IL 61863

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pesotum Grade School",'Pesotum=' + Pesotum.length); Philo[Philo.length] = createMarker(new GPoint(-88.15660095,40.00339890),"
Philo Grade School
Po Box 259
Philo, IL 61864

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Philo Grade School",'Philo=' + Philo.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.12722015,40.30722427),"
Pleasant Acres Elementary School
1649 Harper Dr
Rantoul, IL 61866

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pleasant Acres Elementary School",'Rantoul=' + Rantoul.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.18128967,40.10583878),"
Prairie Elementary School
2102 E Washington St
Urbana, IL 61801

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Prairie Elementary School",'Urbana=' + Urbana.length); Royal[Royal.length] = createMarker(new GPoint(-87.97270203,40.19269943),"
Prairieview Elementary School
Po Box 27
Royal, IL 61871

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Prairieview Elementary School",'Royal=' + Royal.length); Thomasboro[Thomasboro.length] = createMarker(new GPoint(-88.18444061,40.24151993),"
Prairieview Junior High School
2499 Cr 2100 E
Thomasboro, IL 61878

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Prairieview Junior High School",'Thomasboro=' + Thomasboro.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.24139404,40.11626434),"
R E A D Y High School
45 E University Ave
Champaign, IL 61820

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("R E A D Y High School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.25042725,40.11843872),"
R E A D Y Middle School
512 W Church Street
Champaign, IL 61820

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("R E A D Y Middle School",'Champaign=' + Champaign.length); Rantoul[Rantoul.length] = createMarker(new GPoint(-88.15086365,40.30925369),"
Rantoul Township High School
200 S Sheldon St
Rantoul, IL 61866

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rantoul Township High School",'Rantoul=' + Rantoul.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.28739929,40.09136200),"
Robeson Elementary School
2501 Southmoor Dr
Champaign, IL 61821

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Robeson Elementary School",'Champaign=' + Champaign.length); Sadorus[Sadorus.length] = createMarker(new GPoint(-88.35870361,39.94820023),"
Sadorus Grade School
Po Box 79
Sadorus, IL 61872

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sadorus Grade School",'Sadorus=' + Sadorus.length); Mahomet[Mahomet.length] = createMarker(new GPoint(-88.39440155,40.20149994),"
Sangamon Elementary School
Po Box 198
Mahomet, IL 61853

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sangamon Elementary School",'Mahomet=' + Mahomet.length); Sidney[Sidney.length] = createMarker(new GPoint(-88.07489777,40.01430130),"
Sidney Grade School
Po Box 590
Sidney, IL 61877

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sidney Grade School",'Sidney=' + Sidney.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.25562286,40.10878754),"
South Side Elementary School
712 S Pine St
Champaign, IL 61820

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Side Elementary School",'Champaign=' + Champaign.length); Longview[Longview.length] = createMarker(new GPoint(-88.06720600,39.88491400),"
Spectrum - Longview
108 Wesley St
Longview, IL 61852

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Spectrum - Longview",'Longview=' + Longview.length); St_Joseph[St_Joseph.length] = createMarker(new GPoint(-88.03791809,40.10865021),"
St Joseph Elementary School
Po Box 409
St Joseph, IL 61873

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St Joseph Elementary School",'St_Joseph=' + St_Joseph.length); St_Joseph[St_Joseph.length] = createMarker(new GPoint(-88.04080200,40.11790085),"
St Joseph Junior High School
Po Box 409
St Joseph, IL 61873

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Joseph Junior High School",'St_Joseph=' + St_Joseph.length); St_Joseph[St_Joseph.length] = createMarker(new GPoint(-88.04050100,40.11317500),"
St Joseph Middle School
Po Box 409
St Joseph, IL 61873

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Joseph Middle School",'St_Joseph=' + St_Joseph.length); Saint_Joseph[Saint_Joseph.length] = createMarker(new GPoint(-88.04080200,40.11790085),"
St Joseph-ogden High School
Po Box 890
Saint Joseph, IL 61873

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Joseph-ogden High School",'Saint_Joseph=' + Saint_Joseph.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.24511719,40.12474823),"
Stratton Elementary School
902 N Randolph St
Champaign, IL 61820

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stratton Elementary School",'Champaign=' + Champaign.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.18565369,40.09876633),"
Thomas Paine Elementary School
1801 James Cherry Dr
Urbana, IL 61801

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thomas Paine Elementary School",'Urbana=' + Urbana.length); Thomasboro[Thomasboro.length] = createMarker(new GPoint(-88.16049957,40.24150085),"
Thomasboro Grade School
201 N Phillips St
Thomasboro, IL 61878

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Thomasboro Grade School",'Thomasboro=' + Thomasboro.length); Tolono[Tolono.length] = createMarker(new GPoint(-88.25610352,39.98329926),"
Tolono Primary School
Box R 200 N Bourne
Tolono, IL 61880

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tolono Primary School",'Tolono=' + Tolono.length); Philo[Philo.length] = createMarker(new GPoint(-88.16732788,40.02563858),"
Unity East Elementary School
1638 County Rd 1000n
Philo, IL 61864

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Unity East Elementary School",'Philo=' + Philo.length); Tolono[Tolono.length] = createMarker(new GPoint(-88.25016785,39.99566269),"
Unity High School
1127 County Rd 800n
Tolono, IL 61880

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Unity High School",'Tolono=' + Tolono.length); Tolono[Tolono.length] = createMarker(new GPoint(-88.25119781,39.99566269),"
Unity Junior High School
1121 County Rd 800n
Tolono, IL 61880

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Unity Junior High School",'Tolono=' + Tolono.length); Tolono[Tolono.length] = createMarker(new GPoint(-88.26496124,39.96666336),"
Unity West Elementary School
1035 County Rd 600n
Tolono, IL 61880

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Unity West Elementary School",'Tolono=' + Tolono.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.22432709,40.11293793),"
University Of Illinois High School
1212 W Springfield
Urbana, IL 61801

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("University Of Illinois High School",'Urbana=' + Urbana.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.20941925,40.10464859),"
Urbana High School
1002 S Race St
Urbana, IL 61801

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Urbana High School",'Urbana=' + Urbana.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.20517731,40.10355377),"
Urbana Middle School
1201 S Vine St
Urbana, IL 61801

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Urbana Middle School",'Urbana=' + Urbana.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.28225708,40.07634354),"
Vernon L Barkstall Elementary School
2201 Hallbeck Dr
Champaign, IL 61822

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Vernon L Barkstall Elementary School",'Champaign=' + Champaign.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.20743561,40.12296677),"
Washington Early Childhood Center
1102 N Broadway Ave
Urbana, IL 61801

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Early Childhood Center",'Urbana=' + Urbana.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.23014069,40.12323761),"
Washington Elementary School
606 E Grove St
Champaign, IL 61820

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Champaign=' + Champaign.length); Champaign[Champaign.length] = createMarker(new GPoint(-88.26737976,40.10884857),"
Westview Elementary School
703 S Russell St
Champaign, IL 61821

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Westview Elementary School",'Champaign=' + Champaign.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.19992065,40.09922791),"
Wiley Elementary School
1602 S Anderson
Urbana, IL 61801

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Wiley Elementary School",'Urbana=' + Urbana.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.19931793,40.09054565),"
Yankee Ridge Elementary School
2102 S Anderson St
Urbana, IL 61801

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Yankee Ridge Elementary School",'Urbana=' + Urbana.length); Urbana[Urbana.length] = createMarker(new GPoint(-88.18900299,40.11309814),"
Youth Detention Center
400 S Art Bartell Rd
Urbana, IL 61802

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Youth Detention Center",'Urbana=' + Urbana.length); } // 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,10); /* 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(Broadlands); map.removeOverlays(Champaign); map.removeOverlays(Fisher); map.removeOverlays(Gifford); map.removeOverlays(Homer); map.removeOverlays(Longview); map.removeOverlays(Ludlow); map.removeOverlays(Mahomet); map.removeOverlays(Ogden); map.removeOverlays(Pesotum); map.removeOverlays(Philo); map.removeOverlays(Rantoul); map.removeOverlays(Royal); map.removeOverlays(Sadorus); map.removeOverlays(Saint_Joseph); map.removeOverlays(Sidney); map.removeOverlays(St_Joseph); map.removeOverlays(Thomasboro); map.removeOverlays(Tolono); map.removeOverlays(Urbana); 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(Champaign);map.removeOverlays(Broadlands); map.removeOverlays(Champaign); map.removeOverlays(Fisher); map.removeOverlays(Gifford); map.removeOverlays(Homer); map.removeOverlays(Longview); map.removeOverlays(Ludlow); map.removeOverlays(Mahomet); map.removeOverlays(Ogden); map.removeOverlays(Pesotum); map.removeOverlays(Philo); map.removeOverlays(Rantoul); map.removeOverlays(Royal); map.removeOverlays(Sadorus); map.removeOverlays(Saint_Joseph); map.removeOverlays(Sidney); map.removeOverlays(St_Joseph); map.removeOverlays(Thomasboro); map.removeOverlays(Tolono); map.removeOverlays(Urbana); map.addOverlays(Broadlands); centerByArray(Broadlands, false, false); cntMarker += Broadlands.length; map.addOverlays(Champaign); centerByArray(Champaign, false, false); cntMarker += Champaign.length; map.addOverlays(Fisher); centerByArray(Fisher, false, false); cntMarker += Fisher.length; map.addOverlays(Gifford); centerByArray(Gifford, false, false); cntMarker += Gifford.length; map.addOverlays(Homer); centerByArray(Homer, false, false); cntMarker += Homer.length; map.addOverlays(Longview); centerByArray(Longview, false, false); cntMarker += Longview.length; map.addOverlays(Ludlow); centerByArray(Ludlow, false, false); cntMarker += Ludlow.length; map.addOverlays(Mahomet); centerByArray(Mahomet, false, false); cntMarker += Mahomet.length; map.addOverlays(Ogden); centerByArray(Ogden, false, false); cntMarker += Ogden.length; map.addOverlays(Pesotum); centerByArray(Pesotum, false, false); cntMarker += Pesotum.length; map.addOverlays(Philo); centerByArray(Philo, false, false); cntMarker += Philo.length; map.addOverlays(Rantoul); centerByArray(Rantoul, false, false); cntMarker += Rantoul.length; map.addOverlays(Royal); centerByArray(Royal, false, false); cntMarker += Royal.length; map.addOverlays(Sadorus); centerByArray(Sadorus, false, false); cntMarker += Sadorus.length; map.addOverlays(Saint_Joseph); centerByArray(Saint_Joseph, false, false); cntMarker += Saint_Joseph.length; map.addOverlays(Sidney); centerByArray(Sidney, false, false); cntMarker += Sidney.length; map.addOverlays(St_Joseph); centerByArray(St_Joseph, false, false); cntMarker += St_Joseph.length; map.addOverlays(Thomasboro); centerByArray(Thomasboro, false, false); cntMarker += Thomasboro.length; map.addOverlays(Tolono); centerByArray(Tolono, false, false); cntMarker += Tolono.length; map.addOverlays(Urbana); centerByArray(Urbana, false, false); cntMarker += Urbana.length; centerByArray(Champaign,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////all'); } }