function addMarkers() { mySelect = document.getElementById('selection'); Hebron = [];Algonquin = [];Fox_River_Grove = [];Cary = [];Crystal_Lake = [];Harvard = [];Mc_Henry = [];Lake_In_The_Hills = [];Woodstock = [];Island_Lake = [];Barrington = [];Union = [];Wonder_Lake = [];Marengo = [];Huntley = [];Johnsburg = [];Richmond = [];Ringwood = [];Spring_Grove = [];mySelect.options[mySelect.options.length] = new Option("Algonquin schools",'all=Algonquin'); mySelect.options[mySelect.options.length] = new Option("Barrington schools",'all=Barrington'); mySelect.options[mySelect.options.length] = new Option("Cary schools",'all=Cary'); mySelect.options[mySelect.options.length] = new Option("Crystal Lake schools",'all=Crystal_Lake'); mySelect.options[mySelect.options.length] = new Option("Fox River Grove schools",'all=Fox_River_Grove'); mySelect.options[mySelect.options.length] = new Option("Harvard schools",'all=Harvard'); mySelect.options[mySelect.options.length] = new Option("Hebron schools",'all=Hebron'); mySelect.options[mySelect.options.length] = new Option("Huntley schools",'all=Huntley'); mySelect.options[mySelect.options.length] = new Option("Island Lake schools",'all=Island_Lake'); mySelect.options[mySelect.options.length] = new Option("Johnsburg schools",'all=Johnsburg'); mySelect.options[mySelect.options.length] = new Option("Lake In The Hills schools",'all=Lake_In_The_Hills'); mySelect.options[mySelect.options.length] = new Option("Marengo schools",'all=Marengo'); mySelect.options[mySelect.options.length] = new Option("Mc Henry schools",'all=Mc_Henry'); mySelect.options[mySelect.options.length] = new Option("Richmond schools",'all=Richmond'); mySelect.options[mySelect.options.length] = new Option("Ringwood schools",'all=Ringwood'); mySelect.options[mySelect.options.length] = new Option("Spring Grove schools",'all=Spring_Grove'); mySelect.options[mySelect.options.length] = new Option("Union schools",'all=Union'); mySelect.options[mySelect.options.length] = new Option("Wonder Lake schools",'all=Wonder_Lake'); mySelect.options[mySelect.options.length] = new Option("Woodstock schools",'all=Woodstock'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Hebron[Hebron.length] = createMarker(new GPoint(-88.42382812,42.46486282),"
Alden Hebron Elementary School
11915 Price Rd
Hebron, IL 60034

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Alden Hebron Elementary School",'Hebron=' + Hebron.length); Hebron[Hebron.length] = createMarker(new GPoint(-88.43141174,42.46637344),"
Alden-hebron High School
9604 Illinois St
Hebron, IL 60034

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Alden-hebron High School",'Hebron=' + Hebron.length); Hebron[Hebron.length] = createMarker(new GPoint(-88.43141174,42.46637344),"
Alden-hebron Middle School
9604 Illinois St
Hebron, IL 60034

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Alden-hebron Middle School",'Hebron=' + Hebron.length); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.28125763,42.16736984),"
Algonquin Middle School
520 Longwood Dr
Algonquin, IL 60102

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Algonquin Middle School",'Algonquin=' + Algonquin.length); Fox_River_Grove[Fox_River_Grove.length] = createMarker(new GPoint(-88.22895813,42.18970490),"
Algonquin Road Elementary School
975 Algonquin Rd
Fox River Grove, IL 60021

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Algonquin Road Elementary School",'Fox_River_Grove=' + Fox_River_Grove.length); Cary[Cary.length] = createMarker(new GPoint(-88.25199890,42.20647812),"
Briargate Elementary School
100 S Wulff St
Cary, IL 60013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Briargate Elementary School",'Cary=' + Cary.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.32096863,42.21635437),"
Canterbury Elementary School
875 Canterbury Ln
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Canterbury Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Cary[Cary.length] = createMarker(new GPoint(-88.23807526,42.23438644),"
Cary Junior High School
2109 Crystal Lake Rd
Cary, IL 60013

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Cary Junior High School",'Cary=' + Cary.length); Cary[Cary.length] = createMarker(new GPoint(-88.23988342,42.21992493),"
Cary-grove Community High School
2208 Three Oaks Rd
Cary, IL 60013

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cary-grove Community High School",'Cary=' + Cary.length); Harvard[Harvard.length] = createMarker(new GPoint(-88.61331177,42.42124557),"
Central Elementary School
401 N Division St
Harvard, IL 60033

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Harvard=' + Harvard.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.26912689,42.33786392),"
Chauncey H Duker School
3711 W Kane Ave
Mc Henry, IL 60050

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Chauncey H Duker School",'Mc_Henry=' + Mc_Henry.length); Lake_In_The_Hills[Lake_In_The_Hills.length] = createMarker(new GPoint(-88.38570404,42.18303680),"
Chesak Elementary School
10910 Reed Rd
Lake In The Hills, IL 60156

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chesak Elementary School",'Lake_In_The_Hills=' + Lake_In_The_Hills.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.44632721,42.32136154),"
Clay Elementary School
112 Grove St
Woodstock, IL 60098

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Clay Elementary School",'Woodstock=' + Woodstock.length); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.37588500,42.16123500),"
Conley Elementary School
750 Academic Dr
Algonquin, IL 60102

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Conley Elementary School",'Algonquin=' + Algonquin.length); Island_Lake[Island_Lake.length] = createMarker(new GPoint(-88.20837402,42.27996445),"
Cotton Creek School
545 Newport Ct
Island Lake, IL 60042

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cotton Creek School",'Island_Lake=' + Island_Lake.length); Barrington[Barrington.length] = createMarker(new GPoint(-88.17701721,42.15406418),"
Countryside Elementary School
205 W County Line Rd
Barrington, IL 60010

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Countryside Elementary School",'Barrington=' + Barrington.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.32792100,42.21743500),"
Coventry Elementary School
820 Darlington Ln
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Coventry Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.32221985,42.23793030),"
Crystal Lake Central High School
45 W Franklin Ave
Crystal Lake, IL 60014

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Crystal Lake Central High School",'Crystal_Lake=' + Crystal_Lake.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.33815002,42.20965958),"
Crystal Lake South High School
1200 S Mchenry Ave
Crystal Lake, IL 60014

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Crystal Lake South High School",'Crystal_Lake=' + Crystal_Lake.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.44995880,42.31016159),"
Dean Street Elementary School
600 Dean St
Woodstock, IL 60098

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dean Street Elementary School",'Woodstock=' + Woodstock.length); Cary[Cary.length] = createMarker(new GPoint(-88.23995972,42.23444366),"
Deer Path Elementary School
2211 Crystal Lake Rd
Cary, IL 60013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Deer Path Elementary School",'Cary=' + Cary.length); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.28123474,42.16731644),"
Eastview Elementary School
540 Longwood Dr
Algonquin, IL 60102

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eastview Elementary School",'Algonquin=' + Algonquin.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.26748657,42.33814621),"
Edgebrook Elementary School
701 Green St
Mc Henry, IL 60050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edgebrook Elementary School",'Mc_Henry=' + Mc_Henry.length); Union[Union.length] = createMarker(new GPoint(-88.53791046,42.23438644),"
Evergreen Park Early Learning Center
6506 National St
Union, IL 60180

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Evergreen Park Early Learning Center",'Union=' + Union.length); Fox_River_Grove[Fox_River_Grove.length] = createMarker(new GPoint(-88.21381378,42.19665527),"
Fox River Grove Middle School
401 Orchard St
Fox River Grove, IL 60021

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fox River Grove Middle School",'Fox_River_Grove=' + Fox_River_Grove.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.36125183,42.19389343),"
Glacier Ridge Elementary School
1120 Village Rd
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Glacier Ridge Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.42923737,42.30072403),"
Great Expectations
1055 Lake Ave
Woodstock, IL 60098

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Great Expectations",'Woodstock=' + Woodstock.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.38853455,42.39353943),"
Greenwood Elementary School
4618 Greenwood Rd
Woodstock, IL 60098

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Greenwood Elementary School",'Woodstock=' + Woodstock.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.30174255,42.24110031),"
Hannah Beardsley Middle School
515 E Crystal Lk
Crystal Lake, IL 60014

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hannah Beardsley Middle School",'Crystal_Lake=' + Crystal_Lake.length); Wonder_Lake[Wonder_Lake.length] = createMarker(new GPoint(-88.32942200,42.38556290),"
Harrison Elementary School
6809 Mccullom Lk
Wonder Lake, IL 60097

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harrison Elementary School",'Wonder_Lake=' + Wonder_Lake.length); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.34045410,42.16856384),"
Harry D Jacobs High School
2601 Bunker Hill Dr
Algonquin, IL 60102

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Harry D Jacobs High School",'Algonquin=' + Algonquin.length); Harvard[Harvard.length] = createMarker(new GPoint(-88.61091614,42.42764664),"
Harvard High School
1103 N Jefferson St
Harvard, IL 60033

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Harvard High School",'Harvard=' + Harvard.length); Harvard[Harvard.length] = createMarker(new GPoint(-88.60851288,42.43046570),"
Harvard Junior High School
1301 Garfield St
Harvard, IL 60033

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Harvard Junior High School",'Harvard=' + Harvard.length); Marengo[Marengo.length] = createMarker(new GPoint(-88.60900116,42.24160004),"
Hawthorn Elementary School
539 S Locust St
Marengo, IL 60152

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hawthorn Elementary School",'Marengo=' + Marengo.length); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.37710400,42.16198600),"
Heineman Middle School
725 Academic Dr
Algonquin, IL 60102

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Heineman Middle School",'Algonquin=' + Algonquin.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.24893951,42.35021973),"
Hilltop Elementary School
2615 W Lincoln Rd
Mc Henry, IL 60050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hilltop Elementary School",'Mc_Henry=' + Mc_Henry.length); Huntley[Huntley.length] = createMarker(new GPoint(-88.46359253,42.16556168),"
Huntley High School
13719 Harmony Rd
Huntley, IL 60142

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Huntley High School",'Huntley=' + Huntley.length); Huntley[Huntley.length] = createMarker(new GPoint(-88.46365356,42.16556168),"
Huntley Middle School
13721 Harmony Road
Huntley, IL 60142

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Huntley Middle School",'Huntley=' + Huntley.length); Huntley[Huntley.length] = createMarker(new GPoint(-88.43131256,42.16567993),"
Huntley North Elementary School
11302 Lincoln St
Huntley, IL 60142

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Huntley North Elementary School",'Huntley=' + Huntley.length); Huntley[Huntley.length] = createMarker(new GPoint(-88.43131256,42.16567993),"
Huntley North School
11302 Lincoln St
Huntley, IL 60142

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Huntley North School",'Huntley=' + Huntley.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.32478100,42.23930300),"
Husmann Elementary School
131 W Paddock St
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Husmann Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.34444427,42.19334412),"
Indian Prairie Elementary School
651 Village Rd
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Indian Prairie Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Johnsburg[Johnsburg.length] = createMarker(new GPoint(-88.23823547,42.38256454),"
James C Bush Elementary School
2117 W Church St
Johnsburg, IL 60050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("James C Bush Elementary School",'Johnsburg=' + Johnsburg.length); Harvard[Harvard.length] = createMarker(new GPoint(-88.61128235,42.42800140),"
Jefferson Elementary School
1200 N Jefferson St
Harvard, IL 60033

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jefferson Elementary School",'Harvard=' + Harvard.length); Johnsburg[Johnsburg.length] = createMarker(new GPoint(-88.23664093,42.40165329),"
Johnsburg High School
2002 W Ringwood Rd
Johnsburg, IL 60050

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Johnsburg High School",'Johnsburg=' + Johnsburg.length); Johnsburg[Johnsburg.length] = createMarker(new GPoint(-88.23975372,42.38283539),"
Johnsburg Junior High School
2220 W Church St
Johnsburg, IL 60050

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Johnsburg Junior High School",'Johnsburg=' + Johnsburg.length); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.30876923,42.16955185),"
Kenneth E Neubert Elementary School
1100 Huntington Dr
Algonquin, IL 60102

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kenneth E Neubert Elementary School",'Algonquin=' + Algonquin.length); Lake_In_The_Hills[Lake_In_The_Hills.length] = createMarker(new GPoint(-88.35700226,42.18740082),"
Lake In Hills Elementary School
519 Willow St
Lake In The Hills, IL 60156

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lake In Hills Elementary School",'Lake_In_The_Hills=' + Lake_In_The_Hills.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.26808929,42.34333801),"
Landmark Elementary School
3614 Waukegan Rd
Mc Henry, IL 60050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Landmark Elementary School",'Mc_Henry=' + Mc_Henry.length); Huntley[Huntley.length] = createMarker(new GPoint(-88.46371460,42.16556168),"
Leggee Elementary School
13723 Harmony Rd
Huntley, IL 60142

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Leggee Elementary School",'Huntley=' + Huntley.length); Lake_In_The_Hills[Lake_In_The_Hills.length] = createMarker(new GPoint(-88.34693909,42.17809677),"
Lincoln Prairie Elementary School
500 W Harvest Gate
Lake In The Hills, IL 60156

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lincoln Prairie Elementary School",'Lake_In_The_Hills=' + Lake_In_The_Hills.length); Marengo[Marengo.length] = createMarker(new GPoint(-88.59961700,42.24198532),"
Locust Elementary School
816 E Grant Hwy
Marengo, IL 60152

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Locust Elementary School",'Marengo=' + Marengo.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.33970642,42.22542572),"
Lundahl Middle School
560 Nash Rd
Crystal Lake, IL 60014

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lundahl Middle School",'Crystal_Lake=' + Crystal_Lake.length); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.37453000,42.15930300),"
Mackeben Elementary School
800 Academic Dr
Algonquin, IL 60102

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mackeben Elementary School",'Algonquin=' + Algonquin.length); Cary[Cary.length] = createMarker(new GPoint(-88.24712372,42.20960999),"
Maplewood Elementary School
422 W Krenz Ave
Cary, IL 60013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Maplewood Elementary School",'Cary=' + Cary.length); Marengo[Marengo.length] = createMarker(new GPoint(-88.59627533,42.24407959),"
Marengo High School
110 Franks Rd
Marengo, IL 60152

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Marengo High School",'Marengo=' + Marengo.length); Lake_In_The_Hills[Lake_In_The_Hills.length] = createMarker(new GPoint(-88.40302100,42.18529900),"
Marlowe Middle School
9625 Haligus Rd
Lake In The Hills, IL 60156

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Marlowe Middle School",'Lake_In_The_Hills=' + Lake_In_The_Hills.length); Lake_In_The_Hills[Lake_In_The_Hills.length] = createMarker(new GPoint(-88.38549805,42.18303680),"
Martin Elementary School
10920 Reed Rd
Lake In The Hills, IL 60156

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Martin Elementary School",'Lake_In_The_Hills=' + Lake_In_The_Hills.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.44338226,42.33940125),"
Mary Endres Elementary School
2181 N Seminary Ave
Woodstock, IL 60098

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mary Endres Elementary School",'Woodstock=' + Woodstock.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.26721191,42.34151840),"
Mchenry East High School
1012 N Green St
Mc Henry, IL 60050

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mchenry East High School",'Mc_Henry=' + Mc_Henry.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.31359863,42.24884033),"
Mchenry Co Coop For Employ
8900 Us Highway 14
Crystal Lake, IL 60012

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mchenry Co Coop For Employ",'Crystal_Lake=' + Crystal_Lake.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.44877625,42.31377029),"
Mchenry Co Coop For Employ
666 Russel Ct Ste106
Woodstock, IL 60098

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mchenry Co Coop For Employ",'Woodstock=' + Woodstock.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.28881836,42.33591843),"
Mchenry High School-west Campus
4724 W Crystal Lk Rd
Mc Henry, IL 60050

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mchenry High School-west Campus",'Mc_Henry=' + Mc_Henry.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.23868561,42.35050964),"
Mchenry Middle School
2120 W Lincoln Rd
Mc Henry, IL 60050

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mchenry Middle School",'Mc_Henry=' + Mc_Henry.length); Union[Union.length] = createMarker(new GPoint(-88.42923737,42.30072403),"
New Beginnings Center
6506 National St
Union, IL 60180

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Beginnings Center",'Union=' + Union.length); Richmond[Richmond.length] = createMarker(new GPoint(-88.30631256,42.47091675),"
Nippersink Middle School
Po Box 505
Richmond, IL 60071

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Nippersink Middle School",'Richmond=' + Richmond.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.33935547,42.24463654),"
North Elementary School
500 W Woodstock St
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.44338226,42.33885956),"
Northwood Middle School
2121 N Seminary Ave
Woodstock, IL 60098

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Northwood Middle School",'Woodstock=' + Woodstock.length); Cary[Cary.length] = createMarker(new GPoint(-88.23811340,42.21351624),"
Oak Knoll Elementary School
409 N 1st St
Cary, IL 60013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oak Knoll Elementary School",'Cary=' + Cary.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.45821381,42.31563568),"
Olson Middle School
720 W Judd St
Woodstock, IL 60098

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Olson Middle School",'Woodstock=' + Woodstock.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.30612946,42.35317230),"
Parkland School
1802 N Ringwood Rd
Mc Henry, IL 60050

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Parkland School",'Mc_Henry=' + Mc_Henry.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.26015472,42.25991058),"
Prairie Grove Elementary School
3223 Il Rt 176
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Prairie Grove Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.26019287,42.25990677),"
Prairie Grove Junior High School
3225 Il Rt 176
Crystal Lake, IL 60014

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Prairie Grove Junior High School",'Crystal_Lake=' + Crystal_Lake.length); Cary[Cary.length] = createMarker(new GPoint(-88.23394012,42.21576309),"
Prairie Hill School
233 E Oriole Tr
Cary, IL 60013

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Prairie Hill School",'Cary=' + Cary.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.31476593,42.26995087),"
Prairie Ridge High School
6000 Dvorak Dr
Crystal Lake, IL 60012

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Prairie Ridge High School",'Crystal_Lake=' + Crystal_Lake.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.33588409,42.24594116),"
Richard F Bernotas Middle School
170 N Oak St
Crystal Lake, IL 60014

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Richard F Bernotas Middle School",'Crystal_Lake=' + Crystal_Lake.length); Richmond[Richmond.length] = createMarker(new GPoint(-88.31285095,42.47671890),"
Richmond Grade School
5815 Broadway
Richmond, IL 60071

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Richmond Grade School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-88.29750061,42.46709824),"
Richmond-burton High School
Po Box 449
Richmond, IL 60071

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Richmond-burton High School",'Richmond=' + Richmond.length); Marengo[Marengo.length] = createMarker(new GPoint(-88.63241577,42.19195557),"
Riley Community Consolidated School
9406 Riley Rd
Marengo, IL 60152

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Riley Community Consolidated School",'Marengo=' + Marengo.length); Ringwood[Ringwood.length] = createMarker(new GPoint(-88.30031586,42.39568710),"
Ringwood School Primary Center
4700 N School Rd
Ringwood, IL 60072

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ringwood School Primary Center",'Ringwood=' + Ringwood.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.29584503,42.32521057),"
Riverwood Elementary School
300 S Driftwood Trl
Mc Henry, IL 60050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Riverwood Elementary School",'Mc_Henry=' + Mc_Henry.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.46658325,42.32023621),"
Sedom Center
1200 Claussen Dr
Woodstock, IL 60098

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sedom Center",'Woodstock=' + Woodstock.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.34288788,42.22784805),"
South Elementary School
601 Golf Rd
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Spring_Grove[Spring_Grove.length] = createMarker(new GPoint(-88.21679687,42.44210052),"
Spring Grove Elementary School
Po Box 790
Spring Grove, IL 60081

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Spring Grove Elementary School",'Spring_Grove=' + Spring_Grove.length); Cary[Cary.length] = createMarker(new GPoint(-88.22759247,42.21993637),"
Three Oaks School
1514 E Three Oaks Rd
Cary, IL 60013

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Three Oaks School",'Cary=' + Cary.length); Mc_Henry[Mc_Henry.length] = createMarker(new GPoint(-88.32123566,42.35670471),"
Valley View Elementary School
6515 Il Rt 120
Mc Henry, IL 60050

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Valley View Elementary School",'Mc_Henry=' + Mc_Henry.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.44338226,42.33817673),"
Verda Dierzen Early Learning Center
2045 N Seminary Ave
Woodstock, IL 60098

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Verda Dierzen Early Learning Center",'Woodstock=' + Woodstock.length); Harvard[Harvard.length] = createMarker(new GPoint(-88.62139130,42.41934204),"
Washington Elementary School
305 S Hutchinson St
Harvard, IL 60033

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Harvard=' + Harvard.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.37438202,42.23723984),"
West Elementary School
100 Briarwood Dr
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.47498322,42.30258179),"
Westwood Elementary School
14124 W South St
Woodstock, IL 60098

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Westwood Elementary School",'Woodstock=' + Woodstock.length); Crystal_Lake[Crystal_Lake.length] = createMarker(new GPoint(-88.36186981,42.19974899),"
Woods Creek Elementary School
1100 W Alexandra
Crystal Lake, IL 60014

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Woods Creek Elementary School",'Crystal_Lake=' + Crystal_Lake.length); Woodstock[Woodstock.length] = createMarker(new GPoint(-88.45364380,42.31265259),"
Woodstock High School
501 W South St
Woodstock, IL 60098

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Woodstock High School",'Woodstock=' + Woodstock.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(Algonquin); map.removeOverlays(Barrington); map.removeOverlays(Cary); map.removeOverlays(Crystal_Lake); map.removeOverlays(Fox_River_Grove); map.removeOverlays(Harvard); map.removeOverlays(Hebron); map.removeOverlays(Huntley); map.removeOverlays(Island_Lake); map.removeOverlays(Johnsburg); map.removeOverlays(Lake_In_The_Hills); map.removeOverlays(Marengo); map.removeOverlays(Mc_Henry); map.removeOverlays(Richmond); map.removeOverlays(Ringwood); map.removeOverlays(Spring_Grove); map.removeOverlays(Union); map.removeOverlays(Wonder_Lake); map.removeOverlays(Woodstock); 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(Hebron);map.removeOverlays(Algonquin); map.removeOverlays(Barrington); map.removeOverlays(Cary); map.removeOverlays(Crystal_Lake); map.removeOverlays(Fox_River_Grove); map.removeOverlays(Harvard); map.removeOverlays(Hebron); map.removeOverlays(Huntley); map.removeOverlays(Island_Lake); map.removeOverlays(Johnsburg); map.removeOverlays(Lake_In_The_Hills); map.removeOverlays(Marengo); map.removeOverlays(Mc_Henry); map.removeOverlays(Richmond); map.removeOverlays(Ringwood); map.removeOverlays(Spring_Grove); map.removeOverlays(Union); map.removeOverlays(Wonder_Lake); map.removeOverlays(Woodstock); map.addOverlays(Algonquin); centerByArray(Algonquin, false, false); cntMarker += Algonquin.length; map.addOverlays(Barrington); centerByArray(Barrington, false, false); cntMarker += Barrington.length; map.addOverlays(Cary); centerByArray(Cary, false, false); cntMarker += Cary.length; map.addOverlays(Crystal_Lake); centerByArray(Crystal_Lake, false, false); cntMarker += Crystal_Lake.length; map.addOverlays(Fox_River_Grove); centerByArray(Fox_River_Grove, false, false); cntMarker += Fox_River_Grove.length; map.addOverlays(Harvard); centerByArray(Harvard, false, false); cntMarker += Harvard.length; map.addOverlays(Hebron); centerByArray(Hebron, false, false); cntMarker += Hebron.length; map.addOverlays(Huntley); centerByArray(Huntley, false, false); cntMarker += Huntley.length; map.addOverlays(Island_Lake); centerByArray(Island_Lake, false, false); cntMarker += Island_Lake.length; map.addOverlays(Johnsburg); centerByArray(Johnsburg, false, false); cntMarker += Johnsburg.length; map.addOverlays(Lake_In_The_Hills); centerByArray(Lake_In_The_Hills, false, false); cntMarker += Lake_In_The_Hills.length; map.addOverlays(Marengo); centerByArray(Marengo, false, false); cntMarker += Marengo.length; map.addOverlays(Mc_Henry); centerByArray(Mc_Henry, false, false); cntMarker += Mc_Henry.length; map.addOverlays(Richmond); centerByArray(Richmond, false, false); cntMarker += Richmond.length; map.addOverlays(Ringwood); centerByArray(Ringwood, false, false); cntMarker += Ringwood.length; map.addOverlays(Spring_Grove); centerByArray(Spring_Grove, false, false); cntMarker += Spring_Grove.length; map.addOverlays(Union); centerByArray(Union, false, false); cntMarker += Union.length; map.addOverlays(Wonder_Lake); centerByArray(Wonder_Lake, false, false); cntMarker += Wonder_Lake.length; map.addOverlays(Woodstock); centerByArray(Woodstock, false, false); cntMarker += Woodstock.length; centerByArray(Hebron,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'); } }