function addMarkers(){
mySelect = document.getElementById('selection');
Shreveport = [];Baton_Rouge = [];Bossier_City = [];New_Orleans = [];Lake_Charles = [];Houma = [];Alexandria = [];Eunice = [];Crowley = [];Sorrento = [];Cottonport = [];Bastrop = [];Ville_Platte = [];West_Monroe = [];Saint_Martinville = [];Greensburg = [];Jackson = [];Abbeville = [];Hammond = [];Winnfield = [];Metairie = [];New_Roads = [];Lafayette = [];Thibodaux = [];Leesville = [];Mansfield = [];Jennings = [];Natchitoches = [];Farmerville = [];Winnsboro = [];Minden = [];Oakdale = [];Reserve = [];Many = [];Ferriday = [];Slidell = [];Bogalusa = [];Opelousas = [];Tallulah = [];New_Iberia = [];Morgan_City = [];Chalmette = [];mySelect.options[mySelect.options.length] = new Option("Abbeville Schools",'all=Abbeville');
mySelect.options[mySelect.options.length] = new Option("Alexandria Schools",'all=Alexandria');
mySelect.options[mySelect.options.length] = new Option("Bastrop Schools",'all=Bastrop');
mySelect.options[mySelect.options.length] = new Option("Baton Rouge Schools",'all=Baton_Rouge');
mySelect.options[mySelect.options.length] = new Option("Bogalusa Schools",'all=Bogalusa');
mySelect.options[mySelect.options.length] = new Option("Bossier City Schools",'all=Bossier_City');
mySelect.options[mySelect.options.length] = new Option("Chalmette Schools",'all=Chalmette');
mySelect.options[mySelect.options.length] = new Option("Cottonport Schools",'all=Cottonport');
mySelect.options[mySelect.options.length] = new Option("Crowley Schools",'all=Crowley');
mySelect.options[mySelect.options.length] = new Option("Eunice Schools",'all=Eunice');
mySelect.options[mySelect.options.length] = new Option("Farmerville Schools",'all=Farmerville');
mySelect.options[mySelect.options.length] = new Option("Ferriday Schools",'all=Ferriday');
mySelect.options[mySelect.options.length] = new Option("Greensburg Schools",'all=Greensburg');
mySelect.options[mySelect.options.length] = new Option("Hammond Schools",'all=Hammond');
mySelect.options[mySelect.options.length] = new Option("Houma Schools",'all=Houma');
mySelect.options[mySelect.options.length] = new Option("Jackson Schools",'all=Jackson');
mySelect.options[mySelect.options.length] = new Option("Jennings Schools",'all=Jennings');
mySelect.options[mySelect.options.length] = new Option("Lafayette Schools",'all=Lafayette');
mySelect.options[mySelect.options.length] = new Option("Lake Charles Schools",'all=Lake_Charles');
mySelect.options[mySelect.options.length] = new Option("Leesville Schools",'all=Leesville');
mySelect.options[mySelect.options.length] = new Option("Mansfield Schools",'all=Mansfield');
mySelect.options[mySelect.options.length] = new Option("Many Schools",'all=Many');
mySelect.options[mySelect.options.length] = new Option("Metairie Schools",'all=Metairie');
mySelect.options[mySelect.options.length] = new Option("Minden Schools",'all=Minden');
mySelect.options[mySelect.options.length] = new Option("Morgan City Schools",'all=Morgan_City');
mySelect.options[mySelect.options.length] = new Option("Natchitoches Schools",'all=Natchitoches');
mySelect.options[mySelect.options.length] = new Option("New Iberia Schools",'all=New_Iberia');
mySelect.options[mySelect.options.length] = new Option("New Orleans Schools",'all=New_Orleans');
mySelect.options[mySelect.options.length] = new Option("New Roads Schools",'all=New_Roads');
mySelect.options[mySelect.options.length] = new Option("Oakdale Schools",'all=Oakdale');
mySelect.options[mySelect.options.length] = new Option("Opelousas Schools",'all=Opelousas');
mySelect.options[mySelect.options.length] = new Option("Reserve Schools",'all=Reserve');
mySelect.options[mySelect.options.length] = new Option("Saint Martinville Schools",'all=Saint_Martinville');
mySelect.options[mySelect.options.length] = new Option("Shreveport Schools",'all=Shreveport');
mySelect.options[mySelect.options.length] = new Option("Slidell Schools",'all=Slidell');
mySelect.options[mySelect.options.length] = new Option("Sorrento Schools",'all=Sorrento');
mySelect.options[mySelect.options.length] = new Option("Tallulah Schools",'all=Tallulah');
mySelect.options[mySelect.options.length] = new Option("Thibodaux Schools",'all=Thibodaux');
mySelect.options[mySelect.options.length] = new Option("Ville Platte Schools",'all=Ville_Platte');
mySelect.options[mySelect.options.length] = new Option("West Monroe Schools",'all=West_Monroe');
mySelect.options[mySelect.options.length] = new Option("Winnfield Schools",'all=Winnfield');
mySelect.options[mySelect.options.length] = new Option("Winnsboro Schools",'all=Winnsboro');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
var tmpLatLng=0;
var tmpLen=0;
tmpLatLng=new GLatLng(32.41344099999999883,-93.7220039999999983);
tmpLen=Shreveport.length;
Shreveport[tmpLen] = createMarker(tmpLatLng,"
",iconRd);
Shreveport[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("American School Of Business",'Shreveport=' + Shreveport.length);
tmpLatLng=new GLatLng(30.42693999999999832,-91.0713729999999941);
tmpLen=Baton_Rouge.length;
Baton_Rouge[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Baton_Rouge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Baton Rouge School Of Computers",'Baton_Rouge=' + Baton_Rouge.length);
tmpLatLng=new GLatLng(32.54802899999999965,-93.7092159999999978);
tmpLen=Bossier_City.length;
Bossier_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bossier_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Bossier Parish Community College",'Bossier_City=' + Bossier_City.length);
tmpLatLng=new GLatLng(30.47398199999999945,-91.1163449999999954);
tmpLen=Baton_Rouge.length;
Baton_Rouge[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Baton_Rouge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Camelot College",'Baton_Rouge=' + Baton_Rouge.length);
tmpLatLng=new GLatLng(29.96590700000000140,-90.0880329999999958);
tmpLen=New_Orleans.length;
New_Orleans[tmpLen] = createMarker(tmpLatLng,"",iconRd);
New_Orleans[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cameron College",'New_Orleans=' + New_Orleans.length);
tmpLatLng=new GLatLng(30.42587699999999983,-91.1592059999999975);
tmpLen=Baton_Rouge.length;
Baton_Rouge[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Baton_Rouge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Culinary Arts Institute Of Louisiana",'Baton_Rouge=' + Baton_Rouge.length);
tmpLatLng=new GLatLng(29.98370200000000096,-90.1053890000000023);
tmpLen=New_Orleans.length;
New_Orleans[tmpLen] = createMarker(tmpLatLng,"",iconGr);
New_Orleans[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Delgado Community College",'New_Orleans=' + New_Orleans.length);
tmpLatLng=new GLatLng(30.46351399999999998,-91.1139739999999989);
tmpLen=Baton_Rouge.length;
Baton_Rouge[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Baton_Rouge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Delta College Of Arts & Technology",'Baton_Rouge=' + Baton_Rouge.length);
tmpLatLng=new GLatLng(30.22892399999999923,-93.2140619999999984);
tmpLen=Lake_Charles.length;
Lake_Charles[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Lake_Charles[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Delta School Of Business And Technology",'Lake_Charles=' + Lake_Charles.length);
tmpLatLng=new GLatLng(30.36755799999999894,-91.0269049999999992);
tmpLen=Baton_Rouge.length;
Baton_Rouge[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Baton_Rouge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Iti Technical College",'Baton_Rouge=' + Baton_Rouge.length);
tmpLatLng=new GLatLng(29.59504499999999893,-90.7417180000000058);
tmpLen=Houma.length;
Houma[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Houma[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("L E Fletcher Technical Community College",'Houma=' + Houma.length);
tmpLatLng=new GLatLng(31.15954199999999829,-92.4141630000000020);
tmpLen=Alexandria.length;
Alexandria[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Alexandria[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana State University At Alexandria",'Alexandria=' + Alexandria.length);
tmpLatLng=new GLatLng(30.42588800000000048,-92.4570460000000053);
tmpLen=Eunice.length;
Eunice[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Eunice[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana State University-eunice",'Eunice=' + Eunice.length);
tmpLatLng=new GLatLng(30.20534899999999822,-92.3950159999999982);
tmpLen=Crowley.length;
Crowley[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Crowley[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-acadian Campus",'Crowley=' + Crowley.length);
tmpLatLng=new GLatLng(31.25952200000000047,-92.4445649999999972);
tmpLen=Alexandria.length;
Alexandria[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Alexandria[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-alexandria Campus",'Alexandria=' + Alexandria.length);
tmpLatLng=new GLatLng(30.19519700000000028,-90.8598929999999995);
tmpLen=Sorrento.length;
Sorrento[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Sorrento[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-ascension Campus",'Sorrento=' + Sorrento.length);
tmpLatLng=new GLatLng(30.97993999999999914,-92.0520170000000064);
tmpLen=Cottonport.length;
Cottonport[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Cottonport[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-avoyelles Campus",'Cottonport=' + Cottonport.length);
tmpLatLng=new GLatLng(32.78120799999999945,-91.9368249999999989);
tmpLen=Bastrop.length;
Bastrop[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bastrop[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-bastrop Campus",'Bastrop=' + Bastrop.length);
tmpLatLng=new GLatLng(30.47676999999999836,-91.1559519999999992);
tmpLen=Baton_Rouge.length;
Baton_Rouge[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Baton_Rouge[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-baton Rouge Campus",'Baton_Rouge=' + Baton_Rouge.length);
tmpLatLng=new GLatLng(30.71837800000000129,-92.2639280000000070);
tmpLen=Ville_Platte.length;
Ville_Platte[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Ville_Platte[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-charles B Coreil Campu",'Ville_Platte=' + Ville_Platte.length);
tmpLatLng=new GLatLng(32.50925900000000012,-92.2822160000000053);
tmpLen=West_Monroe.length;
West_Monroe[tmpLen] = createMarker(tmpLatLng,"",iconGr);
West_Monroe[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-delta-ouachita Campus",'West_Monroe=' + West_Monroe.length);
tmpLatLng=new GLatLng(30.12023599999999845,-91.8346740000000067);
tmpLen=Saint_Martinville.length;
Saint_Martinville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Saint_Martinville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-evangeline Campus",'Saint_Martinville=' + Saint_Martinville.length);
tmpLatLng=new GLatLng(30.83048099999999891,-90.6709519999999997);
tmpLen=Greensburg.length;
Greensburg[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Greensburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-florida Parishes",'Greensburg=' + Greensburg.length);
tmpLatLng=new GLatLng(30.83568100000000100,-91.1917899999999974);
tmpLen=Jackson.length;
Jackson[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Jackson[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-folkes Campus",'Jackson=' + Jackson.length);
tmpLatLng=new GLatLng(29.97809300000000121,-92.1245169999999973);
tmpLen=Abbeville.length;
Abbeville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Abbeville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-gulf Area Campus",'Abbeville=' + Abbeville.length);
tmpLatLng=new GLatLng(30.51188300000000097,-90.4233129999999931);
tmpLen=Hammond.length;
Hammond[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Hammond[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-hammond Area Campus",'Hammond=' + Hammond.length);
tmpLatLng=new GLatLng(31.92498399999999847,-92.6396639999999962);
tmpLen=Winnfield.length;
Winnfield[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Winnfield[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-huey P Long Campus",'Winnfield=' + Winnfield.length);
tmpLatLng=new GLatLng(29.97918999999999911,-90.2735360000000071);
tmpLen=Metairie.length;
Metairie[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Metairie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-jefferson Campus",'Metairie=' + Metairie.length);
tmpLatLng=new GLatLng(30.68667800000000056,-91.4659520000000014);
tmpLen=New_Roads.length;
New_Roads[tmpLen] = createMarker(tmpLatLng,"",iconGr);
New_Roads[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-jumonville Memorial",'New_Roads=' + New_Roads.length);
tmpLatLng=new GLatLng(30.21824399999999855,-92.0492729999999994);
tmpLen=Lafayette.length;
Lafayette[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lafayette[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-lafayette Campus",'Lafayette=' + Lafayette.length);
tmpLatLng=new GLatLng(29.77388699999999843,-90.8416480000000063);
tmpLen=Thibodaux.length;
Thibodaux[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Thibodaux[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-lafourche Campus",'Thibodaux=' + Thibodaux.length);
tmpLatLng=new GLatLng(30.99930799999999919,-93.2811159999999972);
tmpLen=Leesville.length;
Leesville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Leesville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-lamar Salter Campus",'Leesville=' + Leesville.length);
tmpLatLng=new GLatLng(32.01911599999999680,-93.7053240000000045);
tmpLen=Mansfield.length;
Mansfield[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Mansfield[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-mansfield Campus",'Mansfield=' + Mansfield.length);
tmpLatLng=new GLatLng(30.23190200000000160,-92.6580230000000000);
tmpLen=Jennings.length;
Jennings[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Jennings[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-morgan Smith Campus",'Jennings=' + Jennings.length);
tmpLatLng=new GLatLng(31.74419299999999921,-93.1104909999999961);
tmpLen=Natchitoches.length;
Natchitoches[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Natchitoches[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-natchitoches Campus",'Natchitoches=' + Natchitoches.length);
tmpLatLng=new GLatLng(32.77919800000000094,-92.4104470000000048);
tmpLen=Farmerville.length;
Farmerville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Farmerville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-north Central Campus",'Farmerville=' + Farmerville.length);
tmpLatLng=new GLatLng(32.16158000000000072,-91.7214780000000047);
tmpLen=Winnsboro.length;
Winnsboro[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Winnsboro[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-northeast La Campus",'Winnsboro=' + Winnsboro.length);
tmpLatLng=new GLatLng(32.62617699999999842,-93.2942180000000007);
tmpLen=Minden.length;
Minden[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Minden[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-northwest Louisiana Ca",'Minden=' + Minden.length);
tmpLatLng=new GLatLng(30.80236299999999971,-92.6764649999999932);
tmpLen=Oakdale.length;
Oakdale[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Oakdale[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-oakdale Campus",'Oakdale=' + Oakdale.length);
tmpLatLng=new GLatLng(30.05358899999999877,-90.5515670000000056);
tmpLen=Reserve.length;
Reserve[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Reserve[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-river Parishes Campus",'Reserve=' + Reserve.length);
tmpLatLng=new GLatLng(31.53096899999999891,-93.4624479999999948);
tmpLen=Many.length;
Many[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Many[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-sabine Valley Campus",'Many=' + Many.length);
tmpLatLng=new GLatLng(31.69022100000000108,-91.5399960000000021);
tmpLen=Ferriday.length;
Ferriday[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Ferriday[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-shelby Jackson Campus",'Ferriday=' + Ferriday.length);
tmpLatLng=new GLatLng(32.54714400000000296,-93.7775069999999999);
tmpLen=Shreveport.length;
Shreveport[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Shreveport[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-shreveport-bossier Cam",'Shreveport=' + Shreveport.length);
tmpLatLng=new GLatLng(29.99599999999999866,-90.0347100000000040);
tmpLen=New_Orleans.length;
New_Orleans[tmpLen] = createMarker(tmpLatLng,"",iconGr);
New_Orleans[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-sidney N Collier Campu",'New_Orleans=' + New_Orleans.length);
tmpLatLng=new GLatLng(30.26985300000000123,-89.7990340000000060);
tmpLen=Slidell.length;
Slidell[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Slidell[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-slidell Campus",'Slidell=' + Slidell.length);
tmpLatLng=new GLatLng(30.76067799999999863,-89.8475150000000013);
tmpLen=Bogalusa.length;
Bogalusa[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Bogalusa[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-sullivian Campus",'Bogalusa=' + Bogalusa.length);
tmpLatLng=new GLatLng(30.53049400000000090,-92.0809140000000070);
tmpLen=Opelousas.length;
Opelousas[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Opelousas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-t H Harris Campus",'Opelousas=' + Opelousas.length);
tmpLatLng=new GLatLng(32.36605699999999785,-91.1995610000000027);
tmpLen=Tallulah.length;
Tallulah[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Tallulah[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-tallulah Campus",'Tallulah=' + Tallulah.length);
tmpLatLng=new GLatLng(30.03701099999999968,-91.8683019999999999);
tmpLen=New_Iberia.length;
New_Iberia[tmpLen] = createMarker(tmpLatLng,"",iconGr);
New_Iberia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-teche Area Campus",'New_Iberia=' + New_Iberia.length);
tmpLatLng=new GLatLng(29.69162800000000146,-91.1983350000000001);
tmpLen=Morgan_City.length;
Morgan_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Morgan_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Louisiana Technical College-young Memorial Campus",'Morgan_City=' + Morgan_City.length);
tmpLatLng=new GLatLng(29.95337100000000063,-89.9584509999999966);
tmpLen=Chalmette.length;
Chalmette[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chalmette[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Nunez Community College",'Chalmette=' + Chalmette.length);
tmpLatLng=new GLatLng(30.16856699999999946,-92.0246939999999966);
tmpLen=Lafayette.length;
Lafayette[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Lafayette[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Remington College-lafayette Campus",'Lafayette=' + Lafayette.length);
tmpLatLng=new GLatLng(29.98408900000000088,-90.1527399999999943);
tmpLen=Metairie.length;
Metairie[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Metairie[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Remington College-new Orleans Campus",'Metairie=' + Metairie.length);
tmpLatLng=new GLatLng(32.54373700000000013,-93.8333609999999964);
tmpLen=Shreveport.length;
Shreveport[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Shreveport[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Southern University At Shreveport",'Shreveport=' + Shreveport.length);
tmpLatLng=new GLatLng(30.22619999999999862,-93.2169489999999996);
tmpLen=Lake_Charles.length;
Lake_Charles[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lake_Charles[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Sowela Technical Community College",'Lake_Charles=' + Lake_Charles.length);
getPoly("","state","","LA");}
// 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(Abbeville);
map.removeOverlays(Alexandria);
map.removeOverlays(Bastrop);
map.removeOverlays(Baton_Rouge);
map.removeOverlays(Bogalusa);
map.removeOverlays(Bossier_City);
map.removeOverlays(Chalmette);
map.removeOverlays(Cottonport);
map.removeOverlays(Crowley);
map.removeOverlays(Eunice);
map.removeOverlays(Farmerville);
map.removeOverlays(Ferriday);
map.removeOverlays(Greensburg);
map.removeOverlays(Hammond);
map.removeOverlays(Houma);
map.removeOverlays(Jackson);
map.removeOverlays(Jennings);
map.removeOverlays(Lafayette);
map.removeOverlays(Lake_Charles);
map.removeOverlays(Leesville);
map.removeOverlays(Mansfield);
map.removeOverlays(Many);
map.removeOverlays(Metairie);
map.removeOverlays(Minden);
map.removeOverlays(Morgan_City);
map.removeOverlays(Natchitoches);
map.removeOverlays(New_Iberia);
map.removeOverlays(New_Orleans);
map.removeOverlays(New_Roads);
map.removeOverlays(Oakdale);
map.removeOverlays(Opelousas);
map.removeOverlays(Reserve);
map.removeOverlays(Saint_Martinville);
map.removeOverlays(Shreveport);
map.removeOverlays(Slidell);
map.removeOverlays(Sorrento);
map.removeOverlays(Tallulah);
map.removeOverlays(Thibodaux);
map.removeOverlays(Ville_Platte);
map.removeOverlays(West_Monroe);
map.removeOverlays(Winnfield);
map.removeOverlays(Winnsboro);
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(Shreveport);map.removeOverlays(Abbeville);
map.removeOverlays(Alexandria);
map.removeOverlays(Bastrop);
map.removeOverlays(Baton_Rouge);
map.removeOverlays(Bogalusa);
map.removeOverlays(Bossier_City);
map.removeOverlays(Chalmette);
map.removeOverlays(Cottonport);
map.removeOverlays(Crowley);
map.removeOverlays(Eunice);
map.removeOverlays(Farmerville);
map.removeOverlays(Ferriday);
map.removeOverlays(Greensburg);
map.removeOverlays(Hammond);
map.removeOverlays(Houma);
map.removeOverlays(Jackson);
map.removeOverlays(Jennings);
map.removeOverlays(Lafayette);
map.removeOverlays(Lake_Charles);
map.removeOverlays(Leesville);
map.removeOverlays(Mansfield);
map.removeOverlays(Many);
map.removeOverlays(Metairie);
map.removeOverlays(Minden);
map.removeOverlays(Morgan_City);
map.removeOverlays(Natchitoches);
map.removeOverlays(New_Iberia);
map.removeOverlays(New_Orleans);
map.removeOverlays(New_Roads);
map.removeOverlays(Oakdale);
map.removeOverlays(Opelousas);
map.removeOverlays(Reserve);
map.removeOverlays(Saint_Martinville);
map.removeOverlays(Shreveport);
map.removeOverlays(Slidell);
map.removeOverlays(Sorrento);
map.removeOverlays(Tallulah);
map.removeOverlays(Thibodaux);
map.removeOverlays(Ville_Platte);
map.removeOverlays(West_Monroe);
map.removeOverlays(Winnfield);
map.removeOverlays(Winnsboro);
map.addOverlays(Abbeville);
centerByArray(Abbeville, false, false);
cntMarker += Abbeville.length;
map.addOverlays(Alexandria);
centerByArray(Alexandria, false, false);
cntMarker += Alexandria.length;
map.addOverlays(Bastrop);
centerByArray(Bastrop, false, false);
cntMarker += Bastrop.length;
map.addOverlays(Baton_Rouge);
centerByArray(Baton_Rouge, false, false);
cntMarker += Baton_Rouge.length;
map.addOverlays(Bogalusa);
centerByArray(Bogalusa, false, false);
cntMarker += Bogalusa.length;
map.addOverlays(Bossier_City);
centerByArray(Bossier_City, false, false);
cntMarker += Bossier_City.length;
map.addOverlays(Chalmette);
centerByArray(Chalmette, false, false);
cntMarker += Chalmette.length;
map.addOverlays(Cottonport);
centerByArray(Cottonport, false, false);
cntMarker += Cottonport.length;
map.addOverlays(Crowley);
centerByArray(Crowley, false, false);
cntMarker += Crowley.length;
map.addOverlays(Eunice);
centerByArray(Eunice, false, false);
cntMarker += Eunice.length;
map.addOverlays(Farmerville);
centerByArray(Farmerville, false, false);
cntMarker += Farmerville.length;
map.addOverlays(Ferriday);
centerByArray(Ferriday, false, false);
cntMarker += Ferriday.length;
map.addOverlays(Greensburg);
centerByArray(Greensburg, false, false);
cntMarker += Greensburg.length;
map.addOverlays(Hammond);
centerByArray(Hammond, false, false);
cntMarker += Hammond.length;
map.addOverlays(Houma);
centerByArray(Houma, false, false);
cntMarker += Houma.length;
map.addOverlays(Jackson);
centerByArray(Jackson, false, false);
cntMarker += Jackson.length;
map.addOverlays(Jennings);
centerByArray(Jennings, false, false);
cntMarker += Jennings.length;
map.addOverlays(Lafayette);
centerByArray(Lafayette, false, false);
cntMarker += Lafayette.length;
map.addOverlays(Lake_Charles);
centerByArray(Lake_Charles, false, false);
cntMarker += Lake_Charles.length;
map.addOverlays(Leesville);
centerByArray(Leesville, false, false);
cntMarker += Leesville.length;
map.addOverlays(Mansfield);
centerByArray(Mansfield, false, false);
cntMarker += Mansfield.length;
map.addOverlays(Many);
centerByArray(Many, false, false);
cntMarker += Many.length;
map.addOverlays(Metairie);
centerByArray(Metairie, false, false);
cntMarker += Metairie.length;
map.addOverlays(Minden);
centerByArray(Minden, false, false);
cntMarker += Minden.length;
map.addOverlays(Morgan_City);
centerByArray(Morgan_City, false, false);
cntMarker += Morgan_City.length;
map.addOverlays(Natchitoches);
centerByArray(Natchitoches, false, false);
cntMarker += Natchitoches.length;
map.addOverlays(New_Iberia);
centerByArray(New_Iberia, false, false);
cntMarker += New_Iberia.length;
map.addOverlays(New_Orleans);
centerByArray(New_Orleans, false, false);
cntMarker += New_Orleans.length;
map.addOverlays(New_Roads);
centerByArray(New_Roads, false, false);
cntMarker += New_Roads.length;
map.addOverlays(Oakdale);
centerByArray(Oakdale, false, false);
cntMarker += Oakdale.length;
map.addOverlays(Opelousas);
centerByArray(Opelousas, false, false);
cntMarker += Opelousas.length;
map.addOverlays(Reserve);
centerByArray(Reserve, false, false);
cntMarker += Reserve.length;
map.addOverlays(Saint_Martinville);
centerByArray(Saint_Martinville, false, false);
cntMarker += Saint_Martinville.length;
map.addOverlays(Shreveport);
centerByArray(Shreveport, false, false);
cntMarker += Shreveport.length;
map.addOverlays(Slidell);
centerByArray(Slidell, false, false);
cntMarker += Slidell.length;
map.addOverlays(Sorrento);
centerByArray(Sorrento, false, false);
cntMarker += Sorrento.length;
map.addOverlays(Tallulah);
centerByArray(Tallulah, false, false);
cntMarker += Tallulah.length;
map.addOverlays(Thibodaux);
centerByArray(Thibodaux, false, false);
cntMarker += Thibodaux.length;
map.addOverlays(Ville_Platte);
centerByArray(Ville_Platte, false, false);
cntMarker += Ville_Platte.length;
map.addOverlays(West_Monroe);
centerByArray(West_Monroe, false, false);
cntMarker += West_Monroe.length;
map.addOverlays(Winnfield);
centerByArray(Winnfield, false, false);
cntMarker += Winnfield.length;
map.addOverlays(Winnsboro);
centerByArray(Winnsboro, false, false);
cntMarker += Winnsboro.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;
}