//<![CDATA[

//Hotels Chester
function initialize(){//onload

	if (GBrowserIsCompatible()) {

		function createMarker(point,html) {
			var marker = new GMarker(point,Hotelicon);
			GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml(html); });
			return marker;
		}
		function showMarker(marker){
			GEvent.trigger(marker,"click");
		}

		var map;
		map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(53.189836,-2.891078), 15);

		function OpenMarker(){
			get_string = document.location.search;
			Charindex = get_string.indexOf('=');

			if(Charindex != -1){
				MarkerName = get_string.substr(Charindex+1, get_string.length - Charindex+1); //(start,length)
				varResult = showMarker(eval(MarkerName));
			}
		}

		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);
			
		var point = new GLatLng(53.196166,-2.880239);
  		var queen = createMarker(point,"<a href=\"queen-hotel-chester.htm\"><img src=\"thumbs/queen-hotel.jpg\" border=\"0\" width=\"478\" height=\"157\" alt=\"Queen Hotel\"></a><p><span class='v12'><b>The Queen Hotel</b><br>City Road, Chester CH1 3AH<br><a href=\"queen-hotel-chester.htm\">More Info & Photos</a></span></p>");
		map.addOverlay(queen);

			var point = new GLatLng(53.190632,-2.889082);
  			var grosvenor = createMarker(point,"<a href=\"the-grosvenor-hotel-chester.htm\"><img src=\"thumbs/chester-grosvenor.jpg\" border=\"0\" width=\"426\" height=\"212\" alt=\"The Grosvenor Hotel Chester\"></a><p><span class='v12'><b>The Grosvenor Hotel & Spa</b><br>Eastgate St. Chester CH1 1LT<br><a href=\"the-grosvenor-hotel-chester.htm\">More Info</a></span>");
  			map.addOverlay(grosvenor);

			var point = new GLatLng(53.193669,-2.884372);
  			var mill = createMarker(point,"<a href=\"the-mill-hotel-chester.htm\"><img src=\"thumbs/mill-hotel.jpg\" border=\"0\" width=\"212\" height=\"212\" alt=\"The Mill Hotel & Spa\"></a><p><span class='v12'><b>Mill Hotel & Spa</b><br>Milton Street<br>Chester CH1 3NF<br><a href=\"the-mill-hotel-chester.htm\">More Info</a></span></p>");
  			map.addOverlay(mill);

			var point = new GLatLng(53.191009,-2.895069);
  			var plaza = createMarker(point,"<a href=\"the-crowne-plaza-chester.htm\"><img src=\"thumbs/crowne_plaza.jpg\" border=\"0\" width=\"212\" height=\"212\" alt=\"The Crowne Plaza Chester\"></a><p><span class='v12'><b>The Crowne Plaza Chester</b><br>Trinity Street<br>Chester CH1 2BD<br><a href=\"the-crowne-plaza-chester.htm\">More Info</a></span>");
  			map.addOverlay(plaza);

			var point = new GLatLng(53.189965,-2.899666);
  			var holiday = createMarker(point,"<a href=\"holiday-inn-chester.htm\"><img src=\"thumbs/the-holiday-inn-express.jpg\" border=\"0\" width=\"375\" height=\"150\" alt=\"Holiday Inn Chester\"></a><p span class='v12'><b>Holiday Inn Express - Chester Racecourse</b><br>New Crane Street, Chester CH1 2LY<br><a href=\"holiday-inn-chester.htm\">More Info</a></p>");
  			map.addOverlay(holiday);

			var point = new GLatLng(53.15806,-2.910945);
  			var business = createMarker(point,"<a href=\"holiday-inn-chester-business-park.htm\"><img src=\"images/holiday-inn-chester-south.jpg\" border=\"0\" width=\"400\" height=\"239\" alt=\"Holiday Inn Chester South\"></a><p span class='v12'><b>Holiday Inn Chester South</b><br>Wrexham Rd, Chester CH4 9DL<br><a href=\"holiday-inn-chester-business-park.htm\">More Info</a></p>");
  			map.addOverlay(business);

			var point = new GLatLng(53.190786,-2.887827);
  			var blossoms = createMarker(point,"<a href=\"the-new-blossoms-hotel-chester.htm\"><img src=\"thumbs/blossoms-hotel.jpg\" border=\"0\" width=\"212\" height=\"212\" alt=\"New Blossoms Hotel\"></a><p><span class='v12'><b>The New Blossoms Hotel</b><br>St John's Street<br>Chester CH1 1HL<br><a href=\"the-new-blossoms-hotel-chester.htm\">More Info</a></span>");
  			map.addOverlay(blossoms);
			
			var point = new GLatLng(53.19566,-2.881036);
  			var westminster = createMarker(point,"<a href=\"the-westminster-hotel-chester.htm\"><img src=\"thumbs/westminster-hotel.jpg\" border=\"0\" width=\"212\" height=\"212\" alt=\"The Westminster Hotel\"></a><p><span class='v12'><b>The Westminster Hotel</b><br>City Road<br>Chester CH1 2AF<br><a href=\"the-westminster-hotel-chester.htm\">More Info</a></span>");
  			map.addOverlay(westminster);

			var point = new GLatLng(53.201843,-2.87260);
  			var comfort = createMarker(point,"<a href=\"comfort-inn.htm\"><img src=\"images/comfort-inn-chester.jpg\" border=\"0\" width=\"430\" height=\"266\" alt=\"Comfort Inn Chester\"></a><p><span class='v12'><b>Comfort Inn Chester</b><br>74 Hoole Road, Chester CH2 3NL<br><a href=\"comfort-inn.htm\">More Info</a></span>");
  			map.addOverlay(comfort);

			var point = new GLatLng(53.185026,-2.848375);
  			var ramada = createMarker(point,"<a href=\"ramada-chester.htm\"><img src=\"thumbs/ramada-hotel-chester.jpg\" border=\"0\" width=\"390\" height=\"180\" alt=\"Ramada Hotel Chester\"></a><p class='v12'><b>Ramada Hotel Chester</b><br>Whitchurch Road, Christleton<br>Chester CH3 5QL<br><a href=\"ramada-chester.htm\">More Info</a></p>");
  			map.addOverlay(ramada);

			var point = new GLatLng(53.117546,-2.699032);
  			var peckforton = createMarker(point,"<a href=\"peckforton-castle.htm\"><img src=\"thumbs/peckforton-castle-hotel.jpg\" border=\"0\" width=\"426\" height=\"263\" alt=\"Peckforton Castle\"></a><p><span class='v12'><b>Peckforton Castle</b><br>Stone House Lane<br>Peckforton, Nr Tarporley, Cheshire CW6 9TN<p><a href=\"peckforton-castle.htm\">Peckforton Castle</a></span></p>");
  			map.addOverlay(peckforton);

			var point = new GLatLng(53.218863,-2.92298);
  			var crabwall = createMarker(point,"<a href=\"crabwall-manor.htm\"><img src=\"/pics/hotels/crabwall_manor_hotel.jpg\" border=\"0\" width=\"439\" height=\"177\" alt=\"Crabwall Manor\"></a><p><span class='v12'><b>Crabwall Manor Hotel</b><br>Parkgate Road, Mollington<br>Chester, Cheshire CH1 6NE<br><a href=\"crabwall-manor.htm\">More Info</a></span></p>");
  			map.addOverlay(crabwall);

			var point = new GLatLng(53.195698,-2.692294);
  			var willington = createMarker(point,"<a href=\"willington-hall.htm\"><img src=\"thumbs/willington-hall.jpg\" border=\"0\" width=\"360\" height=\"150\" alt=\"Willington Hall Hotel\"></a><p span class='v12'><b>Willington Hall</b><br>Willington, Tarporley<br>Cheshire CW6 0NB<br><a href=\"willington-hall.htm\">More Info</a></p>");
  			map.addOverlay(willington);

			var point = new GLatLng(53.074337,-2.807618);
  			var carden = createMarker(point,"<a href=\"de-vere-carden-park-hotel.htm\"><img src=\"images/carden-park.jpg\" border=\"0\" width=\"530\" height=\"189\" alt=\"Carden Park Hotel\"></a><p class='v12'><b>De Vere Carden Park Hotel</b><br>Cheshire, CH3 9DQ<br><a href=\"de-vere-carden-park-hotel.htm\">More Info</a></p>");
  			map.addOverlay(carden);
			
			var point = new GLatLng(53.1863,-2.894511);
  			var abode = createMarker(point,"<a href=\"abode-chester.htm\"><img src=\"../pics/hotels/abode-chester.gif\" border=\"0\" width=\"145\" height=\"70\" alt=\"Abode Hotel Chester\"></a><p span class='v12'><b>Abode Hotel Chester</b><br>The HQ<br>Corner of Grosvenor Road &amp; Nuns Road<br>Chester CH1 2AN<br><a href=\"abode-chester.htm\">More Info</a></span>");
  			map.addOverlay(abode);

			var point = new GLatLng(53.187405,-2.890096);
  			var roma = createMarker(point,"<a href=\"the-chester-bridge-hotel\"><img src=\"thumbs/hotel-roma.jpg\" border=\"0\" width=\"212\" height=\"212\" alt=\"The Chester Bridge Hotel\"></a><p><span class='v12'><b>The Chester Bridge Hotel</b><br>51 Lower Bridge Street<br>Chester CH1 1RS<br><a href=\"the-chester-bridge-hotel\">More Info</a></span>");
  			map.addOverlay(roma);

			var point = new GLatLng(53.201779,-2.870835);
  			var dene = createMarker(point,"<a href=\"dene-hotel-chester.htm\"><img src=\"thumbs/dene-hotel.jpg\" border=\"0\" width=\"212\" height=\"212\" alt=\"Hotel Dene\"></a><p><span class='v12'><b>Dene Hotel</b><br>Hoole Road, Chester CH2 3ND<br><a href=\"dene-hotel-chester.htm\">More Info</a></span>");
  			map.addOverlay(dene);

			var point = new GLatLng(53.192901,-2.893004);
  			var bull = createMarker(point,"<a href=\"the-pied-bull.htm\"><img src=\"/pics/thumbs/thumb_northgate.jpg\" border=\"0\" width=\"150\" height=\"226\" alt=\"Pied Bull\"></a><p><span class='v12'><b>The Pied Bull</b><br>57 Northgate St<br>Chester CH1 2HQ<br><a href=\"the-pied-bull.htm\">More Info</a></span>");
  			map.addOverlay(bull);

			var point = new GLatLng(53.201827,-2.872002);
  			var green = createMarker(point,"<a href=\"green-bough-hotel-chester.htm\"><img src=\"images/green-bough-chester.jpg\" border=\"0\" width=\"200\" height=\"296\" alt=\"Green Bough Hotel\"></a><p><span class='v12'><b>The Green Bough Hotel</b><br>60 Hoole Road<br> Chester CH2 3NL<br><a href=\"green-bough-hotel-chester.htm\">More Info</a></span>");
  			map.addOverlay(green);
			
			var point = new GLatLng(53.193431,-2.881816);
  			var eaton = createMarker(point,"<span class='v12'><b>Eaton Hotel</b><br>29-31 City Road, Chester, CH1 3AE<br><a href=\"eaton-hotel.htm\">More Info</a></span>");
  			map.addOverlay(eaton);

			var point = new GLatLng(53.194492,-2.881411);
  			var stafford = createMarker(point,"<span class='v12'><b>Stafford Hotel</b><br>39-43 City Road, Chester CH1 3AE<br><a href=\"stafford-hotel-chester.htm\">More Info</a></span>");
  			map.addOverlay(stafford);

			var point = new GLatLng(53.206248,-2.854825);
  			var hoole = createMarker(point,"<span class='v12'><img src='http://static.laterooms.com/hotelphotos/laterooms/2161/gallery/2161.jpg' border='0' width='200'><p><b>DoubleTree by Hilton</b><br>Warrington Road, Hoole, Chester CH2 3PD<br><a href=\"doubletree-by-hilton-chester.htm\">More Info</a></p></span>");
  			map.addOverlay(hoole);

			var point = new GLatLng(53.201563,-2.872801);
  			var hoole2 = createMarker(point,"<a href=\"chester-court-hotel.htm\"><img src=\"thumbs/chester-court-hotel.jpg\" border=\"0\" width=\"373\" height=\"200\" alt=\"Chester Court Hotel\"></a><p><span class='v12'><b>Chester Court Hotel</b><br>48 Hoole Road, Chester CH2 3NL<br><a href=\"chester-court-hotel.htm\">More Info</a></span>");
  			map.addOverlay(hoole2);

			var point = new GLatLng(53.19986,-2.875956);
  			var stone = createMarker(point,"<span class='v12'><b>Stone Villa Hotel</b><br>Stone Place, Hoole, Chester CH2 3NR<br><a href=\"stone-villa-hotel.htm\">More Info</a></span>");
  			map.addOverlay(stone);

			var point = new GLatLng(53.191507,-2.882374);
  			var ibis = createMarker(point,"<span class='v12'><b>Ibis Chester (Coming Soon)</b><br>27 Grosvenor Park Rd, Chester CH1 1QQ<br><a href=\"ibis-chester.htm\">More Info</a></span>");
			map.addOverlay(ibis);

			var point = new GLatLng(53.121859,-2.936488);
  			var pulford = createMarker(point,"<span class='v12'><b>Grosvenor Pulford</b><br>Wrexham Road, Pulford, Cheshire<br><a href=\"the-grosvenor-pulford-hotel.htm\">More Info</a></span>");
			map.addOverlay(pulford);

			var point = new GLatLng(53.189674,-2.887234);
  			var travelodge = createMarker(point,"<span class='v12'><b>Travelodge Chester</b><br>St John Street, Chester CH1 1DD<br><a href='travelodge-chester.htm'>More Info</a></span>");
			map.addOverlay(travelodge);


			OpenMarker();

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

}//end onload function

//]]>
