//<![CDATA[

//Hotels Liverpool
function initialize() { //called from body onload

	if (GBrowserIsCompatible()) {

		function createMarker(point,html) {
			var marker = new GMarker(point,Hotelicon);
			GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml(html); });
			//marker.openInfoWindowHtml(map.getCenter(),html); //tried center no luck
			return marker;
			}
		function createMarker2(point,html) {
			var marker = new GMarker(point,brownicon);
			GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml(html); });
			return marker;
			}
		function showMarker(marker){
			GEvent.trigger(marker,"click");
			}
		function OpenMarker(){ //make sure this gets called next time!
			get_string = document.location.search;
			Charindex = get_string.indexOf('=');
			if(Charindex != -1){ //only if arg
				MarkerName = get_string.substr(Charindex+1, get_string.length - Charindex+1); //(start,length)
				varResult = showMarker(eval(MarkerName));
			}
		}
		
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(53.405068,-2.982681), 15);
		//was 53.40863,-2.979612

		var Hotelicon = new GIcon();
		Hotelicon.image =  "/maps/markerH.png";
		Hotelicon.shadow = "/maps/shadow50.png";
		Hotelicon.iconSize = new GSize(20, 34);
		Hotelicon.shadowSize = new GSize(37, 34);
		Hotelicon.iconAnchor = new GPoint(9, 34);
		Hotelicon.infoWindowAnchor = new GPoint(9, 2);
		Hotelicon.infoShadowAnchor = new GPoint(18, 25);
		
		//brown
		var brownicon = new GIcon();
		brownicon.image = "/maps/mm_20_brown.png";
		brownicon.shadow = "/maps/mm_20_shadow.png";
		brownicon.iconSize = new GSize(12, 20);
		brownicon.shadowSize = new GSize(22, 20);
		brownicon.iconAnchor = new GPoint(6, 20);
		brownicon.infoWindowAnchor = new GPoint(5, 1);

		var point = new GLatLng(53.407482,-2.995212);
  		var thistle = createMarker(point,"<a href=\"thistle-hotel-liverpool.htm\"><img src=\"images/thistle-liverpool.jpg\" border=\"0\" width=\"212\" height=\"426\" alt=\"Thistle Liverpool\"></a><p class='v12'><b>Thistle Liverpool</b><br>Chapel Street, Liverpool, L3 9RE<br><a href=\"thistle-hotel-liverpool.htm\">Details Here</a></p>");
		map.addOverlay(thistle);

		var point = new GLatLng(53.406067,-2.988104);
  		var hard = createMarker(point,"<a href=\"hard-days-night-hotel.htm\"><img src=\"images/beatles_hotel_03.jpg\" border=\"0\" width=\"400\" height=\"293\" alt=\"Hard Days Night Hotel\"></a><p class='v12'><b>Hard Days Night Hotel</b><br>41 North John Street, Liverpool L2 6RR<br><a href=\"hard-days-night-hotel.htm\">Details Here</a></p>");
		map.addOverlay(hard);

		var point = new GLatLng(53.406161,-2.989622);
  		var castle = createMarker(point,"<p class='v12'><b>62 Castle St Hotel</b><br>62 Castle Street<br>Liverpool L2 7LQ<br><a href=\"62-castle-street.htm\">More Info</a></p>");
		map.addOverlay(castle);

		var point = new GLatLng(53.394279,-2.984059);
  		var campanile = createMarker(point,"<p class='v12'><b>Campanile Hotel</b><br>Chaloner St, Queen's Dock<br>Liverpool L3 4AJ<br><a href=\"campanile-liverpool.htm\">More Info</a></p>");
		map.addOverlay(campanile);

		var point = new GLatLng(53.348278,-2.865736);
  		var express = createMarker(point,"<p class='v12'><b>Express by Holiday Inn</b><br>Liverpool John Lennon Airport<br>1 Speke Hall Avenue, Liverpool L24 1UX<br><a href=\"holiday-inn-john-lennon-airport.htm\">More Info</a></p>");
		map.addOverlay(express);
		
		var point = new GLatLng(53.400881,-2.971);
  		var hope = createMarker(point,"<p class='v12'><b>Hope Street Hotel</b><br>40 Hope Street, Liverpool L1 9DA<br><a href=\"hope-street-hotel-liverpool.htm\">More Info</a></p>");
		map.addOverlay(hope);

		var point = new GLatLng(53.400014,-2.986795);
  		var ibis = createMarker(point,"<p class='v12'><b>Ibis Liverpool</b><br>27 Wapping, Liverpool L1 8LY<br><a href=\"ibis-liverpool.htm\">More Info</a></p>");
		map.addOverlay(ibis);

		var point = new GLatLng(53.398102,-2.99032);
  		var jurys = createMarker(point,"<p class='v12'><b>Jurys Inn Liverpool NEW HOTEL!</b><br>31 Keel Wharf, Kings Waterfront, Liverpool L3 4FN<br><a href=\"jurys-inn-liverpool.htm\">Jurys Inn Liverpool</a></p>");
		map.addOverlay(jurys);

		var point = new GLatLng(53.402241,-2.988539);
  		var hilton = createMarker(point,"<p class='v12'><b>Hilton Liverpool</b><br>Canning Place, Liverpool<br><a href=\"hilton-liverpool.htm\">Hilton Liverpool</a></p>");
		map.addOverlay(hilton);

		var point = new GLatLng(53.407856,-2.982042);
  		var marriott = createMarker(point,"<p class='v12'><b>Marriott Liverpool City Centre</b><br>1 Queens Square, Liverpool L1 1RH<br><a href=\"marriott-liverpool-hotel.htm\" title=\"Marriott Liverpool Centre\">More Info</a></p>");
		map.addOverlay(marriott);

		var point = new GLatLng(53.408953,-2.997808);
  		var malmaison = createMarker(point,"<p class='v12'><b>Liverpool Malmaison</b><br>William Jessop Way<br>Princes Dock<br>Liverpool L3 1QZ<br><a href=\"malmaison-liverpool-hotel.htm\" title=\"Malmaison Liverpool\">More Info</a></p>");
		map.addOverlay(malmaison);

		var point = new GLatLng(53.407578,-2.986181);
  		var thomas = createMarker(point,"<p class='v12'><b>Sir Thomas Hotel</b> 3*<br>24 Sir Thomas Street<br>Liverpool L1 6JB<br><a href=\"sir-thomas-hotel.htm\" title=\"Sir Thomas Hotel\">More Info</a></p>");
		map.addOverlay(thomas);

		var point = new GLatLng(53.405435,-2.977429);
  		var adelphi = createMarker(point,"<p class='v12'><b>Britannia Adelphi Hotel</b> 3*<br>Ranelagh Place<br>Liverpool L3 5UL<br><a href=\"adelphi-liverpool-hotel.htm\" title=\"Adelphi Hotel\">More Info</a></p>");
		map.addOverlay(adelphi);

		var point = new GLatLng(53.398826,-2.993056);
  		var albert = createMarker(point,"<a href=\"holiday-inn-liverpool.htm\"><img src=\"/movies/echo-arena.jpg\" alt=\"Holiday Inn Liverpool\" width=\"530\" height=\"172\" border=\"0\"></a><p class='v12'><b>Holiday Inn</b> - Liverpool Albert Dock<br>Britannia Pavillion, Albert Dock, Liverpool L3 4AD<br><a href=\"holiday-inn-liverpool.htm\" title=\"Holiday Inn Albert Dock\">More Info</a></p>");
		map.addOverlay(albert);

		var point = new GLatLng(53.401697,-2.979728);
  		var parr = createMarker(point,"<p class='v12'><b>Parr Street Hotel</b><br>Parr Street Studios, 33-45 Parr Street<br>Liverpool L1 4JN<br><a href=\"parr-st-hotel.htm\">More Info</a></p>");
		map.addOverlay(parr);
		
		var point = new GLatLng(53.409848,-2.986677);
  		var apartments = createMarker(point,"<p class='v12'><b>Premier Apartments</b><br>Eden Square, 11 Hatton Garden, Liverpool L3 2FE<br><a href=\"premier-apartments-liverpool.htm\">More Info</a></p>");
		map.addOverlay(apartments);

		var point = new GLatLng(53.406248,-2.98572);
  		var print = createMarker(point,"<p class='v12'><b>PRINT Hotel</b><br>56-58 Stanley Street<br>Liverpool L1 6AU<br><a href=\"the-print-hotel-liverpool.htm\">More Info</a></p>");
		map.addOverlay(print);
	
		var point = new GLatLng(53.410789,-2.996226);
  		var radisson = createMarker(point,"<p class='v12'><b>Radisson SAS Liverpool</b><br>107 Old Hall Street<br>Liverpool L3 9BD<br><a href=\"radisson-sas-hotel-liverpool.htm\">More Info</a></p>");
		map.addOverlay(radisson);

		var point = new GLatLng(53.407859,-2.993589);
  		var racquet = createMarker(point,"<p class='v12'><b>The Racquet Club Hotel & Restaurant</b><br>Hargreaves Buildings, 5 Chapel Street<br>Liverpool L3 9AG<br><a href=\"racquet-club-liverpool-hotel.htm\">More Info</a></p>");
		map.addOverlay(racquet);

		var point = new GLatLng(53.409001,-2.987857);
  		var premier = createMarker(point,"<p class='v12'><b>Premier Travel Inn Liverpool</b><br>Vernon Street, Liverpool L2 2AY<br><a href=\"travelinn-liverpool.htm\">More Info</a></p>");
		map.addOverlay(premier);

		var point = new GLatLng(53.399191,-2.99146);
  		var premier_inn = createMarker(point,"<p class='v12'><b>Premier Inn (Albert Dock)</b><br>East Britannia Building, Albert Dock<br>Liverpool L3 4AD<br><a href=\"premier-travel-inn-liverpool.htm\">More Info</a></p>");
		map.addOverlay(premier_inn);

		
		OpenMarker();
		
		
}else{
	alert("Sorry your browser is not compatible with our map");
}

}//end onload

//]]>