function addMarkers()
{
mySelect = document.getElementById('selection');
zip20011 = [];zip20009 = [];zip20019 = [];zip20024 = [];zip20020 = [];zip20003 = [];zip20001 = [];zip20017 = [];zip20032 = [];zip20010 = [];zip20002 = [];zip20018 = [];zip20008 = [];zip20016 = [];zip20007 = [];zip20037 = [];zip20015 = [];zip20004 = [];zip20005 = [];zip20036 = [];zip20012 = [];mySelect.options[mySelect.options.length] = new Option("20001 schools",'all=zip20001');
mySelect.options[mySelect.options.length] = new Option("20002 schools",'all=zip20002');
mySelect.options[mySelect.options.length] = new Option("20003 schools",'all=zip20003');
mySelect.options[mySelect.options.length] = new Option("20004 schools",'all=zip20004');
mySelect.options[mySelect.options.length] = new Option("20005 schools",'all=zip20005');
mySelect.options[mySelect.options.length] = new Option("20007 schools",'all=zip20007');
mySelect.options[mySelect.options.length] = new Option("20008 schools",'all=zip20008');
mySelect.options[mySelect.options.length] = new Option("20009 schools",'all=zip20009');
mySelect.options[mySelect.options.length] = new Option("20010 schools",'all=zip20010');
mySelect.options[mySelect.options.length] = new Option("20011 schools",'all=zip20011');
mySelect.options[mySelect.options.length] = new Option("20012 schools",'all=zip20012');
mySelect.options[mySelect.options.length] = new Option("20015 schools",'all=zip20015');
mySelect.options[mySelect.options.length] = new Option("20016 schools",'all=zip20016');
mySelect.options[mySelect.options.length] = new Option("20017 schools",'all=zip20017');
mySelect.options[mySelect.options.length] = new Option("20018 schools",'all=zip20018');
mySelect.options[mySelect.options.length] = new Option("20019 schools",'all=zip20019');
mySelect.options[mySelect.options.length] = new Option("20020 schools",'all=zip20020');
mySelect.options[mySelect.options.length] = new Option("20024 schools",'all=zip20024');
mySelect.options[mySelect.options.length] = new Option("20032 schools",'all=zip20032');
mySelect.options[mySelect.options.length] = new Option("20036 schools",'all=zip20036');
mySelect.options[mySelect.options.length] = new Option("20037 schools",'all=zip20037');
zip20011[zip20011.length] = createMarker(new GPoint(-77.01412000,38.94245200),"
",iconBl);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03551500,38.91817100),"",iconRd);
zip20009[zip20009.length] = createMarker(new GPoint(-77.04396057,38.91713715),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93406677,38.89606476),"",iconRd);
zip20024[zip20024.length] = createMarker(new GPoint(-77.01754761,38.87928772),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98220062,38.87106705),"",iconGr);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99595500,38.88363400),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92569733,38.89181900),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01050568,38.90973663),"",iconGr);
zip20017[zip20017.length] = createMarker(new GPoint(-76.99598694,38.95199585),"",iconBl);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00057220,38.84039307),"",iconGr);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00057220,38.84039307),"",iconGr);
zip20010[zip20010.length] = createMarker(new GPoint(-77.04035950,38.93417358),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02351379,38.92409134),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.01114655,38.96256256),"",iconBl);
zip20011[zip20011.length] = createMarker(new GPoint(-77.01806641,38.94851685),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.95587921,38.86365509),"",iconRd);
zip20010[zip20010.length] = createMarker(new GPoint(-77.03469086,38.92920685),"",iconGr);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93774300,38.89119000),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.99382782,38.86145401),"",iconRd);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03069305,38.92017746),"",iconGr);
zip20024[zip20024.length] = createMarker(new GPoint(-77.01065826,38.87645721),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00203705,38.89389420),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02864200,38.94063400),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02969360,38.96021271),"",iconRd);
zip20017[zip20017.length] = createMarker(new GPoint(-76.99182129,38.93737411),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93375397,38.90607071),"",iconBl);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97826385,38.89213562),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97050476,38.90209198),"",iconBl);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02189900,38.90229000),"",iconRd);
zip20017[zip20017.length] = createMarker(new GPoint(-76.98564911,38.94255829),"",iconRd);
zip20018[zip20018.length] = createMarker(new GPoint(-76.97927094,38.93311310),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92509460,38.89989090),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92189026,38.89580536),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03229523,38.92789841),"",iconRd);
zip20009[zip20009.length] = createMarker(new GPoint(-77.02970123,38.92242813),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03675842,38.89522171),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03069305,38.92017746),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00332642,38.89903641),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00847300,38.90101400),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.02979279,38.91823578),"",iconRd);
zip20018[zip20018.length] = createMarker(new GPoint(-76.97962189,38.93606186),"",iconBl);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98943329,38.85657501),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00617000,38.91557400),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02177429,38.94519043),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02294159,38.91445160),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02987671,38.94496155),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98528290,38.84925842),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02189900,38.90229000),"",iconRd);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03903961,38.92391586),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.01989746,38.96624756),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00847300,38.90101400),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00847300,38.90101400),"",iconGr);
zip20008[zip20008.length] = createMarker(new GPoint(-77.05889893,38.93360138),"",iconBl);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93705750,38.87865448),"",iconRd);
zip20018[zip20018.length] = createMarker(new GPoint(-76.97290039,38.92810059),"",iconGr);
zip20003[zip20003.length] = createMarker(new GPoint(-76.97695400,38.92793100),"",iconGr);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99377600,38.88344100),"",iconGr);
zip20016[zip20016.length] = createMarker(new GPoint(-77.07730865,38.94696426),"",iconBl);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03348600,38.92716500),"",iconRd);
zip20016[zip20016.length] = createMarker(new GPoint(-77.07384491,38.95229721),"",iconBl);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99250793,38.83376694),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92050934,38.89580536),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01544189,38.90723419),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03947500,38.92683700),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99469757,38.88109970),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99051400,38.83206400),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.98076630,38.88980103),"",iconGr);
zip20008[zip20008.length] = createMarker(new GPoint(-77.06526184,38.93254471),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.99120331,38.90510178),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-76.99120331,38.90510178),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97824097,38.89200592),"",iconBl);
zip20007[zip20007.length] = createMarker(new GPoint(-77.06928253,38.91365814),"",iconGr);
zip20010[zip20010.length] = createMarker(new GPoint(-77.03659821,38.93082047),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00654602,38.91270447),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99993896,38.89296341),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92070007,38.88975143),"",iconBl);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99460300,38.83199600),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93605042,38.88629913),"",iconRd);
zip20037[zip20037.length] = createMarker(new GPoint(-77.03675842,38.89522171),"",iconBl);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01589203,38.91704941),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.97059631,38.85213852),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02599335,38.91699600),"",iconBl);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03675842,38.89522171),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97725677,38.89611435),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-76.98478699,38.84084702),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.99554443,38.90961838),"",iconGr);
zip20007[zip20007.length] = createMarker(new GPoint(-77.06936646,38.91549301),"",iconBl);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92637634,38.88365936),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00221252,38.82388687),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99842834,38.83755493),"",iconBl);
zip20008[zip20008.length] = createMarker(new GPoint(-77.07241821,38.94073105),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00031281,38.82920456),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99496460,38.88553238),"",iconBl);
zip20016[zip20016.length] = createMarker(new GPoint(-77.07602700,38.93136300),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92963409,38.90466690),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.99967194,38.86450195),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01846900,38.92279200),"",iconBl);
zip20007[zip20007.length] = createMarker(new GPoint(-77.06430817,38.90784073),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00491333,38.91546249),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.01114655,38.96256256),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93750763,38.90333557),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.00888824,38.96480560),"",iconGr);
zip20016[zip20016.length] = createMarker(new GPoint(-77.08039856,38.94791031),"",iconRd);
zip20024[zip20024.length] = createMarker(new GPoint(-77.02191162,38.87978363),"",iconBl);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98528290,38.84925842),"",iconBl);
zip20017[zip20017.length] = createMarker(new GPoint(-76.97645569,38.89824295),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02814484,38.96169662),"",iconGr);
zip20019[zip20019.length] = createMarker(new GPoint(-76.94027710,38.90721512),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98323059,38.86626053),"",iconRd);
zip20016[zip20016.length] = createMarker(new GPoint(-77.09983826,38.92637253),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.95777893,38.88323212),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99845123,38.84310913),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99535370,38.87663651),"",iconBl);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98077393,38.87074280),"",iconBl);
zip20015[zip20015.length] = createMarker(new GPoint(-77.06841278,38.96580887),"",iconRd);
zip20018[zip20018.length] = createMarker(new GPoint(-76.97754669,38.92450714),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-76.99862671,38.96112061),"",iconRd);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03320312,38.92760086),"",iconRd);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03372300,38.92802700),"",iconGr);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00602722,38.83801651),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.00782776,38.95237350),"",iconGr);
zip20010[zip20010.length] = createMarker(new GPoint(-77.03647614,38.92868805),"",iconBl);
zip20002[zip20002.length] = createMarker(new GPoint(-76.99710083,38.89891052),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02732849,38.94395447),"",iconBl);
zip20032[zip20032.length] = createMarker(new GPoint(-76.98676300,38.84509277),"",iconRd);
zip20016[zip20016.length] = createMarker(new GPoint(-77.08713531,38.93455887),"",iconRd);
zip20004[zip20004.length] = createMarker(new GPoint(-77.02317810,38.89504242),"",iconGr);
zip20018[zip20018.length] = createMarker(new GPoint(-76.97412500,38.92871200),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02700700,38.98217300),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.98899078,38.89200974),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02376556,38.91515732),"",iconGr);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99367523,38.84066391),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.04721300,38.80407200),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03035736,38.92023849),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92851257,38.89989471),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02703857,38.92287827),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93288900,38.89360200),"",iconBl);
zip20002[zip20002.length] = createMarker(new GPoint(-76.98365021,38.89763641),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01683044,38.90964127),"",iconRd);
zip20017[zip20017.length] = createMarker(new GPoint(-76.99262238,38.93246078),"",iconGr);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98310089,38.85717392),"",iconGr);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98310089,38.85717392),"",iconBl);
zip20008[zip20008.length] = createMarker(new GPoint(-77.06983948,38.95221710),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93043700,38.88611400),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00491333,38.91546249),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03320312,38.92760086),"",iconGr);
zip20018[zip20018.length] = createMarker(new GPoint(-76.99242401,38.92440033),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00217438,38.90033722),"",iconBl);
zip20020[zip20020.length] = createMarker(new GPoint(-76.97495270,38.87136459),"",iconRd);
zip20008[zip20008.length] = createMarker(new GPoint(-77.05706787,38.92324066),"",iconRd);
zip20010[zip20010.length] = createMarker(new GPoint(-77.02079773,38.93398285),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00870514,38.82778931),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02420044,38.96016312),"",iconBl);
zip20002[zip20002.length] = createMarker(new GPoint(-76.98365021,38.89355469),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00031281,38.89308548),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97041321,38.89795685),"",iconGr);
zip20019[zip20019.length] = createMarker(new GPoint(-76.94055176,38.88654327),"",iconRd);
zip20017[zip20017.length] = createMarker(new GPoint(-76.98239800,38.94098400),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.03231049,38.94187164),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01544189,38.90723419),"",iconGr);
zip20005[zip20005.length] = createMarker(new GPoint(-77.03153600,38.89890300),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.99353027,38.89733124),"",iconGr);
zip20020[zip20020.length] = createMarker(new GPoint(-76.96477509,38.87009430),"",iconRd);
zip20010[zip20010.length] = createMarker(new GPoint(-77.02607727,38.93531036),"",iconRd);
zip20009[zip20009.length] = createMarker(new GPoint(-77.04075623,38.91984940),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00332642,38.89903641),"",iconGr);
zip20019[zip20019.length] = createMarker(new GPoint(-76.95750427,38.89494705),"",iconRd);
zip20010[zip20010.length] = createMarker(new GPoint(-77.02719879,38.93561935),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02970123,38.94248199),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02952576,38.94302750),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.00949860,38.95673752),"",iconRd);
zip20016[zip20016.length] = createMarker(new GPoint(-77.07424164,38.95258331),"",iconGr);
zip20009[zip20009.length] = createMarker(new GPoint(-77.03984070,38.91260910),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.01351166,38.95332336),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99517822,38.88077164),"",iconBl);
zip20020[zip20020.length] = createMarker(new GPoint(-76.99292755,38.86353302),"",iconRd);
zip20036[zip20036.length] = createMarker(new GPoint(-77.03667450,38.90393829),"",iconRd);
zip20037[zip20037.length] = createMarker(new GPoint(-77.04732513,38.89832306),"",iconGr);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99674988,38.84796143),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02598572,38.90971756),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-77.00217438,38.90033722),"",iconGr);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92070007,38.88975143),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00203705,38.92343903),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02970123,38.94277954),"",iconGr);
zip20001[zip20001.length] = createMarker(new GPoint(-77.02474213,38.91134644),"",iconBl);
zip20012[zip20012.length] = createMarker(new GPoint(-77.03340912,38.98414612),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00075531,38.83629227),"",iconRd);
zip20017[zip20017.length] = createMarker(new GPoint(-76.98605347,38.92981339),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.93920135,38.89343262),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.95261383,38.88343048),"",iconBl);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97125244,38.89798737),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97125244,38.89798737),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97125244,38.89798737),"",iconGr);
zip20020[zip20020.length] = createMarker(new GPoint(-76.96819305,38.85890579),"",iconRd);
zip20036[zip20036.length] = createMarker(new GPoint(-77.04664612,38.90314484),"",iconRd);
zip20007[zip20007.length] = createMarker(new GPoint(-77.07877350,38.92254639),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.98924300,38.90410200),"",iconBl);
zip20018[zip20018.length] = createMarker(new GPoint(-76.97962189,38.93606186),"",iconGr);
zip20012[zip20012.length] = createMarker(new GPoint(-77.02169800,38.97491455),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01216888,38.90251541),"",iconBl);
zip20032[zip20032.length] = createMarker(new GPoint(-76.99397278,38.84225845),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01216888,38.90251541),"",iconBl);
zip20019[zip20019.length] = createMarker(new GPoint(-76.95222473,38.90074158),"",iconRd);
zip20005[zip20005.length] = createMarker(new GPoint(-77.02808380,38.90373993),"",iconRd);
zip20032[zip20032.length] = createMarker(new GPoint(-77.00006104,38.84286118),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00217438,38.90033722),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02020264,38.95249939),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02393341,38.95418930),"",iconRd);
zip20010[zip20010.length] = createMarker(new GPoint(-77.02970886,38.92863464),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-77.00350189,38.89891434),"",iconGr);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98045349,38.84731293),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.99863000,38.89810100),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99264526,38.88126755),"",iconRd);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99951935,38.87699127),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.94860077,38.89556122),"",iconGr);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01325226,38.90373993),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.96392300,38.87127500),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-77.01002502,38.90873718),"",iconGr);
zip20003[zip20003.length] = createMarker(new GPoint(-77.01732635,38.87663651),"",iconGr);
zip20001[zip20001.length] = createMarker(new GPoint(-77.00988007,38.90856552),"",iconGr);
zip20003[zip20003.length] = createMarker(new GPoint(-76.99024200,38.88385773),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.98129272,38.90852356),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.03114319,38.95080185),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.98613739,38.90336990),"",iconRd);
zip20011[zip20011.length] = createMarker(new GPoint(-77.01989746,38.96495056),"",iconRd);
zip20020[zip20020.length] = createMarker(new GPoint(-76.98521423,38.85733414),"",iconRd);
zip20017[zip20017.length] = createMarker(new GPoint(-76.99584000,38.92362300),"",iconRd);
zip20002[zip20002.length] = createMarker(new GPoint(-76.99704742,38.90251160),"",iconRd);
zip20016[zip20016.length] = createMarker(new GPoint(-77.07798767,38.95072937),"",iconGr);
zip20020[zip20020.length] = createMarker(new GPoint(-76.96257019,38.85728073),"",iconRd);
zip20019[zip20019.length] = createMarker(new GPoint(-76.92189026,38.89580536),"",iconGr);
zip20011[zip20011.length] = createMarker(new GPoint(-77.02323300,38.92690800),"",iconGr);
zip20002[zip20002.length] = createMarker(new GPoint(-76.97048187,38.90124130),"",iconRd);
zip20001[zip20001.length] = createMarker(new GPoint(-76.98874600,38.91240100),"",iconGr);
} // 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(zip20001);
map.removeOverlays(zip20002);
map.removeOverlays(zip20003);
map.removeOverlays(zip20004);
map.removeOverlays(zip20005);
map.removeOverlays(zip20007);
map.removeOverlays(zip20008);
map.removeOverlays(zip20009);
map.removeOverlays(zip20010);
map.removeOverlays(zip20011);
map.removeOverlays(zip20012);
map.removeOverlays(zip20015);
map.removeOverlays(zip20016);
map.removeOverlays(zip20017);
map.removeOverlays(zip20018);
map.removeOverlays(zip20019);
map.removeOverlays(zip20020);
map.removeOverlays(zip20024);
map.removeOverlays(zip20032);
map.removeOverlays(zip20036);
map.removeOverlays(zip20037);
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(zip20011);map.removeOverlays(zip20001);
map.removeOverlays(zip20002);
map.removeOverlays(zip20003);
map.removeOverlays(zip20004);
map.removeOverlays(zip20005);
map.removeOverlays(zip20007);
map.removeOverlays(zip20008);
map.removeOverlays(zip20009);
map.removeOverlays(zip20010);
map.removeOverlays(zip20011);
map.removeOverlays(zip20012);
map.removeOverlays(zip20015);
map.removeOverlays(zip20016);
map.removeOverlays(zip20017);
map.removeOverlays(zip20018);
map.removeOverlays(zip20019);
map.removeOverlays(zip20020);
map.removeOverlays(zip20024);
map.removeOverlays(zip20032);
map.removeOverlays(zip20036);
map.removeOverlays(zip20037);
map.addOverlays(zip20001);
centerByArray(zip20001, false, false);
cntMarker += zip20001.length;
map.addOverlays(zip20002);
centerByArray(zip20002, false, false);
cntMarker += zip20002.length;
map.addOverlays(zip20003);
centerByArray(zip20003, false, false);
cntMarker += zip20003.length;
map.addOverlays(zip20004);
centerByArray(zip20004, false, false);
cntMarker += zip20004.length;
map.addOverlays(zip20005);
centerByArray(zip20005, false, false);
cntMarker += zip20005.length;
map.addOverlays(zip20007);
centerByArray(zip20007, false, false);
cntMarker += zip20007.length;
map.addOverlays(zip20008);
centerByArray(zip20008, false, false);
cntMarker += zip20008.length;
map.addOverlays(zip20009);
centerByArray(zip20009, false, false);
cntMarker += zip20009.length;
map.addOverlays(zip20010);
centerByArray(zip20010, false, false);
cntMarker += zip20010.length;
map.addOverlays(zip20011);
centerByArray(zip20011, false, false);
cntMarker += zip20011.length;
map.addOverlays(zip20012);
centerByArray(zip20012, false, false);
cntMarker += zip20012.length;
map.addOverlays(zip20015);
centerByArray(zip20015, false, false);
cntMarker += zip20015.length;
map.addOverlays(zip20016);
centerByArray(zip20016, false, false);
cntMarker += zip20016.length;
map.addOverlays(zip20017);
centerByArray(zip20017, false, false);
cntMarker += zip20017.length;
map.addOverlays(zip20018);
centerByArray(zip20018, false, false);
cntMarker += zip20018.length;
map.addOverlays(zip20019);
centerByArray(zip20019, false, false);
cntMarker += zip20019.length;
map.addOverlays(zip20020);
centerByArray(zip20020, false, false);
cntMarker += zip20020.length;
map.addOverlays(zip20024);
centerByArray(zip20024, false, false);
cntMarker += zip20024.length;
map.addOverlays(zip20032);
centerByArray(zip20032, false, false);
cntMarker += zip20032.length;
map.addOverlays(zip20036);
centerByArray(zip20036, false, false);
cntMarker += zip20036.length;
map.addOverlays(zip20037);
centerByArray(zip20037, false, false);
cntMarker += zip20037.length;
centerByArray(zip20011,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');
}
}