function addMarkers()
{
mySelect = document.getElementById('selection');
Baton_Rouge = [];Baker = [];Greenwell_Springs = [];Pride = [];Zachary = [];mySelect.options[mySelect.options.length] = new Option("Baker schools",'all=Baker');
mySelect.options[mySelect.options.length] = new Option("Baton Rouge schools",'all=Baton_Rouge');
mySelect.options[mySelect.options.length] = new Option("Greenwell Springs schools",'all=Greenwell_Springs');
mySelect.options[mySelect.options.length] = new Option("Pride schools",'all=Pride');
mySelect.options[mySelect.options.length] = new Option("Zachary schools",'all=Zachary');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17086029,30.38580322),"
",iconGr);
mySelect.options[mySelect.options.length] = new Option("Arlington Preparatory Academy",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.06697083,30.44521713),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Audubon Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baker[Baker.length] = createMarker(new GPoint(-91.16143036,30.58382034),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Baker Heights Elementary School",'Baker=' + Baker.length);
Baker[Baker.length] = createMarker(new GPoint(-91.16705322,30.58805275),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baker High School",'Baker=' + Baker.length);
Baker[Baker.length] = createMarker(new GPoint(-91.13495636,30.58412933),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Baker Middle School",'Baker=' + Baker.length);
Baker[Baker.length] = createMarker(new GPoint(-91.17571259,30.58082962),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bakerfield Elementary School",'Baker=' + Baker.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16754150,30.51458740),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Banks Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15966797,30.44413757),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baton Rouge High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14431000,30.50024223),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baton Rouge Marine Institute, Inc.",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13255310,30.51813698),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baton Rouge Preparatory Academy",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15267944,30.42870140),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Baton Rouge Visual And Performing Arts Center",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16538239,30.55488968),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beechwood Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.04783630,30.46683693),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Belaire High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14533997,30.46763611),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belfair Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Greenwell_Springs[Greenwell_Springs.length] = createMarker(new GPoint(-90.99285889,30.51523972),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bellingrath Hills Elementary School",'Greenwell_Springs=' + Greenwell_Springs.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14694214,30.44696426),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bernard Terrace Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.08100128,30.44351578),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Broadmoor Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.06656647,30.44308662),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Broadmoor Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.07555389,30.44355011),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Broadmoor Senior High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.12839508,30.49024582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookstown Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13086700,30.55140305),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brownfields Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17187500,30.42502785),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Buchanan Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14801025,30.46179008),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Capitol Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18687400,30.44342000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Capitol Pre-college Academy For Girls",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16474152,30.45754433),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Capitol Senior High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.06782532,30.42463684),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cedarcrest-southmoor Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.01943970,30.54110336),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Central High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15188900,30.48722500),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Central Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-77.23707000,39.20930600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Children's Charter School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14279938,30.50456238),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Claiborne Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17391968,30.46733665),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Community School For Apprenticeship Learning",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.19634247,30.54334068),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crestworth Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.19514465,30.54041100),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Crestworth Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15364075,30.47570992),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dalton Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16089630,30.49749184),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Delmont Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16925812,30.44544411),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dufrocq Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18634033,30.44685555),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Baton Rouge Arts And Technology School",'Baton_Rouge=' + Baton_Rouge.length);
Greenwell_Springs[Greenwell_Springs.length] = createMarker(new GPoint(-91.00589752,30.53350067),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Eastern La Mental Health/greenwell Springs",'Greenwell_Springs=' + Greenwell_Springs.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15523529,30.46322632),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eden Park Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.11646271,30.51413727),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Forest Heights Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14370728,30.40876579),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Glasgow Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13803101,30.51567268),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Glen Oaks Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.10764313,30.50234985),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glen Oaks Park Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.12174225,30.51170349),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Glen Oaks Senior High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.04923248,30.49487686),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greenbrier Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13970184,30.46365547),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greenville Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17014313,30.52470779),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harding Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15086365,30.39060020),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highland Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.12866974,30.47933769),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Howell Park Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16471863,30.47598648),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Istrouma Middle Magnet School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15242767,30.47826385),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Istrouma Senior High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18045807,30.44455338),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("J. K. Haynes Elementary Charter School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.07368469,30.40182495),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jefferson Terrace Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13259125,30.38212395),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kenilworth Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.04630280,30.46683693),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Labelle Aire Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.10762024,30.49321556),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lanier Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.10489655,30.43499565),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lasalle Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18520355,30.44540024),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Louisiana School For Deaf",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18520355,30.44540024),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Louisiana School For Visually Impaired",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17769623,30.41360092),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lsu Laboratory School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.12394714,30.38184166),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Magnolia Woods Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.10375977,30.38132477),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mayfair Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.05075073,30.44875145),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mcauliffe Pre-ged Center",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15473175,30.44923973),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("McKinley Middle Academic Magnet School of V&PA",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17460632,30.42359734),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mckinley Senior High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13533783,30.46075058),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Melrose Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.12344360,30.50366211),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Merrydale Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15141296,30.48649597),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mohican Education Center",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17797089,30.45293617),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nicholson Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15094757,30.49383736),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Highlands Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.06435394,30.46863747),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northdale Alternative Magnet Academy",'Baton_Rouge=' + Baton_Rouge.length);
Pride[Pride.length] = createMarker(new GPoint(-90.98549652,30.71330070),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northeast Elementary School",'Pride=' + Pride.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.03043365,30.68536377),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northeast High School",'Baton_Rouge=' + Baton_Rouge.length);
Zachary[Zachary.length] = createMarker(new GPoint(-91.15853882,30.65914154),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northwestern Elementary School",'Zachary=' + Zachary.length);
Zachary[Zachary.length] = createMarker(new GPoint(-91.15518951,30.65435410),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Northwestern Middle School",'Zachary=' + Zachary.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16104126,30.45726395),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.06482697,30.48263741),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Forest Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.07404327,30.48488998),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Park Forest Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baker[Baker.length] = createMarker(new GPoint(-91.13494110,30.58412361),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Ridge Elementary School",'Baker=' + Baker.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.04427338,30.40050888),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkview Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17800903,30.42686272),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Polk Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14969635,30.48743629),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Prescott Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18604279,30.53757858),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Progress Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.02189636,30.45394325),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riveroaks Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15120697,30.40427208),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Robert E. Lee High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17019653,30.52598000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ryan Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15473175,30.44923973),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Scenic Alternative High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.12960400,30.46788000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Scenic Alternative High School (jrdc)",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15473175,30.44923973),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Scenic Alternative High School - Ssd #1",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.17840576,30.53390884),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Scotlandville Magnet High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16945648,30.52991104),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Scotlandville Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.12642670,30.53430176),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sharon Hills Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.00103760,30.39539528),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shenandoah Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.06255341,30.44748688),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sherwood Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18222046,30.44076347),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Boulevard Extended Day School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15172577,30.41730118),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southdowns School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.01982880,30.42835426),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Southeast Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.19419861,30.52610016),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Southern University Lab School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.11119843,30.39219666),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Staring Education Center",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.07492065,30.53415298),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tanglewood Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.08952332,30.43483353),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Tara High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.03833771,30.45084000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Twin Oaks Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.18295288,30.42156219),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("University Terrace Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14311981,30.42727470),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Valley Park School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.07733154,30.46443748),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Villa Del Rey Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.01308441,30.43579102),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wedgewood Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13548279,30.43018532),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westdale Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.13184357,30.44146347),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Westdale Middle School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.09186554,30.40968132),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westminster Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baker[Baker.length] = createMarker(new GPoint(-91.13944244,30.59366226),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("White Hills Elementary School",'Baker=' + Baker.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.11695862,30.37121010),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wildwood Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.15142059,30.48672867),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Wilma C. Montgomery Education Center",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.14485168,30.47875214),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winbourne Elementary School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.01779938,30.39158630),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Woodlawn High School",'Baton_Rouge=' + Baton_Rouge.length);
Baton_Rouge[Baton_Rouge.length] = createMarker(new GPoint(-91.16464233,30.48198128),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wyandotte Early Childhood Center",'Baton_Rouge=' + Baton_Rouge.length);
Zachary[Zachary.length] = createMarker(new GPoint(-91.16699100,30.64058800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Zachary Elementary School",'Zachary=' + Zachary.length);
Zachary[Zachary.length] = createMarker(new GPoint(-91.16048431,30.65139008),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Zachary High School",'Zachary=' + Zachary.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(Baker);
map.removeOverlays(Baton_Rouge);
map.removeOverlays(Greenwell_Springs);
map.removeOverlays(Pride);
map.removeOverlays(Zachary);
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(Baton_Rouge);map.removeOverlays(Baker);
map.removeOverlays(Baton_Rouge);
map.removeOverlays(Greenwell_Springs);
map.removeOverlays(Pride);
map.removeOverlays(Zachary);
map.addOverlays(Baker);
centerByArray(Baker, false, false);
cntMarker += Baker.length;
map.addOverlays(Baton_Rouge);
centerByArray(Baton_Rouge, false, false);
cntMarker += Baton_Rouge.length;
map.addOverlays(Greenwell_Springs);
centerByArray(Greenwell_Springs, false, false);
cntMarker += Greenwell_Springs.length;
map.addOverlays(Pride);
centerByArray(Pride, false, false);
cntMarker += Pride.length;
map.addOverlays(Zachary);
centerByArray(Zachary, false, false);
cntMarker += Zachary.length;
centerByArray(Baton_Rouge,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');
}
}