function addMarkers()
{
mySelect = document.getElementById('selection');
Orlando = [];Winter_Park = [];Apopka = [];Ocoee = [];Taft = [];Winter_Garden = [];Maitland = [];Windermere = [];Eatonville = [];Oakland = [];Zellwood = [];mySelect.options[mySelect.options.length] = new Option("Apopka schools",'all=Apopka');
mySelect.options[mySelect.options.length] = new Option("Eatonville schools",'all=Eatonville');
mySelect.options[mySelect.options.length] = new Option("Maitland schools",'all=Maitland');
mySelect.options[mySelect.options.length] = new Option("Oakland schools",'all=Oakland');
mySelect.options[mySelect.options.length] = new Option("Ocoee schools",'all=Ocoee');
mySelect.options[mySelect.options.length] = new Option("Orlando schools",'all=Orlando');
mySelect.options[mySelect.options.length] = new Option("Taft schools",'all=Taft');
mySelect.options[mySelect.options.length] = new Option("Windermere schools",'all=Windermere');
mySelect.options[mySelect.options.length] = new Option("Winter Garden schools",'all=Winter_Garden');
mySelect.options[mySelect.options.length] = new Option("Winter Park schools",'all=Winter_Park');
mySelect.options[mySelect.options.length] = new Option("Zellwood schools",'all=Zellwood');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Orlando[Orlando.length] = createMarker(new GPoint(-81.39093018,28.54213715),"
",iconGr);
mySelect.options[mySelect.options.length] = new Option("Addictions Receiving Facility",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.46906281,28.40828705),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Adolescent Therapeutic Center",'Orlando=' + Orlando.length);
Winter_Park[Winter_Park.length] = createMarker(new GPoint(-81.30850983,28.59733772),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Aloma Elementary School",'Winter_Park=' + Winter_Park.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.32763672,28.53792572),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Center",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.45424000,28.61022000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Educ Center-asap",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48225400,28.57300100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Education Center-fsi",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.35853200,28.51305700),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Education Center-lvh",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48225400,28.57300100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Education Center-project Compass",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48225400,28.57300100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Education Center-yop",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48225400,28.57300100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Education/ubc",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.22122100,28.50846800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Andover Elementary School",'Orlando=' + Orlando.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.52546692,28.68338394),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Apopka Elementary School",'Apopka=' + Apopka.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.52262878,28.69215775),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Apopka High School",'Apopka=' + Apopka.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.50923920,28.68632507),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Apopka Middle School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.25177765,28.58750534),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arbor Ridge School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48225400,28.57300100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Atc/mrsat",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.34632111,28.56568718),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Audubon Park Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.14998627,28.51189041),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Avalon Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.31464386,28.54656219),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Azalea Park Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.50410461,28.43669319),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bay Meadows Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48225400,28.57300100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Beta",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36415863,28.51414680),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Blankner School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.17944336,28.58563614),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bonneville Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36415863,28.51936150),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Boone High School",'Orlando=' + Orlando.length);
Winter_Park[Winter_Park.length] = createMarker(new GPoint(-81.31965637,28.58869743),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookshire Elementary School",'Winter_Park=' + Winter_Park.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.16274261,28.54899406),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Camelot Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.43665314,28.52686310),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Carver Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.41043854,28.51284218),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Catalina Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.50392151,28.49336243),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Chain Of Lakes Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.29460144,28.57264900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cheney Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36990356,28.53574753),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cherokee School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.29374695,28.52596283),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chickasaw Elementary School",'Orlando=' + Orlando.length);
Ocoee[Ocoee.length] = createMarker(new GPoint(-81.52075195,28.55272675),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Citrus Elementary School",'Ocoee=' + Ocoee.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.50514221,28.62338448),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clarcona Elementary School",'Apopka=' + Apopka.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.46774292,28.68926239),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clay Springs Elementary School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.30614471,28.55346298),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Colonial High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.12975311,28.55842018),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Columbia Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.43054199,28.61190224),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Community Education Partners-nw",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.31065369,28.51811981),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Community Education Partners-sw",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.33395386,28.50586700),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Conway Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.32894135,28.50226212),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Conway Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.12894440,28.56306648),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Corner Lake Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37796021,28.37973785),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cypress Creek Senior High School",'Orlando=' + Orlando.length);
Taft[Taft.length] = createMarker(new GPoint(-81.35914612,28.42675018),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cypress Park Elementary School",'Taft=' + Taft.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.23400116,28.51549911),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cypress Springs Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.25255585,28.52547836),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Deerwood Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.30578100,28.45862600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Devereux Sipp 1518",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.46560669,28.60423660),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Devereux Treatment",'Orlando=' + Orlando.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.58375549,28.56965637),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dillard Street Elementary School",'Winter_Garden=' + Winter_Garden.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.19181061,28.53369522),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Discovery Middle School",'Orlando=' + Orlando.length);
Maitland[Maitland.length] = createMarker(new GPoint(-81.34468842,28.63246346),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dommerich Elementary School",'Maitland=' + Maitland.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.32505798,28.52488708),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dover Shores Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.49124146,28.46204948),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Phillips Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.47460700,28.45737900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dr. Phillips High School",'Orlando=' + Orlando.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.50955200,28.68774033),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dream Lake Elementary School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.34524536,28.44922256),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Durrance Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-84.33787300,33.84076200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eagle's Nest Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.17016900,28.59674900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Lake Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.43245697,28.52406311),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eccleston Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38975525,28.57829094),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Edgewater High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39913177,28.36722374),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Endeavor Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.30205536,28.53199959),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Engelwood Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.44940400,28.58079800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Evans Ace Center",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.44853973,28.57813644),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Evans High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39574432,28.55285263),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Excel Academy",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36024475,28.56083870),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fern Creek Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40932900,28.48827900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("First Step Iii (djj)",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37619781,28.54179955),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Florida Virtual High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37619781,28.54179955),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Florida Virtual Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.49410248,28.54507065),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frangus Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.41709900,28.38150024),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Freedom High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.41448100,28.41778800),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Freedom Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.43115234,28.57796288),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gateway School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.33971405,28.57893753),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Glenridge Middle School",'Orlando=' + Orlando.length);
Windermere[Windermere.length] = createMarker(new GPoint(-81.51059723,28.52793694),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Gotha Middle School",'Windermere=' + Windermere.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39049530,28.52636337),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Grand Avenue Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.47244263,28.56806183),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hiawassee Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.26126099,28.48850250),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hidden Oaks Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36627197,28.55116272),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hillcrest Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48316956,28.57313728),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Home Builders Institute",'Orlando=' + Orlando.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.58365631,28.54846764),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hope Charter School",'Winter_Garden=' + Winter_Garden.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38477325,28.54956436),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hospital/homebound",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36743927,28.54561234),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Howard Middle School",'Orlando=' + Orlando.length);
Maitland[Maitland.length] = createMarker(new GPoint(-81.38145447,28.61476135),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hungerford Elementary School",'Maitland=' + Maitland.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.42960358,28.36149025),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hunters Creek Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.43292236,28.37008667),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hunters Creek Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.43846130,28.54375076),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ivey Lane Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.42272186,28.38259506),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John Young Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40114594,28.53304672),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jones High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.35970306,28.52026367),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kaley Elementary School",'Orlando=' + Orlando.length);
Winter_Park[Winter_Park.length] = createMarker(new GPoint(-81.38227844,28.59511757),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Killarney Elementary School",'Winter_Park=' + Winter_Park.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36483765,28.61274719),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("La-amistad",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.35153961,28.53125191),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Como Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37734222,28.54399300),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Eola Charter School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48834229,28.60176468),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Gem Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.33284760,28.49523735),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake George Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40165710,28.57295609),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Silver Elementary School",'Orlando=' + Orlando.length);
Maitland[Maitland.length] = createMarker(new GPoint(-81.36341858,28.62750053),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Sybelia Elementary School",'Maitland=' + Maitland.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.41235352,28.61104584),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Weston Elementary School",'Orlando=' + Orlando.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.55793762,28.52626610),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Whitney Elementary School",'Winter_Garden=' + Winter_Garden.length);
Winter_Park[Winter_Park.length] = createMarker(new GPoint(-81.32835388,28.60774040),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakemont Elementary School",'Winter_Park=' + Winter_Park.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.60325623,28.56546211),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lakeview Middle School",'Winter_Garden=' + Winter_Garden.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.48034668,28.64726639),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakeville Elementary School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37950897,28.46158028),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lancaster Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.22797394,28.55070114),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lawton Chiles Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39724731,28.58277321),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lee Middle School",'Orlando=' + Orlando.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.58840400,28.56533600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Legacy Charter School",'Winter_Garden=' + Winter_Garden.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.21929900,28.54610200),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Legacy Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.26894379,28.50212097),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Liberty Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.26970673,28.54414558),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Little River Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.44191742,28.62418365),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lockhart Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.42145538,28.62037277),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lockhart Middle School",'Orlando=' + Orlando.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.48454285,28.66686821),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lovell Elementary School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48692500,28.56840600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Magnolia Special Education",'Orlando=' + Orlando.length);
Maitland[Maitland.length] = createMarker(new GPoint(-81.34467316,28.63273621),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Maitland Middle School",'Maitland=' + Maitland.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.56787872,28.56202698),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maxey Elementary School",'Winter_Garden=' + Winter_Garden.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.31009674,28.48770142),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mccoy Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36114502,28.37206268),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow Woods Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.34819794,28.37195015),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Meadow Woods Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.46604919,28.59611130),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Meadowbrook Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40695190,28.51246262),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Memorial Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.49464417,28.52266312),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Metrowest Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39574432,28.55285263),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mid School Professional Academy",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.44869232,28.57059860),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mollie E. Ray Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38861847,28.54693794),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nap Ford Community Charter",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.26123810,28.42126465),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Lake Park Community School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37898254,28.53853989),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northstar High Charter School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.41484833,28.47225380),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("O-tec Mid-florida Technical High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38315582,28.54953766),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("O-tec Orlando Technical High School",'Orlando=' + Orlando.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.57140350,28.55863762),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("O-tec Westside Technical High School",'Winter_Garden=' + Winter_Garden.length);
Winter_Park[Winter_Park.length] = createMarker(new GPoint(-81.36135864,28.60413742),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("O-tec Winter Park Technical High School",'Winter_Park=' + Winter_Park.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.47563934,28.54021072),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oak Hill Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38445282,28.47068405),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Oak Ridge High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37850952,28.35359764),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakshire Elementary School",'Orlando=' + Orlando.length);
Ocoee[Ocoee.length] = createMarker(new GPoint(-81.54224396,28.56535530),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ocoee Elementary School",'Ocoee=' + Ocoee.length);
Ocoee[Ocoee.length] = createMarker(new GPoint(-81.55417700,28.60395700),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ocoee High School",'Ocoee=' + Ocoee.length);
Ocoee[Ocoee.length] = createMarker(new GPoint(-81.54384613,28.56626320),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ocoee Middle School",'Ocoee=' + Ocoee.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.24765778,28.47819710),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Odyssey Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.50833893,28.49611664),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Olympia High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40933990,28.53442574),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Orange Center Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37738900,28.53774000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Orange County Superintendent's Office",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40932900,28.48827900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Orange Intensive Halfway House For Girls",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.35175323,28.51116371),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Orange Juvenile Detention Center",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.30585480,28.54525948),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Origins Montessori Charter",'Orlando=' + Orlando.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.47645569,28.65723228),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Orlando Marine Institute #1",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.45914459,28.54188728),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Orlo Vista Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37977600,28.54369736),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pace Center For Girls",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.49211121,28.48474884),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Palm Lake Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40537262,28.47992706),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Palmetto Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37830353,28.53886223),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Passport Charter School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.35523224,28.49837494),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pershing Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48086548,28.57026482),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Perspective Group Treatment Home (formerly Sunland",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48354340,28.57313728),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Perspective Ii (formerly La Amistad",'Orlando=' + Orlando.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.48029327,28.63526917),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Piedmont Lakes Middle School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.27494049,28.50465965),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pinar Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.36691284,28.47343636),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pine Castle Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.45595551,28.55862808),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pine Hills Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39474487,28.51069069),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pineloch Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48915863,28.58226395),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pinewood Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38358307,28.57133675),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Princeton Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38980865,28.57105255),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Princeton House Charter School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.42620087,28.51528549),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Richmond Heights Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.46354675,28.58572006),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ridgewood Park Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40135193,28.51889038),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rio Grande Charter School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.21776581,28.58309937),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverdale Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.41900635,28.63337898),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverside Elementary School",'Orlando=' + Orlando.length);
Eatonville[Eatonville.length] = createMarker(new GPoint(-81.38375092,28.61816216),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Robert Hungerford Prep. High School",'Eatonville=' + Eatonville.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.46803200,28.55994200),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Robinswood Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40576935,28.54783821),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rock Lake Elementary School",'Orlando=' + Orlando.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.50915527,28.71913719),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rock Springs Elementary School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.44820404,28.58990288),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rolling Hills Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.44001770,28.60521126),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosemont Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.42575836,28.47216225),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sadler Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.33064270,28.48405838),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shenandoah Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.43445587,28.47949982),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shingle Creek Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.40315247,28.57816315),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Silver Star Center",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.49177551,28.46840477),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Southwest Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38057709,28.38788414),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southwood Elementary School",'Orlando=' + Orlando.length);
Ocoee[Ocoee.length] = createMarker(new GPoint(-81.52534485,28.58578110),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Spring Lake Elementary School",'Ocoee=' + Ocoee.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.30619812,28.53306389),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Stonewall Jackson Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39510345,28.57609940),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit Charter Central",'Orlando=' + Orlando.length);
Maitland[Maitland.length] = createMarker(new GPoint(-81.36449432,28.63781548),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit Charter School",'Maitland=' + Maitland.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.46764374,28.58147240),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit Charter West",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.17803955,28.56534958),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunrise Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.44869232,28.45583725),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tangelo Park Elementary School",'Orlando=' + Orlando.length);
Ocoee[Ocoee.length] = createMarker(new GPoint(-81.53260040,28.57180023),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thorne Brooke Elementary School",'Ocoee=' + Ocoee.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.28514099,28.49046326),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Three Points Elementary School",'Orlando=' + Orlando.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.60616302,28.55739975),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tildenville Elementary School",'Winter_Garden=' + Winter_Garden.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37604523,28.50671196),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ucp Charter School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.35990143,28.51449966),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ucp Pine Hills Charter School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.24495697,28.56618500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Union Park Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.24765778,28.56971931),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Union Park Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.21308899,28.58307076),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("University High School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.29685211,28.49936485),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ventura Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.37768555,28.46166229),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Walker Middle School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.42237091,28.52995491),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Shores Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.41690826,28.40953064),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Waterbridge Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.19685364,28.54377174),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Waterford Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.45492500,28.35711400),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Creek Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.48265400,28.55670900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Oaks Elementary School",'Orlando=' + Orlando.length);
Oakland[Oakland.length] = createMarker(new GPoint(-81.63330078,28.55470085),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Orange Charter School",'Oakland=' + Oakland.length);
Winter_Garden[Winter_Garden.length] = createMarker(new GPoint(-81.56926727,28.54210854),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("West Orange High School",'Winter_Garden=' + Winter_Garden.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.39112854,28.51266289),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Westminster Academy Charter",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.42285156,28.47216225),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Westridge Middle School",'Orlando=' + Orlando.length);
Apopka[Apopka.length] = createMarker(new GPoint(-81.51158142,28.65727425),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wheatley Elementary School",'Apopka=' + Apopka.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.60770800,28.51290200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whispering Oak Elementary School",'Orlando=' + Orlando.length);
Windermere[Windermere.length] = createMarker(new GPoint(-81.54424286,28.50725365),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Windermere Elementary School",'Windermere=' + Windermere.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.49821472,28.50167084),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Windy Ridge Elementary School",'Orlando=' + Orlando.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.38404083,28.45466232),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winegard Elementary School",'Orlando=' + Orlando.length);
Winter_Park[Winter_Park.length] = createMarker(new GPoint(-81.32444763,28.58566284),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Winter Park High School",'Winter_Park=' + Winter_Park.length);
Orlando[Orlando.length] = createMarker(new GPoint(-81.35392000,28.53962400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Workforce Advantage Academy",'Orlando=' + Orlando.length);
Zellwood[Zellwood.length] = createMarker(new GPoint(-81.58329773,28.72139931),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Zellwood Elementary School",'Zellwood=' + Zellwood.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(Apopka);
map.removeOverlays(Eatonville);
map.removeOverlays(Maitland);
map.removeOverlays(Oakland);
map.removeOverlays(Ocoee);
map.removeOverlays(Orlando);
map.removeOverlays(Taft);
map.removeOverlays(Windermere);
map.removeOverlays(Winter_Garden);
map.removeOverlays(Winter_Park);
map.removeOverlays(Zellwood);
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(Orlando);map.removeOverlays(Apopka);
map.removeOverlays(Eatonville);
map.removeOverlays(Maitland);
map.removeOverlays(Oakland);
map.removeOverlays(Ocoee);
map.removeOverlays(Orlando);
map.removeOverlays(Taft);
map.removeOverlays(Windermere);
map.removeOverlays(Winter_Garden);
map.removeOverlays(Winter_Park);
map.removeOverlays(Zellwood);
map.addOverlays(Apopka);
centerByArray(Apopka, false, false);
cntMarker += Apopka.length;
map.addOverlays(Eatonville);
centerByArray(Eatonville, false, false);
cntMarker += Eatonville.length;
map.addOverlays(Maitland);
centerByArray(Maitland, false, false);
cntMarker += Maitland.length;
map.addOverlays(Oakland);
centerByArray(Oakland, false, false);
cntMarker += Oakland.length;
map.addOverlays(Ocoee);
centerByArray(Ocoee, false, false);
cntMarker += Ocoee.length;
map.addOverlays(Orlando);
centerByArray(Orlando, false, false);
cntMarker += Orlando.length;
map.addOverlays(Taft);
centerByArray(Taft, false, false);
cntMarker += Taft.length;
map.addOverlays(Windermere);
centerByArray(Windermere, false, false);
cntMarker += Windermere.length;
map.addOverlays(Winter_Garden);
centerByArray(Winter_Garden, false, false);
cntMarker += Winter_Garden.length;
map.addOverlays(Winter_Park);
centerByArray(Winter_Park, false, false);
cntMarker += Winter_Park.length;
map.addOverlays(Zellwood);
centerByArray(Zellwood, false, false);
cntMarker += Zellwood.length;
centerByArray(Orlando,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');
}
}