
/************************************************************************
	
	JavaScript Document // Google Map - Hotels
	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.686289508355735,14.146270751953125), 8);
	
//--------------- 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);

	// Hotel MODRÝ HROZEN
    var point = new GLatLng(49.68777491515999,14.009971618652344);
    var html = '<div style="width:240px"><h5>Hotel MODRÝ HROZEN</h5><p class="maps">náměstí Tomáše Garrigue Masaryka 143,<br />26101 Příbram<br />46 bed capacity with private lounge and restaurant.<br/>Phone: +420 318 628 007<br />Email: <a href="mailto:hotel@modryhrozen.cz">hotel@modryhrozen.cz</a><br><a href="http://www.modryhrozen.cz" target="_blank">www.modryhrozen.cz</a></p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// Hotel BELVEDERE
	var point = new GLatLng(49.68183301561201,14.001023769378662);
    var html = '<div style="width:240px"><h5>Hotel BELVEDERE</h5><p class="maps">Legionářů 401,<br />26101 Příbram<br />100 bed capacity with restaurant, café and two lounges. Live music every Friday and Saturday evenings. Possibility of accommodating dogs.<br />Phone: +420 318 625 743<br />Email: <a href="mailto:avepb@volny.cz">avepb@volny.cz</a><br><a href="http://www.belvedere-hotel.cz" target="_blank">www.belvedere-hotel.cz</a></p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// Hotel PLAVECKÝ BAZÉN
    var point = new GLatLng(49.678709062226936,14.002547264099121);
    var html = '<div style="width:240px"><h5>Hotel PLAVECKÝ BAZÉN</h5><p class="maps">Legionářů 378,<br />26101 Příbram VII<br />32 bed capacity with snack bar. Indoor and outdoor swimming pools, gym and sauna. Daily disco.<br />Phone: +420 318 624 269</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);

	// Hotel VLČAVA
    var point = new GLatLng(49.55698276379636,13.9516282081604);
    var html = '<div style="width:240px"><h5>Hotel VLČAVA</h5><p class="maps">Náměstí 68,<br />26272 Březnice<br />24 Bed capacity, all rooms with private bathroom. Onsite restaurant, café and bar.<br />Phone: +420 318 682 061</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);
	
	// Hotel HRAZANY
    var point = new GLatLng(49.73170575954514,14.39507246017456);
    var html = '<div style="width:240px"><h5>Hotel HRAZANY</h5><p class="maps">Hrazany 11,<br />26401 Radíč<br />12 double rooms, 6 double rooms with extra beds. Hunting style restaurant, café and bar. Outdoor pool, tennis & volleyball courts, billiards and mini golf.<br />Phone: +420 318 864 128</p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);
	
	// Hotel KRATOCHVÍL
    var point = new GLatLng(49.781610441391386,13.98634672164917);
    var html = '<div style="width:240px"><h5>Hotel KRATOCHVÍL</h5><p class="maps">Slavíkova 159,<br />26223 Jince<br />48 bed capacity, 2 and 3 Bed rooms with private bathroom. 60 seat restaurant. Discos every Friday and Saturday.<br />Phone: +420 318 692 280<br /><a href="http://www.hotelkratochvil.ic.cz" target="_blank">www.hotelkratochvil.ic.cz</a></p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);
	
	// Hotel U JEZERA
    var point = new GLatLng(49.552180331589504,14.21133041381836);
    var html = '<div style="width:240px"><h5>Hotel U JEZERA</h5><p class="maps">26256 Klučenice<br />60 Bed capacity in double and quadruple rooms. Restaurant, sauna, outdoor pool, rental boats and mountain bikes, fishing equipment and permit to fish.<br />Phone: +420 318 853 334<br />Email: <a href="mailto:ujezera@pba.cz">ujezera@pba.cz</a><br><a href="http://www.hotelujezera.cz" target="_blank">www.hotelujezera.cz</a></p></div>';
    var icontype = mapmarker;
    var marker = createMarker(point,html,icontype);
    map.addOverlay(marker);
	
	// Mandarin Oriental Hotel
    var point = new GLatLng(50.08454583377251, 14.405758380889893);
    var html = '<div style="width:240px"><h5>Mandarin Oriental Hotel</h5><p class="maps">Mala Strana, Prague<br />99 rooms and suites blending historic character with contemporary style. Hidden in the quiet cobbled streets of Mala Strana Mandarin Oriental has all the facilities you would expect including restaurant, spa and fitness centre.<br />Phone: +420 233 088 888<br />Email: <a href="mailto:moprg-reservations@mohg.com">moprg-reservations@mohg.com</a><br><a href="http://www.mandarinoriental.com/prague/" target="_blank">www.mandarinoriental.com</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
  }
}
