function addMarkers()
{
mySelect = document.getElementById('selection');
Pennsauken = [];Cherry_Hill = [];Pine_Hill = [];Brooklawn = [];Sicklerville = [];Atco = [];Haddon_Heights = [];Audubon = [];Haddonfield = [];Bellmawr = [];Berlin = [];Runnemede = [];Blackwood = [];Camden = [];Clementon = [];Oaklyn = [];Gloucester_City = [];Collingswood = [];Delair = [];West_Berlin = [];Voorhees = [];Gibbsboro = [];Glendora = [];Westmont = [];Erial = [];Laurel_Springs = [];Lawnside = [];Lindenwold = [];Magnolia = [];Mount_Ephraim = [];Merchantville = [];Stratford = [];Chesilhurst = [];Somerdale = [];West_Collingswood = [];Waterford = [];Blue_Anchor = [];Cedar_Brook = [];Barrington = [];Woodlynne = [];mySelect.options[mySelect.options.length] = new Option("Atco schools",'all=Atco');
mySelect.options[mySelect.options.length] = new Option("Audubon schools",'all=Audubon');
mySelect.options[mySelect.options.length] = new Option("Barrington schools",'all=Barrington');
mySelect.options[mySelect.options.length] = new Option("Bellmawr schools",'all=Bellmawr');
mySelect.options[mySelect.options.length] = new Option("Berlin schools",'all=Berlin');
mySelect.options[mySelect.options.length] = new Option("Blackwood schools",'all=Blackwood');
mySelect.options[mySelect.options.length] = new Option("Blue Anchor schools",'all=Blue_Anchor');
mySelect.options[mySelect.options.length] = new Option("Brooklawn schools",'all=Brooklawn');
mySelect.options[mySelect.options.length] = new Option("Camden schools",'all=Camden');
mySelect.options[mySelect.options.length] = new Option("Cedar Brook schools",'all=Cedar_Brook');
mySelect.options[mySelect.options.length] = new Option("Cherry Hill schools",'all=Cherry_Hill');
mySelect.options[mySelect.options.length] = new Option("Chesilhurst schools",'all=Chesilhurst');
mySelect.options[mySelect.options.length] = new Option("Clementon schools",'all=Clementon');
mySelect.options[mySelect.options.length] = new Option("Collingswood schools",'all=Collingswood');
mySelect.options[mySelect.options.length] = new Option("Delair schools",'all=Delair');
mySelect.options[mySelect.options.length] = new Option("Erial schools",'all=Erial');
mySelect.options[mySelect.options.length] = new Option("Gibbsboro schools",'all=Gibbsboro');
mySelect.options[mySelect.options.length] = new Option("Glendora schools",'all=Glendora');
mySelect.options[mySelect.options.length] = new Option("Gloucester City schools",'all=Gloucester_City');
mySelect.options[mySelect.options.length] = new Option("Haddon Heights schools",'all=Haddon_Heights');
mySelect.options[mySelect.options.length] = new Option("Haddonfield schools",'all=Haddonfield');
mySelect.options[mySelect.options.length] = new Option("Laurel Springs schools",'all=Laurel_Springs');
mySelect.options[mySelect.options.length] = new Option("Lawnside schools",'all=Lawnside');
mySelect.options[mySelect.options.length] = new Option("Lindenwold schools",'all=Lindenwold');
mySelect.options[mySelect.options.length] = new Option("Magnolia schools",'all=Magnolia');
mySelect.options[mySelect.options.length] = new Option("Merchantville schools",'all=Merchantville');
mySelect.options[mySelect.options.length] = new Option("Mount Ephraim schools",'all=Mount_Ephraim');
mySelect.options[mySelect.options.length] = new Option("Oaklyn schools",'all=Oaklyn');
mySelect.options[mySelect.options.length] = new Option("Pennsauken schools",'all=Pennsauken');
mySelect.options[mySelect.options.length] = new Option("Pine Hill schools",'all=Pine_Hill');
mySelect.options[mySelect.options.length] = new Option("Runnemede schools",'all=Runnemede');
mySelect.options[mySelect.options.length] = new Option("Sicklerville schools",'all=Sicklerville');
mySelect.options[mySelect.options.length] = new Option("Somerdale schools",'all=Somerdale');
mySelect.options[mySelect.options.length] = new Option("Stratford schools",'all=Stratford');
mySelect.options[mySelect.options.length] = new Option("Voorhees schools",'all=Voorhees');
mySelect.options[mySelect.options.length] = new Option("Waterford schools",'all=Waterford');
mySelect.options[mySelect.options.length] = new Option("West Berlin schools",'all=West_Berlin');
mySelect.options[mySelect.options.length] = new Option("West Collingswood schools",'all=West_Collingswood');
mySelect.options[mySelect.options.length] = new Option("Westmont schools",'all=Westmont');
mySelect.options[mySelect.options.length] = new Option("Woodlynne schools",'all=Woodlynne');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.08181763,39.93781281),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("A E Burling Magnet School",'Pennsauken=' + Pennsauken.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-75.01233673,39.90000153),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("A. Russell Knight Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Pine_Hill[Pine_Hill.length] = createMarker(new GPoint(-74.99900055,39.80720139),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Albert Bean Elementary School",'Pine_Hill=' + Pine_Hill.length);
Brooklawn[Brooklawn.length] = createMarker(new GPoint(-75.11875916,39.87738037),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Alice Costello Elementary School",'Brooklawn=' + Brooklawn.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-75.02916718,39.93373108),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alternative High School",'Cherry_Hill=' + Cherry_Hill.length);
Sicklerville[Sicklerville.length] = createMarker(new GPoint(-75.01933289,39.74794388),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ann A Mullen Middle School",'Sicklerville=' + Sicklerville.length);
Atco[Atco.length] = createMarker(new GPoint(-74.89400482,39.77351379),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Atco Elementary School",'Atco=' + Atco.length);
Haddon_Heights[Haddon_Heights.length] = createMarker(new GPoint(-75.06580353,39.87839890),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Atlantic Ave Elementary School",'Haddon_Heights=' + Haddon_Heights.length);
Audubon[Audubon.length] = createMarker(new GPoint(-75.07550812,39.88452911),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Audubon High School",'Audubon=' + Audubon.length);
Haddonfield[Haddonfield.length] = createMarker(new GPoint(-75.04117700,39.87986500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Avon Elementary School",'Haddonfield=' + Haddonfield.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.04981232,39.97231293),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("B T Washington School",'Pennsauken=' + Pennsauken.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.05329895,39.96670151),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Baldwin Elementary School",'Pennsauken=' + Pennsauken.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.99285889,39.90464020),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Barclay School",'Cherry_Hill=' + Cherry_Hill.length);
Bellmawr[Bellmawr.length] = createMarker(new GPoint(-75.09039307,39.87059402),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bell Oaks Middle School",'Bellmawr=' + Bellmawr.length);
Bellmawr[Bellmawr.length] = createMarker(new GPoint(-75.10494995,39.87013245),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bellmawr Park Elementary School",'Bellmawr=' + Bellmawr.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.04121399,39.96131134),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Benjamin Franklin Elementary School",'Pennsauken=' + Pennsauken.length);
Berlin[Berlin.length] = createMarker(new GPoint(-74.94902039,39.79708862),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Berlin Community Elementary School",'Berlin=' + Berlin.length);
Runnemede[Runnemede.length] = createMarker(new GPoint(-75.07479858,39.85160065),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bingham Elementary School",'Runnemede=' + Runnemede.length);
Blackwood[Blackwood.length] = createMarker(new GPoint(-75.05650330,39.78229904),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Blackwood Elementary School",'Blackwood=' + Blackwood.length);
Camden[Camden.length] = createMarker(new GPoint(-75.10971832,39.94097900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bonsall Elementary School",'Camden=' + Camden.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-75.02916718,39.93373108),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bret Harte Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Camden[Camden.length] = createMarker(new GPoint(-75.09504700,39.92448425),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Brimm Medical Arts High School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11940002,39.93566132),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Broadway Elementary School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08562469,39.95775223),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Camden Academy Charter High School",'Camden=' + Camden.length);
Sicklerville[Sicklerville.length] = createMarker(new GPoint(-74.97726440,39.75973129),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Camden Co Tech-gloucester High School",'Sicklerville=' + Sicklerville.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.06643677,39.93970108),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Camden Co Tech-pennsauken High School",'Pennsauken=' + Pennsauken.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08968353,39.94150162),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Camden High School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08562469,39.95775223),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Camden's Promise Charter School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08128357,39.94467926),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Catto Elementary School",'Camden=' + Camden.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.05390167,39.96649933),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Pennsauken=' + Pennsauken.length);
Haddonfield[Haddonfield.length] = createMarker(new GPoint(-75.03959656,39.89500046),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Haddonfield=' + Haddonfield.length);
Camden[Camden.length] = createMarker(new GPoint(-75.12613600,39.94793000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Challenge Square Academy",'Camden=' + Camden.length);
Blackwood[Blackwood.length] = createMarker(new GPoint(-75.03993988,39.79474640),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Charles W Lewis Middle School",'Blackwood=' + Blackwood.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.99220276,39.88864136),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cherry Hill High - East",'Cherry_Hill=' + Cherry_Hill.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.97760010,39.92060089),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cherry Hill High - West",'Cherry_Hill=' + Cherry_Hill.length);
Blackwood[Blackwood.length] = createMarker(new GPoint(-75.05650330,39.78229904),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chews Elementary School",'Blackwood=' + Blackwood.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-75.01249695,39.92399979),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clara Barton Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Clementon[Clementon.length] = createMarker(new GPoint(-74.98973846,39.80097961),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clementon Elementary School",'Clementon=' + Clementon.length);
Oaklyn[Oaklyn.length] = createMarker(new GPoint(-75.07551575,39.89771271),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clyde S. Jennings Elementary School",'Oaklyn=' + Oaklyn.length);
Gloucester_City[Gloucester_City.length] = createMarker(new GPoint(-75.11295319,39.88823700),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cold Springs School",'Gloucester_City=' + Gloucester_City.length);
Collingswood[Collingswood.length] = createMarker(new GPoint(-75.07643890,39.91358185),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Collingswood Middle School",'Collingswood=' + Collingswood.length);
Collingswood[Collingswood.length] = createMarker(new GPoint(-75.07653046,39.91355133),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Collingswood Senior High School",'Collingswood=' + Collingswood.length);
Camden[Camden.length] = createMarker(new GPoint(-75.09352112,39.91601944),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Coopers Poynt Elementary School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.09100342,39.95761871),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cramer Elementary School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11879730,39.91889954),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Creative & Pefrmg Arts High School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.10824200,39.92855700),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("D.u.e. Season Charter School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08316040,39.96007919),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Davis Elementary School",'Camden=' + Camden.length);
Delair[Delair.length] = createMarker(new GPoint(-75.05530548,39.97834015),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Delair Elementary School",'Delair=' + Delair.length);
Runnemede[Runnemede.length] = createMarker(new GPoint(-75.07479858,39.85160065),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Downing Elementary School",'Runnemede=' + Runnemede.length);
Camden[Camden.length] = createMarker(new GPoint(-75.09786224,39.95434189),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dudley Elementary School",'Camden=' + Camden.length);
West_Berlin[West_Berlin.length] = createMarker(new GPoint(-74.93238068,39.81164169),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dwight D Eisenhower Mem Middle School",'West_Berlin=' + West_Berlin.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11493683,39.93679810),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Childhood Devel Cnt Elementary School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11778259,39.92676926),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("East Camden Middle School",'Camden=' + Camden.length);
Voorhees[Voorhees.length] = createMarker(new GPoint(-74.95809937,39.84410095),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Eastern High School",'Voorhees=' + Voorhees.length);
Voorhees[Voorhees.length] = createMarker(new GPoint(-74.95809937,39.84410095),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Eastern Intermediate High School",'Voorhees=' + Voorhees.length);
Voorhees[Voorhees.length] = createMarker(new GPoint(-74.95809937,39.84410095),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Edward T Hamilton Elementary School",'Voorhees=' + Voorhees.length);
Haddonfield[Haddonfield.length] = createMarker(new GPoint(-75.04411316,39.89611435),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Elizabeth Haddon Elementary School",'Haddonfield=' + Haddonfield.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11616200,39.94524000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Environment Community Opportunity C",'Camden=' + Camden.length);
Sicklerville[Sicklerville.length] = createMarker(new GPoint(-75.00861359,39.76961517),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Erial Elementary School",'Sicklerville=' + Sicklerville.length);
Bellmawr[Bellmawr.length] = createMarker(new GPoint(-75.07915497,39.86529541),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ethel M Burke Elementary School",'Bellmawr=' + Bellmawr.length);
Camden[Camden.length] = createMarker(new GPoint(-75.06201935,39.91147995),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Forest Hill Elementary School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.06287700,39.82155400),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Freedom Academy Charter School",'Camden=' + Camden.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.06841278,39.94314194),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("G H Carson Elementary School",'Pennsauken=' + Pennsauken.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.02884674,39.95601273),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("George B. Fine Elementary School",'Pennsauken=' + Pennsauken.length);
Gibbsboro[Gibbsboro.length] = createMarker(new GPoint(-74.96812439,39.83723450),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gibbsboro Elementary School",'Gibbsboro=' + Gibbsboro.length);
Blackwood[Blackwood.length] = createMarker(new GPoint(-75.05467224,39.82628250),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Glen Landing Middle School",'Blackwood=' + Blackwood.length);
Glendora[Glendora.length] = createMarker(new GPoint(-75.07171631,39.83771133),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glendora Elementary School",'Glendora=' + Glendora.length);
Haddon_Heights[Haddon_Heights.length] = createMarker(new GPoint(-75.06580353,39.87839890),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Glenview Ave Elementary School",'Haddon_Heights=' + Haddon_Heights.length);
Gloucester_City[Gloucester_City.length] = createMarker(new GPoint(-75.11202240,39.88781357),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gloucester City Junior Senior High School",'Gloucester_City=' + Gloucester_City.length);
Blackwood[Blackwood.length] = createMarker(new GPoint(-75.06482697,39.79766464),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gloucester Township Elementary School",'Blackwood=' + Blackwood.length);
Haddon_Heights[Haddon_Heights.length] = createMarker(new GPoint(-75.05151367,39.88381195),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Haddon Heights Junior Senior High School",'Haddon_Heights=' + Haddon_Heights.length);
Westmont[Westmont.length] = createMarker(new GPoint(-75.06369781,39.91540146),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Haddon Township High School",'Westmont=' + Westmont.length);
Haddonfield[Haddonfield.length] = createMarker(new GPoint(-75.02621460,39.90061188),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Haddonfield Memorial High School",'Haddonfield=' + Haddonfield.length);
Camden[Camden.length] = createMarker(new GPoint(-75.06201935,39.91147995),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hatch Middle School",'Camden=' + Camden.length);
Audubon[Audubon.length] = createMarker(new GPoint(-75.06434631,39.89446640),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Haviland Ave Elementary School",'Audubon=' + Audubon.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.94381714,39.88589859),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Henry C Beck Middle School",'Cherry_Hill=' + Cherry_Hill.length);
Blackwood[Blackwood.length] = createMarker(new GPoint(-75.03549957,39.79272079),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Highland High School",'Blackwood=' + Blackwood.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-75.00299835,39.86531830),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Horace Mann Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.02841949,39.96213531),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Howard M Phifer Middle School",'Pennsauken=' + Pennsauken.length);
Haddonfield[Haddonfield.length] = createMarker(new GPoint(-75.03959656,39.89500046),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("J Fithian Tatem Elementary School",'Haddonfield=' + Haddonfield.length);
Collingswood[Collingswood.length] = createMarker(new GPoint(-75.07553101,39.91828156),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James A Garfield Elementary School",'Collingswood=' + Collingswood.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.95941162,39.90576935),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James F Cooper Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.99220276,39.88864136),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James Johnson Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Erial[Erial.length] = createMarker(new GPoint(-74.97928619,39.70700836),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James W Lilley, Junior High School",'Erial=' + Erial.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.99932098,39.93653870),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("John A Carusi Middle School",'Cherry_Hill=' + Cherry_Hill.length);
West_Berlin[West_Berlin.length] = createMarker(new GPoint(-74.93593597,39.81335068),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John F Kennedy Memorial Elementary School",'West_Berlin=' + West_Berlin.length);
Pine_Hill[Pine_Hill.length] = createMarker(new GPoint(-74.96851349,39.77661514),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John Glenn Elementary School",'Pine_Hill=' + Pine_Hill.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-75.02916718,39.93373108),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joseph D Sharp Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.97760010,39.92060089),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Joyce Kilmer Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.98939800,39.92176600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kingston Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Voorhees[Voorhees.length] = createMarker(new GPoint(-74.95809937,39.84410095),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kresson School",'Voorhees=' + Voorhees.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11878204,39.95291901),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lanning Square Elementary School",'Camden=' + Camden.length);
Laurel_Springs[Laurel_Springs.length] = createMarker(new GPoint(-75.00328827,39.82239532),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Laurel Springs Elementary School",'Laurel_Springs=' + Laurel_Springs.length);
Lawnside[Lawnside.length] = createMarker(new GPoint(-75.01805115,39.85886383),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lawnside Public Elementary School",'Lawnside=' + Lawnside.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11784363,39.94644165),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Leap Academy University Charter School",'Camden=' + Camden.length);
Lindenwold[Lindenwold.length] = createMarker(new GPoint(-74.97285461,39.81771088),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lindenwold High School",'Lindenwold=' + Lindenwold.length);
Lindenwold[Lindenwold.length] = createMarker(new GPoint(-74.99388885,39.81856918),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lindenwold Middle School",'Lindenwold=' + Lindenwold.length);
Lindenwold[Lindenwold.length] = createMarker(new GPoint(-74.97632599,39.82310867),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lindenwold No. 4 Elementary School",'Lindenwold=' + Lindenwold.length);
Lindenwold[Lindenwold.length] = createMarker(new GPoint(-75.01483154,39.81087112),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lindenwold No. 5 Elementary School",'Lindenwold=' + Lindenwold.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.05329895,39.96670151),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Longfellow Elementary School",'Pennsauken=' + Pennsauken.length);
Blackwood[Blackwood.length] = createMarker(new GPoint(-75.05650330,39.78229904),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Loring-flemming Elementary School",'Blackwood=' + Blackwood.length);
Magnolia[Magnolia.length] = createMarker(new GPoint(-75.03224945,39.85174942),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Magnolia Elementary School",'Magnolia=' + Magnolia.length);
Audubon[Audubon.length] = createMarker(new GPoint(-75.07302094,39.88870621),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mansion Ave Elementary School",'Audubon=' + Audubon.length);
Collingswood[Collingswood.length] = createMarker(new GPoint(-75.08106232,39.92049026),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mark Newbie Elementary School",'Collingswood=' + Collingswood.length);
Mount_Ephraim[Mount_Ephraim.length] = createMarker(new GPoint(-75.08959198,39.88079071),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mary Bray Elementary School",'Mount_Ephraim=' + Mount_Ephraim.length);
Gloucester_City[Gloucester_City.length] = createMarker(new GPoint(-75.12157440,39.89529037),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mary E Costello Middle School",'Gloucester_City=' + Gloucester_City.length);
Runnemede[Runnemede.length] = createMarker(new GPoint(-75.07479858,39.85160065),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mary E. Volz Middle School",'Runnemede=' + Runnemede.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08187866,39.94921875),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcgraw Elementary School",'Camden=' + Camden.length);
Merchantville[Merchantville.length] = createMarker(new GPoint(-75.04846954,39.94903564),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Merchantville Elementary School",'Merchantville=' + Merchantville.length);
Haddonfield[Haddonfield.length] = createMarker(new GPoint(-75.03959656,39.89500046),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Middle Middle School",'Haddonfield=' + Haddonfield.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11631775,39.91262054),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Morgan Village Middle School",'Camden=' + Camden.length);
Atco[Atco.length] = createMarker(new GPoint(-74.87270355,39.76520157),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("N J Regional Day School",'Atco=' + Atco.length);
Oaklyn[Oaklyn.length] = createMarker(new GPoint(-75.08599854,39.90779877),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oaklyn Elementary School",'Oaklyn=' + Oaklyn.length);
Oaklyn[Oaklyn.length] = createMarker(new GPoint(-75.08599854,39.90779877),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oaklyn Junior Middle School",'Oaklyn=' + Oaklyn.length);
Voorhees[Voorhees.length] = createMarker(new GPoint(-75.00508118,39.85121155),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Osage Elementary School",'Voorhees=' + Voorhees.length);
Pine_Hill[Pine_Hill.length] = createMarker(new GPoint(-74.99900055,39.80720139),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Overbrook High School",'Pine_Hill=' + Pine_Hill.length);
Camden[Camden.length] = createMarker(new GPoint(-75.06201935,39.91147995),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkside Elementary School",'Camden=' + Camden.length);
Stratford[Stratford.length] = createMarker(new GPoint(-75.01360321,39.82989883),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkview Elementary School",'Stratford=' + Stratford.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.02872467,39.98690414),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pennsauken High School",'Pennsauken=' + Pennsauken.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.02962494,39.96190643),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pennsauken Intermediate",'Pennsauken=' + Pennsauken.length);
Pine_Hill[Pine_Hill.length] = createMarker(new GPoint(-74.99900055,39.80720139),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pine Hill Middle School",'Pine_Hill=' + Pine_Hill.length);
Camden[Camden.length] = createMarker(new GPoint(-75.10923767,39.94038010),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Powell Elementary School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11498260,39.95330048),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pyne Poynt Family School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11498260,39.95330048),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("R C Molina Elementary School",'Camden=' + Camden.length);
Mount_Ephraim[Mount_Ephraim.length] = createMarker(new GPoint(-75.08636475,39.88232803),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Raymond W. Kershaw Middle School",'Mount_Ephraim=' + Mount_Ephraim.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.96124268,39.89508057),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Richard Stockton Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Camden[Camden.length] = createMarker(new GPoint(-75.05747986,39.96260071),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riletta Cream Elementary School",'Camden=' + Camden.length);
Pennsauken[Pennsauken.length] = createMarker(new GPoint(-75.05641937,39.94191742),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roosevelt Elementary School",'Pennsauken=' + Pennsauken.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.99610901,39.88762665),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rosa International Middle School",'Cherry_Hill=' + Cherry_Hill.length);
Stratford[Stratford.length] = createMarker(new GPoint(-75.01971436,39.83111191),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Samuel S Yellin Middle School",'Stratford=' + Stratford.length);
Haddon_Heights[Haddon_Heights.length] = createMarker(new GPoint(-75.06580353,39.87839890),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Seventh Ave Elementary School",'Haddon_Heights=' + Haddon_Heights.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08534241,39.95888138),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sharp Elementary School",'Camden=' + Camden.length);
Chesilhurst[Chesilhurst.length] = createMarker(new GPoint(-74.88695526,39.72816467),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shirley Foster Elementary School",'Chesilhurst=' + Chesilhurst.length);
Voorhees[Voorhees.length] = createMarker(new GPoint(-74.92160034,39.82667923),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Signal Hill School",'Voorhees=' + Voorhees.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11886597,39.93316650),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("So Camden Alternative School",'Camden=' + Camden.length);
Somerdale[Somerdale.length] = createMarker(new GPoint(-75.01961517,39.84881210),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Somerdale Park Elementary School",'Somerdale=' + Somerdale.length);
Somerdale[Somerdale.length] = createMarker(new GPoint(-75.02475739,39.83640671),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Sterling High School",'Somerdale=' + Somerdale.length);
Haddonfield[Haddonfield.length] = createMarker(new GPoint(-75.05314636,39.90682602),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Stoy Elementary School",'Haddonfield=' + Haddonfield.length);
Westmont[Westmont.length] = createMarker(new GPoint(-75.05368805,39.91716766),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Strawbridge Elementary School",'Westmont=' + Westmont.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11403656,39.93854141),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sumner Elementary School",'Camden=' + Camden.length);
Westmont[Westmont.length] = createMarker(new GPoint(-75.04612732,39.91298294),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas A. Edison Elementary School",'Westmont=' + Westmont.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-75.01609802,39.94263840),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas Paine Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Atco[Atco.length] = createMarker(new GPoint(-74.83884430,39.76419449),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas Richards Elementary School",'Atco=' + Atco.length);
West_Collingswood[West_Collingswood.length] = createMarker(new GPoint(-75.08947754,39.91201782),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Thomas Sharp Elementary School",'West_Collingswood=' + West_Collingswood.length);
Erial[Erial.length] = createMarker(new GPoint(-75.01351929,39.76050568),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Timber Creek High School",'Erial=' + Erial.length);
Runnemede[Runnemede.length] = createMarker(new GPoint(-75.06455994,39.85063934),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Triton High School",'Runnemede=' + Runnemede.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11878204,39.95291901),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("U S Wiggins Elementary School",'Camden=' + Camden.length);
Sicklerville[Sicklerville.length] = createMarker(new GPoint(-74.99221802,39.77360535),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Union Valley Elementary School",'Sicklerville=' + Sicklerville.length);
Westmont[Westmont.length] = createMarker(new GPoint(-75.06369781,39.91540146),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Van Sciver Elementary School",'Westmont=' + Westmont.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08904266,39.94704056),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Veterans Memorial Middle School",'Camden=' + Camden.length);
Voorhees[Voorhees.length] = createMarker(new GPoint(-74.95809937,39.84410095),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Voorhees Middle School",'Voorhees=' + Voorhees.length);
Camden[Camden.length] = createMarker(new GPoint(-75.09468842,39.95589066),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Camden=' + Camden.length);
Waterford[Waterford.length] = createMarker(new GPoint(-74.85274506,39.72733688),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Waterford Elementary School",'Waterford=' + Waterford.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11403656,39.93854141),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whittier Elementary School",'Camden=' + Camden.length);
Westmont[Westmont.length] = createMarker(new GPoint(-75.06359863,39.91550064),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("William G. Rohrer Middle School",'Westmont=' + Westmont.length);
Collingswood[Collingswood.length] = createMarker(new GPoint(-75.06757355,39.91911316),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("William P Tatem Elementary School",'Collingswood=' + Collingswood.length);
Camden[Camden.length] = createMarker(new GPoint(-75.11778259,39.92676926),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Wilson Elementary School",'Camden=' + Camden.length);
Atco[Atco.length] = createMarker(new GPoint(-74.87270355,39.76520157),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Winslow Township High School",'Atco=' + Atco.length);
Atco[Atco.length] = createMarker(new GPoint(-74.87270355,39.76520157),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Winslow Township Middle School",'Atco=' + Atco.length);
Blue_Anchor[Blue_Anchor.length] = createMarker(new GPoint(-74.89208984,39.65465164),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winslow Township School No 1",'Blue_Anchor=' + Blue_Anchor.length);
Cedar_Brook[Cedar_Brook.length] = createMarker(new GPoint(-74.90110016,39.71519852),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winslow Township School No 2",'Cedar_Brook=' + Cedar_Brook.length);
Sicklerville[Sicklerville.length] = createMarker(new GPoint(-74.95195770,39.70638275),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winslow Township School No 3",'Sicklerville=' + Sicklerville.length);
Sicklerville[Sicklerville.length] = createMarker(new GPoint(-74.99809265,39.72633743),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winslow Township School No 4",'Sicklerville=' + Sicklerville.length);
Cedar_Brook[Cedar_Brook.length] = createMarker(new GPoint(-74.90110016,39.71519852),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winslow Township School No 5",'Cedar_Brook=' + Cedar_Brook.length);
Sicklerville[Sicklerville.length] = createMarker(new GPoint(-74.97940063,39.72950363),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Winslow Township School No 6",'Sicklerville=' + Sicklerville.length);
Cherry_Hill[Cherry_Hill.length] = createMarker(new GPoint(-74.99616241,39.87434006),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodcrest Elementary School",'Cherry_Hill=' + Cherry_Hill.length);
Barrington[Barrington.length] = createMarker(new GPoint(-75.04979706,39.86899948),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Woodland Middle School",'Barrington=' + Barrington.length);
Woodlynne[Woodlynne.length] = createMarker(new GPoint(-75.09362030,39.91933823),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodlynne Elementary School",'Woodlynne=' + Woodlynne.length);
Camden[Camden.length] = createMarker(new GPoint(-75.08683777,39.95808029),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Woodrow Wilson High School",'Camden=' + Camden.length);
Camden[Camden.length] = createMarker(new GPoint(-75.10330200,39.90465927),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Yorkship Elementary School",'Camden=' + Camden.length);
Collingswood[Collingswood.length] = createMarker(new GPoint(-75.06732178,39.91207504),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Zane North Elementary School",'Collingswood=' + Collingswood.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(Atco);
map.removeOverlays(Audubon);
map.removeOverlays(Barrington);
map.removeOverlays(Bellmawr);
map.removeOverlays(Berlin);
map.removeOverlays(Blackwood);
map.removeOverlays(Blue_Anchor);
map.removeOverlays(Brooklawn);
map.removeOverlays(Camden);
map.removeOverlays(Cedar_Brook);
map.removeOverlays(Cherry_Hill);
map.removeOverlays(Chesilhurst);
map.removeOverlays(Clementon);
map.removeOverlays(Collingswood);
map.removeOverlays(Delair);
map.removeOverlays(Erial);
map.removeOverlays(Gibbsboro);
map.removeOverlays(Glendora);
map.removeOverlays(Gloucester_City);
map.removeOverlays(Haddon_Heights);
map.removeOverlays(Haddonfield);
map.removeOverlays(Laurel_Springs);
map.removeOverlays(Lawnside);
map.removeOverlays(Lindenwold);
map.removeOverlays(Magnolia);
map.removeOverlays(Merchantville);
map.removeOverlays(Mount_Ephraim);
map.removeOverlays(Oaklyn);
map.removeOverlays(Pennsauken);
map.removeOverlays(Pine_Hill);
map.removeOverlays(Runnemede);
map.removeOverlays(Sicklerville);
map.removeOverlays(Somerdale);
map.removeOverlays(Stratford);
map.removeOverlays(Voorhees);
map.removeOverlays(Waterford);
map.removeOverlays(West_Berlin);
map.removeOverlays(West_Collingswood);
map.removeOverlays(Westmont);
map.removeOverlays(Woodlynne);
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(Pennsauken);map.removeOverlays(Atco);
map.removeOverlays(Audubon);
map.removeOverlays(Barrington);
map.removeOverlays(Bellmawr);
map.removeOverlays(Berlin);
map.removeOverlays(Blackwood);
map.removeOverlays(Blue_Anchor);
map.removeOverlays(Brooklawn);
map.removeOverlays(Camden);
map.removeOverlays(Cedar_Brook);
map.removeOverlays(Cherry_Hill);
map.removeOverlays(Chesilhurst);
map.removeOverlays(Clementon);
map.removeOverlays(Collingswood);
map.removeOverlays(Delair);
map.removeOverlays(Erial);
map.removeOverlays(Gibbsboro);
map.removeOverlays(Glendora);
map.removeOverlays(Gloucester_City);
map.removeOverlays(Haddon_Heights);
map.removeOverlays(Haddonfield);
map.removeOverlays(Laurel_Springs);
map.removeOverlays(Lawnside);
map.removeOverlays(Lindenwold);
map.removeOverlays(Magnolia);
map.removeOverlays(Merchantville);
map.removeOverlays(Mount_Ephraim);
map.removeOverlays(Oaklyn);
map.removeOverlays(Pennsauken);
map.removeOverlays(Pine_Hill);
map.removeOverlays(Runnemede);
map.removeOverlays(Sicklerville);
map.removeOverlays(Somerdale);
map.removeOverlays(Stratford);
map.removeOverlays(Voorhees);
map.removeOverlays(Waterford);
map.removeOverlays(West_Berlin);
map.removeOverlays(West_Collingswood);
map.removeOverlays(Westmont);
map.removeOverlays(Woodlynne);
map.addOverlays(Atco);
centerByArray(Atco, false, false);
cntMarker += Atco.length;
map.addOverlays(Audubon);
centerByArray(Audubon, false, false);
cntMarker += Audubon.length;
map.addOverlays(Barrington);
centerByArray(Barrington, false, false);
cntMarker += Barrington.length;
map.addOverlays(Bellmawr);
centerByArray(Bellmawr, false, false);
cntMarker += Bellmawr.length;
map.addOverlays(Berlin);
centerByArray(Berlin, false, false);
cntMarker += Berlin.length;
map.addOverlays(Blackwood);
centerByArray(Blackwood, false, false);
cntMarker += Blackwood.length;
map.addOverlays(Blue_Anchor);
centerByArray(Blue_Anchor, false, false);
cntMarker += Blue_Anchor.length;
map.addOverlays(Brooklawn);
centerByArray(Brooklawn, false, false);
cntMarker += Brooklawn.length;
map.addOverlays(Camden);
centerByArray(Camden, false, false);
cntMarker += Camden.length;
map.addOverlays(Cedar_Brook);
centerByArray(Cedar_Brook, false, false);
cntMarker += Cedar_Brook.length;
map.addOverlays(Cherry_Hill);
centerByArray(Cherry_Hill, false, false);
cntMarker += Cherry_Hill.length;
map.addOverlays(Chesilhurst);
centerByArray(Chesilhurst, false, false);
cntMarker += Chesilhurst.length;
map.addOverlays(Clementon);
centerByArray(Clementon, false, false);
cntMarker += Clementon.length;
map.addOverlays(Collingswood);
centerByArray(Collingswood, false, false);
cntMarker += Collingswood.length;
map.addOverlays(Delair);
centerByArray(Delair, false, false);
cntMarker += Delair.length;
map.addOverlays(Erial);
centerByArray(Erial, false, false);
cntMarker += Erial.length;
map.addOverlays(Gibbsboro);
centerByArray(Gibbsboro, false, false);
cntMarker += Gibbsboro.length;
map.addOverlays(Glendora);
centerByArray(Glendora, false, false);
cntMarker += Glendora.length;
map.addOverlays(Gloucester_City);
centerByArray(Gloucester_City, false, false);
cntMarker += Gloucester_City.length;
map.addOverlays(Haddon_Heights);
centerByArray(Haddon_Heights, false, false);
cntMarker += Haddon_Heights.length;
map.addOverlays(Haddonfield);
centerByArray(Haddonfield, false, false);
cntMarker += Haddonfield.length;
map.addOverlays(Laurel_Springs);
centerByArray(Laurel_Springs, false, false);
cntMarker += Laurel_Springs.length;
map.addOverlays(Lawnside);
centerByArray(Lawnside, false, false);
cntMarker += Lawnside.length;
map.addOverlays(Lindenwold);
centerByArray(Lindenwold, false, false);
cntMarker += Lindenwold.length;
map.addOverlays(Magnolia);
centerByArray(Magnolia, false, false);
cntMarker += Magnolia.length;
map.addOverlays(Merchantville);
centerByArray(Merchantville, false, false);
cntMarker += Merchantville.length;
map.addOverlays(Mount_Ephraim);
centerByArray(Mount_Ephraim, false, false);
cntMarker += Mount_Ephraim.length;
map.addOverlays(Oaklyn);
centerByArray(Oaklyn, false, false);
cntMarker += Oaklyn.length;
map.addOverlays(Pennsauken);
centerByArray(Pennsauken, false, false);
cntMarker += Pennsauken.length;
map.addOverlays(Pine_Hill);
centerByArray(Pine_Hill, false, false);
cntMarker += Pine_Hill.length;
map.addOverlays(Runnemede);
centerByArray(Runnemede, false, false);
cntMarker += Runnemede.length;
map.addOverlays(Sicklerville);
centerByArray(Sicklerville, false, false);
cntMarker += Sicklerville.length;
map.addOverlays(Somerdale);
centerByArray(Somerdale, false, false);
cntMarker += Somerdale.length;
map.addOverlays(Stratford);
centerByArray(Stratford, false, false);
cntMarker += Stratford.length;
map.addOverlays(Voorhees);
centerByArray(Voorhees, false, false);
cntMarker += Voorhees.length;
map.addOverlays(Waterford);
centerByArray(Waterford, false, false);
cntMarker += Waterford.length;
map.addOverlays(West_Berlin);
centerByArray(West_Berlin, false, false);
cntMarker += West_Berlin.length;
map.addOverlays(West_Collingswood);
centerByArray(West_Collingswood, false, false);
cntMarker += West_Collingswood.length;
map.addOverlays(Westmont);
centerByArray(Westmont, false, false);
cntMarker += Westmont.length;
map.addOverlays(Woodlynne);
centerByArray(Woodlynne, false, false);
cntMarker += Woodlynne.length;
centerByArray(Pennsauken,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');
}
}