function addMarkers()
{
mySelect = document.getElementById('selection');
Lithonia = [];Stone_Mountain = [];Atlanta = [];Decatur = [];Clarkston = [];Dunwoody = [];Avondale_Estates = [];Tucker = [];Doraville = [];Ellenwood = [];Chamblee = [];Redan = [];Scottdale = [];mySelect.options[mySelect.options.length] = new Option("Atlanta schools",'all=Atlanta');
mySelect.options[mySelect.options.length] = new Option("Avondale Estates schools",'all=Avondale_Estates');
mySelect.options[mySelect.options.length] = new Option("Chamblee schools",'all=Chamblee');
mySelect.options[mySelect.options.length] = new Option("Clarkston schools",'all=Clarkston');
mySelect.options[mySelect.options.length] = new Option("Decatur schools",'all=Decatur');
mySelect.options[mySelect.options.length] = new Option("Doraville schools",'all=Doraville');
mySelect.options[mySelect.options.length] = new Option("Dunwoody schools",'all=Dunwoody');
mySelect.options[mySelect.options.length] = new Option("Ellenwood schools",'all=Ellenwood');
mySelect.options[mySelect.options.length] = new Option("Lithonia schools",'all=Lithonia');
mySelect.options[mySelect.options.length] = new Option("Redan schools",'all=Redan');
mySelect.options[mySelect.options.length] = new Option("Scottdale schools",'all=Scottdale');
mySelect.options[mySelect.options.length] = new Option("Stone Mountain schools",'all=Stone_Mountain');
mySelect.options[mySelect.options.length] = new Option("Tucker schools",'all=Tucker');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.12937164,33.69343948),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("Academy Of Lithonia Charter School",'Lithonia=' + Lithonia.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.21141815,33.77909470),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Allgood Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.32097626,33.87486649),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ashford Park Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.22393036,33.74264908),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Atherton Elementary School",'Decatur=' + Decatur.length);
Clarkston[Clarkston.length] = createMarker(new GPoint(-84.23984700,33.80285200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Atlanta Area School For Deaf",'Clarkston=' + Clarkston.length);
Dunwoody[Dunwoody.length] = createMarker(new GPoint(-84.33647156,33.95953751),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Austin Elementary School",'Dunwoody=' + Dunwoody.length);
Avondale_Estates[Avondale_Estates.length] = createMarker(new GPoint(-84.26227570,33.77379227),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Avondale Elementary School",'Avondale_Estates=' + Avondale_Estates.length);
Avondale_Estates[Avondale_Estates.length] = createMarker(new GPoint(-84.26840973,33.75951767),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Avondale High School",'Avondale_Estates=' + Avondale_Estates.length);
Avondale_Estates[Avondale_Estates.length] = createMarker(new GPoint(-84.26235199,33.77986526),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Avondale Middle School",'Avondale_Estates=' + Avondale_Estates.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.24116516,33.69052124),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bob Mathis Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33792877,33.81076431),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Briar Vista Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.26840973,33.83910370),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Briarlake Elementary School",'Decatur=' + Decatur.length);
Tucker[Tucker.length] = createMarker(new GPoint(-84.22323608,33.83725357),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brockett Elementary School",'Tucker=' + Tucker.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.18891144,33.67816544),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Browns Mill Elementary School",'Lithonia=' + Lithonia.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33198547,33.74067688),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Burgess Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.22101593,33.72074127),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Canby Lane Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.38836670,33.71886444),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Carver High School",'Atlanta=' + Atlanta.length);
Doraville[Doraville.length] = createMarker(new GPoint(-84.27096558,33.89415741),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cary Reynolds Elementary School",'Doraville=' + Doraville.length);
Ellenwood[Ellenwood.length] = createMarker(new GPoint(-84.29685974,33.67523956),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cedar Grove Elementary School",'Ellenwood=' + Ellenwood.length);
Ellenwood[Ellenwood.length] = createMarker(new GPoint(-84.29580688,33.67547989),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cedar Grove High School",'Ellenwood=' + Ellenwood.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29180908,33.68633652),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cedar Grove Middle School",'Decatur=' + Decatur.length);
Chamblee[Chamblee.length] = createMarker(new GPoint(-84.30536652,33.89884949),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Chamblee High School",'Chamblee=' + Chamblee.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31478119,33.92840576),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Chamblee Middle School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.21938324,33.67930222),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chapel Hill Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.21526337,33.67855453),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Chapel Hill Middle School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33723450,33.75885773),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Charles R. Drew Charter School",'Atlanta=' + Atlanta.length);
Dunwoody[Dunwoody.length] = createMarker(new GPoint(-84.29554749,33.92803192),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chesnut Elementary School",'Dunwoody=' + Dunwoody.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29729462,33.78188324),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clairemont Elementary School",'Decatur=' + Decatur.length);
Clarkston[Clarkston.length] = createMarker(new GPoint(-84.23609161,33.79078293),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Clarkston High School",'Clarkston=' + Clarkston.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.30267334,33.69590759),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clifton Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29626465,33.75675964),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("College Heights Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.25803375,33.71933746),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Columbia Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.25179291,33.72834778),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Columbia High School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.25176239,33.69837570),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Columbia Middle School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.28789520,33.82836151),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Coralwood Education Center",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-83.93338776,34.02852631),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Crim Evening Classes High School",'Atlanta=' + Atlanta.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33173370,33.74632645),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Crim High School",'Atlanta=' + Atlanta.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33924103,33.84394073),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cross Keys High School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.20240021,33.72135925),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Decatur High School",'Decatur=' + Decatur.length);
Clarkston[Clarkston.length] = createMarker(new GPoint(-84.19879150,33.79996490),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb Alternative Night School",'Clarkston=' + Clarkston.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.19879150,33.79996490),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb Alternative School",'Stone_Mountain=' + Stone_Mountain.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.27976100,33.80058100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb Community School",'Decatur=' + Decatur.length);
Dunwoody[Dunwoody.length] = createMarker(new GPoint(-84.35330200,33.95901871),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb High School Of Technology, North Campus",'Dunwoody=' + Dunwoody.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.20304108,33.71976089),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb High School Of Technology, South Campus",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.35330200,33.95901871),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb International Student Center",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.27932300,33.69052800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb Regional Youth Detention Center",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.32582092,33.82666016),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb School Of Arts",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.21723175,33.70940018),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb Transition School",'Decatur=' + Decatur.length);
Clarkston[Clarkston.length] = createMarker(new GPoint(-84.23903656,33.80493927),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dekalb Truancy School",'Clarkston=' + Clarkston.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.15298200,33.76246600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dekalb-rockdale Psychoeducational Program",'Lithonia=' + Lithonia.length);
Chamblee[Chamblee.length] = createMarker(new GPoint(-84.29243469,33.87018204),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dresden Elementary School",'Chamblee=' + Chamblee.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31699371,33.79330826),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Druid Hills High School",'Atlanta=' + Atlanta.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.22718811,33.77912521),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dunaire Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Dunwoody[Dunwoody.length] = createMarker(new GPoint(-84.31659698,33.94599152),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dunwoody High School",'Dunwoody=' + Dunwoody.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.19960022,33.80007935),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Dekalb Campus",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.19960022,33.80007935),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Dekalb Special Education Center",'Stone_Mountain=' + Stone_Mountain.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.18589020,33.68904114),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edward L. Bouie, Senior Elementary School",'Lithonia=' + Lithonia.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.17913055,33.77034378),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eldridge L. Miller Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Doraville[Doraville.length] = createMarker(new GPoint(-84.23956299,33.87326813),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Evansdale Elementary School",'Doraville=' + Doraville.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29492187,33.77457047),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairington Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31694031,33.77843857),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fernbank Elementary School",'Atlanta=' + Atlanta.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.35330200,33.95901871),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Fernbank Science Center",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.28426361,33.70593643),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Flat Shoals Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.27126312,33.76768875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Forrest Hills Elementary School",'Decatur=' + Decatur.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.19532013,33.78480911),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Freedom Middle School",'Stone_Mountain=' + Stone_Mountain.length);
Clarkston[Clarkston.length] = createMarker(new GPoint(-84.23434600,33.79002700),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gateway To College Academy",'Clarkston=' + Clarkston.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.23381042,33.75126266),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glen Haven Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29008484,33.77583694),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glennwood Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31459045,33.71143723),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gresham Park Elementary School",'Atlanta=' + Atlanta.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.20583344,33.81145859),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hambrick Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.27403259,33.85992050),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hawthorne Elementary School",'Atlanta=' + Atlanta.length);
Chamblee[Chamblee.length] = createMarker(new GPoint(-84.25083160,33.86737061),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Henderson Middle School",'Chamblee=' + Chamblee.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.25865936,33.85575485),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Henderson Mill Elementary School",'Atlanta=' + Atlanta.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.29139709,33.84891129),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Heritage Educational Center",'Atlanta=' + Atlanta.length);
Doraville[Doraville.length] = createMarker(new GPoint(-84.28016663,33.91825104),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hightower Elementary School",'Doraville=' + Doraville.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.27232361,33.75222778),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hooper Alexander Elementary School",'Decatur=' + Decatur.length);
Chamblee[Chamblee.length] = createMarker(new GPoint(-84.30196381,33.91124344),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Huntley Hills Elementary School",'Chamblee=' + Chamblee.length);
Tucker[Tucker.length] = createMarker(new GPoint(-84.22193146,33.82685471),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Idlewood Elementary School",'Tucker=' + Tucker.length);
Clarkston[Clarkston.length] = createMarker(new GPoint(-84.23664856,33.79652786),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Creek Elementary School",'Clarkston=' + Clarkston.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.25605011,33.77297592),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("International Community Charter",'Decatur=' + Decatur.length);
Clarkston[Clarkston.length] = createMarker(new GPoint(-84.22512817,33.81051636),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jolly Elementary School",'Clarkston=' + Clarkston.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.28430176,33.71543884),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kelley Lake Elementary School",'Decatur=' + Decatur.length);
Dunwoody[Dunwoody.length] = createMarker(new GPoint(-84.29682159,33.94744110),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kingsley Elementary School",'Dunwoody=' + Dunwoody.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.27643585,33.88659668),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kipp: Path Academy Elementary School",'Atlanta=' + Atlanta.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.32788849,33.82693863),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kittredge Magnet School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.26589203,33.74426651),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Knollwood Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.28508759,33.84589767),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lakeside High School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.27683258,33.81552887),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Laurel Ridge Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.30792999,33.72713470),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Leslie J. Steele Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33946228,33.77057648),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lin Elementary School",'Atlanta=' + Atlanta.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.10952100,33.70646000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lithonia Academy Of Technology And Environment",'Lithonia=' + Lithonia.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.10964203,33.71472549),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lithonia High School",'Lithonia=' + Lithonia.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.13150024,33.64501953),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lithonia Middle School",'Lithonia=' + Lithonia.length);
Tucker[Tucker.length] = createMarker(new GPoint(-84.21912384,33.86896133),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Livsey Elementary School",'Tucker=' + Tucker.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.15364075,33.72950745),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Marbut Elementary School",'Lithonia=' + Lithonia.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31961823,33.82893753),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Margaret Harris High School",'Atlanta=' + Atlanta.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.22511292,33.71410370),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Martin Luther King, Junior High School",'Lithonia=' + Lithonia.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.20251465,33.73269272),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mary Mcleod Bethune Middle School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.26189423,33.80466461),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mclendon Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.32675934,33.70425415),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mcnair High School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29883575,33.71784210),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mcnair Middle School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31353100,33.69971400),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadowview Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.28951263,33.80193710),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Medlock Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33008600,33.68897200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Metro Regional Youth Detention Center",'Atlanta=' + Atlanta.length);
Tucker[Tucker.length] = createMarker(new GPoint(-84.23523712,33.85623932),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Midvale Elementary School",'Tucker=' + Tucker.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.25294495,33.75503540),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Midway Elementary School",'Decatur=' + Decatur.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.14656100,33.71097000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Miller Grove High School",'Lithonia=' + Lithonia.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.18206024,33.72442627),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Miller Grove Middle School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31969452,33.84723663),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Montclair Elementary School",'Atlanta=' + Atlanta.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33261871,33.90887451),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Montgomery Elementary School",'Atlanta=' + Atlanta.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.12663269,33.65158081),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Murphy Candler Elementary School",'Lithonia=' + Lithonia.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31887054,33.91597748),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nancy Creek Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.22676849,33.66756821),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Narvie Harris Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.28947449,33.83689117),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oak Grove Elementary School",'Atlanta=' + Atlanta.length);
Doraville[Doraville.length] = createMarker(new GPoint(-84.25843811,33.90363693),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakcliff Elementary School",'Doraville=' + Doraville.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.30536652,33.75602722),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakhurst At Fifth Avenue Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.30590057,33.76449966),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakhurst Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.26801000,33.68069500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakview Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.32582092,33.82666016),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Open Campus High School",'Atlanta=' + Atlanta.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.16970062,33.72927856),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Panola Way Elementary School",'Lithonia=' + Lithonia.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.24673462,33.74853897),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Peachcrest Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.29486847,33.93103790),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Peachtree Middle School",'Atlanta=' + Atlanta.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33093262,33.72306442),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Peterson Elementary School",'Atlanta=' + Atlanta.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.12143707,33.77301788),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pine Ridge Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Doraville[Doraville.length] = createMarker(new GPoint(-84.23629761,33.89169312),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pleasantdale Elementary School",'Doraville=' + Doraville.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.22409058,33.70368576),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rainbow Elementary School",'Decatur=' + Decatur.length);
Redan[Redan.length] = createMarker(new GPoint(-84.13179016,33.74480820),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Redan Elementary School",'Redan=' + Redan.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.17721558,33.75966263),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Redan High School",'Stone_Mountain=' + Stone_Mountain.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.20304108,33.71976089),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Redan Middle School",'Lithonia=' + Lithonia.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29938507,33.76858902),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Renfroe Middle School",'Decatur=' + Decatur.length);
Scottdale[Scottdale.length] = createMarker(new GPoint(-83.98486328,33.61283875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Robert Shaw Theme School",'Scottdale=' + Scottdale.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.08093262,33.76068497),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rock Chapel Elementary School",'Lithonia=' + Lithonia.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.19853210,33.78891754),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rockbridge Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.22164154,33.75786209),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rowland Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.30464935,33.83256531),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sagamore Hills Elementary School",'Atlanta=' + Atlanta.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.16989899,33.67836380),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Salem Middle School",'Lithonia=' + Lithonia.length);
Doraville[Doraville.length] = createMarker(new GPoint(-84.27036285,33.89034653),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sequoyah Middle School",'Doraville=' + Doraville.length);
Chamblee[Chamblee.length] = createMarker(new GPoint(-84.35330200,33.95901871),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sexton Woods Special Education Center",'Chamblee=' + Chamblee.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-10.00000000,10.00000000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shadow Rock Elementary School",'Lithonia=' + Lithonia.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.13150024,33.64501953),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shadow Rock Special Education Center",'Lithonia=' + Lithonia.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.27230835,33.81868744),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Shamrock Middle School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.34344482,33.72393799),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sky Haven Elementary School",'Atlanta=' + Atlanta.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.15973663,33.83796310),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Smoke Rise Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.24789429,33.73266602),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Snapfinger Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.22285461,33.70250320),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Southwest Dekalb High School",'Decatur=' + Decatur.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.12711334,33.77725220),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Stephenson High School",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.11677551,33.77340317),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Stephenson Middle School",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.18905640,33.81523514),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stone Mill Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.18732452,33.80614853),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Stone Mountain Charter School Inc.",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.16857910,33.81288528),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stone Mountain Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.20328522,33.81156158),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Stone Mountain High School",'Stone_Mountain=' + Stone_Mountain.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.17324829,33.80580139),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Stone Mountain Middle School",'Stone_Mountain=' + Stone_Mountain.length);
Lithonia[Lithonia.length] = createMarker(new GPoint(-84.11787415,33.70732117),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stoneview Elementary School",'Lithonia=' + Lithonia.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.31494904,33.73460770),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Terry Mill Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29435730,33.72580719),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tilson Elementary School",'Decatur=' + Decatur.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.27983856,33.72765350),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Toney Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33723450,33.75885773),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Toomer Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.23790741,33.74633789),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Towers High School",'Decatur=' + Decatur.length);
Tucker[Tucker.length] = createMarker(new GPoint(-84.21555328,33.85563278),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Tucker High School",'Tucker=' + Tucker.length);
Tucker[Tucker.length] = createMarker(new GPoint(-84.21432300,33.84676100),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Tucker Middle School",'Tucker=' + Tucker.length);
Dunwoody[Dunwoody.length] = createMarker(new GPoint(-84.31105042,33.94676590),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Vanderlyn Elementary School",'Dunwoody=' + Dunwoody.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.25923157,33.72821045),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wadsworth Elementary School",'Decatur=' + Decatur.length);
Chamblee[Chamblee.length] = createMarker(new GPoint(-84.35330200,33.95901871),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Warren Technical School",'Chamblee=' + Chamblee.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.30609131,33.78285599),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westchester Elementary School",'Decatur=' + Decatur.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.34189606,33.75444794),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whitefoord Elementary School",'Atlanta=' + Atlanta.length);
Decatur[Decatur.length] = createMarker(new GPoint(-84.29003143,33.76591110),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winnona Park Elementary School",'Decatur=' + Decatur.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.19955444,33.74326324),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodridge Elementary School",'Stone_Mountain=' + Stone_Mountain.length);
Atlanta[Atlanta.length] = createMarker(new GPoint(-84.33787300,33.84076200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodward Elementary School",'Atlanta=' + Atlanta.length);
Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.11064148,33.78762817),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wynbrooke Elementary School",'Stone_Mountain=' + Stone_Mountain.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(Atlanta);
map.removeOverlays(Avondale_Estates);
map.removeOverlays(Chamblee);
map.removeOverlays(Clarkston);
map.removeOverlays(Decatur);
map.removeOverlays(Doraville);
map.removeOverlays(Dunwoody);
map.removeOverlays(Ellenwood);
map.removeOverlays(Lithonia);
map.removeOverlays(Redan);
map.removeOverlays(Scottdale);
map.removeOverlays(Stone_Mountain);
map.removeOverlays(Tucker);
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(Lithonia);map.removeOverlays(Atlanta);
map.removeOverlays(Avondale_Estates);
map.removeOverlays(Chamblee);
map.removeOverlays(Clarkston);
map.removeOverlays(Decatur);
map.removeOverlays(Doraville);
map.removeOverlays(Dunwoody);
map.removeOverlays(Ellenwood);
map.removeOverlays(Lithonia);
map.removeOverlays(Redan);
map.removeOverlays(Scottdale);
map.removeOverlays(Stone_Mountain);
map.removeOverlays(Tucker);
map.addOverlays(Atlanta);
centerByArray(Atlanta, false, false);
cntMarker += Atlanta.length;
map.addOverlays(Avondale_Estates);
centerByArray(Avondale_Estates, false, false);
cntMarker += Avondale_Estates.length;
map.addOverlays(Chamblee);
centerByArray(Chamblee, false, false);
cntMarker += Chamblee.length;
map.addOverlays(Clarkston);
centerByArray(Clarkston, false, false);
cntMarker += Clarkston.length;
map.addOverlays(Decatur);
centerByArray(Decatur, false, false);
cntMarker += Decatur.length;
map.addOverlays(Doraville);
centerByArray(Doraville, false, false);
cntMarker += Doraville.length;
map.addOverlays(Dunwoody);
centerByArray(Dunwoody, false, false);
cntMarker += Dunwoody.length;
map.addOverlays(Ellenwood);
centerByArray(Ellenwood, false, false);
cntMarker += Ellenwood.length;
map.addOverlays(Lithonia);
centerByArray(Lithonia, false, false);
cntMarker += Lithonia.length;
map.addOverlays(Redan);
centerByArray(Redan, false, false);
cntMarker += Redan.length;
map.addOverlays(Scottdale);
centerByArray(Scottdale, false, false);
cntMarker += Scottdale.length;
map.addOverlays(Stone_Mountain);
centerByArray(Stone_Mountain, false, false);
cntMarker += Stone_Mountain.length;
map.addOverlays(Tucker);
centerByArray(Tucker, false, false);
cntMarker += Tucker.length;
centerByArray(Lithonia,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');
}
}