// JavaScript Document www.1bws.com directions
    //<![CDATA[

    if (GBrowserIsCompatible()) {
      
      var sidebar_html = "";
      var gmarkers = [];
      var htmls = [];
      var i = 0;


      function createMarker(point,name,html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        gmarkers[i] = marker;
        htmls[i] = html;
        sidebar_html += '<a href="javascript:myclick(' + i + ')">' + name + '</a><br>';
        i++;
        return marker;
      }

      function myclick(i) {
        gmarkers[i].openInfoWindowHtml(htmls[i]);
      }

      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(55.96937933555525, -3.6249732971191406), 11);
    
      var point = new GLatLng(55.96135683707825, -3.6411094665527343);
      var marker = createMarker(point,'<strong>Belsyde Country House.</strong>','<strong>Belsyde Country House.</strong><br><br>Award Winning<br>Bed &amp; Breakfast Accommodation.<br>Linlithgow, Near Edinburgh<br><br><br><a href="http://www.belsydehouse.co.uk">Return to Home Page</a>')
      map.addOverlay(marker);

	  var point = new GLatLng(55.96481584277326,-3.644886016845703);
      var marker = createMarker(point,'Bridge At Union Canal','<strong>Bridge Over Union Canal</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>crossing over the Union canal,<br>drive about 100 yards<br>and turn left into the driveway<br>Belsyde Bed and Breakfast is at the top of the private drive.')
      map.addOverlay(marker);

	  var point = new GLatLng(55.96841864495853,-3.6333847045898437);
      var marker = createMarker(point,'A706 from Linlithgow','<strong>A706 from Linlithgow</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Turn right at the roundabout onto the A706. <BR>Follow the road for about 1 mile, crossing over <BR>the Union canal, and turn left into the driveway at Belsyde Lodge. <BR>Belsyde Bed and Breakfast is at the top of the private drive.')
      map.addOverlay(marker);

	  var point = new GLatLng(55.97622356563909,-3.5974645614624023);
      var marker = createMarker(point,'Linlithgow Train Station','<strong>Linlithgow Train Station</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Just a 5 minute taxi drive<br>from Belsyde Country House')
      map.addOverlay(marker);

	  var point = new GLatLng(55.97579133429813,-3.6060047149658203);
      var marker = createMarker(point,'Linlithgow Bus Station','<strong>Linlithgow Bus Station</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Just a 5 minute taxi drive<br>from Belsyde Country House')
      map.addOverlay(marker);
	  
  	  var point = new GLatLng(55.98959633736714,-3.6902904510498047);
      var marker = createMarker(point,'M9 Junction 4 ','<strong>M9 Junction 4 </strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Take Junction 4 from the M9 and at the top<br>of the slip-road take the third exit off the <br>roundabout, signposted Linlithgow A803.<br><br><br><a href="#from_Stirling">More Directions</a>')
      map.addOverlay(marker);
	  
  	  var point = new GLatLng(55.98779596426292,-3.679475784301758);
      var marker = createMarker(point,'A803 from Stirling','<strong>A803 from Stirling</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Follow the road for just over two miles to<br>the first set of traffic lights. Turn right at  <br>these traffic lights signposted to Lanark. <br><br><br><a href="#from_Stirling">More Directions</a>')
      map.addOverlay(marker);

  	  var point = new GLatLng(55.9873398564337,-3.5581541061401367);
      var marker = createMarker(point,'M9 Junction 3 ','<strong>M9 Junction 3 </strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Take Junction 3 from the M9 and turn left at<br>the end of the slip-road onto the A803. At<br>the small roundabout at the beginning of <br>Linlithgow turn right. Drive through<br>Linlithgow town centre.<br><br><br><a href="#from_Edinburgh">More Directions</a>')
      map.addOverlay(marker);

  	  var point = new GLatLng(55.9865716626645,-3.5650634765625);
      var marker = createMarker(point,'A803 from Edinburgh','<strong>A803 from Edinburgh</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>At the small roundabout at the beginning of<br>Linlithgow turn right. Drive through <br>Linlithgow town centre.<br>Turn left at the roundabout onto<br>the A706 signposted to Lanark.<br><br><br><a href="#from_Edinburgh">More Directions</a>')
      map.addOverlay(marker);


      var point = new GLatLng(55.94689292347294,-3.3676528930664062);
      var marker = createMarker(point,'Edinburgh Airport','<strong>Edinburgh Airport</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Take Junction 3 from the M9 and turn left at<br>the end of the slip-road onto the A803. At<br>the small roundabout at the beginning of <br>Linlithgow turn right. Drive through<br>Linlithgow town centre.<br><br><br><a href="#from_Edinburgh">More Directions</a>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(55.95186700504915,-3.19077730178833);
      var marker = createMarker(point,'Edinburgh Train Station','<strong>Edinburgh Train Station</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>It is approx 20 minutes<br>to Linlithgow train Station')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(56.02390741587656,-3.440265655517578);
      var marker = createMarker(point,'Rosyth Ferry Terminal','<strong>Rosyth Ferry Terminal</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br><br><br><a href="#from_Rosyth">More Directions</a>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(55.997312986826664,-3.4041953086853027);
      var marker = createMarker(point,'Forth Road Bridge','<strong>Forth Road Bridge</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br><br><br><a href="#from_Rosyth">More Directions</a>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(55.86418644180637,-4.433498382568359);
      var marker = createMarker(point,'Glasgow Airport','<strong>Glasgow Airport</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br><br><br><a href="#from_Glasgow">More Directions</a>')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(55.86115196314761,-4.244391918182373);
      var marker = createMarker(point,'Glasgow Train Station','<strong>Glasgow Train Station</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>It is approx 30 minutes<br>to Linlithgow Station')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(56.00989874015205,-4.59503173828125);
      var marker = createMarker(point,'Loch Lomond','<strong>Loch Lomond</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Is a great tourist attraction<br>and is within easy reach from Linlithgow')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(55.89187112734951,-3.541717529296875);
      var marker = createMarker(point,'Livingston','<strong>Livingston</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Livingston is approx a 20 minutes<br>by car')
      map.addOverlay(marker);
	  
	  var point = new GLatLng(56.11914655914709,-3.9403152465820312);
      var marker = createMarker(point,'Stirling','<strong>Stirling</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Follow the signs for the M9. Stay on the M9<br>until Junction 4. Take Junction 4 from the M9<br>and at the top of the slip-road take the third<br>exit off the roundabout, signposted<br>Linlithgow A803.<br><br><br><a href="#from_Stirling">More Directions</a>')
      map.addOverlay(marker);
	  
  	  var point = new GLatLng(56.39490438293533,-3.429107666015625);
      var marker = createMarker(point,'Perth','<strong>Perth</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Follow the A90/M90 towards the Forth Road Bridge<br> Then follow the signs for the M9<br><br><br><a href="#from_Rosyth">More Directions</a>')
      map.addOverlay(marker);


	  var point = new GLatLng(56.470835482929715,-2.98004150390625);
      var marker = createMarker(point,'Dundee','<strong>Dundee</strong><br><img src="../accom_files/spacer.gif" width="287" height="4"><br>Follow the A90/M90 towards the Forth Road Bridge<br> Then follow the signs for the M9<br><br><br><a href="#from_Rosyth">More Directions</a>')
      map.addOverlay(marker);
	  
  
      document.getElementById("sidebar").innerHTML = sidebar_html;


      map.addControl(new GOverviewMapControl(new GSize(270,180)));

      function positionOverview(x,y) {
        var omap=document.getElementById("map_overview");
        omap.style.left = x+"px";
        omap.style.top = y+"px";
        
        omap.firstChild.style.border = "1px solid gray";

        omap.firstChild.firstChild.style.left="4px";
        omap.firstChild.firstChild.style.top="4px";
        omap.firstChild.firstChild.style.width="280px";
        omap.firstChild.firstChild.style.height="190px";
      }

      setTimeout("positionOverview(430,364)",1);

    }
    
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
	
	

    // Map details www.1bws.com


    //]]>
