function addMarkers()
{
mySelect = document.getElementById('selection');
St_Paul = [];St_Paul[St_Paul.length] = createMarker(new GPoint(-93.18067932,44.95743179),"
",iconGr);
mySelect.options[mySelect.options.length] = new Option("A. G. A. P. E. Teen Parent High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06107330,44.97574997),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Academia Cesar Chavez Charter School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.00863647,44.96926498),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Achieve Language Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14750671,44.91343689),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Alc Bestt",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16802216,44.95546341),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Community School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14382935,44.95593643),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Creative Arts School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.05039978,44.96630096),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Elementary Program",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14689636,44.94918060),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Evening High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09469604,44.94425964),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Gateway High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14361572,44.95556259),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Hubb Program High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16802216,44.95546341),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Lead High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09469604,44.94425964),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Leap High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12379900,44.96251000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Alc Secondary Extended Programs",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.10609436,44.98615646),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Arlington Senior High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16200256,44.95420074),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Avalon School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16210175,44.95420074),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Avalon Secondary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.01480865,44.93975067),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Battle Creek Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.01053619,44.94517136),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Battle Creek Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12375641,44.95116425),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Benj. E. Mays Magnet/rondo Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.31950378,44.91180038),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bluesky Charter School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.01609802,44.92886353),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Boys Totem Town High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11940765,44.93046188),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bridge View Sp. Ed.",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.08325195,44.97023773),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bruce F Vento Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.08325195,44.97023773),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Bruce F Vento Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13110352,44.93604279),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Bush Memorial",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11689758,44.93709946),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Calvin Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12375641,44.95116425),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Capitol Hill Magnet/rondo Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14689636,44.94918060),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Central Senior High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15549469,44.98807907),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Chelsea Heights Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09580231,44.92521286),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cherokee Heights Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07721710,44.97010422),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("City Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06920624,44.97154617),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cleveland Quality Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.08030701,44.97362137),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Community Of Peace Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09193200,44.95144300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Community Of Peace Academy Secondary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13240814,44.97907257),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Como Park Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13029480,44.97624969),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Como Park Senior High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13240814,44.97907257),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Como Special/hartzell Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15737152,44.96768188),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Concordia Creative Learning Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12300873,44.97033691),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crossroads Montessori",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12300873,44.97033691),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Crossroads Science Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15599823,44.97069168),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Cyber Village Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.17620900,44.98249500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Cybervillage Academy Homebound",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06748199,44.95472336),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Daytons Bluff Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.03050232,45.09429932),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Downtown Kindergarten",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.10845947,44.91943741),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("E Ed Crossroads Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16200256,44.95420074),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Early Childhood Intervention Serv",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16300201,44.92583847),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Ed. Expo/harriet Bishop Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12379900,44.96251000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Education Jackson",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.00998688,44.93080902),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Education-highwood Hills Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16188900,44.95390000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Education-hill",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07445526,44.92231750),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Education-riverview Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12375641,44.95116425),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Education-rondo Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07639313,44.98717117),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Early Education-wheelock Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.01609802,44.96143723),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Eastern Heights Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.01480865,44.93975067),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("El. Autistic Prog/battle Creek Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16300201,44.92506409),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Expo/harriet Bishop Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06589508,44.97641373),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Face To Face Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15692139,45.03096390),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Family Academy Charter School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.05039978,44.96630096),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Family Education Program",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06580353,44.98033905),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Farnsworth Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.08580780,44.93701553),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Focus Beyond High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11940765,44.93124390),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Four Seasons Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09857178,44.95878983),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Franklin Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.03708649,44.98853683),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frost Lake Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.03708649,44.98853683),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Frost Lake Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15581512,44.95763779),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Galtier Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.05930400,44.98294300),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("General John Vessey Jr Leadership",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15548100,44.97019800),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Great River School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.18668365,44.93443680),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Groveland Park Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07127380,44.92877579),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Guadalupe Alternative Programs High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16797638,44.96423721),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hancock/hamline Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.03530121,44.96026230),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Harding Senior High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.02180481,44.98213577),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hayden Heights Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.02510834,44.97565460),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Hazel Park Middle School Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.19158173,44.95801163),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("High School For Recording Arts",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.17442322,44.91421127),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highland Park Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16719055,44.91199875),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Highland Park Junior Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16719055,44.91095734),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Highland Park Senior High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.00998688,44.93080902),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highwood Hills Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-92.99554700,44.97142400),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Highwood Hills Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14237213,44.94646454),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hill Montessori",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.10734558,44.94261169),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Home/hospital Instruction",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.17838287,44.90164185),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Homecroft Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07355499,44.96315765),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Hope Community Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.08490753,44.92667389),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Humboldt Junior Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.08296967,44.92616272),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Humboldt Senior High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16188900,44.95390000),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Idt-merriam Park",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11843109,44.95863724),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Jackson Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16210175,44.95420074),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Jennings Experiential High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07012177,44.96836472),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("John A. Johnson Early Education Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06619263,44.98184204),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Johnson Senior High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09829712,44.94813919),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Juvenile Service Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12379900,44.96251000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("L'etoile Du Nord French Immersion",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.17838287,44.90164185),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Lcd Allday Bilingual Kg/homecroft Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14323425,44.93583679),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Linwood A+ Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.18390656,44.95066452),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Longfellow Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.18492126,44.92083740),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mann Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13630676,44.95272827),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maxfield Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13630676,44.95272827),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Maxfield Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07428741,44.93786240),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Metro Deaf Charter School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09773254,44.94907761),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Minnesota Business Academy Charter",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06690800,44.99123200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Minnesota North Star Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-90.36033500,38.59217600),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Mississippi Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12110138,44.96149826),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Mn International Middle Charter",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13471222,44.92906189),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Monroe Community Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.19233704,44.98477554),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Murray Junior Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12379900,44.96251000),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Museum Magnet/rondo",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12079620,44.96129990),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("New Spirit Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.10008240,44.97573853),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("North End Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16200256,44.95420074),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Nova Classical Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.04340363,44.96503830),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Parkway Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.06030273,44.95963669),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pas East High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.05849457,44.97423172),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Phalen Lake Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11797200,44.93097500),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Pre-school Screening",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11689758,44.93709946),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Private Agencies",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11689758,44.93709946),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Project Achieve",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.03888702,44.98021317),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Prosperity Heights Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.17234802,44.94116211),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Ramsey Junior Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15660858,44.93099594),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Randolph Heights Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.18724060,44.95960999),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Resident Student/out Of State",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.14691925,44.91480637),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Riverside Sp. Ed. Programs High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07445526,44.92231750),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Riverview Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12375641,44.95116425),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Rondo Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.07749939,44.93296432),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Roosevelt Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.19204712,44.97848129),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Saint Anthony Park Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16210175,44.95420074),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Saint Paul Family Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11580658,44.93856430),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Saint Paul Open Sch.",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09106445,44.94506454),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Saturn River Front Academy Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16710500,44.94004600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Seven Hills Classical Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.19909668,44.96559906),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Shared Time Nonpublic Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.02548981,44.95722198),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Sheridan Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.17451477,44.95757294),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Skills For Tomorrow Charter School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-92.99562700,44.84877200),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("St Paul Conservatory Performing Art",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16573900,44.93517500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tlc Groveland",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.16573900,44.93517500),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Tlc Randolph Heights",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.13303375,44.92654037),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Twin Cities Academy",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.09332600,44.94382900),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Twin Cities Academy High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.20288700,44.98319900),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Twin Cities German Immersion Chrtr",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12528229,44.95556259),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Unidale Alc High School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.08609772,44.96099854),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Urban Academy Charter School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.10999298,44.97273636),"",iconBl);
mySelect.options[mySelect.options.length] = new Option("Washington Technology Magnet Middle School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.11384583,44.94753647),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Watkins Center For Young Women",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12995911,44.94333649),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Webster Learning Center",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.12995911,44.94333649),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("Webster Magnet Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.05533600,44.95693588),"",iconRd);
mySelect.options[mySelect.options.length] = new Option("World Cultures & Lang/mnds Prk. Elementary School",'St_Paul=' + St_Paul.length);
St_Paul[St_Paul.length] = createMarker(new GPoint(-93.15734100,44.96833600),"",iconGr);
mySelect.options[mySelect.options.length] = new Option("Yinghua Academy",'St_Paul=' + St_Paul.length);
maxLng = -90.36033500;
maxLat = 45.09429932;
minLng = -93.31950378;
minLat = 38.59217600;
reCenterMap();
} // End addStateMarkers JavaScript Function
// Takes an array of markers and centers/zooms map based on marker range
function centerByArray(myArray, recenter, newMaxMin)
{
if (newMaxMin == true)
reMaxMin(myArray);
for (var i = 0; i < myArray.length; i++)
{
var markLng = myArray[i].getPoint().x;
var markLat = myArray[i].getPoint().y;
if (markLat > maxLat) maxLat = markLat;
if (markLng > maxLng) maxLng = markLng;
if (markLat < minLat) minLat = markLat;
if (markLng < minLng) minLng = markLng;
}
if (recenter)
reCenterMap();
}
// Reinit max/mins
function reMaxMin(myArray)
{
maxLng = myArray[0].getPoint().x;
maxLat = myArray[0].getPoint().y;
minLng = myArray[0].getPoint().x;
minLat = myArray[0].getPoint().y;
}
// Recenter map based on global max/mins
function reCenterMap()
{
var bounds = new GLatLngBounds();
bounds.extend(new GLatLng(minLat, minLng));
bounds.extend(new GLatLng(maxLat, maxLng));
var center_lat = (bounds.getNorthEast().lat() + bounds.getSouthWest().lat()) / 2.0;
var center_lng = (bounds.getNorthEast().lng() + bounds.getSouthWest().lng()) / 2.0;
var center = new GLatLng(center_lat, center_lng);
var zoom = map.getBoundsZoomLevel(bounds);
map.setCenter(center,zoom);
//map.setCenter(center,10);
/*
var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 );
var delta = new GSize(maxLng - minLng, maxLat - minLat);
var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize);
if (minZoom < 4) minZoom = 4; // Lowest possible zoom is 4
map.centerAndZoom(center, minZoom);
*/
}
// Fires when drop down list of schools changes
function selectChange(selection)
{
var myVal = selection.options[selection.selectedIndex].value;
map.closeInfoWindow();
// Add entire array based on variable type
if (myVal.indexOf('all') != -1 && myVal != 'all')
{
var temp = myVal.split('=');
var showArray = temp[1];
// If Array is > X amount of markers, then open in a new page
if (eval(showArray).length > 20)
// New window depends on whether or not we're on the search page
if (location.href.indexOf('nearby_schools.php') == -1)
window.open(location.href + '/map/' + showArray);
else
window.open('/search////' + showArray);
map.removeOverlays(St_Paul);
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(St_Paul);map.removeOverlays(St_Paul);
map.addOverlays(St_Paul);
centerByArray(St_Paul, false, false);
cntMarker += St_Paul.length;
centerByArray(St_Paul,true, false);
if (cntMarker > 20)
// New window depends on whether or not we're on the search page
if (location.href.indexOf('schools-by-distance') == -1)
window.open(location.href + '/map/all');
else
window.open('/search////all');
}
}