function addMarkers(){
mySelect = document.getElementById('selection');
Miami = [];Oakland_Park = [];Fort_Lauderdale = [];Cocoa = [];Ocala = [];Marianna = [];West_Palm_Beach = [];Daytona_Beach = [];Fort_Myers = [];Boca_Raton = [];Temple_Terrace = [];Pompano_Beach = [];Maitland = [];Bradenton = [];Jacksonville = [];Key_West = [];Hialeah = [];Orlando = [];Winter_Park = [];Tampa = [];Panama_City = [];Fort_Pierce = [];Dania_Beach = [];Lake_City = [];Leesburg = [];Madison = [];Niceville = [];Lake_Worth = [];New_Port_Richey = [];Pensacola = [];Winter_Haven = [];Hollywood = [];Palatka = [];Gainesville = [];Sanford = [];Avon_Park = [];Clearwater = [];Tallahassee = [];mySelect.options[mySelect.options.length] = new Option("Avon Park Schools",'all=Avon_Park');
mySelect.options[mySelect.options.length] = new Option("Boca Raton Schools",'all=Boca_Raton');
mySelect.options[mySelect.options.length] = new Option("Bradenton Schools",'all=Bradenton');
mySelect.options[mySelect.options.length] = new Option("Clearwater Schools",'all=Clearwater');
mySelect.options[mySelect.options.length] = new Option("Cocoa Schools",'all=Cocoa');
mySelect.options[mySelect.options.length] = new Option("Dania Beach Schools",'all=Dania_Beach');
mySelect.options[mySelect.options.length] = new Option("Daytona Beach Schools",'all=Daytona_Beach');
mySelect.options[mySelect.options.length] = new Option("Fort Lauderdale Schools",'all=Fort_Lauderdale');
mySelect.options[mySelect.options.length] = new Option("Fort Myers Schools",'all=Fort_Myers');
mySelect.options[mySelect.options.length] = new Option("Fort Pierce Schools",'all=Fort_Pierce');
mySelect.options[mySelect.options.length] = new Option("Gainesville Schools",'all=Gainesville');
mySelect.options[mySelect.options.length] = new Option("Hialeah Schools",'all=Hialeah');
mySelect.options[mySelect.options.length] = new Option("Hollywood Schools",'all=Hollywood');
mySelect.options[mySelect.options.length] = new Option("Jacksonville Schools",'all=Jacksonville');
mySelect.options[mySelect.options.length] = new Option("Key West Schools",'all=Key_West');
mySelect.options[mySelect.options.length] = new Option("Lake City Schools",'all=Lake_City');
mySelect.options[mySelect.options.length] = new Option("Lake Worth Schools",'all=Lake_Worth');
mySelect.options[mySelect.options.length] = new Option("Leesburg Schools",'all=Leesburg');
mySelect.options[mySelect.options.length] = new Option("Madison Schools",'all=Madison');
mySelect.options[mySelect.options.length] = new Option("Maitland Schools",'all=Maitland');
mySelect.options[mySelect.options.length] = new Option("Marianna Schools",'all=Marianna');
mySelect.options[mySelect.options.length] = new Option("Miami Schools",'all=Miami');
mySelect.options[mySelect.options.length] = new Option("New Port Richey Schools",'all=New_Port_Richey');
mySelect.options[mySelect.options.length] = new Option("Niceville Schools",'all=Niceville');
mySelect.options[mySelect.options.length] = new Option("Oakland Park Schools",'all=Oakland_Park');
mySelect.options[mySelect.options.length] = new Option("Ocala Schools",'all=Ocala');
mySelect.options[mySelect.options.length] = new Option("Orlando Schools",'all=Orlando');
mySelect.options[mySelect.options.length] = new Option("Palatka Schools",'all=Palatka');
mySelect.options[mySelect.options.length] = new Option("Panama City Schools",'all=Panama_City');
mySelect.options[mySelect.options.length] = new Option("Pensacola Schools",'all=Pensacola');
mySelect.options[mySelect.options.length] = new Option("Pompano Beach Schools",'all=Pompano_Beach');
mySelect.options[mySelect.options.length] = new Option("Sanford Schools",'all=Sanford');
mySelect.options[mySelect.options.length] = new Option("Tallahassee Schools",'all=Tallahassee');
mySelect.options[mySelect.options.length] = new Option("Tampa Schools",'all=Tampa');
mySelect.options[mySelect.options.length] = new Option("Temple Terrace Schools",'all=Temple_Terrace');
mySelect.options[mySelect.options.length] = new Option("West Palm Beach Schools",'all=West_Palm_Beach');
mySelect.options[mySelect.options.length] = new Option("Winter Haven Schools",'all=Winter_Haven');
mySelect.options[mySelect.options.length] = new Option("Winter Park Schools",'all=Winter_Park');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
var tmpLatLng=0;
var tmpLen=0;
tmpLatLng=new GLatLng(25.79377600000000114,-80.1946690000000046);
tmpLen=Miami.length;
Miami[tmpLen] = createMarker(tmpLatLng,"
",iconRd);
Miami[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ati Career Training Center",'Miami=' + Miami.length);
tmpLatLng=new GLatLng(26.18096099999999992,-80.1557669999999973);
tmpLen=Oakland_Park.length;
Oakland_Park[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Oakland_Park[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ati Career Training Center",'Oakland_Park=' + Oakland_Park.length);
tmpLatLng=new GLatLng(26.20226100000000002,-80.1891679999999951);
tmpLen=Fort_Lauderdale.length;
Fort_Lauderdale[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Fort_Lauderdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ati Career Training Center",'Fort_Lauderdale=' + Fort_Lauderdale.length);
tmpLatLng=new GLatLng(25.92709299999999927,-80.2241970000000037);
tmpLen=Miami.length;
Miami[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Miami[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ati College Of Health",'Miami=' + Miami.length);
tmpLatLng=new GLatLng(28.38288899999999870,-80.7547869999999932);
tmpLen=Cocoa.length;
Cocoa[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Cocoa[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Brevard Community College",'Cocoa=' + Cocoa.length);
tmpLatLng=new GLatLng(26.11896399999999829,-80.1409689999999983);
tmpLen=Fort_Lauderdale.length;
Fort_Lauderdale[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Fort_Lauderdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Broward Community College",'Fort_Lauderdale=' + Fort_Lauderdale.length);
tmpLatLng=new GLatLng(29.15962400000000087,-82.1754520000000070);
tmpLen=Ocala.length;
Ocala[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Ocala[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Central Florida Community College",'Ocala=' + Ocala.length);
tmpLatLng=new GLatLng(30.78774999999999906,-85.2322649999999981);
tmpLen=Marianna.length;
Marianna[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Marianna[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Chipola College",'Marianna=' + Marianna.length);
tmpLatLng=new GLatLng(26.20300800000000052,-80.1636790000000019);
tmpLen=Fort_Lauderdale.length;
Fort_Lauderdale[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Fort_Lauderdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City College",'Fort_Lauderdale=' + Fort_Lauderdale.length);
tmpLatLng=new GLatLng(25.68733200000000138,-80.3123250000000012);
tmpLen=Miami.length;
Miami[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Miami[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City College",'Miami=' + Miami.length);
tmpLatLng=new GLatLng(26.71119399999999899,-80.0966810000000037);
tmpLen=West_Palm_Beach.length;
West_Palm_Beach[tmpLen] = createMarker(tmpLatLng,"",iconRd);
West_Palm_Beach[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cooper Career Institute",'West_Palm_Beach=' + West_Palm_Beach.length);
tmpLatLng=new GLatLng(29.19969000000000036,-81.0488129999999955);
tmpLen=Daytona_Beach.length;
Daytona_Beach[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Daytona_Beach[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Daytona State College",'Daytona_Beach=' + Daytona_Beach.length);
tmpLatLng=new GLatLng(26.55695300000000003,-81.8890090000000014);
tmpLen=Fort_Myers.length;
Fort_Myers[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Fort_Myers[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Edison State College",'Fort_Myers=' + Fort_Myers.length);
tmpLatLng=new GLatLng(26.18626099999999823,-80.1632680000000021);
tmpLen=Boca_Raton.length;
Boca_Raton[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Boca_Raton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Everglades University",'Boca_Raton=' + Boca_Raton.length);
tmpLatLng=new GLatLng(25.75669800000000009,-80.3679869999999993);
tmpLen=Miami.length;
Miami[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Miami[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida Career College",'Miami=' + Miami.length);
tmpLatLng=new GLatLng(28.03592300000000037,-82.3839880000000022);
tmpLen=Temple_Terrace.length;
Temple_Terrace[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Temple_Terrace[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida College",'Temple_Terrace=' + Temple_Terrace.length);
tmpLatLng=new GLatLng(26.27457700000000073,-80.1509420000000005);
tmpLen=Pompano_Beach.length;
Pompano_Beach[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Pompano_Beach[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida College Of Natural Health",'Pompano_Beach=' + Pompano_Beach.length);
tmpLatLng=new GLatLng(25.78225199999999972,-80.3243669999999951);
tmpLen=Miami.length;
Miami[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Miami[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida College Of Natural Health",'Miami=' + Miami.length);
tmpLatLng=new GLatLng(28.6633659999999999,-81.3606379999999944);
tmpLen=Maitland.length;
Maitland[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Maitland[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida College Of Natural Health",'Maitland=' + Maitland.length);
tmpLatLng=new GLatLng(27.32873700000000027,-82.5343660000000056);
tmpLen=Bradenton.length;
Bradenton[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Bradenton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida College Of Natural Health",'Bradenton=' + Bradenton.length);
tmpLatLng=new GLatLng(30.33432499999999976,-81.6622030000000052);
tmpLen=Jacksonville.length;
Jacksonville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Jacksonville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida Community College At Jacksonville",'Jacksonville=' + Jacksonville.length);
tmpLatLng=new GLatLng(24.57852499999999906,-81.7474930000000057);
tmpLen=Key_West.length;
Key_West[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Key_West[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida Keys Community College",'Key_West=' + Key_West.length);
tmpLatLng=new GLatLng(25.86284799999999961,-80.3222460000000069);
tmpLen=Hialeah.length;
Hialeah[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Hialeah[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida National College",'Hialeah=' + Hialeah.length);
tmpLatLng=new GLatLng(28.57170299999999940,-81.2026599999999945);
tmpLen=Orlando.length;
Orlando[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Orlando[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida Technical College",'Orlando=' + Orlando.length);
tmpLatLng=new GLatLng(30.33786200000000121,-81.5623899999999935);
tmpLen=Jacksonville.length;
Jacksonville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Jacksonville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Florida Technical College Of Jacksonville Inc",'Jacksonville=' + Jacksonville.length);
tmpLatLng=new GLatLng(28.59692799999999834,-81.3013159999999999);
tmpLen=Winter_Park.length;
Winter_Park[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Winter_Park[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Full Sail Real World Education",'Winter_Park=' + Winter_Park.length);
tmpLatLng=new GLatLng(27.98005699999999862,-82.3605100000000049);
tmpLen=Tampa.length;
Tampa[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Tampa[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Gulf Coast College",'Tampa=' + Tampa.length);
tmpLatLng=new GLatLng(30.18397500000000022,-85.7280250000000023);
tmpLen=Panama_City.length;
Panama_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Panama_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Gulf Coast Community College",'Panama_City=' + Panama_City.length);
tmpLatLng=new GLatLng(28.57899400000000156,-81.3091780000000028);
tmpLen=Winter_Park.length;
Winter_Park[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Winter_Park[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Herzing College",'Winter_Park=' + Winter_Park.length);
tmpLatLng=new GLatLng(27.93484199999999972,-82.4568309999999939);
tmpLen=Tampa.length;
Tampa[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Tampa[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Hillsborough Community College",'Tampa=' + Tampa.length);
tmpLatLng=new GLatLng(27.42540400000000033,-80.3575189999999963);
tmpLen=Fort_Pierce.length;
Fort_Pierce[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Fort_Pierce[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Indian River Community College",'Fort_Pierce=' + Fort_Pierce.length);
tmpLatLng=new GLatLng(26.07862400000000135,-80.2517409999999955);
tmpLen=Fort_Lauderdale.length;
Fort_Lauderdale[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Fort_Lauderdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-fort Lauderdale",'Fort_Lauderdale=' + Fort_Lauderdale.length);
tmpLatLng=new GLatLng(26.18626099999999823,-80.1632680000000021);
tmpLen=Fort_Lauderdale.length;
Fort_Lauderdale[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Fort_Lauderdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Keiser College-ft Lauderdale",'Fort_Lauderdale=' + Fort_Lauderdale.length);
tmpLatLng=new GLatLng(26.12076400000000120,-80.2183330000000012);
tmpLen=Dania_Beach.length;
Dania_Beach[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Dania_Beach[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Key College",'Dania_Beach=' + Dania_Beach.length);
tmpLatLng=new GLatLng(30.18938999999999950,-82.6385729999999938);
tmpLen=Lake_City.length;
Lake_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lake_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lake City Community College",'Lake_City=' + Lake_City.length);
tmpLatLng=new GLatLng(28.82802999999999826,-81.8024900000000059);
tmpLen=Leesburg.length;
Leesburg[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Leesburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lake-sumter Community College",'Leesburg=' + Leesburg.length);
tmpLatLng=new GLatLng(27.43703100000000105,-82.5875439999999940);
tmpLen=Bradenton.length;
Bradenton[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bradenton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Manatee Community College",'Bradenton=' + Bradenton.length);
tmpLatLng=new GLatLng(25.77687600000000145,-80.1902690000000006);
tmpLen=Miami.length;
Miami[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Miami[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Miami Dade College",'Miami=' + Miami.length);
tmpLatLng=new GLatLng(30.47180600000000083,-83.4239280000000036);
tmpLen=Madison.length;
Madison[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Madison[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("North Florida Community College",'Madison=' + Madison.length);
tmpLatLng=new GLatLng(30.53471700000000055,-86.4745319999999964);
tmpLen=Niceville.length;
Niceville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Niceville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Okaloosa-walton College",'Niceville=' + Niceville.length);
tmpLatLng=new GLatLng(26.61344599999999971,-80.0893180000000057);
tmpLen=Lake_Worth.length;
Lake_Worth[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lake_Worth[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Palm Beach Community College",'Lake_Worth=' + Lake_Worth.length);
tmpLatLng=new GLatLng(28.27859700000000131,-82.6472930000000047);
tmpLen=New_Port_Richey.length;
New_Port_Richey[tmpLen] = createMarker(tmpLatLng,"",iconGr);
New_Port_Richey[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pasco-hernando Community College",'New_Port_Richey=' + New_Port_Richey.length);
tmpLatLng=new GLatLng(30.48089600000000132,-87.2053700000000020);
tmpLen=Pensacola.length;
Pensacola[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Pensacola[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Pensacola Junior College",'Pensacola=' + Pensacola.length);
tmpLatLng=new GLatLng(28.03033699999999939,-81.7127550000000013);
tmpLen=Winter_Haven.length;
Winter_Haven[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Winter_Haven[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Polk Community College",'Winter_Haven=' + Winter_Haven.length);
tmpLatLng=new GLatLng(26.01142300000000062,-80.1601129999999955);
tmpLen=Hollywood.length;
Hollywood[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Hollywood[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Prospect Hall School Of Business",'Hollywood=' + Hollywood.length);
tmpLatLng=new GLatLng(29.64824099999999873,-81.6791170000000050);
tmpLen=Palatka.length;
Palatka[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Palatka[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Saint Johns River Community College",'Palatka=' + Palatka.length);
tmpLatLng=new GLatLng(30.18479699999999965,-81.5493770000000068);
tmpLen=Jacksonville.length;
Jacksonville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Jacksonville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Sanford-brown Institute",'Jacksonville=' + Jacksonville.length);
tmpLatLng=new GLatLng(29.67743099999999856,-82.4309339999999934);
tmpLen=Gainesville.length;
Gainesville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Gainesville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Santa Fe Community College",'Gainesville=' + Gainesville.length);
tmpLatLng=new GLatLng(28.74463099999999826,-81.3015730000000047);
tmpLen=Sanford.length;
Sanford[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Sanford[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Seminole Community College",'Sanford=' + Sanford.length);
tmpLatLng=new GLatLng(27.57022399999999962,-81.5123360000000047);
tmpLen=Avon_Park.length;
Avon_Park[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Avon_Park[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("South Florida Community College",'Avon_Park=' + Avon_Park.length);
tmpLatLng=new GLatLng(26.59596799999999916,-81.8772359999999963);
tmpLen=Fort_Myers.length;
Fort_Myers[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Fort_Myers[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Southwest Florida College",'Fort_Myers=' + Fort_Myers.length);
tmpLatLng=new GLatLng(27.84984800000000149,-82.7289540000000016);
tmpLen=Clearwater.length;
Clearwater[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Clearwater[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("St Petersburg College",'Clearwater=' + Clearwater.length);
tmpLatLng=new GLatLng(26.75644099999999880,-80.0810639999999978);
tmpLen=West_Palm_Beach.length;
West_Palm_Beach[tmpLen] = createMarker(tmpLatLng,"",iconGr);
West_Palm_Beach[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Summit Institute",'West_Palm_Beach=' + West_Palm_Beach.length);
tmpLatLng=new GLatLng(30.44236199999999925,-84.3368229999999954);
tmpLen=Tallahassee.length;
Tallahassee[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Tallahassee[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Tallahassee Community College",'Tallahassee=' + Tallahassee.length);
tmpLatLng=new GLatLng(28.54046100000000052,-81.3790000000000048);
tmpLen=Orlando.length;
Orlando[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Orlando[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Valencia Community College",'Orlando=' + Orlando.length);
getPoly("","state","","FL");}
// End addStateMarkers JavaScript Function
//open all when map is defined
function openAll() {
if (map) {
selectChange("all");
} else {
setTimeout("openAll()",200);
}
}
// 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].point.x;
var markLat = myArray[i].point.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].point.x;
maxLat = myArray[0].point.y;
minLng = myArray[0].point.x;
minLat = myArray[0].point.y;
}
// Recenter map based on global max/mins
function reCenterMap(){
//alert('#' + minLat + '#' + minLng + '#' + maxLat + '#' + maxLng);
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) {
if (selection.options) {
var _openNewWindow=true;
var myVal = selection.options[selection.selectedIndex].value;
} else {
var _openNewWindow=false;
var myVal=selection;
}
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('schools-by-distance') == -1)
window.open(location.href + '/map/all');
else
window.open('/search////all');
map.removeOverlays(Avon_Park);
map.removeOverlays(Boca_Raton);
map.removeOverlays(Bradenton);
map.removeOverlays(Clearwater);
map.removeOverlays(Cocoa);
map.removeOverlays(Dania_Beach);
map.removeOverlays(Daytona_Beach);
map.removeOverlays(Fort_Lauderdale);
map.removeOverlays(Fort_Myers);
map.removeOverlays(Fort_Pierce);
map.removeOverlays(Gainesville);
map.removeOverlays(Hialeah);
map.removeOverlays(Hollywood);
map.removeOverlays(Jacksonville);
map.removeOverlays(Key_West);
map.removeOverlays(Lake_City);
map.removeOverlays(Lake_Worth);
map.removeOverlays(Leesburg);
map.removeOverlays(Madison);
map.removeOverlays(Maitland);
map.removeOverlays(Marianna);
map.removeOverlays(Miami);
map.removeOverlays(New_Port_Richey);
map.removeOverlays(Niceville);
map.removeOverlays(Oakland_Park);
map.removeOverlays(Ocala);
map.removeOverlays(Orlando);
map.removeOverlays(Palatka);
map.removeOverlays(Panama_City);
map.removeOverlays(Pensacola);
map.removeOverlays(Pompano_Beach);
map.removeOverlays(Sanford);
map.removeOverlays(Tallahassee);
map.removeOverlays(Tampa);
map.removeOverlays(Temple_Terrace);
map.removeOverlays(West_Palm_Beach);
map.removeOverlays(Winter_Haven);
map.removeOverlays(Winter_Park);
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(Miami);map.removeOverlays(Avon_Park);
map.removeOverlays(Boca_Raton);
map.removeOverlays(Bradenton);
map.removeOverlays(Clearwater);
map.removeOverlays(Cocoa);
map.removeOverlays(Dania_Beach);
map.removeOverlays(Daytona_Beach);
map.removeOverlays(Fort_Lauderdale);
map.removeOverlays(Fort_Myers);
map.removeOverlays(Fort_Pierce);
map.removeOverlays(Gainesville);
map.removeOverlays(Hialeah);
map.removeOverlays(Hollywood);
map.removeOverlays(Jacksonville);
map.removeOverlays(Key_West);
map.removeOverlays(Lake_City);
map.removeOverlays(Lake_Worth);
map.removeOverlays(Leesburg);
map.removeOverlays(Madison);
map.removeOverlays(Maitland);
map.removeOverlays(Marianna);
map.removeOverlays(Miami);
map.removeOverlays(New_Port_Richey);
map.removeOverlays(Niceville);
map.removeOverlays(Oakland_Park);
map.removeOverlays(Ocala);
map.removeOverlays(Orlando);
map.removeOverlays(Palatka);
map.removeOverlays(Panama_City);
map.removeOverlays(Pensacola);
map.removeOverlays(Pompano_Beach);
map.removeOverlays(Sanford);
map.removeOverlays(Tallahassee);
map.removeOverlays(Tampa);
map.removeOverlays(Temple_Terrace);
map.removeOverlays(West_Palm_Beach);
map.removeOverlays(Winter_Haven);
map.removeOverlays(Winter_Park);
map.addOverlays(Avon_Park);
centerByArray(Avon_Park, false, false);
cntMarker += Avon_Park.length;
map.addOverlays(Boca_Raton);
centerByArray(Boca_Raton, false, false);
cntMarker += Boca_Raton.length;
map.addOverlays(Bradenton);
centerByArray(Bradenton, false, false);
cntMarker += Bradenton.length;
map.addOverlays(Clearwater);
centerByArray(Clearwater, false, false);
cntMarker += Clearwater.length;
map.addOverlays(Cocoa);
centerByArray(Cocoa, false, false);
cntMarker += Cocoa.length;
map.addOverlays(Dania_Beach);
centerByArray(Dania_Beach, false, false);
cntMarker += Dania_Beach.length;
map.addOverlays(Daytona_Beach);
centerByArray(Daytona_Beach, false, false);
cntMarker += Daytona_Beach.length;
map.addOverlays(Fort_Lauderdale);
centerByArray(Fort_Lauderdale, false, false);
cntMarker += Fort_Lauderdale.length;
map.addOverlays(Fort_Myers);
centerByArray(Fort_Myers, false, false);
cntMarker += Fort_Myers.length;
map.addOverlays(Fort_Pierce);
centerByArray(Fort_Pierce, false, false);
cntMarker += Fort_Pierce.length;
map.addOverlays(Gainesville);
centerByArray(Gainesville, false, false);
cntMarker += Gainesville.length;
map.addOverlays(Hialeah);
centerByArray(Hialeah, false, false);
cntMarker += Hialeah.length;
map.addOverlays(Hollywood);
centerByArray(Hollywood, false, false);
cntMarker += Hollywood.length;
map.addOverlays(Jacksonville);
centerByArray(Jacksonville, false, false);
cntMarker += Jacksonville.length;
map.addOverlays(Key_West);
centerByArray(Key_West, false, false);
cntMarker += Key_West.length;
map.addOverlays(Lake_City);
centerByArray(Lake_City, false, false);
cntMarker += Lake_City.length;
map.addOverlays(Lake_Worth);
centerByArray(Lake_Worth, false, false);
cntMarker += Lake_Worth.length;
map.addOverlays(Leesburg);
centerByArray(Leesburg, false, false);
cntMarker += Leesburg.length;
map.addOverlays(Madison);
centerByArray(Madison, false, false);
cntMarker += Madison.length;
map.addOverlays(Maitland);
centerByArray(Maitland, false, false);
cntMarker += Maitland.length;
map.addOverlays(Marianna);
centerByArray(Marianna, false, false);
cntMarker += Marianna.length;
map.addOverlays(Miami);
centerByArray(Miami, false, false);
cntMarker += Miami.length;
map.addOverlays(New_Port_Richey);
centerByArray(New_Port_Richey, false, false);
cntMarker += New_Port_Richey.length;
map.addOverlays(Niceville);
centerByArray(Niceville, false, false);
cntMarker += Niceville.length;
map.addOverlays(Oakland_Park);
centerByArray(Oakland_Park, false, false);
cntMarker += Oakland_Park.length;
map.addOverlays(Ocala);
centerByArray(Ocala, false, false);
cntMarker += Ocala.length;
map.addOverlays(Orlando);
centerByArray(Orlando, false, false);
cntMarker += Orlando.length;
map.addOverlays(Palatka);
centerByArray(Palatka, false, false);
cntMarker += Palatka.length;
map.addOverlays(Panama_City);
centerByArray(Panama_City, false, false);
cntMarker += Panama_City.length;
map.addOverlays(Pensacola);
centerByArray(Pensacola, false, false);
cntMarker += Pensacola.length;
map.addOverlays(Pompano_Beach);
centerByArray(Pompano_Beach, false, false);
cntMarker += Pompano_Beach.length;
map.addOverlays(Sanford);
centerByArray(Sanford, false, false);
cntMarker += Sanford.length;
map.addOverlays(Tallahassee);
centerByArray(Tallahassee, false, false);
cntMarker += Tallahassee.length;
map.addOverlays(Tampa);
centerByArray(Tampa, false, false);
cntMarker += Tampa.length;
map.addOverlays(Temple_Terrace);
centerByArray(Temple_Terrace, false, false);
cntMarker += Temple_Terrace.length;
map.addOverlays(West_Palm_Beach);
centerByArray(West_Palm_Beach, false, false);
cntMarker += West_Palm_Beach.length;
map.addOverlays(Winter_Haven);
centerByArray(Winter_Haven, false, false);
cntMarker += Winter_Haven.length;
map.addOverlays(Winter_Park);
centerByArray(Winter_Park, false, false);
cntMarker += Winter_Park.length;
reCenterMap();
//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');
}
}
function createMarker(point, label, icon){
var marker = new GMarker(point, icon);
var html = label;
GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); });
return marker;
}