function addMarkers(){ mySelect = document.getElementById('selection'); Tempe = [];Tucson = [];Phoenix = [];Yuma = [];Scottsdale = [];Douglas = [];Laveen = [];Flagstaff = [];Glendale = [];Mesa = [];Chandler = [];Thatcher = [];San_Carlos = [];Litchfield_Park = [];Cottonwood = [];Sierra_Vista = [];mySelect.options[mySelect.options.length] = new Option("Chandler schools",'all=Chandler'); mySelect.options[mySelect.options.length] = new Option("Cottonwood schools",'all=Cottonwood'); mySelect.options[mySelect.options.length] = new Option("Douglas schools",'all=Douglas'); mySelect.options[mySelect.options.length] = new Option("Flagstaff schools",'all=Flagstaff'); mySelect.options[mySelect.options.length] = new Option("Glendale schools",'all=Glendale'); mySelect.options[mySelect.options.length] = new Option("Laveen schools",'all=Laveen'); mySelect.options[mySelect.options.length] = new Option("Litchfield Park schools",'all=Litchfield_Park'); mySelect.options[mySelect.options.length] = new Option("Mesa schools",'all=Mesa'); mySelect.options[mySelect.options.length] = new Option("Phoenix schools",'all=Phoenix'); mySelect.options[mySelect.options.length] = new Option("San Carlos schools",'all=San_Carlos'); mySelect.options[mySelect.options.length] = new Option("Scottsdale schools",'all=Scottsdale'); mySelect.options[mySelect.options.length] = new Option("Sierra Vista schools",'all=Sierra_Vista'); mySelect.options[mySelect.options.length] = new Option("Tempe schools",'all=Tempe'); mySelect.options[mySelect.options.length] = new Option("Thatcher schools",'all=Thatcher'); mySelect.options[mySelect.options.length] = new Option("Tucson schools",'all=Tucson'); mySelect.options[mySelect.options.length] = new Option("Yuma schools",'all=Yuma'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Tempe[Tempe.length] = createMarker(new GPoint(-111.93040200,33.45827800),"
Abiding Savior School
515 E Continental Drive
Tempe, AZ 85281
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Abiding Savior School",'Tempe=' + Tempe.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.87430400,32.22878600),"
Anshei Israel Preschool/Kindergarten
5550 E 5th Street
Tucson, AZ 85711
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Anshei Israel Preschool/Kindergarten",'Tucson=' + Tucson.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-112.12576400,33.50455300),"
Bourgade Catholic High School
4602 North 31st Avenue
Phoenix, AZ 85017
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bourgade Catholic High School",'Phoenix=' + Phoenix.length); Yuma[Yuma.length] = createMarker(new GPoint(-114.62052700,32.68016000),"
Calvary Baptist Church School
101 W 26th Street
Yuma, AZ 85364
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Calvary Baptist Church School",'Yuma=' + Yuma.length); Scottsdale[Scottsdale.length] = createMarker(new GPoint(-111.95307200,33.61169700),"
Children's Meeting House
5922 East Thunderbird Road
Scottsdale, AZ 85254
Co-ed school, PK-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Children's Meeting House",'Scottsdale=' + Scottsdale.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-111.99741700,33.49496300),"
Christ Lutheran School
3901 E Indian School Road
Phoenix, AZ 85018
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Christ Lutheran School",'Phoenix=' + Phoenix.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-112.05615000,33.30652200),"
Desert Canyon Tdo
1244 E Chandler Blvd
Phoenix, AZ 85048
Co-ed school, PK-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Desert Canyon Tdo",'Phoenix=' + Phoenix.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.90893900,32.22903700),"
Faith Lutheran School
3925 E 5th Street
Tucson, AZ 85711
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Faith Lutheran School",'Tucson=' + Tucson.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.84122600,32.21283300),"
Fountain Of Life Lutheran School
710 South Kolb Road
Tucson, AZ 85710
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fountain Of Life Lutheran School",'Tucson=' + Tucson.length); Tempe[Tempe.length] = createMarker(new GPoint(-111.92479700,33.36366300),"
Gethsemane Lutheran School
1035 E Guadalupe Road
Tempe, AZ 85283
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Gethsemane Lutheran School",'Tempe=' + Tempe.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.96263400,32.35203700),"
Immaculate Heart School
625 E. Magee Rd
Tucson, AZ 85704
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Immaculate Heart School",'Tucson=' + Tucson.length); Tucson[Tucson.length] = createMarker(new GPoint(-111.01634800,32.25056300),"
Ironwood Hills Christian School
2245 W Ironwood Hills Drive
Tucson, AZ 85745
Co-ed school, 3-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ironwood Hills Christian School",'Tucson=' + Tucson.length); Douglas[Douglas.length] = createMarker(new GPoint(-109.54373800,31.34873700),"
Loretto Catholic School
1200 E 14th Street
Douglas, AZ 85607
Co-ed school, 1-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Loretto Catholic School",'Douglas=' + Douglas.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-112.05640300,33.52762400),"
Madison Christian Children's Center
6202 N 12th Street
Phoenix, AZ 85014
Co-ed school, PK-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Madison Christian Children's Center",'Phoenix=' + Phoenix.length); Laveen[Laveen.length] = createMarker(new GPoint(-112.17084900,33.37022000),"
Maricopa Village Adventist School
Route 4 Box 195
Laveen, AZ 85339
Co-ed school, 1-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Maricopa Village Adventist School",'Laveen=' + Laveen.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.65776700,35.22515200),"
Mt Calvary Lutheran School
2605 N Fort Valley Road
Flagstaff, AZ 86001
Co-ed school, PK-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mt Calvary Lutheran School",'Flagstaff=' + Flagstaff.length); Glendale[Glendale.length] = createMarker(new GPoint(-112.18103400,33.54639000),"
Our Lady Of Perpetual Help
7521 N 57th Ave
Glendale, AZ 85301
Co-ed school, NS-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Our Lady Of Perpetual Help",'Glendale=' + Glendale.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.84118100,32.20005500),"
Our Mother Of Sorrows School
1800 South Kolb Road
Tucson, AZ 85710
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Our Mother Of Sorrows School",'Tucson=' + Tucson.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-111.99797300,33.63356200),"
Pardes Jewish Day School
3916 Paradise Lane
Phoenix, AZ 85032
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pardes Jewish Day School",'Phoenix=' + Phoenix.length); Flagstaff[Flagstaff.length] = createMarker(new GPoint(-111.61333100,35.22019600),"
Peace Lutheran Preschool Kindergarten
3430 N 4th Street
Flagstaff, AZ 86004
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Peace Lutheran Preschool Kindergarten",'Flagstaff=' + Flagstaff.length); Mesa[Mesa.length] = createMarker(new GPoint(-111.80512400,33.42853100),"
Redeemer Christian School (Classical)
719 North Stapley Drive
Mesa, AZ 85203
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Redeemer Christian School (Classical)",'Mesa=' + Mesa.length); Chandler[Chandler.length] = createMarker(new GPoint(-111.85853400,33.23039200),"
Risen Savior Lutheran Church And School
23914 S Alma School Road
Chandler, AZ 85248
Co-ed school, PK-1
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Risen Savior Lutheran Church And School",'Chandler=' + Chandler.length); Thatcher[Thatcher.length] = createMarker(new GPoint(-109.74992400,32.83507000),"
Safford Sda School
523 S 1st Avenue
Thatcher, AZ 85552
Co-ed school, 1-4
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Safford Sda School",'Thatcher=' + Thatcher.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-112.07350200,33.50606400),"
St. Francis Xavier School
4715 North Central Avenue
Phoenix, AZ 85012
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Francis Xavier School",'Phoenix=' + Phoenix.length); Chandler[Chandler.length] = createMarker(new GPoint(-111.84670200,33.31355100),"
St. Mary-Basha Catholic School
200 West Galveston St
Chandler, AZ 85225
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Mary-Basha Catholic School",'Chandler=' + Chandler.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-112.03036400,33.50234100),"
St. Thomas The Apostle School
4510 N 24th Street
Phoenix, AZ 85016
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Thomas The Apostle School",'Phoenix=' + Phoenix.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.96975400,32.22155300),"
San Miguel High School
Po Box 22199
Tucson, AZ 85734
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("San Miguel High School",'Tucson=' + Tucson.length); Chandler[Chandler.length] = createMarker(new GPoint(-111.87656300,33.32345600),"
Seton Catholic High School
1150 N Dobson Road
Chandler, AZ 85224
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Seton Catholic High School",'Chandler=' + Chandler.length); San_Carlos[San_Carlos.length] = createMarker(new GPoint(-109.91580000,33.30730000),"
St Charles School
Po Box 339
San Carlos, AZ 85550
Co-ed school, K-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Charles School",'San_Carlos=' + San_Carlos.length); Tucson[Tucson.length] = createMarker(new GPoint(-111.02955400,32.36177300),"
St Elizabeth Ann Seton School
8560 N Shannon Road
Tucson, AZ 85742
Co-ed school, PK-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Elizabeth Ann Seton School",'Tucson=' + Tucson.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.97776000,32.17793700),"
St John The Evangelist School
600 W Ajo Way
Tucson, AZ 85713
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St John The Evangelist School",'Tucson=' + Tucson.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.87493700,32.21859100),"
St Joseph Catholic School
215 S Craycroft Road
Tucson, AZ 85711
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Joseph Catholic School",'Tucson=' + Tucson.length); Phoenix[Phoenix.length] = createMarker(new GPoint(-112.10365400,33.45133700),"
St Matthew School
2038 W Van Buren Street
Phoenix, AZ 85009
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Matthew School",'Phoenix=' + Phoenix.length); Litchfield_Park[Litchfield_Park.length] = createMarker(new GPoint(-112.34333800,33.49271900),"
Trinity Lutheran School
830 E Plaza Circle
Litchfield Park, AZ 85340
Co-ed school, NS-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Trinity Lutheran School",'Litchfield_Park=' + Litchfield_Park.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.90995700,32.27567100),"
Tucson Hebrew Academy
3888 E River Rd
Tucson, AZ 85718
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tucson Hebrew Academy",'Tucson=' + Tucson.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.91183500,32.27571000),"
Tucson Jewish Community Center
3800 E River Rd
Tucson, AZ 85718
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tucson Jewish Community Center",'Tucson=' + Tucson.length); Tucson[Tucson.length] = createMarker(new GPoint(-110.88259700,32.27285300),"
Unity Of Tucson's School Of Creative Living
3617 N Camino Blanco
Tucson, AZ 85718
Co-ed school, PK-2
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Unity Of Tucson's School Of Creative Living",'Tucson=' + Tucson.length); Cottonwood[Cottonwood.length] = createMarker(new GPoint(-112.01580000,34.71790000),"
Verde Valley Seventh-day Adventist School
Po Box 1810
Cottonwood, AZ 86326
Co-ed school, 1-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Verde Valley Seventh-day Adventist School",'Cottonwood=' + Cottonwood.length); Sierra_Vista[Sierra_Vista.length] = createMarker(new GPoint(-110.30537800,31.55943400),"
Veritas Christian Comm School
215 Taylor Drive
Sierra Vista, AZ 85635
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Veritas Christian Comm School",'Sierra_Vista=' + Sierra_Vista.length); map.removeOverlays(Chandler); map.removeOverlays(Cottonwood); map.removeOverlays(Douglas); map.removeOverlays(Flagstaff); map.removeOverlays(Glendale); map.removeOverlays(Laveen); map.removeOverlays(Litchfield_Park); map.removeOverlays(Mesa); map.removeOverlays(Phoenix); map.removeOverlays(San_Carlos); map.removeOverlays(Scottsdale); map.removeOverlays(Sierra_Vista); map.removeOverlays(Tempe); map.removeOverlays(Thatcher); map.removeOverlays(Tucson); map.removeOverlays(Yuma); setTimeout(function(){map.addOverlays(Chandler)},1000); setTimeout(function(){map.addOverlays(Cottonwood)},1000); setTimeout(function(){map.addOverlays(Douglas)},1000); setTimeout(function(){map.addOverlays(Flagstaff)},1000); setTimeout(function(){map.addOverlays(Glendale)},1000); setTimeout(function(){map.addOverlays(Laveen)},1000); setTimeout(function(){map.addOverlays(Litchfield_Park)},1000); setTimeout(function(){map.addOverlays(Mesa)},1000); setTimeout(function(){map.addOverlays(Phoenix)},1000); setTimeout(function(){map.addOverlays(San_Carlos)},1000); setTimeout(function(){map.addOverlays(Scottsdale)},1000); setTimeout(function(){map.addOverlays(Sierra_Vista)},1000); setTimeout(function(){map.addOverlays(Tempe)},1000); setTimeout(function(){map.addOverlays(Thatcher)},1000); setTimeout(function(){map.addOverlays(Tucson)},1000); setTimeout(function(){map.addOverlays(Yuma)},1000); maxLng = -109.54373800; maxLat = 35.22515200; minLng = -114.62052700; minLat = 31.34873700; 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,11); /* 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(Chandler); map.removeOverlays(Cottonwood); map.removeOverlays(Douglas); map.removeOverlays(Flagstaff); map.removeOverlays(Glendale); map.removeOverlays(Laveen); map.removeOverlays(Litchfield_Park); map.removeOverlays(Mesa); map.removeOverlays(Phoenix); map.removeOverlays(San_Carlos); map.removeOverlays(Scottsdale); map.removeOverlays(Sierra_Vista); map.removeOverlays(Tempe); map.removeOverlays(Thatcher); map.removeOverlays(Tucson); map.removeOverlays(Yuma); 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(Tempe);map.removeOverlays(Chandler); map.removeOverlays(Cottonwood); map.removeOverlays(Douglas); map.removeOverlays(Flagstaff); map.removeOverlays(Glendale); map.removeOverlays(Laveen); map.removeOverlays(Litchfield_Park); map.removeOverlays(Mesa); map.removeOverlays(Phoenix); map.removeOverlays(San_Carlos); map.removeOverlays(Scottsdale); map.removeOverlays(Sierra_Vista); map.removeOverlays(Tempe); map.removeOverlays(Thatcher); map.removeOverlays(Tucson); map.removeOverlays(Yuma); map.addOverlays(Chandler); centerByArray(Chandler, false, false); cntMarker += Chandler.length; map.addOverlays(Cottonwood); centerByArray(Cottonwood, false, false); cntMarker += Cottonwood.length; map.addOverlays(Douglas); centerByArray(Douglas, false, false); cntMarker += Douglas.length; map.addOverlays(Flagstaff); centerByArray(Flagstaff, false, false); cntMarker += Flagstaff.length; map.addOverlays(Glendale); centerByArray(Glendale, false, false); cntMarker += Glendale.length; map.addOverlays(Laveen); centerByArray(Laveen, false, false); cntMarker += Laveen.length; map.addOverlays(Litchfield_Park); centerByArray(Litchfield_Park, false, false); cntMarker += Litchfield_Park.length; map.addOverlays(Mesa); centerByArray(Mesa, false, false); cntMarker += Mesa.length; map.addOverlays(Phoenix); centerByArray(Phoenix, false, false); cntMarker += Phoenix.length; map.addOverlays(San_Carlos); centerByArray(San_Carlos, false, false); cntMarker += San_Carlos.length; map.addOverlays(Scottsdale); centerByArray(Scottsdale, false, false); cntMarker += Scottsdale.length; map.addOverlays(Sierra_Vista); centerByArray(Sierra_Vista, false, false); cntMarker += Sierra_Vista.length; map.addOverlays(Tempe); centerByArray(Tempe, false, false); cntMarker += Tempe.length; map.addOverlays(Thatcher); centerByArray(Thatcher, false, false); cntMarker += Thatcher.length; map.addOverlays(Tucson); centerByArray(Tucson, false, false); cntMarker += Tucson.length; map.addOverlays(Yuma); centerByArray(Yuma, false, false); cntMarker += Yuma.length; centerByArray(Tempe,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///681,668,517,760,598,600,34221,520,34927,724,759,612,627,647,639,34219,742,668,535,780,34223,30638,701,720,711,722,532,760,495,571,34220,768,562,567,598,600,640,35803,706,707,746,747,753,520,/all'); //window.open('/map.php?type=2&schools=681,668,517,760,598,600,34221,520,34927,724,759,612,627,647,639,34219,742,668,535,780,34223,30638,701,720,711,722,532,760,495,571,34220,768,562,567,598,600,640,35803,706,707,746,747,753,520,&school_level=&radius=&zipcode=&school_type_search=&school_type_code='); } } function createMarker(point, label, icon) { var marker = new GMarker(point, icon); var html = label; GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; }