function addMarkers()
{
mySelect = document.getElementById('selection');
Dunedin = [];Largo = [];St_Petersburg = [];Seminole = [];Clearwater = [];Gulfport = [];Tarpon_Springs = [];Pinellas_Park = [];Palm_Harbor = [];Oldsmar = [];Madeira_Beach = [];Safety_Harbor = [];mySelect.options[mySelect.options.length] = new Option("Clearwater schools",'all=Clearwater');
mySelect.options[mySelect.options.length] = new Option("Dunedin schools",'all=Dunedin');
mySelect.options[mySelect.options.length] = new Option("Gulfport schools",'all=Gulfport');
mySelect.options[mySelect.options.length] = new Option("Largo schools",'all=Largo');
mySelect.options[mySelect.options.length] = new Option("Madeira Beach schools",'all=Madeira_Beach');
mySelect.options[mySelect.options.length] = new Option("Oldsmar schools",'all=Oldsmar');
mySelect.options[mySelect.options.length] = new Option("Palm Harbor schools",'all=Palm_Harbor');
mySelect.options[mySelect.options.length] = new Option("Pinellas Park schools",'all=Pinellas_Park');
mySelect.options[mySelect.options.length] = new Option("Safety Harbor schools",'all=Safety_Harbor');
mySelect.options[mySelect.options.length] = new Option("Seminole schools",'all=Seminole');
mySelect.options[mySelect.options.length] = new Option("St Petersburg schools",'all=St_Petersburg');
mySelect.options[mySelect.options.length] = new Option("Tarpon Springs schools",'all=Tarpon_Springs');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
Dunedin[Dunedin.length] = createMarker(new GPoint(-82.77175140,28.02295876),"
",iconRd);
mySelect.options[mySelect.options.length] = new Option("Acadamie Davinci Elementary School",'Dunedin=' + Dunedin.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79228973,27.91588402),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Academy Prep",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.83224487,27.88491249),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Anona Elementary School",'Largo=' + Largo.length);
Dunedin[Dunedin.length] = createMarker(new GPoint(-82.77664185,28.05007172),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Athenian Academy",'Dunedin=' + Dunedin.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.74085236,27.78800583),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Azalea Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.74694061,27.79243660),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Azalea Middle School",'St_Petersburg=' + St_Petersburg.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.75360870,27.85216141),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bardmoor Elementary School",'Seminole=' + Seminole.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.81472015,27.85107231),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bauder Elementary School",'Seminole=' + Seminole.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66274261,27.71546173),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bay Point Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66182709,27.71213722),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Bay Point Middle School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.64624023,27.71496391),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bay Vista Fundamental Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.70045100,27.90355200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bayside High School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.70514400,27.74631000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bear Creek Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74574280,27.92954063),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belcher Elementary School",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.78869629,27.94993782),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Belleair Elementary School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.72465515,27.82086372),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Blanton Elementary School",'St_Petersburg=' + St_Petersburg.length);
Gulfport[Gulfport.length] = createMarker(new GPoint(-82.71194458,27.76067924),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Boca Ciega High School",'Gulfport=' + Gulfport.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79146900,27.91604500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Boley Juvenile Justice",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Britt Halfway House",'Largo=' + Largo.length);
Tarpon_Springs[Tarpon_Springs.length] = createMarker(new GPoint(-82.69520569,28.13758850),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Brooker Creek Elementary School",'Tarpon_Springs=' + Tarpon_Springs.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.78354645,27.98881912),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Calvin A. Hunsinger School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.68334198,27.75816345),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Campbell Park Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.69174194,27.80675125),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Clearview Avenue Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.75445300,27.95950600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Clearwater Adult Education Center",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.75445300,27.95950600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Clearwater High School",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.78673553,27.97553635),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Clearwater Intermediate",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74406433,27.97339821),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Coachman Fundamental Middle School",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71308899,28.01996994),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Countryside High School",'Clearwater=' + Clearwater.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.73451996,27.86456299),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cross Bayou Elementary School",'Pinellas_Park=' + Pinellas_Park.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.72789400,28.07803800),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Curlew Creek Elementary School",'Palm_Harbor=' + Palm_Harbor.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.78575134,27.97817421),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Curtis Fundamental Elementary School",'Clearwater=' + Clearwater.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.69359589,28.11466217),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Cypress Woods Elementary School",'Palm_Harbor=' + Palm_Harbor.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71945190,27.91226387),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dees - Ptec Clearwater",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.67965698,27.76031876),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dees - Ptec Saint Petersburg",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.72055054,27.81633949),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dixie M. Hollins High School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.68669891,27.74230003),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Doug Jamerson Elementary School",'St_Petersburg=' + St_Petersburg.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dropout Prevention",'Largo=' + Largo.length);
Dunedin[Dunedin.length] = createMarker(new GPoint(-82.78513336,28.00466347),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Dunedin Elementary School",'Dunedin=' + Dunedin.length);
Dunedin[Dunedin.length] = createMarker(new GPoint(-82.77151489,28.02875710),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Dunedin High School",'Dunedin=' + Dunedin.length);
Dunedin[Dunedin.length] = createMarker(new GPoint(-82.77569580,27.99753761),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Dunedin Highland Middle School",'Dunedin=' + Dunedin.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74955000,27.96544800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("E.w.e.s.",'Clearwater=' + Clearwater.length);
Tarpon_Springs[Tarpon_Springs.length] = createMarker(new GPoint(-82.69965363,28.12706184),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("East Lake High School",'Tarpon_Springs=' + Tarpon_Springs.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.72144318,27.96813774),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eisenhower Elementary School",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes - E-kel-etu Camp",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes - E-ma-chamee Camp",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes - E-nini-hassee Camp",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes - E-tu-makee Camp",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes - Eckerd Intensive Halfway House",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes - Eckerd Youth Challenge Program",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes - Eckerd Youth Conservation Academy",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74975586,27.96670151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ewes-eckerd Leadership Program",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.68905640,27.76504326),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fairmount Park Elementary School",'St_Petersburg=' + St_Petersburg.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Family Resources Shelter (i",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.72532654,27.87896347),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Fitzgerald Middle School",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Florida Youth Academy - Low Risk (formerly S",'Largo=' + Largo.length);
Oldsmar[Oldsmar.length] = createMarker(new GPoint(-82.66987610,28.04577446),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Forest Lakes Elementary School",'Oldsmar=' + Oldsmar.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.73759460,27.90917969),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frontier Elementary School",'Clearwater=' + Clearwater.length);
Largo[Largo.length] = createMarker(new GPoint(-82.77915192,27.89125061),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Fuguitt Elementary School",'Largo=' + Largo.length);
Dunedin[Dunedin.length] = createMarker(new GPoint(-82.75914764,28.03553200),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Garrison-jones Elementary School",'Dunedin=' + Dunedin.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.67922211,27.75982475),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Gibbs High School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.75428009,27.75109482),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gulf Beaches Elementary School",'St_Petersburg=' + St_Petersburg.length);
Gulfport[Gulfport.length] = createMarker(new GPoint(-82.66532135,27.74826241),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Gulfport Elementary School",'Gulfport=' + Gulfport.length);
Gulfport[Gulfport.length] = createMarker(new GPoint(-82.70235443,27.75933647),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hamilton Disston School",'Gulfport=' + Gulfport.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.73032379,27.83356285),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Headstart Elementary School",'Pinellas_Park=' + Pinellas_Park.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71747589,27.90884018),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("High Point Elementary School",'Clearwater=' + Clearwater.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.71584320,28.07610130),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highland Lakes Elementary School",'Palm_Harbor=' + Palm_Harbor.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.75483704,27.95703697),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Hospital/homebound",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66709900,27.74200058),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("James Sanderlin Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65495300,27.76275635),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("John Hopkins Middle School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66025543,27.82136726),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John M. Sexton Elementary School",'St_Petersburg=' + St_Petersburg.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.72499084,28.08849716),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Joseph L. Carwise Middle School",'Palm_Harbor=' + Palm_Harbor.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.76714325,27.97553635),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Kennedy Middle School",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.77934265,27.98393059),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Kings Highway Elementary School",'Clearwater=' + Clearwater.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.73600769,28.05643654),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lake Saint George Elementary School",'Palm_Harbor=' + Palm_Harbor.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66715240,27.74793243),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakeview Fundamental Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65246600,27.71755400),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lakewood Community",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.64091492,27.73102379),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lakewood Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65295410,27.71916389),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Lakewood High School",'St_Petersburg=' + St_Petersburg.length);
Largo[Largo.length] = createMarker(new GPoint(-82.78489685,27.91773605),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Largo Central Elementary School",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.78744507,27.92016220),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Largo High School",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.78489685,27.90916252),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Largo Middle School",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Leaf Pemhs (formerly Leaf Halfway House) (i",'Largo=' + Largo.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.68787384,27.82483673),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lealman Avenue Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.68175507,27.80925560),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Lealman Intermediate",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71623993,28.01684952),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Leila Davis Elementary School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.67838900,27.78825000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Life Skills Center Of Pinellas County",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65956879,27.83690834),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lynch Elementary School",'St_Petersburg=' + St_Petersburg.length);
Madeira_Beach[Madeira_Beach.length] = createMarker(new GPoint(-82.79724121,27.79778862),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Madeira Beach Elementary School",'Madeira_Beach=' + Madeira_Beach.length);
Madeira_Beach[Madeira_Beach.length] = createMarker(new GPoint(-82.79724121,27.79778862),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Madeira Beach Middle School",'Madeira_Beach=' + Madeira_Beach.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.73244476,27.83110809),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Marjorie Kinnan Rawlings Elementary School",'Pinellas_Park=' + Pinellas_Park.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.67504120,27.72418022),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maximo Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71294403,27.99726105),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mcmullen-booth Elementary School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65515137,27.82704926),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Meadowlawn Middle School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65717316,27.75786209),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Melrose Elementary School",'St_Petersburg=' + St_Petersburg.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79675293,27.91158104),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mildred Helms Elementary School",'Largo=' + Largo.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.70925140,28.03122139),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Modesta Robbins Partnership Middle School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.69631195,27.78463745),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mt. Vernon Elementary School",'St_Petersburg=' + St_Petersburg.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.71645355,27.83536339),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Nina Harris Ese Center",'Pinellas_Park=' + Pinellas_Park.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.63284302,27.80386353),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Shore Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.79911041,27.97487068),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North Ward Elementary School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.63762665,27.78323746),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("North Ward Secondary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65639800,27.82120500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northeast Community",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65515137,27.82213783),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Northeast High School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.72397600,27.78894300),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Northwest Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66274261,27.79641151),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Norwood Secondary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74615479,27.94671822),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oak Grove Middle School",'Clearwater=' + Clearwater.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.72877300,27.84961500),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Oak Park School",'Pinellas_Park=' + Pinellas_Park.length);
Largo[Largo.length] = createMarker(new GPoint(-82.82804108,27.86886215),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oakhurst Elementary School",'Largo=' + Largo.length);
Oldsmar[Oldsmar.length] = createMarker(new GPoint(-82.66267400,28.03703500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Oldsmar Elementary School",'Oldsmar=' + Oldsmar.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.78165436,27.83146286),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Orange Grove Elementary School",'Seminole=' + Seminole.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.77454376,27.86112404),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Osceola High School",'Seminole=' + Seminole.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.77454376,27.85689545),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Osceola Middle School",'Seminole=' + Seminole.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.77323151,28.06883621),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ozona Elementary School",'Palm_Harbor=' + Palm_Harbor.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pace Center For Girls (fo",'Largo=' + Largo.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.75995636,28.07087708),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Palm Harbor Elementary School",'Palm_Harbor=' + Palm_Harbor.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.75404358,28.06776237),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Palm Harbor Middle School",'Palm_Harbor=' + Palm_Harbor.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.76393890,28.08655357),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Palm Harbor University High School",'Palm_Harbor=' + Palm_Harbor.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.73780823,27.77156830),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pasadena Fundamental Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71562195,27.98796654),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Paul B. Stephens Ese Center",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66320038,27.75213623),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Perkins Elementary School",'St_Petersburg=' + St_Petersburg.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pinellas Boot Camp",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pinellas Boot Camp Transition",'Largo=' + Largo.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.71234131,27.86706734),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pinellas Central Elementary School",'Pinellas_Park=' + Pinellas_Park.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79146900,27.91604500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pinellas County Superintendent's Office",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pinellas Juvenile Detention Center (formerly Pinel",'Largo=' + Largo.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pinellas Marine Institute",'Largo=' + Largo.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.70415497,27.84036636),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pinellas Park Elementary School",'Pinellas_Park=' + Pinellas_Park.length);
Largo[Largo.length] = createMarker(new GPoint(-82.72401428,27.87923622),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pinellas Park High School",'Largo=' + Largo.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.73449707,27.83536339),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Pinellas Park Middle School",'Pinellas_Park=' + Pinellas_Park.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.73398300,27.96191900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Plato Academy Charter School",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.75702667,27.94963646),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Plumb Elementary School",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.78311157,27.93506241),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ponce De Leon Elementary School",'Clearwater=' + Clearwater.length);
Largo[Largo.length] = createMarker(new GPoint(-82.79225159,27.91375542),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Pre-k Early Intervention Program-largo Curriculum",'Largo=' + Largo.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71945190,27.91226387),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ptec - Clearwater - Team",'Clearwater=' + Clearwater.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.71945190,27.91226387),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ptec - Clearwater High School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.67965698,27.76031876),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ptec - St Petersburg - Team",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.67965698,27.76031876),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Ptec South Secondary School",'St_Petersburg=' + St_Petersburg.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.70236969,27.84113693),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Richard L. Sanders School",'Pinellas_Park=' + Pinellas_Park.length);
Largo[Largo.length] = createMarker(new GPoint(-82.80344391,27.89935684),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Ridgecrest Elementary School",'Largo=' + Largo.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.62994385,27.84653282),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Rio Vista Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.62883759,27.82863617),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Riviera Middle School",'St_Petersburg=' + St_Petersburg.length);
Safety_Harbor[Safety_Harbor.length] = createMarker(new GPoint(-82.69235229,27.99476433),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Safety Harbor Elementary School",'Safety_Harbor=' + Safety_Harbor.length);
Safety_Harbor[Safety_Harbor.length] = createMarker(new GPoint(-82.68843079,27.99743652),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Safety Harbor Middle School",'Safety_Harbor=' + Safety_Harbor.length);
Safety_Harbor[Safety_Harbor.length] = createMarker(new GPoint(-82.70332336,27.99686241),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Safety Harbor Secondary School",'Safety_Harbor=' + Safety_Harbor.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.72856400,27.77718200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Saint Petersburg Collegiate High School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.66736603,27.77762413),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Saint Petersburg High School",'St_Petersburg=' + St_Petersburg.length);
Dunedin[Dunedin.length] = createMarker(new GPoint(-82.78205109,28.02884102),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("San Jose Elementary School",'Dunedin=' + Dunedin.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.78175354,27.98523712),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sandy Lane Elementary School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.65877533,27.84289742),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sawgrass Lake Elementary School",'St_Petersburg=' + St_Petersburg.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.79105377,27.83976364),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Seminole Elementary School",'Seminole=' + Seminole.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.81974030,27.84907913),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Seminole High School",'Seminole=' + Seminole.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.81974030,27.85204315),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Seminole Middle School",'Seminole=' + Seminole.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.81261444,27.85104561),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Seminole Vocational Education Center",'Seminole=' + Seminole.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.74082947,27.80653000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Seventy-fourth Saint Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.67952728,27.77096939),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shore Acres Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.76005554,27.96574020),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Skycrest Elementary School",'Clearwater=' + Clearwater.length);
Pinellas_Park[Pinellas_Park.length] = createMarker(new GPoint(-82.71634674,27.85024452),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Skyview Elementary School",'Pinellas_Park=' + Pinellas_Park.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.80013275,27.95935059),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("South Ward Elementary School",'Clearwater=' + Clearwater.length);
Largo[Largo.length] = createMarker(new GPoint(-82.76510620,27.87993622),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Southern Oak Elementary School",'Largo=' + Largo.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.64795685,27.75335121),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Southside Fundamental Middle School",'St_Petersburg=' + St_Petersburg.length);
Seminole[Seminole.length] = createMarker(new GPoint(-82.76790619,27.85026360),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Starkey Elementary School",'Seminole=' + Seminole.length);
Tarpon_Springs[Tarpon_Springs.length] = createMarker(new GPoint(-82.78029633,28.14486313),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sunset Hills Elementary School",'Tarpon_Springs=' + Tarpon_Springs.length);
Palm_Harbor[Palm_Harbor.length] = createMarker(new GPoint(-82.74540710,28.09788322),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sutherland Elementary School",'Palm_Harbor=' + Palm_Harbor.length);
Tarpon_Springs[Tarpon_Springs.length] = createMarker(new GPoint(-82.74865723,28.15111923),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tarpon Springs Elementary School",'Tarpon_Springs=' + Tarpon_Springs.length);
Tarpon_Springs[Tarpon_Springs.length] = createMarker(new GPoint(-82.75234985,28.13945580),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tarpon Springs Fundamental Ele Elementary School",'Tarpon_Springs=' + Tarpon_Springs.length);
Tarpon_Springs[Tarpon_Springs.length] = createMarker(new GPoint(-82.77763367,28.14486313),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Tarpon Springs High School",'Tarpon_Springs=' + Tarpon_Springs.length);
Tarpon_Springs[Tarpon_Springs.length] = createMarker(new GPoint(-82.78134155,28.15105057),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Tarpon Springs Middle School",'Tarpon_Springs=' + Tarpon_Springs.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.68669891,27.74230003),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Thurgood Marshall Middle School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.72824097,27.79345131),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tyrone Elementary School",'St_Petersburg=' + St_Petersburg.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.72481537,27.79203606),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Tyrone Middle School",'St_Petersburg=' + St_Petersburg.length);
Largo[Largo.length] = createMarker(new GPoint(-82.76507568,27.87993622),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Walsingham Elementary School",'Largo=' + Largo.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.71255493,27.80505562),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Westgate Elementary School",'St_Petersburg=' + St_Petersburg.length);
Clearwater[Clearwater.length] = createMarker(new GPoint(-82.74604034,27.98018265),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Whole Child At Uparc Charter School",'Clearwater=' + Clearwater.length);
St_Petersburg[St_Petersburg.length] = createMarker(new GPoint(-82.73400116,27.78883934),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Woodlawn Elementary School",'St_Petersburg=' + St_Petersburg.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(Clearwater);
map.removeOverlays(Dunedin);
map.removeOverlays(Gulfport);
map.removeOverlays(Largo);
map.removeOverlays(Madeira_Beach);
map.removeOverlays(Oldsmar);
map.removeOverlays(Palm_Harbor);
map.removeOverlays(Pinellas_Park);
map.removeOverlays(Safety_Harbor);
map.removeOverlays(Seminole);
map.removeOverlays(St_Petersburg);
map.removeOverlays(Tarpon_Springs);
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(Dunedin);map.removeOverlays(Clearwater);
map.removeOverlays(Dunedin);
map.removeOverlays(Gulfport);
map.removeOverlays(Largo);
map.removeOverlays(Madeira_Beach);
map.removeOverlays(Oldsmar);
map.removeOverlays(Palm_Harbor);
map.removeOverlays(Pinellas_Park);
map.removeOverlays(Safety_Harbor);
map.removeOverlays(Seminole);
map.removeOverlays(St_Petersburg);
map.removeOverlays(Tarpon_Springs);
map.addOverlays(Clearwater);
centerByArray(Clearwater, false, false);
cntMarker += Clearwater.length;
map.addOverlays(Dunedin);
centerByArray(Dunedin, false, false);
cntMarker += Dunedin.length;
map.addOverlays(Gulfport);
centerByArray(Gulfport, false, false);
cntMarker += Gulfport.length;
map.addOverlays(Largo);
centerByArray(Largo, false, false);
cntMarker += Largo.length;
map.addOverlays(Madeira_Beach);
centerByArray(Madeira_Beach, false, false);
cntMarker += Madeira_Beach.length;
map.addOverlays(Oldsmar);
centerByArray(Oldsmar, false, false);
cntMarker += Oldsmar.length;
map.addOverlays(Palm_Harbor);
centerByArray(Palm_Harbor, false, false);
cntMarker += Palm_Harbor.length;
map.addOverlays(Pinellas_Park);
centerByArray(Pinellas_Park, false, false);
cntMarker += Pinellas_Park.length;
map.addOverlays(Safety_Harbor);
centerByArray(Safety_Harbor, false, false);
cntMarker += Safety_Harbor.length;
map.addOverlays(Seminole);
centerByArray(Seminole, false, false);
cntMarker += Seminole.length;
map.addOverlays(St_Petersburg);
centerByArray(St_Petersburg, false, false);
cntMarker += St_Petersburg.length;
map.addOverlays(Tarpon_Springs);
centerByArray(Tarpon_Springs, false, false);
cntMarker += Tarpon_Springs.length;
centerByArray(Dunedin,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');
}
}