var map;
var geocoder;
var gc_title;
var bounds; 
var points = Array();

/*points[0] = new PVGeoMarker('AmericInn of Atchison, KS', null, '<p><div>500 US Hwy 73</div><div>Atchison, KS 66002</div><div> </div><div>Phone: 913-367-4000</div><div>Toll Free: 800-396-5007</div><div><br> </div><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/KS/Atchison\">Visit Website</a></div></p>', -95.127190,39.557476 );*/
points[1] = new PVGeoMarker('AmericInn of Bolingbrook, IL', null, '<p><div>175 W. Remington Blvd</div><div>Bolingbrook, IL 60440</div><div><br> </div><div>Phone: 630-378-5300</div><div>Toll Free: 800-396-5007</div><div><br> </div><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/IL/Bolingbrook\">Visit Website</a></div></p>', -88.071892,41.685703 );
points[2] = new PVGeoMarker('AmericInn of Chanhassen, MN', null, '<p><div dir=\"ltr\">570 Pond Promenade<br>Chanhassen, MN 55317<br><br>Phone: 952-934-3888<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/Chanhassen\">Visit Website</a></div></p>', -93.534950,44.857052 );
/*points[3] = new PVGeoMarker('AmericInn of Grimes, IA', null, '<p><div dir=\"ltr\">251 Gateway Circle PO Box 257<br>Grimes, IA 50111<br><br>Phone: 515-986-9900<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/IA/Grimes\">Visit Website</a></div></p>', -93.776108,41.687256 );*/
points[4] = new PVGeoMarker('AmericInn of Jackson, MN', null, '<p><div dir=\"ltr\">110 Belmont Lane<br>Jackson, MN 56143<br><br>Phone: 507-847-2444<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/Jackson\">Visit Website</a><br> </div></p>', -95.169693,43.669949 );
points[5] = new PVGeoMarker('AmericInn of Pampa, TX', null, '<p><div dir=\"ltr\">1101 N. Hobart<br>Pampa, TX 79065<br><br>Phone: 806-665-4404<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/TX/Pampa\">Visit Website</a></div></p>', -100.971970,35.543476 );
points[6] = new PVGeoMarker('AmericInn of Silver Bay, MN', null, '<p><div dir=\"ltr\">150 Mensing Drive<br>Silver Bay, MN 55614<br><br>Phone: 218-226-4300<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/SilverBay\">Visit Website</a></div></p>', -91.251938,47.299229 );
points[7] = new PVGeoMarker('AmericInn of Two Harbors, MN', null, '<p><div dir=\"ltr\">1088 Highway 61 North<br>Two Harbors, MN 55616<br><br>Phone: 218-834-3000<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/TwoHarbors\">Visit Website</a></div></p>', -91.655121,47.030518 );
points[8] = new PVGeoMarker('AmericInn of Worthington, MN', null, '<p><div dir=\"ltr\">1475 Darling Drive<br>Worthington, MN 56187<br><br>Phone: 507-376-4500<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/Worthington\">Visit Website</a></div></p>', -95.591766,43.636242 );
points[9] = new PVGeoMarker('AmericInn of Baldwin, WI', null, '<p><div dir=\"ltr\">500 Baldwin Plaza Drive<br>Baldwin, WI 54002</div><div dir=\"ltr\"><br>Phone: 715-684-5888<br>Toll Free: 800-396-5007 </div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/WI/Baldwin\">Visit Website</a></div></p>', -92.370399,44.938980 );
points[10] = new PVGeoMarker('AmericInn of Burlington, WI', null, '<p><div dir=\"ltr\">2709 South Browns Lake Drive<br>Burlington, WI 53105<br><br>Phone: 262-534-2125<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/WI/Burlington\">Visit Website</a></div></p>', -88.249161,42.693428 );
points[11] = new PVGeoMarker('AmericInn of Elkhorn, WI', null, '<p><div dir=\"ltr\">210 East Commerce Court<br>Elkhorn, WI 53121<br><br>Phone: 262-723-7799<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/WI/Elkhorn\">Visit Website</a></div></p>', -88.538551,42.652863 );
points[12] = new PVGeoMarker('AmericInn of Griswold, CT', null, '<p><div dir=\"ltr\">375 Voluntown Road<br>Griswold, CT 06351<br><br>Phone: 860-376-3200<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/CT/Griswold\">Visit Website</a></div></p>', -71.972496,41.593739 );
points[13] = new PVGeoMarker('AmericInn of Kearney, NE', null, '<p><div dir=\"ltr\">215 West Talmadge Road<br>Kearney, NE 68845<br><br>Phone: 308-234-7800<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/NE/Kearney\">Visit Website</a></div></p>', -99.087387,40.673512 );
points[14] = new PVGeoMarker('AmericInn of Moose Lake, MN', null, '<p><div dir=\"ltr\">400 Park Place Drive<br>Moose Lake, MN 55767<br><br>Phone: 218-485-8885<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/MooseLake\">Visit Website</a></div></p>', -92.749428,46.434540 );
/*points[15] = new PVGeoMarker('Americinn of Okoboji, IA', null, '<p><div dir=\"ltr\">1005 Brooks Park Drive<br>Okoboji, IA 51355<br><br>Phone: 712-332-9000<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/IA/Okoboji\">Visit Website</a></div></p>', -95.129028,43.388580 );*/
/*points[16] = new PVGeoMarker('Hampton Inn & Suites, Paso Robles, CA', null, '<p><div dir=\"ltr\">212 Alexa Court<br>Paso Robles, CA 93446<br><br>Phone: 805-226-9988<br>Fax: 805-226-9073</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.hamptoninn.com/en/hp/hotels/index.jhtml?ctyhocn=PRBCAHX\">Visit Website</a></div></p>', -120.696457,35.588444 );*/
points[17] = new PVGeoMarker('AmericInn of Rexburg, ID', null, '<p><div dir=\"ltr\">1098 Golden Beauty Drive<br>Rexburg, ID 83440<br><br>Phone: 208-356-5333<br>Toll Free: 800-396-5007<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/ID/Rexburg\">Visit Website</a></div></p>', -111.810951,43.803688 );
/*points[18] = new PVGeoMarker('AmericInn of Sayre, OK', null, '<p><div dir=\"ltr\">2405 South El Camino<br>Sayre, OK 73662<br><br>Phone: 580-928-2700<br>Toll Free: 800-396-5007<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/OK/Sayre\">Visit Website</a></div></p>', -99.635803,35.278400 );*/
/*points[19] = new PVGeoMarker('Super 8 – Spirit Lake/Okoboji', null, '<p><div dir=\"ltr\">Hwy 71 & 9<br>2203 Circle Dr. West<br>Spirit Lake, IA 51360<br><br>Phone: 712-336-4901<br>Toll Free: 800-800-8000<br>Fax: 712-336-5036<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.super8.com/Super8/control/Booking/property_info?propertyId=03452&brandInfo=SE\">Visit Website</a></div></p>', -95.125854,43.421406 );*/
/*points[20] = new PVGeoMarker('Ramada Spirit Lake/Okoboji', null, '<p><div dir=\"ltr\">2704 17th Street<br>Corner of Hwy 9 & Hwy 71<br>Spirit Lake, IA 51360<br><br>Phone: 712-336-3984<br>Toll Free: 800-272-6232<br>Fax: 712-336-4239</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.ramada.com/Ramada/control/Booking/property_info?propertyId=07253&brandInfo=RA\">Visit Website</a></div></p>', -95.129173,43.422764 );*/
points[21] = new PVGeoMarker('AmericInn of Bemidji, MN', null, '<p><div dir=\"ltr\">1200 Paul Bunyan Drive<br>Bemidji, MN 56601<br><br>Phone: 218-751-3000<br>Toll Free: 800-396-5007<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/Bemidji\">Visit Website</a></div></p>', -94.896042,47.491592 );
points[22] = new PVGeoMarker('AmericInn of Faribault, MN', null, '<p><div dir=\"ltr\">1801 Lavender Drive<br>Faribault, MN 55021<br><br>Phone: 507-334-9464<br>Toll Free: 800-396-5007<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/Faribault\">Visit Website</a></div></p>', -93.295792,44.315514 );
/*points[23] = new PVGeoMarker('Days Inn Faribault', null, '<p><div dir=\"ltr\">1920 Cardinal Lane<br>Hwy 21 and Cardinal Lane<br>Faribault, MN 55021<br><br>Phone: 507-334-6835<br>Toll Free: 800-329-7466<br>Fax: 507-333-4636<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.daysinn.com/DaysInn/control/Booking/check_avail?brandCode=DI,MQ,HJ,KG,RA,SE,TL,BU&searchWithinMiles=25&areaType=1&destination=faribault&state=MN&country=US&checkInDate=06/30&numberAdults=1&numberRooms=1&checkOutDate=07/01&numberChildren=0&numberBigChildren=0&rate=000&variant=&id=13784&propBrandId=DI&force_nostay=false\">Visit Website</a></div></p>', -93.296806,44.319923 );*/
points[24] = new PVGeoMarker('AmericInn of Germantown, WI', null, '<p><div dir=\"ltr\">W. 190 N. 10862 Commerce Circle<br>Germantown, WI 53022<br><br>Phone: 262-502-9750<br>Toll Free: 800-396-5007</div><div dir=\"ltr\"><br> </div><div dir=\"ltr\" align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/WI/Germantown\">Visit Website</a></div></p>', -88.145187,43.215385 );
points[25] = new PVGeoMarker('AmericInn of Munising, MI', null, '<p><div dir=\"ltr\">E9926 State Hwy M-28 East<br>Wetmore, MI 49895<br><br>Phone: 906-387-2000<br>Toll Free: 800-396-5007<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MI/Munising\">Visit Website</a></div></p>', -86.590233,46.376629 );
/*points[26] = new PVGeoMarker('AmericInn of Osceola, IA', null, '<p><div dir=\"ltr\">111 Ariel Circle<br>Osceola, IA 50213<br><br>Phone: 641-342-9400<br>Toll Free: 800-396-5007<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/IA/Osceola\">Visit Website</a></div></p>', -93.798119,41.023830 );*/
/*points[27] = new PVGeoMarker('Country Inn & Suites by Carlson-Pella', null, '<p><div dir=\"ltr\">315 Roosevelt Road<br>Pella, IA 50219<br><br>Phone: 641-620-1111<br>Toll Free: 888-201-1746<br>Fax: 641-620-8101<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.countryinns.com/hoteldirectory/hotelbio.jsp?hotelCode=IAPELLA\">Visit Website</a></div></p>', -92.912247,41.393101 );*/
points[28] = new PVGeoMarker('AmericInn of Shakopee, MN', null, '<p><div dir=\"ltr\">4100 12th Avenue East<br>Shakopee, MN 55379<br><br>Phone: 952-445-6775<br>Toll Free: 800-396-5007<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.americinn.com/hotels/MN/Shakopee\">Visit Website</a></div></p>', -93.468674,44.784966 );
points[29] = new PVGeoMarker('Country Inn & Suites By Carlson Shakopee', null, '<p><div dir=\"ltr\">1204 Ramsey Street<br>Shakopee, MN 55379<br><br>Phone: 952-445-0200<br>Toll Free: 888-201-1746<br>Fax: 952-403-0680<br><div align=\"right\"><a target=\"_blank\" href=\"http://www.countryinns.com/shakopeemn\">Visit Website</a></div></p>', -93.503471,44.782124 );

/*points[30] = new PVGeoMarker('La Bellasera Hotel & Suites', null, '<p><div dir=\"ltr\">206 Alexa Court<br>Paso Robles, CA 93446<br><br>Phone: 805-238-2834<br>Toll Free: 866-782-9669<br><br><div align=\"right\"><a href=\"http://www.labellasera.com/index.htm\">Visit Website</a></div></p>', -120.696381,35.588448 );*/
points[31] = new PVGeoMarker('AmericInn of Ft. Collins South', null, '<p><div dir=\"ltr\">7645 Westgate Drive<br>Fort Collins, CO 80528<br><br>Phone: 970-226-1232<br>Toll Free: 800-396-5007<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/CO/FtCollinsSouth\">Visit Website</a></div></p>', -104.988724,40.478149 );
points[32] = new PVGeoMarker('Baymont Inn & Suites Cedar Rapids', null, '<p><div dir=\"ltr\">1220 Park Place NE<br>Cedar Rapids, IA 52402<br><br>Phone: 319-378-8000<br>Toll Free: 877-229-6668<br><br><div align=\"right\"><a href=\"http://www.baymontinns.com/Baymont/control/Booking/property_info?propertyId=17783\">Visit Website</a></div></p>', -91.654198,42.030251 );
points[33] = new PVGeoMarker('Baymont Inn & Suites Coralville', null, '<p><div dir=\"ltr\">200 6th Street<br>Coralville, IA 52241<br><br>Phone: 319-337-9797<br>Toll Free: 877-229-6668<br><br><div align=\"right\"><a href=\"http://www.baymontinns.com/Baymont/control/Booking/property_info?propertyId=17785\">Visit Website</a></div></p>', -91.567375,41.676422 );
points[34] = new PVGeoMarker('AmericInn of Fort Dodge', null, '<p><div dir=\"ltr\">100 Kenyon Road West<br>Fort Dodge, IA 50501<br><br>Phone: 515-576-2100<br>Toll Free: 800-396-5007<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/IA/FortDodge\">Visit Website</a></div></p>', -94.210320,42.482334 );
points[35] = new PVGeoMarker('AmericInn of Hailey', null, '<p><div dir=\"ltr\">51 Cobblestone Lane<br>Hailey, ID 83333<br><br>Phone: 208-788-7950<br>Toll Free: 800-396-5007<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/ID/Hailey\">Visit Website</a></div></p>', -114.320511,43.527454 );
points[36] = new PVGeoMarker('AmericInn of McCall', null, '<p><div dir=\"ltr\">211 South 3rd Street<br>McCall, ID 83638<br><br>Phone: 208-634-2230<br>Toll Free: 800-396-5007<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/ID/McCall\">Visit Website</a></div></p>', -116.095909,44.896420 );
/*points[37] = new PVGeoMarker('Baymont Inn & Suites Decatur', null, '<p><div dir=\"ltr\">5100 Hickory Point Frontage Road<br>Decatur, IL 62526<br><br>Phone: 217-875-5800<br>Toll Free: 877-229-6668<br><br><div align=\"right\"><a href=\"http://www.baymontinns.com/Baymont/control/Booking/property_info?propertyId=18100\">Visit Website</a></div></p>', -88.951820,39.909462 );*/
points[38] = new PVGeoMarker('AmericInn of Douglas', null, '<p><div dir=\"ltr\">2905 Blue Star Hwy.<br>Douglas, MI 49406<br><br>Phone: 269-857-8581<br>Toll Free: 888-205-3488<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/MI/Douglas?source=googleadwords&s_kwcid=lodge%20suites%20saugatuck2016871973\">Visit Website</a></div></p>', -86.209442,42.640450 );
points[39] = new PVGeoMarker('Baymont Inn & Suites Gaylord', null, '<p><div dir=\"ltr\">510 S. Wisconsin Ave<br>Gaylord, MI 49735<br><br>Phone: 866-538-0336<br>Toll Free: 866-528-9369<br><br><div align=\"right\"><a href=\"http://www.hotels.com/property.do?mtnHotelID=334940\">Visit Website</a></div></p>', -84.682587,45.022552 );
points[40] = new PVGeoMarker('Microtel Inn & Suites of Roseville', null, '<p><div dir=\"ltr\">20313 13 Mile Road<br>Roseville, MI 48066<br><br>Phone: 586-415-1000<br>Toll Free: 888-222-2142<br><br><div align=\"right\"><a href=\"http://www.microtelinn.com/reservations/locationdetail.asp?facid=606\">Visit Website</a></div></p>', -82.913734,42.524857 );
points[41] = new PVGeoMarker('AmericInn of Pequot Lakes', null, '<p><div dir=\"ltr\">32912 Paul Bunyan Trail Dr.<br>P.O. Box 610<br>Pequot Lakes, MN 56472<br><br>Phone: 218-568-8400<br>Toll Free: 888-205-3488<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/MN/PequotLakes?source=googleadwords&s_kwcid=lodge%20pequot%20lakes1282825462\">Visit Website</a><br> </div></p>', -94.217270,46.616779 );
points[42] = new PVGeoMarker('AmericInn of Waconia', null, '<p><div dir=\"ltr\">550 Cherry Drive<br>Waconia, MN 55387<br><br>Phone: 952-442-8787<br>Toll Free: 800-396-5007<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/MN/Waconia\">Visit Website</a></div></p>', -93.795341,44.843472 );
points[43] = new PVGeoMarker('AmericInn of Dickinson', null, '<p><div dir=\"ltr\">229 15th Street<br>West Dickinson, ND 58601<br><br>Phone: 701-225-1400<br>Toll Free: 800-396-5007<br><br><div align=\"right\"><a href=\"http://www.americinn.com/hotels/ND/Dickinson\">Visit Website</a></div></p>', -102.790138,46.898884 );
points[44] = new PVGeoMarker('La Quinta Inn & Suites Dallas Mesquite', null, '<p><div dir=\"ltr\">118 East US Highway 80<br>Mesquite, TX 75149<br><br>Phone: 972-216-7460<br>Toll Free: 800-753-3757<br><br><div align=\"right\"><a href=\"http://www.lq.com/lq/properties/propertyProfile.do?ident=LQ6019&propId=6019\">Visit Website</a></div></p>', -96.596588,32.790226 );

function PVGeoMarker(title, address, info, lon, lat) {
	
	this.title = title;
	this.info = info;
	if(address)
		this.address = address;
	else
		this.address = lat + ', ' + lon;
	
	this.lat = lat;
	this.lon = lon;
	this.marker = null;
	this.infohtml = '<b>' + this.title + '    </b><br/>' + this.info + '<div align=\"right\"><a target="_blank" href="http://maps.google.com/maps?f=d&geocode=&daddr='+escape(this.address)+'&z=13">Get Driving Directions</a></div></span>';
	
}	

PVGeoMarker.prototype.createMarker = function() {
	/* var ico = new GIcon(G_DEFAULT_ICON, 'http://maps.google.com/mapfiles/ms/micons/blue-dot.png');
	ico.iconSize = new GSize(32, 32); */

	this.marker = new GMarker(this.coords);
	this.marker.bindInfoWindowHtml( this.infohtml );
	return this.marker;	
}

PVGeoMarker.prototype.popup = function() {
	this.marker.openInfoWindowHtml(this.infohtml);
}

PVGeoMarker.prototype.show = function() {
	map.clearOverlays();
	this.createMarker();
	map.setCenter( this.coords, 15 );
	map.addOverlay(this.marker);
	this.marker.openInfoWindowHtml(this.infohtml);
}

function AddressCache() {
	GGeocodeCache.apply(this);
}

function createMap( elementid ) {
	map = new google.maps.Map2(document.getElementById( elementid ));
    // map.enableScrollWheelZoom();
    map.enableContinuousZoom();
    // map.addControl(new GSmallMapControl());
    map.addControl(new GLargeMapControl());
	// map.addControl(new GMapTypeControl());
    var point = new GLatLng(0, 0);
	map.setCenter( point , 4 );
	
	AddressCache.prototype = new GGeocodeCache();

    geocoder = new GClientGeocoder();
    geocoder.setCache(new AddressCache());	
}

function loadMarkersLayer() {
	bounds = new GLatLngBounds();
	map.clearOverlays();   	
	
	if(typeof(showpoint) != 'undefined') {
		
		var pt = points[showpoint];
		if(pt != null) {
			pt.coords = new GLatLng(pt.lat,pt.lon);
			map.addOverlay(pt.createMarker());
			
			map.setCenter(pt.coords, 15);
			pt.popup();
		}
		else
			alert('map-api error: point id is invalid!');
	}
	else {
		for (var i = 0; i < points.length; i++) {
			var pt = points[i];
			if(pt != null) {
				pt.coords = new GLatLng(pt.lat,pt.lon);
				map.addOverlay(pt.createMarker());
				bounds.extend(pt.coords);
			}
		}
		
		if(points.length == 1) {
			map.setCenter(points[0].coords, 10);
			points[0].popup();
		}
		else if (!bounds.isEmpty()) {
			boundzoom = map.getBoundsZoomLevel(bounds);
			map.setCenter(bounds.getCenter(), boundzoom);
		}
	}
}

function loadGoogleMap() {
	
	createMap( 'googlemap' );
	loadMarkersLayer();

}

google.load("maps", "2.x");
google.setOnLoadCallback(loadGoogleMap);