function addMarkers()
{
mySelect = document.getElementById('selection');
Browns_Mills = [];Lumberton = [];Mcguire_Afb = [];Burlington = [];New_Gretna = [];Beverly = [];Bordentown = [];Pemberton = [];Mount_Holly = [];Medford = [];Palmyra = [];Chatsworth = [];Marlton = [];Trenton = [];Cinnaminson = [];Wrightstown = [];Mount_Laurel = [];Delran = [];Eastampton = [];Florence = [];Fort_Dix = [];Willingboro = [];Moorestown = [];Hainesport = [];Westampton = [];Maple_Shade = [];Shamong = [];Westampton_Twp = [];Columbus = [];Mt_Holly = [];Edgewater_Park = [];Medford_Lakes = [];Roebling = [];Delanco = [];Riverside = [];Riverton = [];Tabernacle = [];Southampton = [];Jobstown = [];Mt_Laurel = [];mySelect.options[mySelect.options.length] = new Option("Beverly schools",'all=Beverly');
mySelect.options[mySelect.options.length] = new Option("Bordentown schools",'all=Bordentown');
mySelect.options[mySelect.options.length] = new Option("Browns Mills schools",'all=Browns_Mills');
mySelect.options[mySelect.options.length] = new Option("Burlington schools",'all=Burlington');
mySelect.options[mySelect.options.length] = new Option("Chatsworth schools",'all=Chatsworth');
mySelect.options[mySelect.options.length] = new Option("Cinnaminson schools",'all=Cinnaminson');
mySelect.options[mySelect.options.length] = new Option("Columbus schools",'all=Columbus');
mySelect.options[mySelect.options.length] = new Option("Delanco schools",'all=Delanco');
mySelect.options[mySelect.options.length] = new Option("Delran schools",'all=Delran');
mySelect.options[mySelect.options.length] = new Option("Eastampton schools",'all=Eastampton');
mySelect.options[mySelect.options.length] = new Option("Edgewater Park schools",'all=Edgewater_Park');
mySelect.options[mySelect.options.length] = new Option("Florence schools",'all=Florence');
mySelect.options[mySelect.options.length] = new Option("Fort Dix schools",'all=Fort_Dix');
mySelect.options[mySelect.options.length] = new Option("Hainesport schools",'all=Hainesport');
mySelect.options[mySelect.options.length] = new Option("Jobstown schools",'all=Jobstown');
mySelect.options[mySelect.options.length] = new Option("Lumberton schools",'all=Lumberton');
mySelect.options[mySelect.options.length] = new Option("Maple Shade schools",'all=Maple_Shade');
mySelect.options[mySelect.options.length] = new Option("Marlton schools",'all=Marlton');
mySelect.options[mySelect.options.length] = new Option("Mcguire Afb schools",'all=Mcguire_Afb');
mySelect.options[mySelect.options.length] = new Option("Medford schools",'all=Medford');
mySelect.options[mySelect.options.length] = new Option("Medford Lakes schools",'all=Medford_Lakes');
mySelect.options[mySelect.options.length] = new Option("Moorestown schools",'all=Moorestown');
mySelect.options[mySelect.options.length] = new Option("Mount Holly schools",'all=Mount_Holly');
mySelect.options[mySelect.options.length] = new Option("Mount Laurel schools",'all=Mount_Laurel');
mySelect.options[mySelect.options.length] = new Option("Mt Holly schools",'all=Mt_Holly');
mySelect.options[mySelect.options.length] = new Option("Mt Laurel schools",'all=Mt_Laurel');
mySelect.options[mySelect.options.length] = new Option("New Gretna schools",'all=New_Gretna');
mySelect.options[mySelect.options.length] = new Option("Palmyra schools",'all=Palmyra');
mySelect.options[mySelect.options.length] = new Option("Pemberton schools",'all=Pemberton');
mySelect.options[mySelect.options.length] = new Option("Riverside schools",'all=Riverside');
mySelect.options[mySelect.options.length] = new Option("Riverton schools",'all=Riverton');
mySelect.options[mySelect.options.length] = new Option("Roebling schools",'all=Roebling');
mySelect.options[mySelect.options.length] = new Option("Shamong schools",'all=Shamong');
mySelect.options[mySelect.options.length] = new Option("Southampton schools",'all=Southampton');
mySelect.options[mySelect.options.length] = new Option("Tabernacle schools",'all=Tabernacle');
mySelect.options[mySelect.options.length] = new Option("Trenton schools",'all=Trenton');
mySelect.options[mySelect.options.length] = new Option("Westampton schools",'all=Westampton');
mySelect.options[mySelect.options.length] = new Option("Westampton Twp schools",'all=Westampton_Twp');
mySelect.options[mySelect.options.length] = new Option("Willingboro schools",'all=Willingboro');
mySelect.options[mySelect.options.length] = new Option("Wrightstown schools",'all=Wrightstown');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Browns_Mills[Browns_Mills.length] = createMarker(new GPoint(-74.58145400,39.96979000),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("Aletta Crichton",'Browns_Mills=' + Browns_Mills.length);
Browns_Mills[Browns_Mills.length] = createMarker(new GPoint(-74.56109619,39.95769882),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Aletta Crichton Elementary School",'Browns_Mills=' + Browns_Mills.length);
Browns_Mills[Browns_Mills.length] = createMarker(new GPoint(-74.56109619,39.95769882),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Alexander Denbo Elementary School",'Browns_Mills=' + Browns_Mills.length);
Lumberton[Lumberton.length] = createMarker(new GPoint(-74.79669952,39.96910095),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ashbrook Elementary School",'Lumberton=' + Lumberton.length);
Mcguire_Afb[Mcguire_Afb.length] = createMarker(new GPoint(-74.59140015,40.03570175),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Atlantis School",'Mcguire_Afb=' + Mcguire_Afb.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.81761932,40.07751846),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("B. Bernice Young Elementary School",'Burlington=' + Burlington.length);
New_Gretna[New_Gretna.length] = createMarker(new GPoint(-74.45121765,39.59389114),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bass River Township Elementary School",'New_Gretna=' + New_Gretna.length);
Beverly[Beverly.length] = createMarker(new GPoint(-74.92280579,40.06100464),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Beverly School",'Beverly=' + Beverly.length);
Lumberton[Lumberton.length] = createMarker(new GPoint(-74.80618900,39.96421500),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bobby's Run School",'Lumberton=' + Lumberton.length);
Bordentown[Bordentown.length] = createMarker(new GPoint(-74.72521973,40.13382339),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bordentown Regional High School",'Bordentown=' + Bordentown.length);
Pemberton[Pemberton.length] = createMarker(new GPoint(-74.66480255,39.96580124),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Burl Co Alternate High School",'Pemberton=' + Pemberton.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.85269165,40.06897736),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Burlington City High School",'Burlington=' + Burlington.length);
Mount_Holly[Mount_Holly.length] = createMarker(new GPoint(-74.81832123,40.01466370),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Burlington Co Spec Sch-wc",'Mount_Holly=' + Mount_Holly.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.83715820,40.06473541),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Burlington Township High School",'Burlington=' + Burlington.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.85321045,40.07943726),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Captain James Lawrence Elementary School",'Burlington=' + Burlington.length);
Medford[Medford.length] = createMarker(new GPoint(-74.80738600,39.89824600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chairville Elementary School",'Medford=' + Medford.length);
Mcguire_Afb[Mcguire_Afb.length] = createMarker(new GPoint(-74.59140015,40.03570175),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Challenger Middle School",'Mcguire_Afb=' + Mcguire_Afb.length);
Palmyra[Palmyra.length] = createMarker(new GPoint(-75.02146149,39.99838638),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Charles St Elementary School",'Palmyra=' + Palmyra.length);
Chatsworth[Chatsworth.length] = createMarker(new GPoint(-74.46900177,39.74959946),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chatsworth Elementary School",'Chatsworth=' + Chatsworth.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.89600372,39.87583923),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cherokee High School",'Marlton=' + Marlton.length);
Trenton[Trenton.length] = createMarker(new GPoint(-74.64217377,40.11730576),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chesterfield Elementary School",'Trenton=' + Trenton.length);
Cinnaminson[Cinnaminson.length] = createMarker(new GPoint(-74.99774170,40.00351715),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cinnaminson High School",'Cinnaminson=' + Cinnaminson.length);
Bordentown[Bordentown.length] = createMarker(new GPoint(-74.70771790,40.14616394),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clara Barton Elementary School",'Bordentown=' + Bordentown.length);
Wrightstown[Wrightstown.length] = createMarker(new GPoint(-74.58907318,40.07526779),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clarence B. Lamb Elementary School",'Wrightstown=' + Wrightstown.length);
Mcguire_Afb[Mcguire_Afb.length] = createMarker(new GPoint(-74.59140015,40.03570175),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Columbia Elementary School",'Mcguire_Afb=' + Mcguire_Afb.length);
Mount_Laurel[Mount_Laurel.length] = createMarker(new GPoint(-74.97271729,39.92499542),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Countryside Elementary School",'Mount_Laurel=' + Mount_Laurel.length);
Medford[Medford.length] = createMarker(new GPoint(-74.84839630,39.85443115),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cranberry Pines Elementary School",'Medford=' + Medford.length);
Palmyra[Palmyra.length] = createMarker(new GPoint(-75.03004456,40.00439453),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Delaware Ave Elementary School",'Palmyra=' + Palmyra.length);
Delran[Delran.length] = createMarker(new GPoint(-74.94120789,40.01481628),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Delran High School",'Delran=' + Delran.length);
Delran[Delran.length] = createMarker(new GPoint(-74.93360138,40.02248764),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Delran Intermediate School",'Delran=' + Delran.length);
Delran[Delran.length] = createMarker(new GPoint(-74.95983887,40.02219391),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Delran Middle School",'Delran=' + Delran.length);
Mcguire_Afb[Mcguire_Afb.length] = createMarker(new GPoint(-74.59140015,40.03570175),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Discovery Elementary School",'Mcguire_Afb=' + Mcguire_Afb.length);
Eastampton[Eastampton.length] = createMarker(new GPoint(-74.79299927,40.00059891),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eastampton Elementary School",'Eastampton=' + Eastampton.length);
Eastampton[Eastampton.length] = createMarker(new GPoint(-74.79299927,40.00059891),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Eastampton Middle School",'Eastampton=' + Eastampton.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.86431885,40.07928085),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Elias Boudinot Elementary School",'Burlington=' + Burlington.length);
Lumberton[Lumberton.length] = createMarker(new GPoint(-74.80646515,39.96675110),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("F L Walther Elementary School",'Lumberton=' + Lumberton.length);
Mount_Holly[Mount_Holly.length] = createMarker(new GPoint(-74.79687500,40.00104904),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("F W Holbein Middle School",'Mount_Holly=' + Mount_Holly.length);
Mount_Laurel[Mount_Laurel.length] = createMarker(new GPoint(-74.86487579,39.98307419),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fleetwood Elementary School",'Mount_Laurel=' + Mount_Laurel.length);
Florence[Florence.length] = createMarker(new GPoint(-74.79692841,40.12005234),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Florence Township Mem High School",'Florence=' + Florence.length);
Florence[Florence.length] = createMarker(new GPoint(-74.79692841,40.12005234),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Florence Township Middle School",'Florence=' + Florence.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.90319824,39.87720108),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Florence V Evans Elementary School",'Marlton=' + Marlton.length);
Fort_Dix[Fort_Dix.length] = createMarker(new GPoint(-74.62470245,40.01219940),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fort Dix Elementary School",'Fort_Dix=' + Fort_Dix.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.83754730,40.06491089),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fountain Woods Elementary School",'Burlington=' + Burlington.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.90319824,39.87720108),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frances Demasi Elementary School",'Marlton=' + Marlton.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.90319824,39.87720108),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Frances Demasi Middle School",'Marlton=' + Marlton.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.86655426,40.02042389),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Garfield Park-east Elementary School",'Willingboro=' + Willingboro.length);
Moorestown[Moorestown.length] = createMarker(new GPoint(-74.95639801,39.96802521),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("George C. Baker Elementary School",'Moorestown=' + Moorestown.length);
Mount_Holly[Mount_Holly.length] = createMarker(new GPoint(-74.78184509,40.00072098),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gertrude Folwell Elementary School",'Mount_Holly=' + Mount_Holly.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.90090942,39.89058685),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("H L Beeler Elementary School",'Marlton=' + Marlton.length);
Hainesport[Hainesport.length] = createMarker(new GPoint(-74.82813263,39.98593521),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hainesport Elementary School",'Hainesport=' + Hainesport.length);
Browns_Mills[Browns_Mills.length] = createMarker(new GPoint(-74.56109619,39.95769882),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Harker Wylie Elementary School",'Browns_Mills=' + Browns_Mills.length);
Mount_Laurel[Mount_Laurel.length] = createMarker(new GPoint(-74.87483978,39.94844818),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hartford School",'Mount_Laurel=' + Mount_Laurel.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.87395477,40.03643799),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hawthorne Park Elementary School",'Willingboro=' + Willingboro.length);
Pemberton[Pemberton.length] = createMarker(new GPoint(-74.66480255,39.96580124),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Helen A. Fort Middle School",'Pemberton=' + Pemberton.length);
Mount_Laurel[Mount_Laurel.length] = createMarker(new GPoint(-74.90660095,39.94770050),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hillside Elementary School",'Mount_Laurel=' + Mount_Laurel.length);
Westampton[Westampton.length] = createMarker(new GPoint(-74.80625916,40.00135040),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Holly Hills Elementary School",'Westampton=' + Westampton.length);
Pemberton[Pemberton.length] = createMarker(new GPoint(-74.68235400,39.97367000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Howard L Emmons",'Pemberton=' + Pemberton.length);
Maple_Shade[Maple_Shade.length] = createMarker(new GPoint(-74.99210358,39.95090103),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Howard R. Yocum School",'Maple_Shade=' + Maple_Shade.length);
Shamong[Shamong.length] = createMarker(new GPoint(-74.74558258,39.79883194),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Indian Mills Elementary School",'Shamong=' + Shamong.length);
Shamong[Shamong.length] = createMarker(new GPoint(-74.76382446,39.81885910),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Indian Mills Memorial School",'Shamong=' + Shamong.length);
Medford[Medford.length] = createMarker(new GPoint(-74.80194855,39.89553452),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Inst Of Tech-medford Camp High School",'Medford=' + Medford.length);
Westampton_Twp[Westampton_Twp.length] = createMarker(new GPoint(-74.82328033,40.01481247),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Inst Of Tech-westampton High School",'Westampton_Twp=' + Westampton_Twp.length);
Browns_Mills[Browns_Mills.length] = createMarker(new GPoint(-74.56109619,39.95769882),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Isaiah Haines Middle School",'Browns_Mills=' + Browns_Mills.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.94387817,39.90562820),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("J Harold Van Zant Elementary School",'Marlton=' + Marlton.length);
Mount_Holly[Mount_Holly.length] = createMarker(new GPoint(-74.78449249,39.98941803),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John Brainerd Elementary School",'Mount_Holly=' + Mount_Holly.length);
Columbus[Columbus.length] = createMarker(new GPoint(-74.70960236,40.07619858),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John Hydock Elementary School",'Columbus=' + Columbus.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.88777161,40.02710342),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joseph A. Mcginley School",'Willingboro=' + Willingboro.length);
Browns_Mills[Browns_Mills.length] = createMarker(new GPoint(-74.56109619,39.95769882),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joseph S. Stackhouse Elementary School",'Browns_Mills=' + Browns_Mills.length);
Mount_Holly[Mount_Holly.length] = createMarker(new GPoint(-74.81832123,40.01466370),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jrsr High School",'Mount_Holly=' + Mount_Holly.length);
Medford[Medford.length] = createMarker(new GPoint(-78.74645800,42.92058800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kirby's Mill Elementary School",'Medford=' + Medford.length);
Mount_Laurel[Mount_Laurel.length] = createMarker(new GPoint(-74.87914276,39.96626663),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Larchmont School",'Mount_Laurel=' + Mount_Laurel.length);
Medford[Medford.length] = createMarker(new GPoint(-74.85660553,39.92477417),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lenape High School",'Medford=' + Medford.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.79360199,40.00370026),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Levitt Middle School",'Willingboro=' + Willingboro.length);
Mt_Holly[Mt_Holly.length] = createMarker(new GPoint(-74.85095215,39.93359756),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lumberton Campus",'Mt_Holly=' + Mt_Holly.length);
Lumberton[Lumberton.length] = createMarker(new GPoint(-74.80010223,39.96739960),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lumberton Middle School",'Lumberton=' + Lumberton.length);
Bordentown[Bordentown.length] = createMarker(new GPoint(-74.70831299,40.14643860),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mac Farland Junior High School",'Bordentown=' + Bordentown.length);
Edgewater_Park[Edgewater_Park.length] = createMarker(new GPoint(-74.90776825,40.05773926),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Magowan Elementary School",'Edgewater_Park=' + Edgewater_Park.length);
Columbus[Columbus.length] = createMarker(new GPoint(-74.70950317,40.07619858),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mansfield Township Elementary School",'Columbus=' + Columbus.length);
Maple_Shade[Maple_Shade.length] = createMarker(new GPoint(-74.99210358,39.95090103),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Maple Shade High School",'Maple_Shade=' + Maple_Shade.length);
Florence[Florence.length] = createMarker(new GPoint(-74.80683899,40.12166595),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Marcella L Duffy Middle School",'Florence=' + Florence.length);
Pemberton[Pemberton.length] = createMarker(new GPoint(-74.66480255,39.96580124),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Marcus W Newcomb Middle School",'Pemberton=' + Pemberton.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.89515686,39.87033081),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Marlton Elementary School",'Marlton=' + Marlton.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.89515686,39.87033081),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Marlton Middle School",'Marlton=' + Marlton.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.85804749,40.03520966),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Martin Luther King Junior Elm Elementary School",'Willingboro=' + Willingboro.length);
Moorestown[Moorestown.length] = createMarker(new GPoint(-74.95439148,39.95863342),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mary E. Roberts Elementary School",'Moorestown=' + Moorestown.length);
Maple_Shade[Maple_Shade.length] = createMarker(new GPoint(-74.99210358,39.95090103),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maude M. Wilkins Elementary School",'Maple_Shade=' + Maple_Shade.length);
Medford[Medford.length] = createMarker(new GPoint(-74.82340240,39.89232254),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maurice & Everett Haines Elementary School",'Medford=' + Medford.length);
Medford[Medford.length] = createMarker(new GPoint(-74.82736206,39.88943481),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Medford Township Memorial Middle School",'Medford=' + Medford.length);
Cinnaminson[Cinnaminson.length] = createMarker(new GPoint(-74.99800110,39.98506546),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Middle Middle School",'Cinnaminson=' + Cinnaminson.length);
Moorestown[Moorestown.length] = createMarker(new GPoint(-74.94326019,39.98279190),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Middle School",'Moorestown=' + Moorestown.length);
Delran[Delran.length] = createMarker(new GPoint(-74.94102478,40.01057816),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Millbridge Elementary School",'Delran=' + Delran.length);
Medford[Medford.length] = createMarker(new GPoint(-74.82684326,39.89772034),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Milton H Allen Elementary School",'Medford=' + Medford.length);
Moorestown[Moorestown.length] = createMarker(new GPoint(-74.94508362,39.98714066),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Moorestown High School",'Moorestown=' + Moorestown.length);
Moorestown[Moorestown.length] = createMarker(new GPoint(-74.91346741,39.98249435),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Moorestown Upper Elementary School",'Moorestown=' + Moorestown.length);
Columbus[Columbus.length] = createMarker(new GPoint(-74.70960236,40.07619858),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("N Burl City Regional Senior High School",'Columbus=' + Columbus.length);
Columbus[Columbus.length] = createMarker(new GPoint(-74.71877100,40.07946100),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("N Burl Co Reg Middle School",'Columbus=' + Columbus.length);
Columbus[Columbus.length] = createMarker(new GPoint(-74.70960236,40.07619858),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("N Burlington City Regional Junior High School",'Columbus=' + Columbus.length);
Medford_Lakes[Medford_Lakes.length] = createMarker(new GPoint(-74.80431366,39.86641693),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Neeta School",'Medford_Lakes=' + Medford_Lakes.length);
Cinnaminson[Cinnaminson.length] = createMarker(new GPoint(-74.96971893,39.99523163),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("New Albany Elementary School",'Cinnaminson=' + Cinnaminson.length);
Wrightstown[Wrightstown.length] = createMarker(new GPoint(-74.61792755,40.03556824),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("New Hanover Township Elementary School",'Wrightstown=' + Wrightstown.length);
Medford_Lakes[Medford_Lakes.length] = createMarker(new GPoint(-74.80773163,39.85205078),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nokomis Elementary School",'Medford_Lakes=' + Medford_Lakes.length);
Roebling[Roebling.length] = createMarker(new GPoint(-74.77683258,40.11647415),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Number 5 Roebling Elementary School",'Roebling=' + Roebling.length);
Palmyra[Palmyra.length] = createMarker(new GPoint(-75.02770233,40.00279999),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Palmyra High School",'Palmyra=' + Palmyra.length);
Mount_Laurel[Mount_Laurel.length] = createMarker(new GPoint(-74.94387054,39.93107986),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkway Elementary School",'Mount_Laurel=' + Mount_Laurel.length);
Delanco[Delanco.length] = createMarker(new GPoint(-74.95127869,40.05170059),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pearson School",'Delanco=' + Delanco.length);
Pemberton[Pemberton.length] = createMarker(new GPoint(-74.67980194,39.97386551),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pemberton Borough Elementary School",'Pemberton=' + Pemberton.length);
Pemberton[Pemberton.length] = createMarker(new GPoint(-74.68235400,39.97367000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pemberton Twp High School",'Pemberton=' + Pemberton.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.88449860,40.02939987),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pennypacker Park Elementary School",'Willingboro=' + Willingboro.length);
Bordentown[Bordentown.length] = createMarker(new GPoint(-74.68668365,40.15209198),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Peter Muschal Elementary School",'Bordentown=' + Bordentown.length);
Maple_Shade[Maple_Shade.length] = createMarker(new GPoint(-74.99210358,39.95090103),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ralph J Steinhauer Elementary School",'Maple_Shade=' + Maple_Shade.length);
Mount_Holly[Mount_Holly.length] = createMarker(new GPoint(-74.78080750,40.00352478),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Rancocas Valley Regional High School",'Mount_Holly=' + Mount_Holly.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.87780762,39.84866714),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Richard L Rice School",'Marlton=' + Marlton.length);
Riverside[Riverside.length] = createMarker(new GPoint(-74.95609283,40.03440857),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverside Elementary School",'Riverside=' + Riverside.length);
Riverside[Riverside.length] = createMarker(new GPoint(-74.95609283,40.03440857),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Riverside High School",'Riverside=' + Riverside.length);
Riverside[Riverside.length] = createMarker(new GPoint(-74.95609283,40.03440857),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Riverside Middle School",'Riverside=' + Riverside.length);
Riverton[Riverton.length] = createMarker(new GPoint(-75.01226807,40.01137161),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverton Elementary School",'Riverton=' + Riverton.length);
Marlton[Marlton.length] = createMarker(new GPoint(-74.90319824,39.87720108),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Robert B Jaggard School",'Marlton=' + Marlton.length);
Cinnaminson[Cinnaminson.length] = createMarker(new GPoint(-74.99295807,40.00575638),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rush Elementary School",'Cinnaminson=' + Cinnaminson.length);
Edgewater_Park[Edgewater_Park.length] = createMarker(new GPoint(-74.91677094,40.04550171),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Samuel M Ridgway School",'Edgewater_Park=' + Edgewater_Park.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.86177063,40.06781387),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Samuel Smith Elementary School",'Burlington=' + Burlington.length);
Pemberton[Pemberton.length] = createMarker(new GPoint(-74.66480255,39.96580124),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Samuel T Busansky Elementary School",'Pemberton=' + Pemberton.length);
Tabernacle[Tabernacle.length] = createMarker(new GPoint(-74.56768036,39.87361908),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Seneca High School",'Tabernacle=' + Tabernacle.length);
Medford[Medford.length] = createMarker(new GPoint(-74.77772522,39.85764694),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Shawnee High School",'Medford=' + Medford.length);
Moorestown[Moorestown.length] = createMarker(new GPoint(-74.92948914,39.96783829),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Valley Elementary School",'Moorestown=' + Moorestown.length);
Southampton[Southampton.length] = createMarker(new GPoint(-74.74821472,39.93623352),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southampton Township School No 1",'Southampton=' + Southampton.length);
Southampton[Southampton.length] = createMarker(new GPoint(-74.74716949,39.93573380),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southampton Township School No 2",'Southampton=' + Southampton.length);
Southampton[Southampton.length] = createMarker(new GPoint(-74.77817535,39.86059570),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Southampton Township School No 3",'Southampton=' + Southampton.length);
Southampton[Southampton.length] = createMarker(new GPoint(-74.75478100,39.79214500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southampton Twp Sch No 1",'Southampton=' + Southampton.length);
Jobstown[Jobstown.length] = createMarker(new GPoint(-74.69069672,40.03290176),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Springfield Township Elementary School",'Jobstown=' + Jobstown.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.84825134,40.05823135),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Springside Elementary School",'Burlington=' + Burlington.length);
Mt_Laurel[Mt_Laurel.length] = createMarker(new GPoint(-74.86623383,39.93545532),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Springville School",'Mt_Laurel=' + Mt_Laurel.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.89463806,40.04735947),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Stuart School",'Willingboro=' + Willingboro.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.88759613,40.04277039),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sydney W Bookbinder Elementary School",'Willingboro=' + Willingboro.length);
Mount_Laurel[Mount_Laurel.length] = createMarker(new GPoint(-74.89084625,39.93360519),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("T.e. Harrington Middle School",'Mount_Laurel=' + Mount_Laurel.length);
Tabernacle[Tabernacle.length] = createMarker(new GPoint(-74.67199707,39.84469986),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tabernacle Elementary Sdh",'Tabernacle=' + Tabernacle.length);
Tabernacle[Tabernacle.length] = createMarker(new GPoint(-74.70809174,39.84889984),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Tabernacle Middle School",'Tabernacle=' + Tabernacle.length);
Medford[Medford.length] = createMarker(new GPoint(-74.84207153,39.88092041),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Taunton Forge Elementary School",'Medford=' + Medford.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.84925842,40.07146072),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thomas O. Hopkins Middle School",'Burlington=' + Burlington.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.87653351,40.00816727),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Twinhills Park Elementary School",'Willingboro=' + Willingboro.length);
Delanco[Delanco.length] = createMarker(new GPoint(-74.95502472,40.04960251),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Walnut St Middle School",'Delanco=' + Delanco.length);
Westampton[Westampton.length] = createMarker(new GPoint(-74.83727264,39.99045563),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Westampton Middle School",'Westampton=' + Westampton.length);
Burlington[Burlington.length] = createMarker(new GPoint(-74.85507965,40.07086182),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Wilbur Watts Intermediate",'Burlington=' + Burlington.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.88449860,40.02939987),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Willingboro High School",'Willingboro=' + Willingboro.length);
Willingboro[Willingboro.length] = createMarker(new GPoint(-74.87423706,40.04207993),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Willingboro Memorial School",'Willingboro=' + Willingboro.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(Beverly);
map.removeOverlays(Bordentown);
map.removeOverlays(Browns_Mills);
map.removeOverlays(Burlington);
map.removeOverlays(Chatsworth);
map.removeOverlays(Cinnaminson);
map.removeOverlays(Columbus);
map.removeOverlays(Delanco);
map.removeOverlays(Delran);
map.removeOverlays(Eastampton);
map.removeOverlays(Edgewater_Park);
map.removeOverlays(Florence);
map.removeOverlays(Fort_Dix);
map.removeOverlays(Hainesport);
map.removeOverlays(Jobstown);
map.removeOverlays(Lumberton);
map.removeOverlays(Maple_Shade);
map.removeOverlays(Marlton);
map.removeOverlays(Mcguire_Afb);
map.removeOverlays(Medford);
map.removeOverlays(Medford_Lakes);
map.removeOverlays(Moorestown);
map.removeOverlays(Mount_Holly);
map.removeOverlays(Mount_Laurel);
map.removeOverlays(Mt_Holly);
map.removeOverlays(Mt_Laurel);
map.removeOverlays(New_Gretna);
map.removeOverlays(Palmyra);
map.removeOverlays(Pemberton);
map.removeOverlays(Riverside);
map.removeOverlays(Riverton);
map.removeOverlays(Roebling);
map.removeOverlays(Shamong);
map.removeOverlays(Southampton);
map.removeOverlays(Tabernacle);
map.removeOverlays(Trenton);
map.removeOverlays(Westampton);
map.removeOverlays(Westampton_Twp);
map.removeOverlays(Willingboro);
map.removeOverlays(Wrightstown);
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(Browns_Mills);map.removeOverlays(Beverly);
map.removeOverlays(Bordentown);
map.removeOverlays(Browns_Mills);
map.removeOverlays(Burlington);
map.removeOverlays(Chatsworth);
map.removeOverlays(Cinnaminson);
map.removeOverlays(Columbus);
map.removeOverlays(Delanco);
map.removeOverlays(Delran);
map.removeOverlays(Eastampton);
map.removeOverlays(Edgewater_Park);
map.removeOverlays(Florence);
map.removeOverlays(Fort_Dix);
map.removeOverlays(Hainesport);
map.removeOverlays(Jobstown);
map.removeOverlays(Lumberton);
map.removeOverlays(Maple_Shade);
map.removeOverlays(Marlton);
map.removeOverlays(Mcguire_Afb);
map.removeOverlays(Medford);
map.removeOverlays(Medford_Lakes);
map.removeOverlays(Moorestown);
map.removeOverlays(Mount_Holly);
map.removeOverlays(Mount_Laurel);
map.removeOverlays(Mt_Holly);
map.removeOverlays(Mt_Laurel);
map.removeOverlays(New_Gretna);
map.removeOverlays(Palmyra);
map.removeOverlays(Pemberton);
map.removeOverlays(Riverside);
map.removeOverlays(Riverton);
map.removeOverlays(Roebling);
map.removeOverlays(Shamong);
map.removeOverlays(Southampton);
map.removeOverlays(Tabernacle);
map.removeOverlays(Trenton);
map.removeOverlays(Westampton);
map.removeOverlays(Westampton_Twp);
map.removeOverlays(Willingboro);
map.removeOverlays(Wrightstown);
map.addOverlays(Beverly);
centerByArray(Beverly, false, false);
cntMarker += Beverly.length;
map.addOverlays(Bordentown);
centerByArray(Bordentown, false, false);
cntMarker += Bordentown.length;
map.addOverlays(Browns_Mills);
centerByArray(Browns_Mills, false, false);
cntMarker += Browns_Mills.length;
map.addOverlays(Burlington);
centerByArray(Burlington, false, false);
cntMarker += Burlington.length;
map.addOverlays(Chatsworth);
centerByArray(Chatsworth, false, false);
cntMarker += Chatsworth.length;
map.addOverlays(Cinnaminson);
centerByArray(Cinnaminson, false, false);
cntMarker += Cinnaminson.length;
map.addOverlays(Columbus);
centerByArray(Columbus, false, false);
cntMarker += Columbus.length;
map.addOverlays(Delanco);
centerByArray(Delanco, false, false);
cntMarker += Delanco.length;
map.addOverlays(Delran);
centerByArray(Delran, false, false);
cntMarker += Delran.length;
map.addOverlays(Eastampton);
centerByArray(Eastampton, false, false);
cntMarker += Eastampton.length;
map.addOverlays(Edgewater_Park);
centerByArray(Edgewater_Park, false, false);
cntMarker += Edgewater_Park.length;
map.addOverlays(Florence);
centerByArray(Florence, false, false);
cntMarker += Florence.length;
map.addOverlays(Fort_Dix);
centerByArray(Fort_Dix, false, false);
cntMarker += Fort_Dix.length;
map.addOverlays(Hainesport);
centerByArray(Hainesport, false, false);
cntMarker += Hainesport.length;
map.addOverlays(Jobstown);
centerByArray(Jobstown, false, false);
cntMarker += Jobstown.length;
map.addOverlays(Lumberton);
centerByArray(Lumberton, false, false);
cntMarker += Lumberton.length;
map.addOverlays(Maple_Shade);
centerByArray(Maple_Shade, false, false);
cntMarker += Maple_Shade.length;
map.addOverlays(Marlton);
centerByArray(Marlton, false, false);
cntMarker += Marlton.length;
map.addOverlays(Mcguire_Afb);
centerByArray(Mcguire_Afb, false, false);
cntMarker += Mcguire_Afb.length;
map.addOverlays(Medford);
centerByArray(Medford, false, false);
cntMarker += Medford.length;
map.addOverlays(Medford_Lakes);
centerByArray(Medford_Lakes, false, false);
cntMarker += Medford_Lakes.length;
map.addOverlays(Moorestown);
centerByArray(Moorestown, false, false);
cntMarker += Moorestown.length;
map.addOverlays(Mount_Holly);
centerByArray(Mount_Holly, false, false);
cntMarker += Mount_Holly.length;
map.addOverlays(Mount_Laurel);
centerByArray(Mount_Laurel, false, false);
cntMarker += Mount_Laurel.length;
map.addOverlays(Mt_Holly);
centerByArray(Mt_Holly, false, false);
cntMarker += Mt_Holly.length;
map.addOverlays(Mt_Laurel);
centerByArray(Mt_Laurel, false, false);
cntMarker += Mt_Laurel.length;
map.addOverlays(New_Gretna);
centerByArray(New_Gretna, false, false);
cntMarker += New_Gretna.length;
map.addOverlays(Palmyra);
centerByArray(Palmyra, false, false);
cntMarker += Palmyra.length;
map.addOverlays(Pemberton);
centerByArray(Pemberton, false, false);
cntMarker += Pemberton.length;
map.addOverlays(Riverside);
centerByArray(Riverside, false, false);
cntMarker += Riverside.length;
map.addOverlays(Riverton);
centerByArray(Riverton, false, false);
cntMarker += Riverton.length;
map.addOverlays(Roebling);
centerByArray(Roebling, false, false);
cntMarker += Roebling.length;
map.addOverlays(Shamong);
centerByArray(Shamong, false, false);
cntMarker += Shamong.length;
map.addOverlays(Southampton);
centerByArray(Southampton, false, false);
cntMarker += Southampton.length;
map.addOverlays(Tabernacle);
centerByArray(Tabernacle, false, false);
cntMarker += Tabernacle.length;
map.addOverlays(Trenton);
centerByArray(Trenton, false, false);
cntMarker += Trenton.length;
map.addOverlays(Westampton);
centerByArray(Westampton, false, false);
cntMarker += Westampton.length;
map.addOverlays(Westampton_Twp);
centerByArray(Westampton_Twp, false, false);
cntMarker += Westampton_Twp.length;
map.addOverlays(Willingboro);
centerByArray(Willingboro, false, false);
cntMarker += Willingboro.length;
map.addOverlays(Wrightstown);
centerByArray(Wrightstown, false, false);
cntMarker += Wrightstown.length;
centerByArray(Browns_Mills,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');
}
}