
/************************************************************************
	
	JavaScript Document // Google Map - Hotels
	AeroExpo UK
	
************************************************************************/

function initialize() {
	
	// Check to see if object exists
    if (document.getElementById("location-map"))
    {

//-------------- START - Section 1: Javascript for Google map 
       var map = "";
       function createMarker(point,html,icons) 
       {var emarker = new GMarker(point,icons);
        GEvent.addListener(emarker, "click", function() {
          emarker.openInfoWindowHtml(html);
        });return emarker;} 

	// Create the map
    map = new GMap2(document.getElementById("location-map"));
	
	// Map navigation control (To use small controls)
    // map.addControl(new GSmallMapControl());
	
	// Show default map controls
	map.setUIToDefault();
	 
	// Map overview box
    var ovcontrol = new GOverviewMapControl(new GSize(120,120)); 
    map.addControl(ovcontrol);
	
	// Type of map control
    map.addControl(new GMapTypeControl());

	// Set the map centre using latitude and longitude co-ordinates and set the opening zoom level of the map
    map.setCenter(new GLatLng(51.6700,-0.7900), 9);
	
//--------------- END - Section 1: Javascript for Google map 



// -------------- START - Section 2: Available markers------------------

	// EDIT the 'mydomain.co.uk' part of this line
    var mydomain = "/london/images/common/markers/";
 	 
	var mapmarker = new GIcon();
    mapmarker.image = mydomain + "Map-Marker.png";
	mapmarker.shadow = mydomain + "Pin-Shadow.png";
    mapmarker.iconSize = new GSize(16, 21);
    mapmarker.shadowSize = new GSize(40, 21);
    mapmarker.iconAnchor = new GPoint(8, 21);
    mapmarker.infoWindowAnchor = new GPoint(8, 1)
	
	var aeroexpomarker = new GIcon();
    aeroexpomarker.image = mydomain + "AeroExpo-Map-Marker.png";
	aeroexpomarker.shadow = mydomain + "Pin-Shadow.png";
    aeroexpomarker.iconSize = new GSize(16, 21);
    aeroexpomarker.shadowSize = new GSize(40, 21);
    aeroexpomarker.iconAnchor = new GPoint(8, 21);
    aeroexpomarker.infoWindowAnchor = new GPoint(8, 1)

	 
// -------------- END - Section 2: Available markers ------------------



//--------------- START - Section 3: Map marker overlays
// Markers 1 - Route 70 
// Set point co-ordinates
//   var point = new GLatLng(53.1704,-2.2488);
// This is the text that appears in the info window. Note that the double quotes are nested within the single quotes in this coding.
// Ensure there are no hard returns within the characters between the single quotes.
//   var html = '<div style="width:240px">Route 70 National Cycle Network (Local)<p>See map:<a href="http://www.cheshirecycleway.co.uk/map.html">The Cheshire Cycleway </a></p></div>';
// Choose a marker from the list above.
//   var icontype = icon70;
// Create the marker
//   var marker = createMarker(point,html,icontype);
// Add the overlay
//   map.addOverlay(marker);

	// AEROEXPO UK
    var point = new GLatLng(51.609559,-0.801331);
    var html = '<div style="width:230px"><img src="/london/images/common/AeroExpo-UK-2010-Aviation-Exhibition-Europe.png" /><h5>AeroExpo UK</h5><h6>25 - 27 June 2010</h6><p class="map-address">Wycombe Air Park<br />Buckinghamshire<br />SL7 3DP</p></div>';
    var icontype = aeroexpomarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// THE KINGS HOTEL
    var point = new GLatLng(51.742868336510526,-0.865500048828125);
    var html = '<div style="width:300px"><img src="/london/images/hotels-visitors/Kings-Hotel.jpg" /><h5>The Kings Hotel</h5><p class="map-address"><a href="http://www.kingshoteluk.com" target="_blank">www.kingshoteluk.com</a><br />Oxford Road, Stokenchurch High Wycombe, HP14 3TA<br />Tel: 01494 609 090</p><p class="map-details">This imposing 17th-centruy coaching inn at Stokenchurch has been transformed into a very contemporary and comfortable place to stay. The smart and chic interior features 43 beautifully appointed bedrooms with Italian en suite marble bathrooms, comfortable lounges and a fitness suite.</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// Danesfield House Hotel and Spa
	var point = new GLatLng(51.55292657071109,-0.8242535591125488);
    var html = '<div style="width:300px"><img src="/london/images/hotels-visitors/Danesfield.jpg" /><h5>Danesfield House Hotel and Spa</h5><p class="map-address"><a href="http://www.danesfieldhouse.co.uk" target="_blank">www.danesfieldhouse.co.uk</a><br />Henley Road, Marlow, Buckinghamshire, SL7 2EY<br />Tel: 01628 891 010</p><p class="map-details">Danesfield House is a picturesque Country House Hotel set in 65 acres of magnificent estate grounds within the Chiltern hills and overlooking the Thames. With its Four Star AA rating and Four Red Rosettes for culinary excellence Danesfield offers refined accommodation and dining. All the rooms are en suite and include the amenities that you would expect from a luxury hotel.</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// The Fox Country Inn
    var point = new GLatLng(51.67031950380473,-0.7836183868408203);
    var html = '<div style="width:300px"><img src="/london/images/hotels-visitors/Fox-Country-Inn.jpg" /><h5>The Fox Country Inn</h5><p class="map-address"><a href="http://www.foxcountryinn.co.uk" target="_blank">www.foxcountryinn.co.uk</a><br />Main Road, Ibstone, High Wycombe, HP14 3XT<br />Tel: 01491 639 333</p><p class="map-details">Nestled amongst the rolling Chiltern Hills, surrounded by beautiful woodland, the Fox Country Inn makes an ideal base for visiting AeroExpo UK. Offering Olde English charm with a contemporary twist the bar, restaurant and rooms present a warm and comfortable atmosphere. Guests can enjoy a snack at the bar or choose between the traditional pub or dining menus in the restaurant sourced from local, seasonal produce.</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);
	
//--------------- END - Section 3: Map marker overlays



// If object exists - end bracket
  }
}