function addMarkers()
{
mySelect = document.getElementById('selection');
Canton = [];Alliance = [];Massillon = [];Beach_City = [];Brewster = [];Canal_Fulton = [];North_Canton = [];East_Canton = [];East_Sparta = [];Louisville = [];Navarre = [];Hartville = [];Minerva = [];Uniontown = [];Magnolia = [];Waynesburg = [];mySelect.options[mySelect.options.length] = new Option("Alliance schools",'all=Alliance');
mySelect.options[mySelect.options.length] = new Option("Beach City schools",'all=Beach_City');
mySelect.options[mySelect.options.length] = new Option("Brewster schools",'all=Brewster');
mySelect.options[mySelect.options.length] = new Option("Canal Fulton schools",'all=Canal_Fulton');
mySelect.options[mySelect.options.length] = new Option("Canton schools",'all=Canton');
mySelect.options[mySelect.options.length] = new Option("East Canton schools",'all=East_Canton');
mySelect.options[mySelect.options.length] = new Option("East Sparta schools",'all=East_Sparta');
mySelect.options[mySelect.options.length] = new Option("Hartville schools",'all=Hartville');
mySelect.options[mySelect.options.length] = new Option("Louisville schools",'all=Louisville');
mySelect.options[mySelect.options.length] = new Option("Magnolia schools",'all=Magnolia');
mySelect.options[mySelect.options.length] = new Option("Massillon schools",'all=Massillon');
mySelect.options[mySelect.options.length] = new Option("Minerva schools",'all=Minerva');
mySelect.options[mySelect.options.length] = new Option("Navarre schools",'all=Navarre');
mySelect.options[mySelect.options.length] = new Option("North Canton schools",'all=North_Canton');
mySelect.options[mySelect.options.length] = new Option("Uniontown schools",'all=Uniontown');
mySelect.options[mySelect.options.length] = new Option("Waynesburg schools",'all=Waynesburg');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Canton[Canton.length] = createMarker(new GPoint(-81.36354828,40.78455734),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("Allen Elementary School",'Canton=' + Canton.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.10847473,40.91236115),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alliance Digital Acdmy For Sa",'Alliance=' + Alliance.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.11109161,40.91237259),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alliance High School",'Alliance=' + Alliance.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.10588074,40.88905716),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Alliance Middle School",'Alliance=' + Alliance.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.51335907,40.83592224),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Amherst Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37582397,40.75366211),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Amos Mcdannel Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36537200,40.78380000),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Aspire Academy, The",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.41865540,40.83098602),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Avondale Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37715149,40.81433868),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Barbara F Schreiber Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.41482544,40.78835678),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Baxter Elementary School",'Canton=' + Canton.length);
Beach_City[Beach_City.length] = createMarker(new GPoint(-81.58002472,40.65206909),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beach City Elementary School",'Beach_City=' + Beach_City.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.60177612,40.80619049),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beech Grove Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.34960937,40.79568863),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belden Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.35953522,40.82075882),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belle Stone Elementary School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.57038879,40.79877090),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bowers Elementary School",'Massillon=' + Massillon.length);
Brewster[Brewster.length] = createMarker(new GPoint(-81.60101318,40.70878601),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brewster Elementary School",'Brewster=' + Brewster.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.60196686,40.80882645),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bruce H Tharrington Elementary School",'Massillon=' + Massillon.length);
Canal_Fulton[Canal_Fulton.length] = createMarker(new GPoint(-81.59677124,40.89149475),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Canal Fulton Elementary School",'Canal_Fulton=' + Canal_Fulton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.39089200,40.78493100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Canton Academy",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.41649100,40.78849200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Canton Arts Academy",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37156900,40.79781000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Canton City Practical Nursing",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37980652,40.79558945),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Canton City Sch Digital Acdmy",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37225342,40.74533844),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Canton Local Digital",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37298584,40.74986267),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Canton South High School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.40639496,40.79405975),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cedar Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.33814240,40.86642838),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Charles L Warstler Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37988281,40.83122635),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Choices Alternative School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.40335083,40.80255508),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clarendon Elementary School",'Canton=' + Canton.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.39169312,40.87336731),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clearmount Elementary School",'North_Canton=' + North_Canton.length);
Canal_Fulton[Canal_Fulton.length] = createMarker(new GPoint(-81.62759399,40.92591476),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clinton Elementary School",'Canal_Fulton=' + Canal_Fulton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.35753632,40.66756058),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Community Educational Services High School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.34039307,40.81793976),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Crenshaw Middle School",'Canton=' + Canton.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.36886597,40.80238724),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("D S Johnson Elementary School",'North_Canton=' + North_Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.39409637,40.79410934),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dueber Elementary School",'Canton=' + Canton.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.18231964,40.92124939),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dukes Digital Academy, Inc",'Alliance=' + Alliance.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36100006,40.82979965),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Childhood Kindergarten",'Canton=' + Canton.length);
East_Canton[East_Canton.length] = createMarker(new GPoint(-81.28028107,40.78973770),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Canton Digital Acad, Inc",'East_Canton=' + East_Canton.length);
East_Canton[East_Canton.length] = createMarker(new GPoint(-81.28492737,40.78633881),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Canton Elementary School",'East_Canton=' + East_Canton.length);
East_Canton[East_Canton.length] = createMarker(new GPoint(-81.28028107,40.78973770),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Canton High School",'East_Canton=' + East_Canton.length);
East_Canton[East_Canton.length] = createMarker(new GPoint(-81.28028107,40.78973770),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("East Canton Middle School",'East_Canton=' + East_Canton.length);
East_Sparta[East_Sparta.length] = createMarker(new GPoint(-81.35097504,40.66872025),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("East Sparta Elementary School",'East_Sparta=' + East_Sparta.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.45561218,40.78993607),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Edison Junior High School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.52970886,40.78755569),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Emerson Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.38291931,40.75018311),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Faircrest Memorial Middle School",'Canton=' + Canton.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.29367828,40.83104706),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairhope Elementary School",'Louisville=' + Louisville.length);
Navarre[Navarre.length] = createMarker(new GPoint(-81.58192444,40.70449829),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Fairless Digital Academy",'Navarre=' + Navarre.length);
Navarre[Navarre.length] = createMarker(new GPoint(-81.58192444,40.70449829),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Fairless High School",'Navarre=' + Navarre.length);
Navarre[Navarre.length] = createMarker(new GPoint(-81.58192444,40.70449829),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Fairless Junior High School",'Navarre=' + Navarre.length);
Canton[Canton.length] = createMarker(new GPoint(-81.32438660,40.82503891),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairmount Elementary School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.50504303,40.78298950),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Franklin Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37500763,40.84133148),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frazer Elementary School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.46554565,40.79086685),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Genoa Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36273193,40.81008911),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gibbs Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.38249207,40.84626007),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Glenoak High School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37998199,40.84614563),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Golden Eagle Digital Academy",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.55371094,40.79265594),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gorrell Elementary School",'Massillon=' + Massillon.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.40532684,40.92775345),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Greentown Elementary School",'North_Canton=' + North_Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.41650391,40.80136871),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harter Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.35500336,40.79304886),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hartford Middle School",'Canton=' + Canton.length);
Hartville[Hartville.length] = createMarker(new GPoint(-81.33472443,40.96294022),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hartville Elementary School",'Hartville=' + Hartville.length);
Minerva[Minerva.length] = createMarker(new GPoint(-81.10250092,40.73268890),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hazen Middle School",'Minerva=' + Minerva.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.39568329,40.88284683),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hoover High School",'North_Canton=' + North_Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.39337921,40.78515244),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hope Academy Canton Campus",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.55310059,40.79439926),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Indian River (irjcf) High School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.49726105,40.86095810),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jackson Digital Academy, Inc",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.49119568,40.86076736),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jackson High School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.48739624,40.86642456),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Jackson Memorial Middle School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.49726105,40.86095810),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jackson Schl For Arts, Inc",'Massillon=' + Massillon.length);
Canal_Fulton[Canal_Fulton.length] = createMarker(new GPoint(-81.59886932,40.89022827),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jones Elementary School",'Canal_Fulton=' + Canal_Fulton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.44630432,40.86668777),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Cable Elementary School",'Canton=' + Canton.length);
Hartville[Hartville.length] = createMarker(new GPoint(-81.33562469,40.96240234),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lake Elementary School",'Hartville=' + Hartville.length);
Uniontown[Uniontown.length] = createMarker(new GPoint(-81.42089844,40.96350098),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lake High School",'Uniontown=' + Uniontown.length);
Hartville[Hartville.length] = createMarker(new GPoint(-81.35799408,40.95991135),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lake Middle School",'Hartville=' + Hartville.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36425018,40.78763962),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lathrop Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.38278961,40.81425858),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lehman Middle School",'Canton=' + Canton.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.14391327,40.94798660),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lexington Elementary School",'Alliance=' + Alliance.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.09611511,40.90316391),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty Elementary School",'Alliance=' + Alliance.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37580109,40.79880142),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Life Skills Center Canton",'Canton=' + Canton.length);
Minerva[Minerva.length] = createMarker(new GPoint(-81.10177612,40.73116302),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lion Digital Academy, Inc",'Minerva=' + Minerva.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37998199,40.84614563),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Little Eagle Kindergarten Pgm",'Canton=' + Canton.length);
Navarre[Navarre.length] = createMarker(new GPoint(-81.45191193,40.74126816),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lohr Elementary School",'Navarre=' + Navarre.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.51746368,40.80000305),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Longfellow Middle School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.53083038,40.79188919),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lorin Andrews Middle School",'Massillon=' + Massillon.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.25727844,40.83756256),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Louisville Digital Academy",'Louisville=' + Louisville.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.25172424,40.83956528),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Louisville Elementary School",'Louisville=' + Louisville.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.25077820,40.82955933),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Louisville High School",'Louisville=' + Louisville.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.25791931,40.83616257),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Louisville Middle School",'Louisville=' + Louisville.length);
Magnolia[Magnolia.length] = createMarker(new GPoint(-81.30970001,40.64780045),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Magnolia Elementary School",'Magnolia=' + Magnolia.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.24055481,40.95190048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Marlboro Elementary School",'Louisville=' + Louisville.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.18231964,40.92180252),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Marlington High School",'Alliance=' + Alliance.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.18267822,40.92140961),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Marlington Middle School",'Alliance=' + Alliance.length);
Minerva[Minerva.length] = createMarker(new GPoint(-81.09711456,40.73020554),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mary Irene Day Elementary School",'Minerva=' + Minerva.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.40399170,40.87672424),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mary L Evans Kindergarten Center Elementary School",'North_Canton=' + North_Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37057495,40.83107376),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mason Elementary School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.51863098,40.79472351),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Massillon Digital Academy, Inc",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.40120697,40.78035736),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcgregor Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.39724731,40.81725693),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mckinley High School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.32966614,40.88788986),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Middlebranch Middle School",'Canton=' + Canton.length);
Minerva[Minerva.length] = createMarker(new GPoint(-81.09630585,40.73483658),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Minerva High School",'Minerva=' + Minerva.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.57949829,40.77293015),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Moffitt Heights Elementary School",'Massillon=' + Massillon.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.09325409,40.91296387),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Morgan Elementary School",'Alliance=' + Alliance.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.49726105,40.86095810),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mount Airy High School",'Massillon=' + Massillon.length);
Navarre[Navarre.length] = createMarker(new GPoint(-81.52245331,40.72124863),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Navarre Elementary School",'Navarre=' + Navarre.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.57679749,40.84102631),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Newman Elementary School",'Massillon=' + Massillon.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.40418243,40.87380219),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("North Canton Middle School",'North_Canton=' + North_Canton.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.26119995,40.87232971),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Nimishillen Elementary School",'Louisville=' + Louisville.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.12121582,40.92884827),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northside Elementary School",'Alliance=' + Alliance.length);
Canal_Fulton[Canal_Fulton.length] = createMarker(new GPoint(-81.61624908,40.90755081),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northwest High School",'Canal_Fulton=' + Canal_Fulton.length);
Canal_Fulton[Canal_Fulton.length] = createMarker(new GPoint(-81.61484528,40.90661240),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Northwest Middle School",'Canal_Fulton=' + Canal_Fulton.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.39222717,40.89236069),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northwood Elementary School",'North_Canton=' + North_Canton.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.40305328,40.86394119),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Orchard Hill Elementary School",'North_Canton=' + North_Canton.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.11672211,40.90636063),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkway Elementary School",'Alliance=' + Alliance.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36389923,40.79496384),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Passages School #1",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.46226501,40.79013824),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Perry High School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.45561218,40.78993607),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Perry Panther Digital Academy",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.45463562,40.78993607),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pfeiffer Middle School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36108398,40.85993576),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Plain Center Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37998199,40.84614563),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Plain Local Admy Of Tech, Inc Middle School",'Canton=' + Canton.length);
Louisville[Louisville.length] = createMarker(new GPoint(-81.21235657,40.83514404),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pleasant Grove Elementary School",'Louisville=' + Louisville.length);
Canton[Canton.length] = createMarker(new GPoint(-81.33053589,40.83941269),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pleasant View School For Arts Middle School",'Canton=' + Canton.length);
North_Canton[North_Canton.length] = createMarker(new GPoint(-81.40345001,40.87660217),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Portage Collab Montessori Middle School",'North_Canton=' + North_Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.41110992,40.74388885),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prairie College Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.34322600,40.81267500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Project Rebuild Community School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.48040771,40.76428223),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("R G Drage Career Technical Center",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.34661865,40.84896469),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ransom H Barr Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.44631958,40.79069138),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Reedurban Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.40612793,40.84057617),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Robert A Taft Middle School",'Canton=' + Canton.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.11561584,40.89818954),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rockhill Elementary School",'Alliance=' + Alliance.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.48887634,40.86703491),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sauder Elementary School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.50262451,40.80713654),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Smith Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.40703583,40.78795624),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Souers Middle School",'Canton=' + Canton.length);
Hartville[Hartville.length] = createMarker(new GPoint(-81.35921478,40.96260071),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("South Elementary School",'Hartville=' + Hartville.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.11150360,40.91763687),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Lincoln Elementary School",'Alliance=' + Alliance.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.10600281,40.91901779),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Stanton Middle School",'Alliance=' + Alliance.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.51065826,40.89442444),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Strausser Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.38596900,40.83889500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Summit Academy Secondary - Canton",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.38339233,40.82377625),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit Academy-canton Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.38332367,40.80688477),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.44986725,40.76996613),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("T C Knapp Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.37831879,40.79919815),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Timken High School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.60196686,40.80882645),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Tuslaw Jr./sr. High School",'Massillon=' + Massillon.length);
Uniontown[Uniontown.length] = createMarker(new GPoint(-81.40666199,40.97829437),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Uniontown Elementary School",'Uniontown=' + Uniontown.length);
Canton[Canton.length] = createMarker(new GPoint(-81.33170319,40.75970459),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Walker Elementary School",'Canton=' + Canton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36096000,40.80397100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Early Childhood Center",'Canton=' + Canton.length);
Alliance[Alliance.length] = createMarker(new GPoint(-81.09329987,40.90530014),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Alliance=' + Alliance.length);
Canton[Canton.length] = createMarker(new GPoint(-81.36141968,40.80395889),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.50118256,40.79281235),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Washington High School",'Massillon=' + Massillon.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.47475433,40.80045700),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Watson Elementary School",'Massillon=' + Massillon.length);
Waynesburg[Waynesburg.length] = createMarker(new GPoint(-81.26290131,40.67710114),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Waynesburg Elementary School",'Waynesburg=' + Waynesburg.length);
Canton[Canton.length] = createMarker(new GPoint(-81.43537903,40.81106567),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whipple Heights Elementary School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.51334381,40.81059265),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whittier Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.40770721,40.84109879),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("William R Day Elementary School",'Canton=' + Canton.length);
Canal_Fulton[Canal_Fulton.length] = createMarker(new GPoint(-81.61412811,40.90613556),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("William S Stinson Elementary School",'Canal_Fulton=' + Canal_Fulton.length);
Canton[Canton.length] = createMarker(new GPoint(-81.38588715,40.82263947),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Worley Elementary School",'Canton=' + Canton.length);
Massillon[Massillon.length] = createMarker(new GPoint(-81.49333191,40.79652023),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("York Elementary School",'Massillon=' + Massillon.length);
Canton[Canton.length] = createMarker(new GPoint(-81.33393097,40.81805801),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Youtz Elementary School",'Canton=' + Canton.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(Alliance);
map.removeOverlays(Beach_City);
map.removeOverlays(Brewster);
map.removeOverlays(Canal_Fulton);
map.removeOverlays(Canton);
map.removeOverlays(East_Canton);
map.removeOverlays(East_Sparta);
map.removeOverlays(Hartville);
map.removeOverlays(Louisville);
map.removeOverlays(Magnolia);
map.removeOverlays(Massillon);
map.removeOverlays(Minerva);
map.removeOverlays(Navarre);
map.removeOverlays(North_Canton);
map.removeOverlays(Uniontown);
map.removeOverlays(Waynesburg);
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(Canton);map.removeOverlays(Alliance);
map.removeOverlays(Beach_City);
map.removeOverlays(Brewster);
map.removeOverlays(Canal_Fulton);
map.removeOverlays(Canton);
map.removeOverlays(East_Canton);
map.removeOverlays(East_Sparta);
map.removeOverlays(Hartville);
map.removeOverlays(Louisville);
map.removeOverlays(Magnolia);
map.removeOverlays(Massillon);
map.removeOverlays(Minerva);
map.removeOverlays(Navarre);
map.removeOverlays(North_Canton);
map.removeOverlays(Uniontown);
map.removeOverlays(Waynesburg);
map.addOverlays(Alliance);
centerByArray(Alliance, false, false);
cntMarker += Alliance.length;
map.addOverlays(Beach_City);
centerByArray(Beach_City, false, false);
cntMarker += Beach_City.length;
map.addOverlays(Brewster);
centerByArray(Brewster, false, false);
cntMarker += Brewster.length;
map.addOverlays(Canal_Fulton);
centerByArray(Canal_Fulton, false, false);
cntMarker += Canal_Fulton.length;
map.addOverlays(Canton);
centerByArray(Canton, false, false);
cntMarker += Canton.length;
map.addOverlays(East_Canton);
centerByArray(East_Canton, false, false);
cntMarker += East_Canton.length;
map.addOverlays(East_Sparta);
centerByArray(East_Sparta, false, false);
cntMarker += East_Sparta.length;
map.addOverlays(Hartville);
centerByArray(Hartville, false, false);
cntMarker += Hartville.length;
map.addOverlays(Louisville);
centerByArray(Louisville, false, false);
cntMarker += Louisville.length;
map.addOverlays(Magnolia);
centerByArray(Magnolia, false, false);
cntMarker += Magnolia.length;
map.addOverlays(Massillon);
centerByArray(Massillon, false, false);
cntMarker += Massillon.length;
map.addOverlays(Minerva);
centerByArray(Minerva, false, false);
cntMarker += Minerva.length;
map.addOverlays(Navarre);
centerByArray(Navarre, false, false);
cntMarker += Navarre.length;
map.addOverlays(North_Canton);
centerByArray(North_Canton, false, false);
cntMarker += North_Canton.length;
map.addOverlays(Uniontown);
centerByArray(Uniontown, false, false);
cntMarker += Uniontown.length;
map.addOverlays(Waynesburg);
centerByArray(Waynesburg, false, false);
cntMarker += Waynesburg.length;
centerByArray(Canton,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');
}
}