function addMarkers(){
mySelect = document.getElementById('selection');
Moline = [];Chicago = [];Galesburg = [];Glen_Ellyn = [];Grayslake = [];Danville = [];Elgin = [];Quincy = [];Palatine = [];Normal = [];Freeport = [];East_Peoria = [];Fairfield = [];Robinson = [];Mount_Carmel = [];Oglesby = [];Orland_Park = [];Carterville = [];Joliet = [];Kankakee = [];Centralia = [];Malta = [];Mattoon = [];Godfrey = [];Lincoln = [];Springfield = [];Crystal_Lake = [];Peoria = [];Palos_Hills = [];Morrison = [];Cicero = [];Des_Plaines = [];Olney = [];Champaign = [];Chicago_Heights = [];Ina = [];Decatur = [];Rockford = [];Dixon = [];Ullin = [];South_Holland = [];Harrisburg = [];Belleville = [];Canton = [];River_Grove = [];Sugar_Grove = [];mySelect.options[mySelect.options.length] = new Option("Belleville Schools",'all=Belleville');
mySelect.options[mySelect.options.length] = new Option("Canton Schools",'all=Canton');
mySelect.options[mySelect.options.length] = new Option("Carterville Schools",'all=Carterville');
mySelect.options[mySelect.options.length] = new Option("Centralia Schools",'all=Centralia');
mySelect.options[mySelect.options.length] = new Option("Champaign Schools",'all=Champaign');
mySelect.options[mySelect.options.length] = new Option("Chicago Schools",'all=Chicago');
mySelect.options[mySelect.options.length] = new Option("Chicago Heights Schools",'all=Chicago_Heights');
mySelect.options[mySelect.options.length] = new Option("Cicero Schools",'all=Cicero');
mySelect.options[mySelect.options.length] = new Option("Crystal Lake Schools",'all=Crystal_Lake');
mySelect.options[mySelect.options.length] = new Option("Danville Schools",'all=Danville');
mySelect.options[mySelect.options.length] = new Option("Decatur Schools",'all=Decatur');
mySelect.options[mySelect.options.length] = new Option("Des Plaines Schools",'all=Des_Plaines');
mySelect.options[mySelect.options.length] = new Option("Dixon Schools",'all=Dixon');
mySelect.options[mySelect.options.length] = new Option("East Peoria Schools",'all=East_Peoria');
mySelect.options[mySelect.options.length] = new Option("Elgin Schools",'all=Elgin');
mySelect.options[mySelect.options.length] = new Option("Fairfield Schools",'all=Fairfield');
mySelect.options[mySelect.options.length] = new Option("Freeport Schools",'all=Freeport');
mySelect.options[mySelect.options.length] = new Option("Galesburg Schools",'all=Galesburg');
mySelect.options[mySelect.options.length] = new Option("Glen Ellyn Schools",'all=Glen_Ellyn');
mySelect.options[mySelect.options.length] = new Option("Godfrey Schools",'all=Godfrey');
mySelect.options[mySelect.options.length] = new Option("Grayslake Schools",'all=Grayslake');
mySelect.options[mySelect.options.length] = new Option("Harrisburg Schools",'all=Harrisburg');
mySelect.options[mySelect.options.length] = new Option("Ina Schools",'all=Ina');
mySelect.options[mySelect.options.length] = new Option("Joliet Schools",'all=Joliet');
mySelect.options[mySelect.options.length] = new Option("Kankakee Schools",'all=Kankakee');
mySelect.options[mySelect.options.length] = new Option("Lincoln Schools",'all=Lincoln');
mySelect.options[mySelect.options.length] = new Option("Malta Schools",'all=Malta');
mySelect.options[mySelect.options.length] = new Option("Mattoon Schools",'all=Mattoon');
mySelect.options[mySelect.options.length] = new Option("Moline Schools",'all=Moline');
mySelect.options[mySelect.options.length] = new Option("Morrison Schools",'all=Morrison');
mySelect.options[mySelect.options.length] = new Option("Mount Carmel Schools",'all=Mount_Carmel');
mySelect.options[mySelect.options.length] = new Option("Normal Schools",'all=Normal');
mySelect.options[mySelect.options.length] = new Option("Oglesby Schools",'all=Oglesby');
mySelect.options[mySelect.options.length] = new Option("Olney Schools",'all=Olney');
mySelect.options[mySelect.options.length] = new Option("Orland Park Schools",'all=Orland_Park');
mySelect.options[mySelect.options.length] = new Option("Palatine Schools",'all=Palatine');
mySelect.options[mySelect.options.length] = new Option("Palos Hills Schools",'all=Palos_Hills');
mySelect.options[mySelect.options.length] = new Option("Peoria Schools",'all=Peoria');
mySelect.options[mySelect.options.length] = new Option("Quincy Schools",'all=Quincy');
mySelect.options[mySelect.options.length] = new Option("River Grove Schools",'all=River_Grove');
mySelect.options[mySelect.options.length] = new Option("Robinson Schools",'all=Robinson');
mySelect.options[mySelect.options.length] = new Option("Rockford Schools",'all=Rockford');
mySelect.options[mySelect.options.length] = new Option("South Holland Schools",'all=South_Holland');
mySelect.options[mySelect.options.length] = new Option("Springfield Schools",'all=Springfield');
mySelect.options[mySelect.options.length] = new Option("Sugar Grove Schools",'all=Sugar_Grove');
mySelect.options[mySelect.options.length] = new Option("Ullin Schools",'all=Ullin');
mySelect.options[mySelect.options.length] = new Option("---------------------------",'');
var tmpLatLng=0;
var tmpLen=0;
tmpLatLng=new GLatLng(41.47821400000000124,-90.4490559999999987);
tmpLen=Moline.length;
Moline[tmpLen] = createMarker(tmpLatLng,"
",iconGr);
Moline[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Black Hawk College",'Moline=' + Moline.length);
tmpLatLng=new GLatLng(41.87936299999999789,-87.6272579999999976);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Career Colleges Of Chicago",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(40.98017999999999716,-90.4077199999999976);
tmpLen=Galesburg.length;
Galesburg[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Galesburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Carl Sandburg College",'Galesburg=' + Galesburg.length);
tmpLatLng=new GLatLng(41.88584300000000126,-87.6269259999999974);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City Colleges Of Chicago-harold Washington College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.96564200000000255,-87.6591449999999952);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City Colleges Of Chicago-harry S Truman College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.77081499999999891,-87.6300480000000021);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City Colleges Of Chicago-kennedy-king College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.87626900000000063,-87.6742469999999940);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City Colleges Of Chicago-malcolm X College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.71452800000000138,-87.5905329999999935);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City Colleges Of Chicago-olive-harvey College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.75643300000000124,-87.7222519999999974);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City Colleges Of Chicago-richard J Daley College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.95828399999999902,-87.7866559999999935);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("City Colleges Of Chicago-wilbur Wright College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.84455599999999719,-88.0721060000000051);
tmpLen=Glen_Ellyn.length;
Glen_Ellyn[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Glen_Ellyn[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("College Of Dupage",'Glen_Ellyn=' + Glen_Ellyn.length);
tmpLatLng=new GLatLng(42.36056399999999655,-88.0097339999999945);
tmpLen=Grayslake.length;
Grayslake[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Grayslake[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("College Of Lake County",'Grayslake=' + Grayslake.length);
tmpLatLng=new GLatLng(41.90343200000000223,-87.6654869999999988);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("College Of Office Technology",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.89819500000000118,-87.6377219999999965);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Cooking And Hospitality Institute Of Chicago",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(40.12907599999999774,-87.6942849999999936);
tmpLen=Danville.length;
Danville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Danville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Danville Area Community College",'Danville=' + Danville.length);
tmpLatLng=new GLatLng(42.01602599999999654,-88.3212780000000066);
tmpLen=Elgin.length;
Elgin[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Elgin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Elgin Community College",'Elgin=' + Elgin.length);
tmpLatLng=new GLatLng(39.92650600000000338,-91.4046649999999942);
tmpLen=Quincy.length;
Quincy[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Quincy[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Gem City College",'Quincy=' + Quincy.length);
tmpLatLng=new GLatLng(42.07620500000000163,-88.0699099999999930);
tmpLen=Palatine.length;
Palatine[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Palatine[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Harper College",'Palatine=' + Palatine.length);
tmpLatLng=new GLatLng(40.53200300000000311,-88.9989869999999996);
tmpLen=Normal.length;
Normal[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Normal[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Heartland Community College",'Normal=' + Normal.length);
tmpLatLng=new GLatLng(42.28226500000000243,-89.6676329999999950);
tmpLen=Freeport.length;
Freeport[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Freeport[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Highland Community College",'Freeport=' + Freeport.length);
tmpLatLng=new GLatLng(40.70453599999999738,-89.5219969999999989);
tmpLen=East_Peoria.length;
East_Peoria[tmpLen] = createMarker(tmpLatLng,"",iconGr);
East_Peoria[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Illinois Central College",'East_Peoria=' + East_Peoria.length);
tmpLatLng=new GLatLng(38.38268000000000057,-88.3917000000000001);
tmpLen=Fairfield.length;
Fairfield[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Fairfield[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Illinois Eastern Community Colleges-frontier Commu",'Fairfield=' + Fairfield.length);
tmpLatLng=new GLatLng(39.01834600000000108,-87.6848760000000027);
tmpLen=Robinson.length;
Robinson[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Robinson[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Illinois Eastern Community Colleges-lincoln Trail",'Robinson=' + Robinson.length);
tmpLatLng=new GLatLng(38.42993400000000292,-87.7788769999999942);
tmpLen=Mount_Carmel.length;
Mount_Carmel[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Mount_Carmel[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Illinois Eastern Community Colleges-wabash Valley",'Mount_Carmel=' + Mount_Carmel.length);
tmpLatLng=new GLatLng(41.30283000000000015,-89.0971579999999931);
tmpLen=Oglesby.length;
Oglesby[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Oglesby[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Illinois Valley Community College",'Oglesby=' + Oglesby.length);
tmpLatLng=new GLatLng(41.50515599999999949,-87.7378539999999986);
tmpLen=Orland_Park.length;
Orland_Park[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Orland_Park[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Itt Technnical Institute-orland Park",'Orland_Park=' + Orland_Park.length);
tmpLatLng=new GLatLng(37.74868599999999929,-89.0959529999999944);
tmpLen=Carterville.length;
Carterville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Carterville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("John A Logan College",'Carterville=' + Carterville.length);
tmpLatLng=new GLatLng(39.91440699999999708,-91.3395040000000051);
tmpLen=Quincy.length;
Quincy[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Quincy[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("John Wood Community College",'Quincy=' + Quincy.length);
tmpLatLng=new GLatLng(41.52158299999999968,-88.1694530000000042);
tmpLen=Joliet.length;
Joliet[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Joliet[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Joliet Junior College",'Joliet=' + Joliet.length);
tmpLatLng=new GLatLng(41.09147300000000058,-87.8545699999999953);
tmpLen=Kankakee.length;
Kankakee[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Kankakee[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Kankakee Community College",'Kankakee=' + Kankakee.length);
tmpLatLng=new GLatLng(38.56372300000000308,-89.1936050000000051);
tmpLen=Centralia.length;
Centralia[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Centralia[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Kaskaskia College",'Centralia=' + Centralia.length);
tmpLatLng=new GLatLng(41.93850199999999972,-88.8771380000000021);
tmpLen=Malta.length;
Malta[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Malta[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Kishwaukee College",'Malta=' + Malta.length);
tmpLatLng=new GLatLng(39.44713699999999789,-88.3786769999999961);
tmpLen=Mattoon.length;
Mattoon[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Mattoon[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lake Land College",'Mattoon=' + Mattoon.length);
tmpLatLng=new GLatLng(38.95114699999999885,-90.1908090000000015);
tmpLen=Godfrey.length;
Godfrey[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Godfrey[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lewis And Clark Community College",'Godfrey=' + Godfrey.length);
tmpLatLng=new GLatLng(41.87779900000000310,-87.6495529999999973);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lexington College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(40.15755699999999706,-89.3706640000000049);
tmpLen=Lincoln.length;
Lincoln[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Lincoln[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lincoln College",'Lincoln=' + Lincoln.length);
tmpLatLng=new GLatLng(39.72546599999999728,-89.6137360000000029);
tmpLen=Springfield.length;
Springfield[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Springfield[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Lincoln Land Community College",'Springfield=' + Springfield.length);
tmpLatLng=new GLatLng(41.88206600000000179,-87.6268429999999938);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Maccormac College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(42.25803100000000256,-88.3701640000000026);
tmpLen=Crystal_Lake.length;
Crystal_Lake[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Crystal_Lake[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Mchenry County College",'Crystal_Lake=' + Crystal_Lake.length);
tmpLatLng=new GLatLng(40.76117099999999737,-89.5966580000000050);
tmpLen=Peoria.length;
Peoria[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Peoria[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Midstate College",'Peoria=' + Peoria.length);
tmpLatLng=new GLatLng(41.69763199999999869,-87.8365540000000066);
tmpLen=Palos_Hills.length;
Palos_Hills[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Palos_Hills[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Moraine Valley Community College",'Palos_Hills=' + Palos_Hills.length);
tmpLatLng=new GLatLng(41.80170600000000291,-89.9649450000000001);
tmpLen=Morrison.length;
Morrison[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Morrison[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Morrison Institute Of Technology",'Morrison=' + Morrison.length);
tmpLatLng=new GLatLng(41.82363200000000347,-87.7631549999999975);
tmpLen=Cicero.length;
Cicero[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Cicero[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Morton College",'Cicero=' + Cicero.length);
tmpLatLng=new GLatLng(41.96842300000000136,-87.7597549999999984);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Northwestern Business College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(42.05454000000000291,-87.8859499999999940);
tmpLen=Des_Plaines.length;
Des_Plaines[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Des_Plaines[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Oakton Community College",'Des_Plaines=' + Des_Plaines.length);
tmpLatLng=new GLatLng(38.72863900000000114,-88.0936829999999986);
tmpLen=Olney.length;
Olney[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Olney[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Olney Central College -il Eastern Comm Colleges",'Olney=' + Olney.length);
tmpLatLng=new GLatLng(40.12759700000000151,-88.2862530000000020);
tmpLen=Champaign.length;
Champaign[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Champaign[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Parkland College",'Champaign=' + Champaign.length);
tmpLatLng=new GLatLng(41.51523399999999952,-87.6356439999999992);
tmpLen=Chicago_Heights.length;
Chicago_Heights[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Chicago_Heights[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Prairie State College",'Chicago_Heights=' + Chicago_Heights.length);
tmpLatLng=new GLatLng(41.96417199999999780,-87.6777490000000057);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Ravenswood Hospital Medical Center-sch Of Anesth",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(38.15673199999999809,-88.8855240000000037);
tmpLen=Ina.length;
Ina[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Ina[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Rend Lake College",'Ina=' + Ina.length);
tmpLatLng=new GLatLng(39.89659999999999939,-88.8910999999999944);
tmpLen=Decatur.length;
Decatur[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Decatur[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Richland Community College",'Decatur=' + Decatur.length);
tmpLatLng=new GLatLng(42.30843999999999738,-88.9995150000000023);
tmpLen=Rockford.length;
Rockford[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Rockford[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Rock Valley College",'Rockford=' + Rockford.length);
tmpLatLng=new GLatLng(41.97253099999999648,-87.6780559999999979);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Saint Augustine College",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.84830000000000183,-89.4857089999999999);
tmpLen=Dixon.length;
Dixon[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Dixon[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Sauk Valley Community College",'Dixon=' + Dixon.length);
tmpLatLng=new GLatLng(37.26916899999999799,-89.0744080000000053);
tmpLen=Ullin.length;
Ullin[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Ullin[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Shawnee Community College",'Ullin=' + Ullin.length);
tmpLatLng=new GLatLng(41.60813399999999973,-87.6171449999999936);
tmpLen=South_Holland.length;
South_Holland[tmpLen] = createMarker(tmpLatLng,"",iconGr);
South_Holland[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("South Suburban College",'South_Holland=' + South_Holland.length);
tmpLatLng=new GLatLng(37.73424599999999884,-88.4382480000000015);
tmpLen=Harrisburg.length;
Harrisburg[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Harrisburg[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Southeastern Illinois College",'Harrisburg=' + Harrisburg.length);
tmpLatLng=new GLatLng(38.51704999999999756,-89.9540030000000001);
tmpLen=Belleville.length;
Belleville[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Belleville[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Southwestern Illinois College",'Belleville=' + Belleville.length);
tmpLatLng=new GLatLng(40.55831100000000333,-90.0351409999999958);
tmpLen=Canton.length;
Canton[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Canton[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Spoon River College",'Canton=' + Canton.length);
tmpLatLng=new GLatLng(39.82074999999999676,-89.6495000000000032);
tmpLen=Springfield.length;
Springfield[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Springfield[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Springfield College In Illinois",'Springfield=' + Springfield.length);
tmpLatLng=new GLatLng(41.88588899999999881,-87.6244740000000064);
tmpLen=Chicago.length;
Chicago[tmpLen] = createMarker(tmpLatLng,"",iconRd);
Chicago[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Taylor Business Institute",'Chicago=' + Chicago.length);
tmpLatLng=new GLatLng(41.91342999999999818,-87.8401599999999973);
tmpLen=River_Grove.length;
River_Grove[tmpLen] = createMarker(tmpLatLng,"",iconGr);
River_Grove[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Triton College",'River_Grove=' + River_Grove.length);
tmpLatLng=new GLatLng(41.78970000000000339,-88.4573000000000035);
tmpLen=Sugar_Grove.length;
Sugar_Grove[tmpLen] = createMarker(tmpLatLng,"",iconGr);
Sugar_Grove[tmpLen].point = tmpLatLng;
mySelect.options[mySelect.options.length] = new Option("Waubonsee Community College",'Sugar_Grove=' + Sugar_Grove.length);
getPoly("","state","","IL");}
// 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(Belleville);
map.removeOverlays(Canton);
map.removeOverlays(Carterville);
map.removeOverlays(Centralia);
map.removeOverlays(Champaign);
map.removeOverlays(Chicago);
map.removeOverlays(Chicago_Heights);
map.removeOverlays(Cicero);
map.removeOverlays(Crystal_Lake);
map.removeOverlays(Danville);
map.removeOverlays(Decatur);
map.removeOverlays(Des_Plaines);
map.removeOverlays(Dixon);
map.removeOverlays(East_Peoria);
map.removeOverlays(Elgin);
map.removeOverlays(Fairfield);
map.removeOverlays(Freeport);
map.removeOverlays(Galesburg);
map.removeOverlays(Glen_Ellyn);
map.removeOverlays(Godfrey);
map.removeOverlays(Grayslake);
map.removeOverlays(Harrisburg);
map.removeOverlays(Ina);
map.removeOverlays(Joliet);
map.removeOverlays(Kankakee);
map.removeOverlays(Lincoln);
map.removeOverlays(Malta);
map.removeOverlays(Mattoon);
map.removeOverlays(Moline);
map.removeOverlays(Morrison);
map.removeOverlays(Mount_Carmel);
map.removeOverlays(Normal);
map.removeOverlays(Oglesby);
map.removeOverlays(Olney);
map.removeOverlays(Orland_Park);
map.removeOverlays(Palatine);
map.removeOverlays(Palos_Hills);
map.removeOverlays(Peoria);
map.removeOverlays(Quincy);
map.removeOverlays(River_Grove);
map.removeOverlays(Robinson);
map.removeOverlays(Rockford);
map.removeOverlays(South_Holland);
map.removeOverlays(Springfield);
map.removeOverlays(Sugar_Grove);
map.removeOverlays(Ullin);
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(Moline);map.removeOverlays(Belleville);
map.removeOverlays(Canton);
map.removeOverlays(Carterville);
map.removeOverlays(Centralia);
map.removeOverlays(Champaign);
map.removeOverlays(Chicago);
map.removeOverlays(Chicago_Heights);
map.removeOverlays(Cicero);
map.removeOverlays(Crystal_Lake);
map.removeOverlays(Danville);
map.removeOverlays(Decatur);
map.removeOverlays(Des_Plaines);
map.removeOverlays(Dixon);
map.removeOverlays(East_Peoria);
map.removeOverlays(Elgin);
map.removeOverlays(Fairfield);
map.removeOverlays(Freeport);
map.removeOverlays(Galesburg);
map.removeOverlays(Glen_Ellyn);
map.removeOverlays(Godfrey);
map.removeOverlays(Grayslake);
map.removeOverlays(Harrisburg);
map.removeOverlays(Ina);
map.removeOverlays(Joliet);
map.removeOverlays(Kankakee);
map.removeOverlays(Lincoln);
map.removeOverlays(Malta);
map.removeOverlays(Mattoon);
map.removeOverlays(Moline);
map.removeOverlays(Morrison);
map.removeOverlays(Mount_Carmel);
map.removeOverlays(Normal);
map.removeOverlays(Oglesby);
map.removeOverlays(Olney);
map.removeOverlays(Orland_Park);
map.removeOverlays(Palatine);
map.removeOverlays(Palos_Hills);
map.removeOverlays(Peoria);
map.removeOverlays(Quincy);
map.removeOverlays(River_Grove);
map.removeOverlays(Robinson);
map.removeOverlays(Rockford);
map.removeOverlays(South_Holland);
map.removeOverlays(Springfield);
map.removeOverlays(Sugar_Grove);
map.removeOverlays(Ullin);
map.addOverlays(Belleville);
centerByArray(Belleville, false, false);
cntMarker += Belleville.length;
map.addOverlays(Canton);
centerByArray(Canton, false, false);
cntMarker += Canton.length;
map.addOverlays(Carterville);
centerByArray(Carterville, false, false);
cntMarker += Carterville.length;
map.addOverlays(Centralia);
centerByArray(Centralia, false, false);
cntMarker += Centralia.length;
map.addOverlays(Champaign);
centerByArray(Champaign, false, false);
cntMarker += Champaign.length;
map.addOverlays(Chicago);
centerByArray(Chicago, false, false);
cntMarker += Chicago.length;
map.addOverlays(Chicago_Heights);
centerByArray(Chicago_Heights, false, false);
cntMarker += Chicago_Heights.length;
map.addOverlays(Cicero);
centerByArray(Cicero, false, false);
cntMarker += Cicero.length;
map.addOverlays(Crystal_Lake);
centerByArray(Crystal_Lake, false, false);
cntMarker += Crystal_Lake.length;
map.addOverlays(Danville);
centerByArray(Danville, false, false);
cntMarker += Danville.length;
map.addOverlays(Decatur);
centerByArray(Decatur, false, false);
cntMarker += Decatur.length;
map.addOverlays(Des_Plaines);
centerByArray(Des_Plaines, false, false);
cntMarker += Des_Plaines.length;
map.addOverlays(Dixon);
centerByArray(Dixon, false, false);
cntMarker += Dixon.length;
map.addOverlays(East_Peoria);
centerByArray(East_Peoria, false, false);
cntMarker += East_Peoria.length;
map.addOverlays(Elgin);
centerByArray(Elgin, false, false);
cntMarker += Elgin.length;
map.addOverlays(Fairfield);
centerByArray(Fairfield, false, false);
cntMarker += Fairfield.length;
map.addOverlays(Freeport);
centerByArray(Freeport, false, false);
cntMarker += Freeport.length;
map.addOverlays(Galesburg);
centerByArray(Galesburg, false, false);
cntMarker += Galesburg.length;
map.addOverlays(Glen_Ellyn);
centerByArray(Glen_Ellyn, false, false);
cntMarker += Glen_Ellyn.length;
map.addOverlays(Godfrey);
centerByArray(Godfrey, false, false);
cntMarker += Godfrey.length;
map.addOverlays(Grayslake);
centerByArray(Grayslake, false, false);
cntMarker += Grayslake.length;
map.addOverlays(Harrisburg);
centerByArray(Harrisburg, false, false);
cntMarker += Harrisburg.length;
map.addOverlays(Ina);
centerByArray(Ina, false, false);
cntMarker += Ina.length;
map.addOverlays(Joliet);
centerByArray(Joliet, false, false);
cntMarker += Joliet.length;
map.addOverlays(Kankakee);
centerByArray(Kankakee, false, false);
cntMarker += Kankakee.length;
map.addOverlays(Lincoln);
centerByArray(Lincoln, false, false);
cntMarker += Lincoln.length;
map.addOverlays(Malta);
centerByArray(Malta, false, false);
cntMarker += Malta.length;
map.addOverlays(Mattoon);
centerByArray(Mattoon, false, false);
cntMarker += Mattoon.length;
map.addOverlays(Moline);
centerByArray(Moline, false, false);
cntMarker += Moline.length;
map.addOverlays(Morrison);
centerByArray(Morrison, false, false);
cntMarker += Morrison.length;
map.addOverlays(Mount_Carmel);
centerByArray(Mount_Carmel, false, false);
cntMarker += Mount_Carmel.length;
map.addOverlays(Normal);
centerByArray(Normal, false, false);
cntMarker += Normal.length;
map.addOverlays(Oglesby);
centerByArray(Oglesby, false, false);
cntMarker += Oglesby.length;
map.addOverlays(Olney);
centerByArray(Olney, false, false);
cntMarker += Olney.length;
map.addOverlays(Orland_Park);
centerByArray(Orland_Park, false, false);
cntMarker += Orland_Park.length;
map.addOverlays(Palatine);
centerByArray(Palatine, false, false);
cntMarker += Palatine.length;
map.addOverlays(Palos_Hills);
centerByArray(Palos_Hills, false, false);
cntMarker += Palos_Hills.length;
map.addOverlays(Peoria);
centerByArray(Peoria, false, false);
cntMarker += Peoria.length;
map.addOverlays(Quincy);
centerByArray(Quincy, false, false);
cntMarker += Quincy.length;
map.addOverlays(River_Grove);
centerByArray(River_Grove, false, false);
cntMarker += River_Grove.length;
map.addOverlays(Robinson);
centerByArray(Robinson, false, false);
cntMarker += Robinson.length;
map.addOverlays(Rockford);
centerByArray(Rockford, false, false);
cntMarker += Rockford.length;
map.addOverlays(South_Holland);
centerByArray(South_Holland, false, false);
cntMarker += South_Holland.length;
map.addOverlays(Springfield);
centerByArray(Springfield, false, false);
cntMarker += Springfield.length;
map.addOverlays(Sugar_Grove);
centerByArray(Sugar_Grove, false, false);
cntMarker += Sugar_Grove.length;
map.addOverlays(Ullin);
centerByArray(Ullin, false, false);
cntMarker += Ullin.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;
}