function addMarkers()
{
mySelect = document.getElementById('selection');
Baltimore = [];Balitmore = [];mySelect.options[mySelect.options.length] = new Option("Balitmore schools",'all=Balitmore');
mySelect.options[mySelect.options.length] = new Option("Baltimore schools",'all=Baltimore');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60015106,39.32482147),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("Abbottston Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56064800,39.36639900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Academy For College And Career Exploration",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66527557,39.29723740),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Alexander Hamilton Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60790253,39.29710007),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Education School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64297485,39.29663849),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Alternative Elementary School",'Baltimore=' + Baltimore.length);
Balitmore[Balitmore.length] = createMarker(new GPoint(-85.62944031,31.46012878),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative Learning Center",'Balitmore=' + Balitmore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68476868,39.35078430),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arlington Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.55432892,39.30413437),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Armistead Gardens Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62050629,39.25356293),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Arnett J. Brown, Junior Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62722778,39.25252151),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Arundel Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66312000,39.28440500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Augusta Fells Savage Institute Of Visual Arts",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59509277,39.32729340),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baltimore City College High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60790253,39.29710007),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baltimore Freedom Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64301300,39.34517670),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baltimore Polytechnic Institute High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61716461,39.29830933),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baltimore School For Arts",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64021900,39.29686800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Baltimore Talent Development",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61126709,39.32354355),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Barclay Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59923553,39.22724915),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bay-brook Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.69357300,39.28118515),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beechfield Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67083740,39.30384445),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belmont Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59327698,39.23272705),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Benjamin Franklin Junior High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65317535,39.29085159),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bentalou Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62779999,39.30280304),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Booker T. Washington Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56847382,39.32081604),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brehms Lane Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68529900,39.64713600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bridge Center",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67788696,39.33676147),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Callaway Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65837860,39.30064011),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Calverton Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.69475555,39.33000183),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Calvin M. Rodwell Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56861877,39.28335190),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Canton Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65257263,39.30495071),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Carver Vocational-technical High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.70001221,39.27718735),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Catonsville Education Center",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60538483,39.31282425),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cecil Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62445068,39.29850388),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Central Career Center At Briscoe",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63567352,39.28026199),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Charles Carroll Barrister Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62391663,39.24829102),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cherry Hill Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60208893,39.35480499),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Chinquapin Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.53442200,39.34903600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("City Neighborhood Charter School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59726715,39.29015350),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("City Springs Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.55507660,39.30381393),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Claremont School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60152435,39.32046890),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Coldstream Park Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58702087,39.30712128),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Collington Square Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58767700,39.29304123),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Commodore John Rogers Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66503906,39.32156372),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Connexions Community Leadership Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65815800,39.30966800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Coppin Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68673706,39.36223984),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cross Country Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59676361,39.28223801),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Crossroads School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59352112,39.22591019),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Curtis Bay Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61369324,39.31317902),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dallas F. Nicholas Senior Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.70323944,39.31159210),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dickey Hill Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63755035,39.28210831),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Diggs-johnson Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60717773,39.27746201),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Digital Harbor High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59828949,39.30643082),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Bernard Harris, Senior Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62274933,39.25192642),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Carter Godwin Woodson Prek Through 8 Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65607452,39.33340073),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Martin Luther King, Junior Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66837311,39.33001709),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Nathan A. Pitts Ashburton Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58417511,39.30350113),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dr. Rayner Browne Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65878296,39.34461212),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dr. Roland N. Patterson Senior Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61054993,39.30106354),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Eager Street Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66266632,39.34492874),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edgecombe Circle Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67608643,39.30902863),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edgewood Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68914795,39.29191971),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Edmondson-westside High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59101868,39.30356598),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Elmer A. Henderson Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67079926,39.31060028),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Empowerment Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62958527,39.30639648),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eutaw-marshburn Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59375763,39.31825256),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Fairmount-harford High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.70476532,39.36314011),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Fallstaff Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61087799,39.27746582),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Federal Hill Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.69026184,39.33177948),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Forest Park High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57981110,39.30796432),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fort Worthington Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63964081,39.28971100),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Francis M. Wood Alternative High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59429932,39.26901627),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Francis Scott Key Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.54044342,39.31953430),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Frankford Intermediate",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63987732,39.29093552),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Franklin Square Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65466309,39.31533432),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Frederick Douglass High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65592957,39.28340530),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frederick Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.55368042,39.32945633),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Furley Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62995148,39.29951859),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Furman L. Templeton Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.55259705,39.33766556),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gardenville Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56838226,39.34845734),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Garrett Heights Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68296051,39.33153534),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Garrison Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59007263,39.28866959),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("General Wolfe Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64033508,39.30660248),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("George G. Kelson Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68452454,39.33683014),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("George W. F. Mcmechen Middle/high High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62887573,39.28106308),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("George Washington Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64302063,39.30335999),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gilmor Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.54277039,39.35154724),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glenmount Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60971832,39.36076736),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Govans Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.54032135,39.28173828),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Graceland Park Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.69950867,39.34246445),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Grove Park Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60965729,39.34358215),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Guilford Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66201019,39.31500626),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gwynns Falls Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.55812073,39.35918427),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hamilton Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.55538940,39.35042572),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hamilton Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62960815,39.33148575),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hampden Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57595825,39.28615189),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hampstead Hill Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63417053,39.29235077),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Harbor City High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59491730,39.31244659),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harford Heights Intermediate",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59491730,39.31244659),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harford Heights Primary",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64028931,39.29886246),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harlem Park Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64297485,39.29663849),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Harlem Park Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64649963,39.29626465),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harriet Tubman Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.53974915,39.33884430),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hazelwood Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57054800,39.29014200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highlandtown Elementary #215",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.54889679,39.28440094),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highlandtown Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57302094,39.29105377),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Highlandtown Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67318726,39.31926346),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hilton Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.53817749,39.27636337),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Holabird Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67610600,39.31013400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Homeland Security High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60000800,39.29419400),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Inner Harbor East Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67610600,39.31013400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Institute Of Business And Entrepreneurship",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63352203,39.28754044),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James Mchenry Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65528870,39.29972458),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James Mosher Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63266754,39.31109619),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John Eager Howard Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61231995,39.29048157),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John Ruhrah Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60482025,39.30294800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Johnston Square Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65878296,39.34461212),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kipp Ujima Village Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65937042,39.29737854),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lafayette Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58962250,39.31614304),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lake Clifton-eastern High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64511108,39.25404739),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakeland Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58103943,39.30889511),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakewood Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68048859,39.34271622),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Langston Hughes Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58742523,39.31443787),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Laurence G. Paquin Middle/high",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59191132,39.36566925),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Leith Walk Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67610600,39.31013400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Liberal Arts Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68296814,39.32607651),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Liberty Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65012360,39.29204559),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lockerman Bundy Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58875275,39.34654999),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lois T. Murray Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59616089,39.29016113),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lombard Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68372345,39.29425049),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lyndhurst Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60757446,39.23672485),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maree Garnett Farring Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61531830,39.31953812),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Margaret Brent Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62992500,39.31064400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Maritime Industries Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67570496,39.29201508),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mary E. Rodman Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64988708,39.30662918),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Matthew A. Henson Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64210510,39.34041214),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Medfield Heights Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58925629,39.33105087),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Mergenthaler Vocational-technical High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62203217,39.30820847),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Midtown Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58623505,39.32748032),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Montebello Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.53999329,39.31764221),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Moravia Park Primary",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65085602,39.26391602),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Morrell Park Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62492371,39.30897522),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mount Royal Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65467072,39.36610413),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mount Washington Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61231995,39.29048157),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Naf Learning Community At Port Discovery",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61450195,39.22819901),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("New Era Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58070374,39.31290054),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("New High School At #40",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64311981,39.30467224),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("New Song Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.70545959,39.28225327),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Bend Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.55070496,39.32446671),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Northeast Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.70304871,39.36480713),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northwestern High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59177400,39.34562900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northwood Community Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59017944,39.35229111),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northwood Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62269592,39.24661636),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Patapsco Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56420900,39.29269000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Patterson High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57908500,39.29284500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Patterson Park Public Charter School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59864807,39.29523849),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Paul Laurence Dunbar High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59747314,39.29613495),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Paul Laurence Dunbar Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56226349,39.36687088),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pdc/northern Learning Community",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66864014,39.34787369),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pimlico Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68324280,39.35334015),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pimlico Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57216300,39.36544900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Reginald F. Lewis High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66312000,39.28440500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Renaissance Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63772583,39.33048248),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Robert Poole Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65597534,39.31243515),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Robert W. Coleman Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.69165039,39.29828262),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rognel Heights Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63455963,39.35676575),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roland Park Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66352081,39.30456161),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rosemont Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62569427,39.29938889),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Samuel Coleridge-taylor Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64974213,39.28190994),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Samuel F. B. Morse Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67433929,39.28238678),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sarah M. Roach Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61877441,39.27605057),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sharp-leadenhall Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56095886,39.31472015),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sinclair Lane Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.53089142,39.28491974),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Southeast Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60717773,39.27746201),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Southern Senior High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62050629,39.25356293),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Southside Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63349300,39.28766300),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southwest Baltimore Charter School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66271210,39.28340149),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Southwestern High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.56226349,39.36687088),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Stadium School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64244843,39.28710938),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Steuart Hill Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58527374,39.29773712),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tench Tilghman Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.59973907,39.29735947),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas G. Hayes Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.69899750,39.29503250),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.61141968,39.27073669),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas Johnson Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.54627228,39.31859207),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Thurgood Marshall High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.54819489,39.32168961),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thurgood Marshall Middle #170",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63343048,39.29820633),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Upton School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67456055,39.26793671),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Violetville Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66312000,39.28440500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Vivien T Thomas Medical Arts Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57080078,39.36624908),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("W.e.b. Dubois Senior High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.67617798,39.31003952),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Walbrook High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60453033,39.34248734),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Walter P. Carter Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60610962,39.32976151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Waverly Career Center",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60377502,39.33003998),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Waverly Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.70578766,39.28289795),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("West Baltimore Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64131927,39.34609604),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Western High School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.62509918,39.27000046),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westport Academy",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63782501,39.26259613),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westport School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.64514923,39.31402588),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westside Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.66503906,39.32156372),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("William H. Lemmel Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.57939148,39.29463196),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("William Paca Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.63662720,39.30258179),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("William Pinderhughes Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.65710449,39.31108856),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("William S. Baer School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.68298340,39.31681061),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Windsor Hills Elementary School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.60013580,39.34894943),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Winston Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.54815674,39.32169342),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Woodbourne Day School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.53924561,39.36759186),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodhome Elementary Middle School",'Baltimore=' + Baltimore.length);
Baltimore[Baltimore.length] = createMarker(new GPoint(-76.58399200,39.36257935),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Yorkwood Elementary School",'Baltimore=' + Baltimore.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(Balitmore);
map.removeOverlays(Baltimore);
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(Baltimore);map.removeOverlays(Balitmore);
map.removeOverlays(Baltimore);
map.addOverlays(Balitmore);
centerByArray(Balitmore, false, false);
cntMarker += Balitmore.length;
map.addOverlays(Baltimore);
centerByArray(Baltimore, false, false);
cntMarker += Baltimore.length;
centerByArray(Baltimore,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');
}
}