function addMarkers(){
mySelect = document.getElementById('selection');
Alvin = [];Amarillo = [];Lubbock = [];Lufkin = [];Dallas = [];Houston = [];Austin = [];Brenham = [];El_Paso = [];Lake_Jackson = [];Farmers_Branch = [];Lancaster = [];Killeen = [];Cisco = [];Clarendon = [];Beeville = [];Texas_City = [];Fort_Worth = [];Plano = [];Corpus_Christi = [];Mesquite = [];Borger = [];Galveston = [];Denison = [];San_Antonio = [];Hillsboro = [];Big_Spring = [];Arlington = [];Webster = [];Jacksonville = [];Kilgore = [];Orange = [];Port_Arthur = [];Laredo = [];Baytown = [];Waco = [];Midland = [];Corsicana = [];Gainesville = [];The_Woodlands = [];Irving = [];Mount_Pleasant = [];Odessa = [];Carthage = [];Paris = [];Ranger = [];Pasadena = [];Levelland = [];Mcallen = [];Uvalde = [];Temple = [];Texarkana = [];Brownsville = [];Harlingen = [];Sweetwater = [];Athens = [];Tyler = [];Vernon = [];Victoria = [];Weatherford = [];Snyder = [];Wharton = [];mySelect.options[mySelect.options.length] = new Option("Alvin Schools",'all=Alvin');
mySelect.options[mySelect.options.length] = new Option("Amarillo Schools",'all=Amarillo');
mySelect.options[mySelect.options.length] = new Option("Arlington Schools",'all=Arlington');
mySelect.options[mySelect.options.length] = new Option("Athens Schools",'all=Athens');
mySelect.options[mySelect.options.length] = new Option("Austin Schools",'all=Austin');
mySelect.options[mySelect.options.length] = new Option("Baytown Schools",'all=Baytown');
mySelect.options[mySelect.options.length] = new Option("Beeville Schools",'all=Beeville');
mySelect.options[mySelect.options.length] = new Option("Big Spring Schools",'all=Big_Spring');
mySelect.options[mySelect.options.length] = new Option("Borger Schools",'all=Borger');
mySelect.options[mySelect.options.length] = new Option("Brenham Schools",'all=Brenham');
mySelect.options[mySelect.options.length] = new Option("Brownsville Schools",'all=Brownsville');
mySelect.options[mySelect.options.length] = new Option("Carthage Schools",'all=Carthage');
mySelect.options[mySelect.options.length] = new Option("Cisco Schools",'all=Cisco');
mySelect.options[mySelect.options.length] = new Option("Clarendon Schools",'all=Clarendon');
mySelect.options[mySelect.options.length] = new Option("Corpus Christi Schools",'all=Corpus_Christi');
mySelect.options[mySelect.options.length] = new Option("Corsicana Schools",'all=Corsicana');
mySelect.options[mySelect.options.length] = new Option("Dallas Schools",'all=Dallas');
mySelect.options[mySelect.options.length] = new Option("Denison Schools",'all=Denison');
mySelect.options[mySelect.options.length] = new Option("El Paso Schools",'all=El_Paso');
mySelect.options[mySelect.options.length] = new Option("Farmers Branch Schools",'all=Farmers_Branch');
mySelect.options[mySelect.options.length] = new Option("Fort Worth Schools",'all=Fort_Worth');
mySelect.options[mySelect.options.length] = new Option("Gainesville Schools",'all=Gainesville');
mySelect.options[mySelect.options.length] = new Option("Galveston Schools",'all=Galveston');
mySelect.options[mySelect.options.length] = new Option("Harlingen Schools",'all=Harlingen');
mySelect.options[mySelect.options.length] = new Option("Hillsboro Schools",'all=Hillsboro');
mySelect.options[mySelect.options.length] = new Option("Houston Schools",'all=Houston');
mySelect.options[mySelect.options.length] = new Option("Irving Schools",'all=Irving');
mySelect.options[mySelect.options.length] = new Option("Jacksonville Schools",'all=Jacksonville');
mySelect.options[mySelect.options.length] = new Option("Kilgore Schools",'all=Kilgore');
mySelect.options[mySelect.options.length] = new Option("Killeen Schools",'all=Killeen');
mySelect.options[mySelect.options.length] = new Option("Lake Jackson Schools",'all=Lake_Jackson');
mySelect.options[mySelect.options.length] = new Option("Lancaster Schools",'all=Lancaster');
mySelect.options[mySelect.options.length] = new Option("Laredo Schools",'all=Laredo');
mySelect.options[mySelect.options.length] = new Option("Levelland Schools",'all=Levelland');
mySelect.options[mySelect.options.length] = new Option("Lubbock Schools",'all=Lubbock');
mySelect.options[mySelect.options.length] = new Option("Lufkin Schools",'all=Lufkin');
mySelect.options[mySelect.options.length] = new Option("Mcallen Schools",'all=Mcallen');
mySelect.options[mySelect.options.length] = new Option("Mesquite Schools",'all=Mesquite');
mySelect.options[mySelect.options.length] = new Option("Midland Schools",'all=Midland');
mySelect.options[mySelect.options.length] = new Option("Mount Pleasant Schools",'all=Mount_Pleasant');
mySelect.options[mySelect.options.length] = new Option("Odessa Schools",'all=Odessa');
mySelect.options[mySelect.options.length] = new Option("Orange Schools",'all=Orange');
mySelect.options[mySelect.options.length] = new Option("Paris Schools",'all=Paris');
mySelect.options[mySelect.options.length] = new Option("Pasadena Schools",'all=Pasadena');
mySelect.options[mySelect.options.length] = new Option("Plano Schools",'all=Plano');
mySelect.options[mySelect.options.length] = new Option("Port Arthur Schools",'all=Port_Arthur');
mySelect.options[mySelect.options.length] = new Option("Ranger Schools",'all=Ranger');
mySelect.options[mySelect.options.length] = new Option("San Antonio Schools",'all=San_Antonio');
mySelect.options[mySelect.options.length] = new Option("Snyder Schools",'all=Snyder');
mySelect.options[mySelect.options.length] = new Option("Sweetwater Schools",'all=Sweetwater');
mySelect.options[mySelect.options.length] = new Option("Temple Schools",'all=Temple');
mySelect.options[mySelect.options.length] = new Option("Texarkana Schools",'all=Texarkana');
mySelect.options[mySelect.options.length] = new Option("Texas City Schools",'all=Texas_City');
mySelect.options[mySelect.options.length] = new Option("The Woodlands Schools",'all=The_Woodlands');
mySelect.options[mySelect.options.length] = new Option("Tyler Schools",'all=Tyler');
mySelect.options[mySelect.options.length] = new Option("Uvalde Schools",'all=Uvalde');
mySelect.options[mySelect.options.length] = new Option("Vernon Schools",'all=Vernon');
mySelect.options[mySelect.options.length] = new Option("Victoria Schools",'all=Victoria');
mySelect.options[mySelect.options.length] = new Option("Waco Schools",'all=Waco');
mySelect.options[mySelect.options.length] = new Option("Weatherford Schools",'all=Weatherford');
mySelect.options[mySelect.options.length] = new Option("Webster Schools",'all=Webster');
mySelect.options[mySelect.options.length] = new Option("Wharton Schools",'all=Wharton');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
var tmpLatLng=0;
var tmpLen=0;
tmpLatLng=new GLatLng(29.39951299999999889,-95.1751620000000002);
tmpLen=Alvin.length;
Alvin[tmpLen] = createMarker(tmpLatLng,"
",iconGr);
Alvin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Alvin Community College",'Alvin=' + Alvin.length);
tmpLatLng=new GLatLng(35.18285300000000148,-101.848563999999996);
tmpLen=Amarillo.length;
Amarillo[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Amarillo[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Amarillo College",'Amarillo=' + Amarillo.length);
tmpLatLng=new GLatLng(33.56318499999999716,-101.859765999999993);
tmpLen=Lubbock.length;
Lubbock[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Lubbock[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("American Commercial College",'Lubbock=' + Lubbock.length);
tmpLatLng=new GLatLng(31.33824900000000113,-94.7291790000000020);
tmpLen=Lufkin.length;
Lufkin[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lufkin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Angelina College",'Lufkin=' + Lufkin.length);
tmpLatLng=new GLatLng(32.78294000000000352,-96.8001940000000047);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Art Institute Of Dallas",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(29.74782799999999838,-95.4708190000000058);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Art Institute Of Houston",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(30.23392300000000076,-97.7405260000000026);
tmpLen=Austin.length;
Austin[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Austin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Austin Business College",'Austin=' + Austin.length);
tmpLatLng=new GLatLng(30.32228100000000026,-97.7110780000000005);
tmpLen=Austin.length;
Austin[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Austin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Austin Community College",'Austin=' + Austin.length);
tmpLatLng=new GLatLng(30.15912099999999895,-96.4056570000000050);
tmpLen=Brenham.length;
Brenham[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Brenham[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Blinn College",'Brenham=' + Brenham.length);
tmpLatLng=new GLatLng(31.76661899999999860,-106.357224999999999);
tmpLen=El_Paso.length;
El_Paso[tmpLen] = createMarker(tmpLatLng,"",iconRd);
El_Paso[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Border Institute Of Technology",'El_Paso=' + El_Paso.length);
tmpLatLng=new GLatLng(29.04311699999999874,-95.4113049999999986);
tmpLen=Lake_Jackson.length;
Lake_Jackson[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lake_Jackson[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Brazosport College",'Lake_Jackson=' + Lake_Jackson.length);
tmpLatLng=new GLatLng(32.92534200000000055,-96.8432770000000004);
tmpLen=Farmers_Branch.length;
Farmers_Branch[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Farmers_Branch[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Brookhaven College",'Farmers_Branch=' + Farmers_Branch.length);
tmpLatLng=new GLatLng(32.62496699999999805,-96.7707060000000041);
tmpLen=Lancaster.length;
Lancaster[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Lancaster[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cedar Valley College",'Lancaster=' + Lancaster.length);
tmpLatLng=new GLatLng(29.73862899999999953,-95.4188170000000042);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Center For Advanced Legal Studies",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(31.11227399999999931,-97.7597959999999943);
tmpLen=Killeen.length;
Killeen[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Killeen[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Central Texas College",'Killeen=' + Killeen.length);
tmpLatLng=new GLatLng(32.40171399999999835,-98.8319350000000014);
tmpLen=Cisco.length;
Cisco[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Cisco[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cisco Junior College",'Cisco=' + Cisco.length);
tmpLatLng=new GLatLng(34.93757999999999697,-100.887161000000006);
tmpLen=Clarendon.length;
Clarendon[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Clarendon[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Clarendon College",'Clarendon=' + Clarendon.length);
tmpLatLng=new GLatLng(28.43346700000000026,-97.7593799999999930);
tmpLen=Beeville.length;
Beeville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Beeville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Coastal Bend College",'Beeville=' + Beeville.length);
tmpLatLng=new GLatLng(29.71632999999999924,-95.5051200000000051);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("College Of Biblical Studies-houston",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(29.39469700000000074,-95.0020739999999932);
tmpLen=Texas_City.length;
Texas_City[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Texas_City[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("College Of Mainland",'Texas_City=' + Texas_City.length);
tmpLatLng=new GLatLng(32.70738500000000215,-97.3562759999999940);
tmpLen=Fort_Worth.length;
Fort_Worth[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Fort_Worth[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("College Of Saint Thomas More",'Fort_Worth=' + Fort_Worth.length);
tmpLatLng=new GLatLng(33.02268500000000273,-96.7915569999999974);
tmpLen=Plano.length;
Plano[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Plano[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Collin County Community College District",'Plano=' + Plano.length);
tmpLatLng=new GLatLng(29.99044500000000113,-95.4305119999999931);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Commonwealth Institute Of Funeral Service",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(32.83061399999999707,-96.8745579999999932);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Court Reporting Institute-wheeler Institute Of Tex",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(32.77118399999999809,-96.6826750000000032);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Dallas Institute Of Funeral Service",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(27.76730600000000137,-97.4068690000000003);
tmpLen=Corpus_Christi.length;
Corpus_Christi[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Corpus_Christi[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Del Mar College",'Corpus_Christi=' + Corpus_Christi.length);
tmpLatLng=new GLatLng(32.81257800000000202,-96.6564240000000012);
tmpLen=Mesquite.length;
Mesquite[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Mesquite[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Eastfield College",'Mesquite=' + Mesquite.length);
tmpLatLng=new GLatLng(32.77942999999999784,-96.8053799999999995);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("El Centro College",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(31.75150899999999865,-106.365038999999995);
tmpLen=El_Paso.length;
El_Paso[tmpLen] = createMarker(tmpLatLng,"",iconGr);
El_Paso[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("El Paso Community College",'El_Paso=' + El_Paso.length);
tmpLatLng=new GLatLng(35.65695300000000145,-101.406139999999993);
tmpLen=Borger.length;
Borger[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Borger[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Frank Phillips College",'Borger=' + Borger.length);
tmpLatLng=new GLatLng(29.28509599999999935,-94.8084439999999943);
tmpLen=Galveston.length;
Galveston[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Galveston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Galveston College",'Galveston=' + Galveston.length);
tmpLatLng=new GLatLng(33.70370700000000141,-96.6332400000000006);
tmpLen=Denison.length;
Denison[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Denison[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Grayson County College",'Denison=' + Denison.length);
tmpLatLng=new GLatLng(29.53698899999999838,-98.5684430000000020);
tmpLen=San_Antonio.length;
San_Antonio[tmpLen] = createMarker(tmpLatLng,"",iconGr);
San_Antonio[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Hallmark Institute Of Technology",'San_Antonio=' + San_Antonio.length);
tmpLatLng=new GLatLng(32.00965000000000060,-97.0878600000000062);
tmpLen=Hillsboro.length;
Hillsboro[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Hillsboro[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Hill College",'Hillsboro=' + Hillsboro.length);
tmpLatLng=new GLatLng(29.78662699999999929,-95.3674149999999940);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Houston Community College System",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(32.25188099999999735,-101.451992000000004);
tmpLen=Big_Spring.length;
Big_Spring[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Big_Spring[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Howard College",'Big_Spring=' + Big_Spring.length);
tmpLatLng=new GLatLng(32.76045500000000032,-97.1057150000000035);
tmpLen=Arlington.length;
Arlington[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Arlington[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-arlington",'Arlington=' + Arlington.length);
tmpLatLng=new GLatLng(30.32158700000000095,-97.6988819999999975);
tmpLen=Austin.length;
Austin[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Austin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-austin",'Austin=' + Austin.length);
tmpLatLng=new GLatLng(29.99341400000000135,-95.4286089999999944);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-houston North",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(29.73307199999999994,-95.5399199999999950);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-houston West",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(29.55402799999999885,-98.5929979999999943);
tmpLen=San_Antonio.length;
San_Antonio[tmpLen] = createMarker(tmpLatLng,"",iconRd);
San_Antonio[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-san Antonio",'San_Antonio=' + San_Antonio.length);
tmpLatLng=new GLatLng(29.57042699999999868,-95.1111649999999997);
tmpLen=Webster.length;
Webster[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Webster[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technical Institute-webster",'Webster=' + Webster.length);
tmpLatLng=new GLatLng(31.96580700000000163,-95.2793800000000032);
tmpLen=Jacksonville.length;
Jacksonville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Jacksonville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Jacksonville College-main Campus",'Jacksonville=' + Jacksonville.length);
tmpLatLng=new GLatLng(32.80592800000000153,-96.8405810000000002);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("K D Studio",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(32.37017199999999661,-94.8716890000000034);
tmpLen=Kilgore.length;
Kilgore[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Kilgore[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Kilgore College",'Kilgore=' + Kilgore.length);
tmpLatLng=new GLatLng(30.09073100000000167,-93.7323130000000048);
tmpLen=Orange.length;
Orange[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Orange[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lamar State College-orange",'Orange=' + Orange.length);
tmpLatLng=new GLatLng(29.87891799999999875,-93.9278220000000061);
tmpLen=Port_Arthur.length;
Port_Arthur[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Port_Arthur[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lamar State College-port Arthur",'Port_Arthur=' + Port_Arthur.length);
tmpLatLng=new GLatLng(27.50872000000000028,-99.5190599999999960);
tmpLen=Laredo.length;
Laredo[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Laredo[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Laredo Community College",'Laredo=' + Laredo.length);
tmpLatLng=new GLatLng(29.73095299999999952,-94.9750520000000051);
tmpLen=Baytown.length;
Baytown[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Baytown[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lee College",'Baytown=' + Baytown.length);
tmpLatLng=new GLatLng(31.95554299999999869,-95.2765440000000012);
tmpLen=Jacksonville.length;
Jacksonville[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Jacksonville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lon Morris College",'Jacksonville=' + Jacksonville.length);
tmpLatLng=new GLatLng(31.59191099999999963,-97.1742150000000037);
tmpLen=Waco.length;
Waco[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Waco[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mclennan Community College",'Waco=' + Waco.length);
tmpLatLng=new GLatLng(32.02366899999999816,-102.108360000000004);
tmpLen=Midland.length;
Midland[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Midland[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Midland College",'Midland=' + Midland.length);
tmpLatLng=new GLatLng(32.72035000000000337,-96.9020189999999956);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mountain View College",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(29.71591700000000102,-95.5106219999999979);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mti College Of Business And Technology",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(32.07563499999999834,-96.4963379999999943);
tmpLen=Corsicana.length;
Corsicana[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Corsicana[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Navarro College",'Corsicana=' + Corsicana.length);
tmpLatLng=new GLatLng(33.62447900000000089,-97.1543199999999984);
tmpLen=Gainesville.length;
Gainesville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Gainesville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("North Central Texas College",'Gainesville=' + Gainesville.length);
tmpLatLng=new GLatLng(30.20087399999999888,-95.5103380000000043);
tmpLen=The_Woodlands.length;
The_Woodlands[tmpLen] = createMarker(tmpLatLng,"",iconGr);
The_Woodlands[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("North Harris Montgomery Community College District",'The_Woodlands=' + The_Woodlands.length);
tmpLatLng=new GLatLng(32.87556500000000170,-96.9621269999999952);
tmpLen=Irving.length;
Irving[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Irving[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("North Lake College",'Irving=' + Irving.length);
tmpLatLng=new GLatLng(33.15670000000000072,-94.9685589999999990);
tmpLen=Mount_Pleasant.length;
Mount_Pleasant[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Mount_Pleasant[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Northeast Texas Community College",'Mount_Pleasant=' + Mount_Pleasant.length);
tmpLatLng=new GLatLng(29.46889200000000030,-98.7065620000000052);
tmpLen=San_Antonio.length;
San_Antonio[tmpLen] = createMarker(tmpLatLng,"",iconGr);
San_Antonio[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Northwest Vista College",'San_Antonio=' + San_Antonio.length);
tmpLatLng=new GLatLng(31.86803499999999900,-102.381304999999997);
tmpLen=Odessa.length;
Odessa[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Odessa[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Odessa College",'Odessa=' + Odessa.length);
tmpLatLng=new GLatLng(29.32543599999999983,-98.5407950000000028);
tmpLen=San_Antonio.length;
San_Antonio[tmpLen] = createMarker(tmpLatLng,"",iconGr);
San_Antonio[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Palo Alto College",'San_Antonio=' + San_Antonio.length);
tmpLatLng=new GLatLng(32.15793200000000240,-94.3538149999999973);
tmpLen=Carthage.length;
Carthage[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Carthage[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Panola College",'Carthage=' + Carthage.length);
tmpLatLng=new GLatLng(33.65370899999999920,-95.5317579999999964);
tmpLen=Paris.length;
Paris[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Paris[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Paris Junior College",'Paris=' + Paris.length);
tmpLatLng=new GLatLng(32.45819999999999794,-98.6829979999999977);
tmpLen=Ranger.length;
Ranger[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Ranger[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ranger College",'Ranger=' + Ranger.length);
tmpLatLng=new GLatLng(32.92168000000000205,-96.7355770000000063);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Richland College",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(29.44541200000000102,-98.4993350000000020);
tmpLen=San_Antonio.length;
San_Antonio[tmpLen] = createMarker(tmpLatLng,"",iconGr);
San_Antonio[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("San Antonio College",'San_Antonio=' + San_Antonio.length);
tmpLatLng=new GLatLng(29.66371200000000030,-95.1161180000000001);
tmpLen=Pasadena.length;
Pasadena[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Pasadena[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("San Jacinto College-central Campus",'Pasadena=' + Pasadena.length);
tmpLatLng=new GLatLng(29.80904200000000159,-95.1820289999999999);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("San Jacinto College-north Campus",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(29.57560499999999947,-95.2025620000000003);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("San Jacinto College-south Campus",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(33.57656399999999763,-102.367765000000005);
tmpLen=Levelland.length;
Levelland[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Levelland[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("South Plains College",'Levelland=' + Levelland.length);
tmpLatLng=new GLatLng(26.21884299999999967,-98.2541829999999976);
tmpLen=Mcallen.length;
Mcallen[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Mcallen[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("South Texas College",'Mcallen=' + Mcallen.length);
tmpLatLng=new GLatLng(30.23723700000000036,-97.8394389999999987);
tmpLen=Austin.length;
Austin[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Austin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Southwest Institute Of Technology",'Austin=' + Austin.length);
tmpLatLng=new GLatLng(29.22076699999999860,-99.7449519999999978);
tmpLen=Uvalde.length;
Uvalde[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Uvalde[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Southwest Texas Junior College",'Uvalde=' + Uvalde.length);
tmpLatLng=new GLatLng(29.41333300000000150,-98.4546930000000060);
tmpLen=San_Antonio.length;
San_Antonio[tmpLen] = createMarker(tmpLatLng,"",iconGr);
San_Antonio[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("St Philips College",'San_Antonio=' + San_Antonio.length);
tmpLatLng=new GLatLng(32.74802999999999997,-97.3274949999999989);
tmpLen=Fort_Worth.length;
Fort_Worth[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Fort_Worth[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Tarrant County College District",'Fort_Worth=' + Fort_Worth.length);
tmpLatLng=new GLatLng(31.0726559999999985,-97.3504910000000052);
tmpLen=Temple.length;
Temple[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Temple[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Temple College",'Temple=' + Temple.length);
tmpLatLng=new GLatLng(33.44142399999999781,-94.0803889999999967);
tmpLen=Texarkana.length;
Texarkana[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Texarkana[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Texarkana College",'Texarkana=' + Texarkana.length);
tmpLatLng=new GLatLng(30.39963200000000043,-97.7185020000000008);
tmpLen=Austin.length;
Austin[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Austin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Texas Culinary Academy",'Austin=' + Austin.length);
tmpLatLng=new GLatLng(25.90067300000000116,-97.4921669999999949);
tmpLen=Brownsville.length;
Brownsville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Brownsville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Texas Southmost College",'Brownsville=' + Brownsville.length);
tmpLatLng=new GLatLng(26.22660000000000124,-97.7178499999999985);
tmpLen=Harlingen.length;
Harlingen[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Harlingen[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Texas State Technical College-harlingen",'Harlingen=' + Harlingen.length);
tmpLatLng=new GLatLng(31.63718100000000177,-97.0843339999999983);
tmpLen=Waco.length;
Waco[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Waco[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Texas State Technical College-waco",'Waco=' + Waco.length);
tmpLatLng=new GLatLng(32.45888300000000015,-100.474096000000002);
tmpLen=Sweetwater.length;
Sweetwater[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Sweetwater[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Texas State Technical College-west Texas",'Sweetwater=' + Sweetwater.length);
tmpLatLng=new GLatLng(32.27851400000000126,-95.7529920000000061);
tmpLen=Athens.length;
Athens[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Athens[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Trinity Valley Community College",'Athens=' + Athens.length);
tmpLatLng=new GLatLng(32.33406399999999791,-95.2852919999999983);
tmpLen=Tyler.length;
Tyler[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Tyler[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Tyler Junior College",'Tyler=' + Tyler.length);
tmpLatLng=new GLatLng(29.99000799999999955,-95.4126020000000067);
tmpLen=Houston.length;
Houston[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Houston[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Universal Technical Institute Of Texas Inc",'Houston=' + Houston.length);
tmpLatLng=new GLatLng(34.16040999999999883,-99.3156270000000063);
tmpLen=Vernon.length;
Vernon[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Vernon[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Vernon College",'Vernon=' + Vernon.length);
tmpLatLng=new GLatLng(28.81433699999999831,-96.9820619999999991);
tmpLen=Victoria.length;
Victoria[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Victoria[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Victoria College",'Victoria=' + Victoria.length);
tmpLatLng=new GLatLng(32.85641700000000042,-96.8867340000000041);
tmpLen=Dallas.length;
Dallas[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Dallas[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Wade College",'Dallas=' + Dallas.length);
tmpLatLng=new GLatLng(32.73915900000000078,-97.7925070000000005);
tmpLen=Weatherford.length;
Weatherford[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Weatherford[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Weatherford College",'Weatherford=' + Weatherford.length);
tmpLatLng=new GLatLng(31.76340799999999831,-106.480341999999993);
tmpLen=El_Paso.length;
El_Paso[tmpLen] = createMarker(tmpLatLng,"",iconRd);
El_Paso[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Western Technical College",'El_Paso=' + El_Paso.length);
tmpLatLng=new GLatLng(32.67550700000000318,-100.919398999999998);
tmpLen=Snyder.length;
Snyder[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Snyder[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Western Texas College",'Snyder=' + Snyder.length);
tmpLatLng=new GLatLng(29.32371099999999941,-96.0877109999999987);
tmpLen=Wharton.length;
Wharton[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Wharton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Wharton County Junior College",'Wharton=' + Wharton.length);
getPoly("","state","","TX");}
// 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(Alvin);
map.removeOverlays(Amarillo);
map.removeOverlays(Arlington);
map.removeOverlays(Athens);
map.removeOverlays(Austin);
map.removeOverlays(Baytown);
map.removeOverlays(Beeville);
map.removeOverlays(Big_Spring);
map.removeOverlays(Borger);
map.removeOverlays(Brenham);
map.removeOverlays(Brownsville);
map.removeOverlays(Carthage);
map.removeOverlays(Cisco);
map.removeOverlays(Clarendon);
map.removeOverlays(Corpus_Christi);
map.removeOverlays(Corsicana);
map.removeOverlays(Dallas);
map.removeOverlays(Denison);
map.removeOverlays(El_Paso);
map.removeOverlays(Farmers_Branch);
map.removeOverlays(Fort_Worth);
map.removeOverlays(Gainesville);
map.removeOverlays(Galveston);
map.removeOverlays(Harlingen);
map.removeOverlays(Hillsboro);
map.removeOverlays(Houston);
map.removeOverlays(Irving);
map.removeOverlays(Jacksonville);
map.removeOverlays(Kilgore);
map.removeOverlays(Killeen);
map.removeOverlays(Lake_Jackson);
map.removeOverlays(Lancaster);
map.removeOverlays(Laredo);
map.removeOverlays(Levelland);
map.removeOverlays(Lubbock);
map.removeOverlays(Lufkin);
map.removeOverlays(Mcallen);
map.removeOverlays(Mesquite);
map.removeOverlays(Midland);
map.removeOverlays(Mount_Pleasant);
map.removeOverlays(Odessa);
map.removeOverlays(Orange);
map.removeOverlays(Paris);
map.removeOverlays(Pasadena);
map.removeOverlays(Plano);
map.removeOverlays(Port_Arthur);
map.removeOverlays(Ranger);
map.removeOverlays(San_Antonio);
map.removeOverlays(Snyder);
map.removeOverlays(Sweetwater);
map.removeOverlays(Temple);
map.removeOverlays(Texarkana);
map.removeOverlays(Texas_City);
map.removeOverlays(The_Woodlands);
map.removeOverlays(Tyler);
map.removeOverlays(Uvalde);
map.removeOverlays(Vernon);
map.removeOverlays(Victoria);
map.removeOverlays(Waco);
map.removeOverlays(Weatherford);
map.removeOverlays(Webster);
map.removeOverlays(Wharton);
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(Alvin);map.removeOverlays(Alvin);
map.removeOverlays(Amarillo);
map.removeOverlays(Arlington);
map.removeOverlays(Athens);
map.removeOverlays(Austin);
map.removeOverlays(Baytown);
map.removeOverlays(Beeville);
map.removeOverlays(Big_Spring);
map.removeOverlays(Borger);
map.removeOverlays(Brenham);
map.removeOverlays(Brownsville);
map.removeOverlays(Carthage);
map.removeOverlays(Cisco);
map.removeOverlays(Clarendon);
map.removeOverlays(Corpus_Christi);
map.removeOverlays(Corsicana);
map.removeOverlays(Dallas);
map.removeOverlays(Denison);
map.removeOverlays(El_Paso);
map.removeOverlays(Farmers_Branch);
map.removeOverlays(Fort_Worth);
map.removeOverlays(Gainesville);
map.removeOverlays(Galveston);
map.removeOverlays(Harlingen);
map.removeOverlays(Hillsboro);
map.removeOverlays(Houston);
map.removeOverlays(Irving);
map.removeOverlays(Jacksonville);
map.removeOverlays(Kilgore);
map.removeOverlays(Killeen);
map.removeOverlays(Lake_Jackson);
map.removeOverlays(Lancaster);
map.removeOverlays(Laredo);
map.removeOverlays(Levelland);
map.removeOverlays(Lubbock);
map.removeOverlays(Lufkin);
map.removeOverlays(Mcallen);
map.removeOverlays(Mesquite);
map.removeOverlays(Midland);
map.removeOverlays(Mount_Pleasant);
map.removeOverlays(Odessa);
map.removeOverlays(Orange);
map.removeOverlays(Paris);
map.removeOverlays(Pasadena);
map.removeOverlays(Plano);
map.removeOverlays(Port_Arthur);
map.removeOverlays(Ranger);
map.removeOverlays(San_Antonio);
map.removeOverlays(Snyder);
map.removeOverlays(Sweetwater);
map.removeOverlays(Temple);
map.removeOverlays(Texarkana);
map.removeOverlays(Texas_City);
map.removeOverlays(The_Woodlands);
map.removeOverlays(Tyler);
map.removeOverlays(Uvalde);
map.removeOverlays(Vernon);
map.removeOverlays(Victoria);
map.removeOverlays(Waco);
map.removeOverlays(Weatherford);
map.removeOverlays(Webster);
map.removeOverlays(Wharton);
map.addOverlays(Alvin);
centerByArray(Alvin, false, false);
cntMarker += Alvin.length;
map.addOverlays(Amarillo);
centerByArray(Amarillo, false, false);
cntMarker += Amarillo.length;
map.addOverlays(Arlington);
centerByArray(Arlington, false, false);
cntMarker += Arlington.length;
map.addOverlays(Athens);
centerByArray(Athens, false, false);
cntMarker += Athens.length;
map.addOverlays(Austin);
centerByArray(Austin, false, false);
cntMarker += Austin.length;
map.addOverlays(Baytown);
centerByArray(Baytown, false, false);
cntMarker += Baytown.length;
map.addOverlays(Beeville);
centerByArray(Beeville, false, false);
cntMarker += Beeville.length;
map.addOverlays(Big_Spring);
centerByArray(Big_Spring, false, false);
cntMarker += Big_Spring.length;
map.addOverlays(Borger);
centerByArray(Borger, false, false);
cntMarker += Borger.length;
map.addOverlays(Brenham);
centerByArray(Brenham, false, false);
cntMarker += Brenham.length;
map.addOverlays(Brownsville);
centerByArray(Brownsville, false, false);
cntMarker += Brownsville.length;
map.addOverlays(Carthage);
centerByArray(Carthage, false, false);
cntMarker += Carthage.length;
map.addOverlays(Cisco);
centerByArray(Cisco, false, false);
cntMarker += Cisco.length;
map.addOverlays(Clarendon);
centerByArray(Clarendon, false, false);
cntMarker += Clarendon.length;
map.addOverlays(Corpus_Christi);
centerByArray(Corpus_Christi, false, false);
cntMarker += Corpus_Christi.length;
map.addOverlays(Corsicana);
centerByArray(Corsicana, false, false);
cntMarker += Corsicana.length;
map.addOverlays(Dallas);
centerByArray(Dallas, false, false);
cntMarker += Dallas.length;
map.addOverlays(Denison);
centerByArray(Denison, false, false);
cntMarker += Denison.length;
map.addOverlays(El_Paso);
centerByArray(El_Paso, false, false);
cntMarker += El_Paso.length;
map.addOverlays(Farmers_Branch);
centerByArray(Farmers_Branch, false, false);
cntMarker += Farmers_Branch.length;
map.addOverlays(Fort_Worth);
centerByArray(Fort_Worth, false, false);
cntMarker += Fort_Worth.length;
map.addOverlays(Gainesville);
centerByArray(Gainesville, false, false);
cntMarker += Gainesville.length;
map.addOverlays(Galveston);
centerByArray(Galveston, false, false);
cntMarker += Galveston.length;
map.addOverlays(Harlingen);
centerByArray(Harlingen, false, false);
cntMarker += Harlingen.length;
map.addOverlays(Hillsboro);
centerByArray(Hillsboro, false, false);
cntMarker += Hillsboro.length;
map.addOverlays(Houston);
centerByArray(Houston, false, false);
cntMarker += Houston.length;
map.addOverlays(Irving);
centerByArray(Irving, false, false);
cntMarker += Irving.length;
map.addOverlays(Jacksonville);
centerByArray(Jacksonville, false, false);
cntMarker += Jacksonville.length;
map.addOverlays(Kilgore);
centerByArray(Kilgore, false, false);
cntMarker += Kilgore.length;
map.addOverlays(Killeen);
centerByArray(Killeen, false, false);
cntMarker += Killeen.length;
map.addOverlays(Lake_Jackson);
centerByArray(Lake_Jackson, false, false);
cntMarker += Lake_Jackson.length;
map.addOverlays(Lancaster);
centerByArray(Lancaster, false, false);
cntMarker += Lancaster.length;
map.addOverlays(Laredo);
centerByArray(Laredo, false, false);
cntMarker += Laredo.length;
map.addOverlays(Levelland);
centerByArray(Levelland, false, false);
cntMarker += Levelland.length;
map.addOverlays(Lubbock);
centerByArray(Lubbock, false, false);
cntMarker += Lubbock.length;
map.addOverlays(Lufkin);
centerByArray(Lufkin, false, false);
cntMarker += Lufkin.length;
map.addOverlays(Mcallen);
centerByArray(Mcallen, false, false);
cntMarker += Mcallen.length;
map.addOverlays(Mesquite);
centerByArray(Mesquite, false, false);
cntMarker += Mesquite.length;
map.addOverlays(Midland);
centerByArray(Midland, false, false);
cntMarker += Midland.length;
map.addOverlays(Mount_Pleasant);
centerByArray(Mount_Pleasant, false, false);
cntMarker += Mount_Pleasant.length;
map.addOverlays(Odessa);
centerByArray(Odessa, false, false);
cntMarker += Odessa.length;
map.addOverlays(Orange);
centerByArray(Orange, false, false);
cntMarker += Orange.length;
map.addOverlays(Paris);
centerByArray(Paris, false, false);
cntMarker += Paris.length;
map.addOverlays(Pasadena);
centerByArray(Pasadena, false, false);
cntMarker += Pasadena.length;
map.addOverlays(Plano);
centerByArray(Plano, false, false);
cntMarker += Plano.length;
map.addOverlays(Port_Arthur);
centerByArray(Port_Arthur, false, false);
cntMarker += Port_Arthur.length;
map.addOverlays(Ranger);
centerByArray(Ranger, false, false);
cntMarker += Ranger.length;
map.addOverlays(San_Antonio);
centerByArray(San_Antonio, false, false);
cntMarker += San_Antonio.length;
map.addOverlays(Snyder);
centerByArray(Snyder, false, false);
cntMarker += Snyder.length;
map.addOverlays(Sweetwater);
centerByArray(Sweetwater, false, false);
cntMarker += Sweetwater.length;
map.addOverlays(Temple);
centerByArray(Temple, false, false);
cntMarker += Temple.length;
map.addOverlays(Texarkana);
centerByArray(Texarkana, false, false);
cntMarker += Texarkana.length;
map.addOverlays(Texas_City);
centerByArray(Texas_City, false, false);
cntMarker += Texas_City.length;
map.addOverlays(The_Woodlands);
centerByArray(The_Woodlands, false, false);
cntMarker += The_Woodlands.length;
map.addOverlays(Tyler);
centerByArray(Tyler, false, false);
cntMarker += Tyler.length;
map.addOverlays(Uvalde);
centerByArray(Uvalde, false, false);
cntMarker += Uvalde.length;
map.addOverlays(Vernon);
centerByArray(Vernon, false, false);
cntMarker += Vernon.length;
map.addOverlays(Victoria);
centerByArray(Victoria, false, false);
cntMarker += Victoria.length;
map.addOverlays(Waco);
centerByArray(Waco, false, false);
cntMarker += Waco.length;
map.addOverlays(Weatherford);
centerByArray(Weatherford, false, false);
cntMarker += Weatherford.length;
map.addOverlays(Webster);
centerByArray(Webster, false, false);
cntMarker += Webster.length;
map.addOverlays(Wharton);
centerByArray(Wharton, false, false);
cntMarker += Wharton.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;
}