function addMarkers()
{
mySelect = document.getElementById('selection');
Salt_Lake_City = [];West_Valley_City = [];Sandy = [];Draper = [];Taylorsville = [];Kearns = [];Midvale = [];South_Jordan = [];Bluffdale = [];Magna = [];West_Jordan = [];Cottonwood_Heights = [];Murray = [];West_Valley = [];Riverton = [];Herriman = [];mySelect.options[mySelect.options.length] = new Option("Bluffdale schools",'all=Bluffdale');
mySelect.options[mySelect.options.length] = new Option("Cottonwood Heights schools",'all=Cottonwood_Heights');
mySelect.options[mySelect.options.length] = new Option("Draper schools",'all=Draper');
mySelect.options[mySelect.options.length] = new Option("Herriman schools",'all=Herriman');
mySelect.options[mySelect.options.length] = new Option("Kearns schools",'all=Kearns');
mySelect.options[mySelect.options.length] = new Option("Magna schools",'all=Magna');
mySelect.options[mySelect.options.length] = new Option("Midvale schools",'all=Midvale');
mySelect.options[mySelect.options.length] = new Option("Murray schools",'all=Murray');
mySelect.options[mySelect.options.length] = new Option("Riverton schools",'all=Riverton');
mySelect.options[mySelect.options.length] = new Option("Salt Lake City schools",'all=Salt_Lake_City');
mySelect.options[mySelect.options.length] = new Option("Sandy schools",'all=Sandy');
mySelect.options[mySelect.options.length] = new Option("South Jordan schools",'all=South_Jordan');
mySelect.options[mySelect.options.length] = new Option("Taylorsville schools",'all=Taylorsville');
mySelect.options[mySelect.options.length] = new Option("West Jordan schools",'all=West_Jordan');
mySelect.options[mySelect.options.length] = new Option("West Valley schools",'all=West_Valley');
mySelect.options[mySelect.options.length] = new Option("West Valley City schools",'all=West_Valley_City');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"
",iconGr);
mySelect.options[mySelect.options.length] = new Option(" AcademyFor Math, Engin & Sci (ames)",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.00048065,40.66981125),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Academy Park Elementary School",'West_Valley_City=' + West_Valley_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.81321716,40.58582687),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Albion Middle School",'Sandy=' + Sandy.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.86258698,40.55054474),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alta High School",'Sandy=' + Sandy.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.86651611,40.56353760),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Alta View Elementary School",'Sandy=' + Sandy.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.86889648,40.55136490),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Altara Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Alter Safe Sch-elem Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Alter Safe Sch-jr High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alter Safe Sch-sr High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Draper[Draper.length] = createMarker(new GPoint(-111.87129974,40.58969879),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("American Prep Academy",'Draper=' + Draper.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.97363281,40.66376114),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arcadia Elementary School",'Taylorsville=' + Taylorsville.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87803900,40.69082400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Artec (non-custodial)",'Salt_Lake_City=' + Salt_Lake_City.length);
Kearns[Kearns.length] = createMarker(new GPoint(-111.98190308,40.63846207),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Artec Junior High School",'Kearns=' + Kearns.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.89649300,40.62059400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Artec South",'Midvale=' + Midvale.length);
Kearns[Kearns.length] = createMarker(new GPoint(-111.96981900,40.65308500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Artec West-sr High School",'Kearns=' + Kearns.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93367767,40.78253937),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Backman Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81938934,40.72966385),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beacon Heights Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Kearns[Kearns.length] = createMarker(new GPoint(-112.02469635,40.65240097),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beehive Elementary School",'Kearns=' + Kearns.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.50888300,40.72530200),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Beehive Science & Technology Academy (bsta)",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.87100220,40.55160141),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bell View Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82970428,40.62413788),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bella Vista Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.96259308,40.64612961),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bennion Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.95764160,40.64120483),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bennion Junior High School",'Taylorsville=' + Taylorsville.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.94741058,40.56243515),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bingham High School",'South_Jordan=' + South_Jordan.length);
Bluffdale[Bluffdale.length] = createMarker(new GPoint(-111.95751953,40.49096298),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bluffdale Elementary School",'Bluffdale=' + Bluffdale.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.83631897,40.74433517),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bonneville Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84507751,40.65466309),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bonneville Junior High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82703400,40.61296463),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brighton High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Magna[Magna.length] = createMarker(new GPoint(-112.09581757,40.70677567),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Brockbank Junior High School",'Magna=' + Magna.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.81980133,40.59409332),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brookwood Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86847687,40.76850891),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bryant Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84385681,40.62400055),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Butler Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81548309,40.61443710),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Butler Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.94741058,40.63873672),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Calvin S Smith Elementary School",'Taylorsville=' + Taylorsville.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81002045,40.70550156),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Canyon Rim Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.80693054,40.60926437),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Canyon View Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.01837921,40.68444824),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Carl Sandburg Elementary School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87679291,40.68723679),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Central High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84548187,40.75143433),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Children Behavior Therapy Unit",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89469600,40.69163000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Christmas Box House",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.79755402,40.67836380),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Churchill Junior High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93939209,40.77054596),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("City Academy",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.83931732,40.73695374),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Clayton Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.97421265,40.60936356),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Columbia Elementary School",'West_Jordan=' + West_Jordan.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89382172,40.69518661),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Columbus Community Center",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.02109000,40.59024700),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Copper Canyon School",'West_Jordan=' + West_Jordan.length);
Magna[Magna.length] = createMarker(new GPoint(-112.07440186,40.68650055),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Copper Hills Elementary School",'Magna=' + Magna.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.01824188,40.59630585),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Copper Hills High School",'West_Jordan=' + West_Jordan.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.89585876,40.59761047),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Copperview Elementary School",'Midvale=' + Midvale.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81709290,40.65682602),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cottonwood Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Cottonwood_Heights[Cottonwood_Heights.length] = createMarker(new GPoint(-111.82034302,40.61232376),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cottonwood Heights Elementary School",'Cottonwood_Heights=' + Cottonwood_Heights.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.85431671,40.64746475),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cottonwood High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Murray[Murray.length] = createMarker(new GPoint(-111.88694000,40.66063690),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Creekside High School",'Murray=' + Murray.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.88458252,40.55099869),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crescent Elementary School",'Sandy=' + Sandy.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.88127899,40.55099487),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Crescent View Middle School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.83104706,40.68092728),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crestview Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Magna[Magna.length] = createMarker(new GPoint(-112.09985352,40.70594406),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cyprus High School",'Magna=' + Magna.length);
Kearns[Kearns.length] = createMarker(new GPoint(-111.99361420,40.66234207),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("David Gourley Elementary School",'Kearns=' + Kearns.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.99841200,40.53899800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Daybreak School",'South_Jordan=' + South_Jordan.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.94818878,40.70890045),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Decker Lake Youth Center",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.83061981,40.72809982),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dilworth Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.05218506,40.68943787),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Douglas T Orchard Elementary School",'West_Valley_City=' + West_Valley_City.length);
Draper[Draper.length] = createMarker(new GPoint(-111.86081696,40.52136230),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Draper Elementary School",'Draper=' + Draper.length);
Draper[Draper.length] = createMarker(new GPoint(-111.89231300,40.51361100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Draper Group Home",'Draper=' + Draper.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dream Charter School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.85408020,40.75108719),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East High School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley[West_Valley.length] = createMarker(new GPoint(-111.97716400,40.72375300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Hollywood High School",'West_Valley=' + West_Valley.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.88198090,40.62446213),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Midvale Elementary School",'Midvale=' + Midvale.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.86671448,40.60047150),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("East Sandy Elementary School",'Sandy=' + Sandy.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.85327911,40.56768036),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Eastmont Middle School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.79441833,40.69955826),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eastwood Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.85995483,40.57333755),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edgemont Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93447876,40.75915909),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edison Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.93872070,40.67616272),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Eisenhower Junior High School",'Taylorsville=' + Taylorsville.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.97313690,40.57333755),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Elk Meadows Elementary School",'South_Jordan=' + South_Jordan.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.97850800,40.57316208),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Elk Ridge Middle School",'South_Jordan=' + South_Jordan.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86184692,40.74003601),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Emerson Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86755371,40.78313828),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ensign Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.94172668,40.78913879),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Escalante Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.83391571,40.69752121),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Evergreen Junior High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.98059845,40.50519943),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Foothills Elementary School",'Riverton=' + Riverton.length);
Herriman[Herriman.length] = createMarker(new GPoint(-112.03303700,40.49516900),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Fort Herriman Middle School",'Herriman=' + Herriman.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.98113251,40.64172363),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fox Hills Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.96981900,40.65308500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fox Hills Magnet School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.92306519,40.76266479),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Franklin Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Draper[Draper.length] = createMarker(new GPoint(-111.87200165,40.51169968),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Genesis (yic) High School",'Draper=' + Draper.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93080139,40.73703766),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Glendale Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.95332336,40.68953705),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Granger Elementary School",'West_Valley_City=' + West_Valley_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.97727966,40.69197845),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Granger High School",'West_Valley_City=' + West_Valley_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.80577850,40.57358170),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Granite Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87673187,40.69966888),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Granite High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88531494,40.70494843),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Granite Park Junior High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81911100,40.72583100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Granite Technical Institute (gti)",'Salt_Lake_City=' + Salt_Lake_City.length);
Murray[Murray.length] = createMarker(new GPoint(-111.91449738,40.63740158),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Grant Elementary School",'Murray=' + Murray.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.92108154,40.76192474),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Guadalupe Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.96731567,40.66901398),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harry S Truman Elementary School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93290500,40.69408900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hartvigsen School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87371826,40.73388672),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hawthorne Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.01248932,40.60593796),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hayden Peak Elementary School",'West_Jordan=' + West_Jordan.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.93298340,40.62396240),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Heartland Elementary School",'West_Jordan=' + West_Jordan.length);
Herriman[Herriman.length] = createMarker(new GPoint(-112.03408051,40.51246262),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Herriman Elementary School",'Herriman=' + Herriman.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84214020,40.72401047),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Highland High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84072876,40.71256256),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highland Park Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86191700,40.67797700),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hill View Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.86651611,40.61741638),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hillcrest High School",'Midvale=' + Midvale.length);
Murray[Murray.length] = createMarker(new GPoint(-111.88748932,40.65596390),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hillcrest Junior High School",'Murray=' + Murray.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.96968842,40.70376205),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hillsdale Elementary School",'West_Valley_City=' + West_Valley_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.03411865,40.67781448),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hillside Elementary School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82433319,40.72987366),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hillside Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88971400,40.71644300),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hmbd. & Hospitalized",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88971400,40.71644300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hmbd. & Hospitalized",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88971400,40.71644300),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hmbd. & Hospitalized",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82456207,40.67190552),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Holladay Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Murray[Murray.length] = createMarker(new GPoint(-111.90979004,40.65891266),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Horizon Elementary School",'Murray=' + Murray.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89128113,40.74247360),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Horizonte Instr & Train Center",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hospital - Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hospital - Sec",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81517792,40.67690277),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Howard R Driggs Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.01976776,40.67615128),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hunter Elementary School",'West_Valley_City=' + West_Valley_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.02487946,40.67964554),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hunter High School",'West_Valley_City=' + West_Valley_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.03742981,40.68956375),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hunter Junior High School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88193700,40.69463000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Id Groups Self-cont",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81946564,40.73976135),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Hills Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.85660553,40.54046249),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Indian Hills Middle School",'Sandy=' + Sandy.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.97320300,40.58498600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Itineris Early College High School",'West_Jordan=' + West_Jordan.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.00086212,40.69015121),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jackling Elementary School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.91255951,40.77383804),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jackson Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87681580,40.67599487),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James E Moss Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.98030090,40.51050186),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jean Massieu School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.01834869,40.63591766),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jim Bridger Elementary School",'West_Jordan=' + West_Jordan.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.96562100,40.60397500),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Joel P Jensen Middle School",'West_Jordan=' + West_Jordan.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.93569946,40.67860031),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John C Fremont Elementary School",'Taylorsville=' + Taylorsville.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.00541687,40.67240143),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("John F Kennedy Junior High School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88092804,40.69276428),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jones Center V & A",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.88738251,40.57135391),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jordan High School",'Sandy=' + Sandy.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.00537872,40.58967209),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jordan Hills Elementary School",'West_Jordan=' + West_Jordan.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.90061188,40.61103821),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jordan Resource Center",'Midvale=' + Midvale.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.95652008,40.57333755),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jordan Ridge Elementary School",'South_Jordan=' + South_Jordan.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.86241913,40.61493301),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jordan Valley School",'Midvale=' + Midvale.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.88086100,40.58152200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("K.i.d.s.",'Sandy=' + Sandy.length);
Kearns[Kearns.length] = createMarker(new GPoint(-112.00540924,40.65080261),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Kearns High School",'Kearns=' + Kearns.length);
Kearns[Kearns.length] = createMarker(new GPoint(-111.98781586,40.65513611),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kearns Junior High School",'Kearns=' + Kearns.length);
Magna[Magna.length] = createMarker(new GPoint(-112.06999969,40.70240021),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Ridge Elementary School",'Magna=' + Magna.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84477234,40.70003510),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Libbie Edward Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Murray[Murray.length] = createMarker(new GPoint(-111.89565277,40.63863754),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty Elementary School",'Murray=' + Murray.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87803900,40.69082400),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lincoln Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88345800,40.72544100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lincoln School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.82711792,40.54209900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lone Peak Elementary School",'Sandy=' + Sandy.length);
Murray[Murray.length] = createMarker(new GPoint(-111.87567902,40.63801193),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Longview Elementary School",'Murray=' + Murray.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87892151,40.77241135),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lowell Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86791992,40.75994110),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("M Lynn Bennion Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Magna[Magna.length] = createMarker(new GPoint(-112.09433746,40.70383835),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Magna Elementary School",'Magna=' + Magna.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.93898010,40.61586761),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Majestic Elementary School",'West_Jordan=' + West_Jordan.length);
Murray[Murray.length] = createMarker(new GPoint(-111.88237000,40.64242172),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mc Millan Elementary School",'Murray=' + Murray.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84230042,40.72652054),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadow Moor Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.94548035,40.78012466),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Meadowlark Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.90132904,40.61103821),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Midvale Elementary School",'Midvale=' + Midvale.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.89987946,40.60836411),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Midvale Middle School",'Midvale=' + Midvale.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.88416290,40.60973740),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Midvalley Elementary School",'Midvale=' + Midvale.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89382172,40.69518661),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Milam Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.85961914,40.68941879),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mill Creek Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88193700,40.69463000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Misc Self-cont",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.99755859,40.70403671),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monroe Elementary School",'West_Valley_City=' + West_Valley_City.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.95751953,40.54888916),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monte Vista Elementary School",'South_Jordan=' + South_Jordan.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.80718231,40.68108749),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Morningside Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82165900,40.67983000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Morningside Magnet School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.01634979,40.62386322),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mountain Shadows Elementary School",'West_Jordan=' + West_Jordan.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.92967987,40.73905182),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mountain View Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Cottonwood_Heights[Cottonwood_Heights.length] = createMarker(new GPoint(-111.84472656,40.62413788),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mountview Elementary School",'Cottonwood_Heights=' + Cottonwood_Heights.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.88197327,40.58155441),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mt Jordan Middle School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89257812,40.68686295),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mt View Learning Center",'Salt_Lake_City=' + Salt_Lake_City.length);
Murray[Murray.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Murray Adult Transition",'Murray=' + Murray.length);
Murray[Murray.length] = createMarker(new GPoint(-111.88856506,40.65296173),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Murray High School",'Murray=' + Murray.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.00259800,40.62670400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Navigator Pointe Academy",'West_Jordan=' + West_Jordan.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93028259,40.79610062),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Newman Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86811829,40.71067047),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nibley Park Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Bluffdale[Bluffdale.length] = createMarker(new GPoint(-111.95933700,40.49676700),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Star Academy",'Bluffdale=' + Bluffdale.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.94674683,40.80316925),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Star Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93157959,40.79403687),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Northwest Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.91708374,40.69647217),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("O H Herman Middle School",'Salt_Lake_City=' + Salt_Lake_City.length);
Draper[Draper.length] = createMarker(new GPoint(-111.86302185,40.52504730),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oak Hollow Elementary School",'Draper=' + Draper.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.04695100,40.59799100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakcrest School",'West_Jordan=' + West_Jordan.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.83673859,40.60491180),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakdale Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.79021454,40.67744827),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakridge Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.83481598,40.64528656),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakwood Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89283752,40.68686295),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Observ & Assess Ct-jr High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89302400,40.68650300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Observation & Assessment Center",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.87337600,40.76540800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Odyssey Academy (yic)",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82431793,40.68361282),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Olympus High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82734680,40.66740799),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Olympus Junior High School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.97042084,40.62118530),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oquirrh Elementary School",'West_Jordan=' + West_Jordan.length);
Kearns[Kearns.length] = createMarker(new GPoint(-111.99291992,40.65571976),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oquirrh Hills Elementary School",'Kearns=' + Kearns.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.95751953,40.51603317),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oquirrh Hills Middle School",'Riverton=' + Riverton.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.82439423,40.57039261),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Park Lane Elementary School",'Sandy=' + Sandy.length);
Murray[Murray.length] = createMarker(new GPoint(-111.87752533,40.65763474),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkside Elementary School",'Murray=' + Murray.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.92488098,40.74879074),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkview Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.84744263,40.59835052),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Peruvian Park Elementary School",'Sandy=' + Sandy.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.99182129,40.69063950),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Philo T Farnsworth Elementary School",'West_Valley_City=' + West_Valley_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.97197723,40.68833923),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pioneer Elementary School",'West_Valley_City=' + West_Valley_City.length);
Magna[Magna.length] = createMarker(new GPoint(-112.08730316,40.70994568),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pleasant Green Elementary School",'Magna=' + Magna.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.93118286,40.65597916),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Plymouth Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Private Elementary (rec Serv In Pub Sch)",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Private Sec (rec Serv In Pub Sch) High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.81700134,40.58653641),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Quail Hollow Elementary School",'Sandy=' + Sandy.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.93907928,40.71317291),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Redwood Elementary School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84070587,40.62026215),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ridgecrest Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.91405487,40.73947144),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riley Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.92682648,40.59291077),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverside Elementary School",'West_Jordan=' + West_Jordan.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.94138336,40.51216507),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverton Elementary School",'Riverton=' + Riverton.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.95787811,40.52444839),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Riverton High School",'Riverton=' + Riverton.length);
Murray[Murray.length] = createMarker(new GPoint(-111.91220093,40.64576340),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Riverview Junior High School",'Murray=' + Murray.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.97354126,40.67500305),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Robert Frost Elementary School",'West_Valley_City=' + West_Valley_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.96274567,40.68453598),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rolling Meadows Elementary School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86821747,40.70056152),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roosevelt Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.94381714,40.53016281),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosamond Elementary School",'Riverton=' + Riverton.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.97688293,40.51836014),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rose Creek Elementary School",'Riverton=' + Riverton.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.92383575,40.79086304),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rose Park Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.82148743,40.70706177),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosecrest Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.83451843,40.72165298),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosslyn Heights Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88331604,40.77447510),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Salt Lake Arts Academy",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.91708374,40.69647217),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Salt Lake Co Detntn Ctr-jr High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.88191986,40.59291077),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sandy Elementary School",'Sandy=' + Sandy.length);
Magna[Magna.length] = createMarker(new GPoint(-112.07597351,40.69318771),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Scott M Matheson Junior High School",'Magna=' + Magna.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.90428162,40.76466751),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shelter Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Midvale[Midvale.length] = createMarker(new GPoint(-111.89707400,40.61985800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shelter School",'Midvale=' + Midvale.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88193700,40.69463000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sid Self-cont",'Salt_Lake_City=' + Salt_Lake_City.length);
Kearns[Kearns.length] = createMarker(new GPoint(-112.02652740,40.65923691),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Silver Hills Elementary School",'Kearns=' + Kearns.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.84387970,40.58992004),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Silver Mesa Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.80184937,40.68957901),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Skyline High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.98648071,40.50601196),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("South Hills Middle School",'Riverton=' + Riverton.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.93039703,40.56233978),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Jordan Elementary School",'South_Jordan=' + South_Jordan.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.95761871,40.56578445),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("South Jordan Middle School",'South_Jordan=' + South_Jordan.length);
Kearns[Kearns.length] = createMarker(new GPoint(-111.99691772,40.65003586),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Kearns Elementary School",'Kearns=' + Kearns.length);
Draper[Draper.length] = createMarker(new GPoint(-111.88629913,40.57929993),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("South Park Academy",'Draper=' + Draper.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.93888092,40.59866714),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Valley Enterprises Elementary School",'West_Jordan=' + West_Jordan.length);
Riverton[Riverton.length] = createMarker(new GPoint(-111.95751953,40.52093124),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southland Elementary School",'Riverton=' + Riverton.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Speech Only Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.86251831,40.53283310),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sprucewood Elementary School",'Sandy=' + Sandy.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.95818329,40.70485687),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stansbury Elementary School",'West_Valley_City=' + West_Valley_City.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.94087982,40.68171310),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Success School",'Taylorsville=' + Taylorsville.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.93888092,40.59866714),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sul Ross Elementary School",'West_Jordan=' + West_Jordan.length);
Draper[Draper.length] = createMarker(new GPoint(-111.85389400,40.51152100),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Summit Academy",'Draper=' + Draper.length);
Murray[Murray.length] = createMarker(new GPoint(-111.88671875,40.66024399),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Summit Program",'Murray=' + Murray.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.84269714,40.54710007),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunrise Elementary School",'Sandy=' + Sandy.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.99986000,40.60224900),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Sunset Ridge Middle School",'West_Jordan=' + West_Jordan.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.94484711,40.67913818),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Taylorsville Elementary School",'Taylorsville=' + Taylorsville.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.93862152,40.65628433),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Taylorsville High School",'Taylorsville=' + Taylorsville.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.00086212,40.69015121),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Teen Parent High School",'West_Valley_City=' + West_Valley_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.97154236,40.58697891),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Terra Linda Elementary School",'West_Jordan=' + West_Jordan.length);
Kearns[Kearns.length] = createMarker(new GPoint(-112.02478027,40.64501953),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson Junior High School",'Kearns=' + Kearns.length);
Kearns[Kearns.length] = createMarker(new GPoint(-112.03336334,40.64353180),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas W Bacchus Elementary School",'Kearns=' + Kearns.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86191559,40.65464020),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Twin Peaks Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84555054,40.74173737),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Uintah Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.87411499,40.60603714),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Union Middle School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81132507,40.69029617),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Upland Terrace Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.01620483,40.70393753),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Valley Crest Elementary School",'West_Valley_City=' + West_Valley_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.89100647,40.55112076),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Valley High School",'Sandy=' + Sandy.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.96731567,40.68017578),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Valley Junior High School",'West_Valley_City=' + West_Valley_City.length);
Murray[Murray.length] = createMarker(new GPoint(-111.91210937,40.64749146),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Viewmont Elementary School",'Murray=' + Murray.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.94821930,40.66272354),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Vista Elementary School",'Taylorsville=' + Taylorsville.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.85781860,40.77008438),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wasatch Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.80558014,40.68981171),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Wasatch Junior High School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.91137695,40.69493484),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Wasatch Youth Center",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89651489,40.77849579),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
South_Jordan[South_Jordan.length] = createMarker(new GPoint(-111.98944855,40.57753754),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Welby Elementary School",'South_Jordan=' + South_Jordan.length);
Murray[Murray.length] = createMarker(new GPoint(-111.88237000,40.64242172),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wellington High School",'Murray=' + Murray.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.89987946,40.77458191),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("West High School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-112.02017975,40.60095215),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("West Hills Middle School",'West_Jordan=' + West_Jordan.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.95167542,40.61996078),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Jordan Elementary School",'West_Jordan=' + West_Jordan.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.95797729,40.60264587),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("West Jordan High School",'West_Jordan=' + West_Jordan.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.93898010,40.61405182),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("West Jordan Middle School",'West_Jordan=' + West_Jordan.length);
Kearns[Kearns.length] = createMarker(new GPoint(-112.00138092,40.66267395),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Kearns Elementary School",'Kearns=' + Kearns.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-111.97367859,40.69852066),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("West Lake Junior High School",'West_Valley_City=' + West_Valley_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.03546906,40.70436478),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("West Valley Elementary School",'West_Valley_City=' + West_Valley_City.length);
Taylorsville[Taylorsville.length] = createMarker(new GPoint(-111.97441864,40.63846207),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westbrook Elementary School",'Taylorsville=' + Taylorsville.length);
Kearns[Kearns.length] = createMarker(new GPoint(-112.01058960,40.65661240),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Western Hills Elementary School",'Kearns=' + Kearns.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.96213531,40.62046432),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westland Elementary School",'West_Jordan=' + West_Jordan.length);
West_Jordan[West_Jordan.length] = createMarker(new GPoint(-111.95048523,40.59423828),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westvale Elementary School",'West_Jordan=' + West_Jordan.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whittier Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
West_Valley_City[West_Valley_City.length] = createMarker(new GPoint(-112.03373718,40.69636154),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whittier Elementary School",'West_Valley_City=' + West_Valley_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.84417725,40.69160461),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("William Penn Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Sandy[Sandy.length] = createMarker(new GPoint(-111.84397888,40.57575607),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Willow Canyon Elementary School",'Sandy=' + Sandy.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.86191700,40.67797700),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Women's Haven",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.88523865,40.70975876),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodrow Wilson Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.85440826,40.64173126),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodstock Elementary School",'Salt_Lake_City=' + Salt_Lake_City.length);
Salt_Lake_City[Salt_Lake_City.length] = createMarker(new GPoint(-111.81590271,40.73830032),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Youth Services-elem Elementary School",'Salt_Lake_City=' + Salt_Lake_City.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(Bluffdale);
map.removeOverlays(Cottonwood_Heights);
map.removeOverlays(Draper);
map.removeOverlays(Herriman);
map.removeOverlays(Kearns);
map.removeOverlays(Magna);
map.removeOverlays(Midvale);
map.removeOverlays(Murray);
map.removeOverlays(Riverton);
map.removeOverlays(Salt_Lake_City);
map.removeOverlays(Sandy);
map.removeOverlays(South_Jordan);
map.removeOverlays(Taylorsville);
map.removeOverlays(West_Jordan);
map.removeOverlays(West_Valley);
map.removeOverlays(West_Valley_City);
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(Salt_Lake_City);map.removeOverlays(Bluffdale);
map.removeOverlays(Cottonwood_Heights);
map.removeOverlays(Draper);
map.removeOverlays(Herriman);
map.removeOverlays(Kearns);
map.removeOverlays(Magna);
map.removeOverlays(Midvale);
map.removeOverlays(Murray);
map.removeOverlays(Riverton);
map.removeOverlays(Salt_Lake_City);
map.removeOverlays(Sandy);
map.removeOverlays(South_Jordan);
map.removeOverlays(Taylorsville);
map.removeOverlays(West_Jordan);
map.removeOverlays(West_Valley);
map.removeOverlays(West_Valley_City);
map.addOverlays(Bluffdale);
centerByArray(Bluffdale, false, false);
cntMarker += Bluffdale.length;
map.addOverlays(Cottonwood_Heights);
centerByArray(Cottonwood_Heights, false, false);
cntMarker += Cottonwood_Heights.length;
map.addOverlays(Draper);
centerByArray(Draper, false, false);
cntMarker += Draper.length;
map.addOverlays(Herriman);
centerByArray(Herriman, false, false);
cntMarker += Herriman.length;
map.addOverlays(Kearns);
centerByArray(Kearns, false, false);
cntMarker += Kearns.length;
map.addOverlays(Magna);
centerByArray(Magna, false, false);
cntMarker += Magna.length;
map.addOverlays(Midvale);
centerByArray(Midvale, false, false);
cntMarker += Midvale.length;
map.addOverlays(Murray);
centerByArray(Murray, false, false);
cntMarker += Murray.length;
map.addOverlays(Riverton);
centerByArray(Riverton, false, false);
cntMarker += Riverton.length;
map.addOverlays(Salt_Lake_City);
centerByArray(Salt_Lake_City, false, false);
cntMarker += Salt_Lake_City.length;
map.addOverlays(Sandy);
centerByArray(Sandy, false, false);
cntMarker += Sandy.length;
map.addOverlays(South_Jordan);
centerByArray(South_Jordan, false, false);
cntMarker += South_Jordan.length;
map.addOverlays(Taylorsville);
centerByArray(Taylorsville, false, false);
cntMarker += Taylorsville.length;
map.addOverlays(West_Jordan);
centerByArray(West_Jordan, false, false);
cntMarker += West_Jordan.length;
map.addOverlays(West_Valley);
centerByArray(West_Valley, false, false);
cntMarker += West_Valley.length;
map.addOverlays(West_Valley_City);
centerByArray(West_Valley_City, false, false);
cntMarker += West_Valley_City.length;
centerByArray(Salt_Lake_City,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');
}
}