
/************************************************************************
	
	JavaScript Document // Google Map - Pensions
	Festival of Aviation
	
************************************************************************/

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(49.67918113916683,14.005165100097656), 10);
	
//--------------- END - Section 1: Javascript for Google map 



// -------------- START - Section 2: Available markers------------------

	// EDIT the 'mydomain.co.uk' part of this line
    var mydomain = "http://www.salted.org.uk/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)

	 
// -------------- 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);

	// Pension HELIOS
    var point = new GLatLng(49.59320154587364,14.00132417678833);
    var html = '<div style="width:240px"><h5>Pension HELIOS</h5><p class="maps">26281, Tochovice 7<br />2 & 4 Bed rooms with private bathroom, TV and telephone. Restaurant, lounges, sauna and games facilities available. Dogs welcome.<br/>Phone: +420 318 682 802</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// Pension KUNC
	var point = new GLatLng(49.650022,13.907828);
    var html = '<div style="width:240px"><h5>Pension KUNC</h5><p class="maps">Laz 215, 262 41 Bohutín<br />Self-catering accommodation sleeping up to 11 with kitchen, living room, dining room and private parking. Wheelchair access. Dogs welcome.<br />Phone: +420 318 676 319</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// Pension VALEŠINKA
    var point = new GLatLng(49.68835795963195,14.015271663665771);
    var html = '<div style="width:240px"><h5>Pension VALEŠINKA</h5><p class="maps">Na Valešince 175, 261 01 Příbram II<br />Sleeps up to 12 with 4 bedrooms and private kitchen and dining room.<br />Phone: +420 602 591 145</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// Pension U Kocab
    var point = new GLatLng(49.688056,14.03824);
    var html = '<div style="width:240px"><h5>Pension U Kocab</h5><p class="maps">Polní 30, Nová Hospoda, Příbram IX 261 01<br />4 rooms with 2 Beds and 1 room with 4 Beds with shared bathroom. Self-catering kitchen and dining facilities. Big garden and private parking.<br />Phone: +420 722 777 717<br /><a href="http://www.sweb.cz/ukocaby" target="_blank">www.sweb.cz/ukocaby</a></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
  }
}
