//this file changed on 25 may 2010 so that when clicking on sponsor
// there can be a choice of going to map location
// or opening sponsor's website in new browser window

// global variables
var map;
var sponsorMarkersInfoWindow = [];

//var point;
var html;

var tooltip;
var icon;
//var marker;

var Icon = new GIcon();
Icon.shadow = "http://www.whatsthere.co.uk/icons/shadow50.png";
Icon.iconSize = new GSize(22, 22);
Icon.shadowSize = new GSize(50, 22);
Icon.iconAnchor = new GPoint(11, 11);
Icon.infoWindowAnchor = new GPoint(5, 1);

// end global variables

//////////////////////// set up markers and tooltips hardwired for now
//////// Start of Golf Icons for Golf Course Maps


var icon_golfbunker = new GIcon(Icon);
icon_golfbunker.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_bunker.png";

var icon_golfbunkerrem = new GIcon(Icon);
icon_golfbunkerrem.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_bunker_removed.png";

var icon_golfcamera = new GIcon(Icon);
icon_golfcamera.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_camera.png";

var icon_golfgreen = new GIcon(Icon);
icon_golfgreen.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_green.png";

var icon_golfgreenrem = new GIcon(Icon);
icon_golfgreenrem.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_green_removed.png";

var icon_golftee1 = new GIcon(Icon);
icon_golftee1.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee1.png";

var icon_golftee2 = new GIcon(Icon);
icon_golftee2.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee2.png";

var icon_golftee3 = new GIcon(Icon);
icon_golftee3.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee3.png";

var icon_golftee4 = new GIcon(Icon);
icon_golftee4.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee4.png";

var icon_golftee5 = new GIcon(Icon);
icon_golftee5.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee5.png";

var icon_golftee6 = new GIcon(Icon);
icon_golftee6.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee6.png";

var icon_golftee7 = new GIcon(Icon);
icon_golftee7.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee7.png";

var icon_golftee8 = new GIcon(Icon);
icon_golftee8.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee8.png";

var icon_golftee9 = new GIcon(Icon);
icon_golftee9.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee9.png";

var icon_golftee10 = new GIcon(Icon);
icon_golftee10.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee10.png";

var icon_golftee11 = new GIcon(Icon);
icon_golftee11.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee11.png";

var icon_golftee12 = new GIcon(Icon);
icon_golftee12.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee12.png";

var icon_golftee13 = new GIcon(Icon);
icon_golftee13.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee13.png";

var icon_golftee14 = new GIcon(Icon);
icon_golftee14.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee14.png";

var icon_golftee15 = new GIcon(Icon);
icon_golftee15.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee15.png";

var icon_golftee16 = new GIcon(Icon);
icon_golftee16.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee16.png";

var icon_golftee17 = new GIcon(Icon);
icon_golftee17.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee17.png";

var icon_golftee18 = new GIcon(Icon);
icon_golftee18.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_tee18.png";

var icon_golfvideo = new GIcon(Icon);
icon_golfvideo.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_video.png";

var icon_golfwater = new GIcon(Icon);
icon_golfwater.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_water.png";

var icon_golfwaterrem = new GIcon(Icon);
icon_golfwaterrem.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_water_removed.png";

var icon_golfchange = new GIcon(Icon);
icon_golfchange.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_change.png";

var icon_golfrange = new GIcon(Icon);
icon_golfrange.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_drivingrange.png";

var icon_golfclubhouse = new GIcon(Icon);
icon_golfclubhouse.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_clubhouse.png";

var icon_golfstarters = new GIcon(Icon);
icon_golfstarters.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_startersbox.png";

var icon_golfprofessional = new GIcon(Icon);
icon_golfprofessional.image = "http://www.golfcoursemaps.co.uk/icons_golf/icon_golf_professional.png";




/////////// End of Golf Icons for Golf Course Maps

/////////Start of General Icons for Golf Course Maps


var icon_accom = new GIcon(Icon);
icon_accom.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_accom.png";

var icon_eatery = new GIcon(Icon);
icon_eatery.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_eatery.png";

var icon_retail = new GIcon(Icon);
icon_retail.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_retail_single.png";

var icon_accomm_sc = new GIcon(Icon);
icon_accomm_sc.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_accomm_sc.png";

var icon_accomm_hotel = new GIcon(Icon);
icon_accomm_hotel.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_accomm_hotel.png"; 

var icon_accomm_youth = new GIcon(Icon);
icon_accomm_youth.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_accomm_youth.png";

var icon_accomm_ih = new GIcon(Icon);
icon_accomm_ih.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_accomm_ih.png";

var icon_accomm_bb = new GIcon(Icon);
icon_accomm_bb.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_accomm_bb.png";

var icon_accomm_gh = new GIcon(Icon);
icon_accomm_gh.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_accomm_gh.png";

var icon_motors = new GIcon(Icon);
icon_motors.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_motors.png";

var icon_dtm = new GIcon(Icon);
icon_dtm.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_dtm.png";

var icon_service = new GIcon(Icon);
icon_service.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_service.png";

var icon_golfer = new GIcon(Icon);
icon_golfer.image = "http://www.golfcoursemaps.co.uk/icons_general/icon_golfer.png";


//////// End of General Icons for Golf Course Maps///////////




function createMarker(point,html,tooltip,icon) {
var marker = new GMarker(point,{icon:icon, title:tooltip});
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
}); // end function
return marker;
} // end createMarker

function openInfoWindowLink(url,name){
window.open(url,name,'height=390,width=510,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
} // end openInfoWindowLink()




//////////////end clicking on map icon centres map on ad location ////



///// jquery functions to kick in when page ready //////////////////
$(document).ready(function() {

    if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(56.41231, -2.90463), 15);
 
        //instance of the GMap2 
        map.addControl(new GLargeMapControl());
       
        
        // Add the Terrain Map Type
        map.addMapType(G_PHYSICAL_MAP);
        // Create a Hierarchical map type control
        var hierarchy = new GHierarchicalMapTypeControl();
        // make Google Satellite Hybrid be the satellite default
        hierarchy.addRelationship(G_SATELLITE_MAP, G_HYBRID_MAP, null, true);
        // add that control to the map
        map.addControl(hierarchy);
 
        // === set terrain as default ===
        map.setMapType(G_SATELLITE_MAP); 
        // === end set terrain ====




// ======== set up Golf markers for Drumoig ======





point = new GLatLng(56.41550,-2.90916);
html = '<div class="infowindow">Hole 1 &nbsp;&nbsp;&nbsp;Mausoleum<br />Par 4 &nbsp;&nbsp;&nbsp; 432yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/1sttee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'1sttee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/1sttee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41550,-2.90916,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41550,-2.90916,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 1  Mausoleum";
icon = icon_golftee1;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41633,-2.90425);
html = '<div class="infowindow">Hole 2 &nbsp;&nbsp;&nbsp;Arrowhead<br />Par 3 &nbsp;&nbsp;&nbsp; 218yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/2ndtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'2ndtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/2ndtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41633,-2.90425,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41633,-2.90425,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 2  Arrowhead";
icon = icon_golftee2;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.415336,-2.905278);
html = '<div class="infowindow">Hole 3 &nbsp;&nbsp;&nbsp;Cowbakie<br />Par 5 &nbsp;&nbsp;&nbsp; 563yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/3rdtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'3rdtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/3rdtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.415336,-2.905278,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.415336,-2.905278,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 3  Cowbakie";
icon = icon_golftee3;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.414117,-2.897331);
html = '<div class="infowindow">Hole 4 &nbsp;&nbsp;&nbsp;Tentsmuir<br />Par 4 &nbsp;&nbsp;&nbsp; 430yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/4thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'4thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/4thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.414117,-2.897331,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.414117,-2.897331,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 4  Tentsmuir";
icon = icon_golftee4;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41226,-2.89537);
html = '<div class="infowindow">Hole 5 &nbsp;&nbsp;&nbsp;East Quarry<br />Par 5 &nbsp;&nbsp;&nbsp; 565yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/5thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'5thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/5thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41226,-2.89537,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41226,-2.89537,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 5  East Quarry";
icon = icon_golftee5;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.40984,-2.90130);
html = '<div class="infowindow">Hole 6 &nbsp;&nbsp;&nbsp;Downwind<br />Par 4 &nbsp;&nbsp;&nbsp; 430yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/6thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'6thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/6thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.40984,-2.90130,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.40984,-2.90130,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 6  Downwind";
icon = icon_golftee6;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41259,-2.89767);
html = '<div class="infowindow">Hole 7 &nbsp;&nbsp;&nbsp;Marshes<br />Par 4 &nbsp;&nbsp;&nbsp; 379yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/7thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'7thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/7thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41259,-2.89767,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41259,-2.89767,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 7  Marshes";
icon = icon_golftee7;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41143,-2.90351);
html = '<div class="infowindow">Hole 8 &nbsp;&nbsp;&nbsp;Whinstane<br />Par 4 &nbsp;&nbsp;&nbsp; 358yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/8thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'8thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/8thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41143,-2.90351,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41143,-2.90351,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 8  Whinstane";
icon = icon_golftee8;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41091,-2.90933);
html ='<div class="infowindow">Hole 9 &nbsp;&nbsp;&nbsp;Loch<br />Par 4 &nbsp;&nbsp;&nbsp; 434yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/9thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'9thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/9thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41091,-2.90933,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41091,-2.90933,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 9  Loch";
icon = icon_golftee9;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41418,-2.91235);
html ='<div class="infowindow">Hole 10 &nbsp;&nbsp;&nbsp;Comerton<br />Par 4 &nbsp;&nbsp;&nbsp; 288yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/10thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'10thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/10thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41418,-2.91235,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41418,-2.91235,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 10  Comerton";
icon = icon_golftee10;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41231,-2.91355);
html = '<div class="infowindow">Hole 11 &nbsp;&nbsp;&nbsp;Windmill<br />Par 3 &nbsp;&nbsp;&nbsp; 172yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/11thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'11thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/11thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41231,-2.91355,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41231,-2.91355,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 11  Windmill";
icon = icon_golftee11;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41078,-2.912353);
html = '<div class="infowindow">Hole 12 &nbsp;&nbsp;&nbsp;Pickletillum<br />Par 5 &nbsp;&nbsp;&nbsp; 575yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/12thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'12thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/12thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41078,-2.912353,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41078,-2.912353,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 12  Pickletillum";
icon = icon_golftee12;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41081,-2.90346);
html = '<div class="infowindow">Hole 13 &nbsp;&nbsp;&nbsp;West Quarry<br />Par 4 &nbsp;&nbsp;&nbsp; 300yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/13thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'13thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/13thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41081,-2.90346,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41081,-2.90346,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 13  West Quarry";
icon = icon_golftee13;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.40838,-2.90026);
html ='<div class="infowindow">Hole 14 &nbsp;&nbsp;&nbsp;Hawthorn Tree<br />Par 3 &nbsp;&nbsp;&nbsp; 202yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/14thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'14thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/14thtee234.jpg" width="234" height="176" alt="" /></a><br /><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.40838,-2.90026,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.40838,-2.90026,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 14  Hawthorn Tree";
icon = icon_golftee14;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.40915,-2.89924);
html = '<div class="infowindow">Hole 15 &nbsp;&nbsp;&nbsp;Craigie<br />Par 5 &nbsp;&nbsp;&nbsp; 582yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/15thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'15thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/15thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.40915,-2.89924,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.40915,-2.89924,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 15  Craigie";
icon = icon_golftee15;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41222,-2.89314);
html = '<div class="infowindow">Hole 16 &nbsp;&nbsp;&nbsp;Fosters<br />Par 3 &nbsp;&nbsp;&nbsp; 148yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/16thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'16thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/16thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41222,-2.89314,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41222,-2.89314,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 16  Fosters";
icon = icon_golftee16;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41338,-2.89632);
html = '<div class="infowindow">Hole 17 &nbsp;&nbsp;&nbsp;Kettlehole<br />Par 5 &nbsp;&nbsp;&nbsp; 539yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/17thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'17thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/17thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41338,-2.89632,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41338,-2.89632,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 17  Kettlehole";
icon = icon_golftee17;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41368,-2.90649);
html = '<div class="infowindow">Hole 18 &nbsp;&nbsp;&nbsp;Tussocks<br />Par 3 &nbsp;&nbsp;&nbsp; 220yds<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/18thtee500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'18thtee\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/18thtee234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41368,-2.90649,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41368,-2.90649,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hole 18  Tussocks";
icon = icon_golftee18;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41343,-2.89408);
html = '<div class="infowindow">Original 4th Green Removed<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/4tholdgreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'4tholdgreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/4tholdgreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41343,-2.89408,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41343,-2.89408,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Original 4th Green Removed";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41307,-2.89417);
html = '<div class="infowindow">Bunker moved on 4th Hole<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/4thbunker500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'4thbunker\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/4thbunker234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41307,-2.89417,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41307,-2.89417,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Bunker moved on 4th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41233,-2.89248);
html = '<div class="infowindow">New Green on 4th Hole<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/4thgreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'4thgreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/4thgreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41233,-2.89248,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41233,-2.89248,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="New Green on 4th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.40936,-2.90025);
html = '<div class="infowindow">New Bunker in front of Green on 5th Hole<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/5thnewbunker500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'5thnewbunker\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/5thnewbunker234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.40936,-2.90025,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.40936,-2.90025,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="New Bunker infront of Green on 5th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.40901,-2.90075);
html = '<div class="infowindow">New Bunker behind Green on 5th Hole<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/5thgreensidebunker500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'5thgreensidebunker\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/5thgreensidebunker234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.40901,-2.90075,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.40901,-2.90075,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="New Bunker behind Green on 5th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41331,-2.91438);
html = '<div class="infowindow">New Water Hazard on 10th Hole<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/10thwaterhazard500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'10thwaterhazard\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/10thwaterhazard234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41331,-2.91438,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41331,-2.91438,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="New Water Hazard on 10th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41164,-2.91344);
html = '<div class="infowindow">Bridge over Burn<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/11thbridge500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'11thbridge\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/11thbridge234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41164,-2.91344,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41164,-2.91344,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Bridge over Burn";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41138,-2.91190);
html = '<div class="infowindow">Relocated Green on the 11th Hole<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/11thgreensidebunker500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'11thgreensidebunker\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/11thgreensidebunker234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41138,-2.91190,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41138,-2.91190,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Relocated Green on the 11th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41082,-2.91179);
html = '<div class="infowindow">Bunkers removed on 12th Fairway<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/12tholdbunkers500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'12tholdbunkers\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/12tholdbunkers234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41082,-2.91179,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41082,-2.91179,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Bunkers removed on 12th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41011,-2.91035);
html = '<div class="infowindow">Green removed on 12th Fairway<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/12tholdgreenloc500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'12tholdgreenloc\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/12tholdgreenloc234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41011,-2.91035,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41011,-2.91035,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Green removed on 12th Fairway";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41326,-2.90389);
html = '<div class="infowindow">New Bunker &amp; Water Hazard on 17th Hole<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/17thbunkercreek500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'17thbunkerwaterhazard\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/17thbunkerwaterhazard234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41326,-2.90389,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41326,-2.90389,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="New Bunker &amp; Water Hazard on 17th Hole";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41387,-2.90893);
html = '<div class="infowindow">Bunker moved closer to Green<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/18thgreensidebunker500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'18thgreensidebunker\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/18thgreensidebunker234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41387,-2.90893,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41387,-2.90893,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Bunker moved closer to Green";
icon = icon_golfchange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);



point = new GLatLng(56.41175,-2.912942);
html = '<div class="infowindow">View to green on the 11th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/11thviewtogreen.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'11thviewtogreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/11thviewtogreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41175,-2.912942,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41175,-2.912942,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="View to green on the 11th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);



point = new GLatLng(56.410336,-2.909133);
html = '<div class="infowindow">Warning bell on the 12th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/12thsafetybell500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'12thwarningbell\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/12thsafetybell234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.410336,-2.909133,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.410336,-2.909133,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Warning bell on the 12th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.40999,-2.91064);
html = '<div class="infowindow">View to green on the 12th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/12thviewtogreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'12thviewtogreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/12thviewtogreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.40999,-2.91064,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.40999,-2.91064,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="View to green on the 12th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.409306,-2.901814);
html = '<div class="infowindow">View to green on the 13th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/13thviewtogreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'13thviewtogreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/13thviewtogreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.409306,-2.901814,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.409306,-2.901814,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="View to green on the 13th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);



point = new GLatLng(56.413494,-2.903522);
html = '<div class="infowindow">Warning bell on the 17th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/17thsafetybell500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'17thsafetybell\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/17thsafetybell234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.413494,-2.903522,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.413494,-2.903522,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Warning bell on the 17th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);



point = new GLatLng(56.413603,-2.910536);
html = '<div class="infowindow">Green on the 18th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/18thgreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'18thgreen2\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/18thgreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.413603,-2.910536,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.413603,-2.910536,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Green on the 18th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.412914,-2.893067);
html = '<div class="infowindow">Green on the 4th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/4thviewtogreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'4thviewtogreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/4thviewtogreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.412914,-2.893067,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.412914,-2.893067,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Green on the 18th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);



point = new GLatLng(56.411825,-2.9016);
html = '<div class="infowindow">View of green on the 7th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/7thviewtogreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'7thviewtogreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/7thviewtogreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.411825,-2.9016,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.411825,-2.9016,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="View of green on the 7th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.410861,-2.907617);
html = '<div class="infowindow">View of green on the 8th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/8thviewtogreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'8thviewtogreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/8thviewtogreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.410861,-2.907617,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.410861,-2.907617,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="View of green on the 8th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41393,-2.91143);
html = '<div class="infowindow">View of green on the 9th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/9thgreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'9thviewtogreen\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/9thgreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41393,-2.91143,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41393,-2.91143,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="View of green on the 9th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41429,-2.90941);
html = '<div class="infowindow">Clubhouse<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/hotel600.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'clubhouse\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/hotel234.jpg" width="234" height="156" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41429,-2.90941,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41429,-2.90941,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Clubhouse";
icon = icon_golfclubhouse;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41741,-2.91503);
html = '<div class="infowindow">Driving Range<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/drumoigrange.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'drivingrange\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/drumoigrange.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41741,-2.91503,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41741,-2.91503,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Driving Range";
icon = icon_golfrange;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41670,-2.90669);
html = '<div class="infowindow">Bunker on the 1st<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/1stbunker500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'1stbunker500\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/1stbunker234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41670,-2.90669,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41670,-2.90669,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Bunker on the 1st";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41098,-2.90621);
html = '<div class="infowindow">Bunkers on the 8th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/8thbunkers500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'8thbunkers500\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/8thbunkers234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41098,-2.90621,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41098,-2.90621,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Bunkers on the 8th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);

point = new GLatLng(56.41118,-2.89730);
html = '<div class="infowindow">View to the green on the 5th<br /><a href ="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/large/5thviewtogreen500.jpg" title="Click on image to enlarge" onclick="openInfoWindowLink(this.href,\'8thbunkers500\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/drumoigphotos/small/5thviewtogreen234.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41118,-2.89730,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41118,-2.89730,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="View to the green on the 5th";
icon = icon_golfcamera;
marker = createMarker(point,html,tooltip,icon);
map.addOverlay(marker);






// ======= end of Golf Markers ==========


// ======== set up Sponsor Slot markers for Drumoig ======

//////// these sponsor slots are tied into the data fields later...

//========  Sponsor Slot [0] -- driving range ======
point = new GLatLng(56.41741,-2.91503);
html = '<div class="infowindow"><a href ="http://www.drumoiggolfhotel.com/golfRange.htm" title="opens the drumoig website in a new window" onclick="openInfoWindowLink(this.href,\'drivingrange\'); return false;">Driving Range</a><br /><a href ="http://www.drumoiggolfhotel.com/golfRange.htm" title="opens the drumoig website in a new window" onclick="openInfoWindowLink(this.href,\'drivingrange\'); return false;"><img src="http://www.golfcoursemaps.co.uk/drumoig/iwi_drumoig/drumoig_driving_range_234_176.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.41741,-2.91503,18)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.41741,-2.91503,15)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Driving Range";
icon = icon_golfrange;
marker = createMarker(point,html,tooltip,icon);
sponsorMarkersInfoWindow.push(html);
map.addOverlay(marker);


//========  Sponsor Slot [1] -- hi tech services ======

point = new GLatLng(56.46643,-2.86394);
html = '<div class="infowindow"><a href="http://www.hi-techacousticservices.co.uk" title="opens the Hi Tech Acoustic Services website in new window" onclick="openInfoWindowLink(this.href,\'hitechacoustic\'); return false;" >Hi Tech Acoustic Services</a><br /> <a href="http://www.hi-techacousticservices.co.uk" title="opens Hi Tech Acoustic Services website in new window" onclick="openInfoWindowLink(this.href,\'hitechacoustic\'); return false;" ><img src="http://www.golfcoursemaps.co.uk/drumoig/iwi_drumoig/hitech_acoustics_234_176.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.46643,-2.86394,19)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.46643,-2.86394,13)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Hi Tech Acoustic Services";
icon = icon_service;
marker = createMarker(point,html,tooltip,icon);
sponsorMarkersInfoWindow.push(html);
map.addOverlay(marker);



//========  Sponsor Slot [2] -- drumoig turf ======
point = new GLatLng(56.40709,-2.90127);
html = '<div class="infowindow"><a href="http://www.drumoigturf.com" title="opens the Drumoig Turf website in new window" onclick="openInfoWindowLink(this.href,\'drumoigturf\'); return false;" >Drumoig Turf</a><br /> <a href="http://www.drumoigturf.com" title="opens Drumoig Turf website in new window" onclick="openInfoWindowLink(this.href,\'drumoigturf\'); return false;" ><img src="http://www.golfcoursemaps.co.uk/drumoig/iwi_drumoig/drumoig_turf_234_176.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.40709,-2.90127,19)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.40709,-2.90127,13)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Drumoig Turf";
icon = icon_service;
marker = createMarker(point,html,tooltip,icon);
sponsorMarkersInfoWindow.push(html);
map.addOverlay(marker);

//========  Sponsor Slot [3] -- clear view ======
point = new GLatLng(56.18184,-3.20744);
html = '<div class="infowindow"><a href="http://www.clearviewscotland.co.uk" title="opens the Clear View Cleaning website in new window" onclick="openInfoWindowLink(this.href,\'clearview\'); return false;" >Clear View Cleaning </a><br /> <a href="http://www.clearviewscotland.co.uk" title="opens Clear View Cleaning  website in new window" onclick="openInfoWindowLink(this.href,\'clearview\'); return false;" ><img src="http://www.golfcoursemaps.co.uk/drumoig/iwi_drumoig/clear_view_234_176.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.18184,-3.20744,19)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.18184,-3.20744,13)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
tooltip ="Clear View  Cleaning";
icon = icon_service;
marker = createMarker(point,html,tooltip,icon);
sponsorMarkersInfoWindow.push(html);
map.addOverlay(marker);

//========  Sponsor Slot [4] -- kingdom blinds ======
//point = new GLatLng(56.21167,-3.16016);
//html = '<div class="infowindow"><a href="http://www.kingdomblinds.co.uk" title="opens the Kingdom Blinds website in new window" onclick="openInfoWindowLink(this.href,\'kingdomblinds\'); return false;" >Kingdom Blinds</a><br /> <a href="http://www.kingdomblinds.co.uk" title="opens Kingdom Blinds website in new window" onclick="openInfoWindowLink(this.href,\'kingdomblinds\'); return false;" ><img src="http://www.golfcoursemaps.co.uk/drumoig/iwi_drumoig/kingdom_blinds_234_176.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.21167,-3.16016,19)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.21167,-3.16016,13)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
//tooltip ="Kingdom Blinds";
//icon = icon_service;
//marker = createMarker(point,html,tooltip,icon);
//sponsorMarkersInfoWindow.push(html);
//map.addOverlay(marker);

//========  Sponsor Slot [5] -- edmiston glaziers======
//point = new GLatLng(56.13252,-3.19559);
//html = '<div class="infowindow"><a href="http://www.yell.com/b/Bob+Edmiston+Glazier-Glaziers-Kirkcaldy-KY26QB-900747568/index.html" title="opens information on Edmiston Glaziers in new window" onclick="openInfoWindowLink(this.href,\'edmistonglaziers\'); return false;" >Edmiston Glaziers</a><br /> <a href="http://www.yell.com/b/Bob+Edmiston+Glazier-Glaziers-Kirkcaldy-KY26QB-900747568/index.html" title="opens information on Edmiston Glaziers in new window" onclick="openInfoWindowLink(this.href,\'edmistonglaziers\'); return false;" ><img src="http://www.golfcoursemaps.co.uk/drumoig/iwi_drumoig/edmiston_glaziers_234_176.jpg" width="234" height="176" alt="" /></a><br /><div class="mapZoom" title="centre this location on map and zoom in" onclick="infoWindowZoom(56.13252,-3.19559,19)">Map Zoom In </div><div class="mapZoom" title="centre this location on map and zoom out" onclick="infoWindowZoom(56.13252,-3.19559,13)">| Out </div><div class="mapZoom" title="click reset to return to original map location" onclick="clickRestorePositionHandler()">| Reset </div></div>';
//tooltip ="Edmiston Glaziers";
//icon = icon_service;
//marker = createMarker(point,html,tooltip,icon);
//sponsorMarkersInfoWindow.push(html);
//map.addOverlay(marker);






// ======= end of Sponsor Slot markers for Drumoig ==========


// ======== set up ShotLines for Drumoig ======

 var route1 = [ 
            new GLatLng(56.41550,-2.90916),
            new GLatLng(56.41658,-2.90637)
        ];
        var polyline1 = new GPolyline(route1, '#CC00FF', 5, 0.7);
        var html1 = '<div style="width: 210px; padding-right: 10px">Bunker on left approx 225yds from tee</div>';
            
        map.addOverlay(polyline1);

        GEvent.addListener(polyline1, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html1);
});

var route2 = [ 
            new GLatLng(56.41658,-2.90637),
            new GLatLng(56.41691,-2.90406)
        ];
        var polyline2 = new GPolyline(route2, '#0099FF', 5, 0.7);       

         var html2 = '<div style="width: 210px; padding-right: 10px">Bunker on right approx 25yds from front of green. <br />Greenside bunker on left</div>';
            
        map.addOverlay(polyline2);

        GEvent.addListener(polyline2, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html2);
});


var route3 = [ 
            new GLatLng(56.41633,-2.90425),
            new GLatLng(56.41571,-2.90680)
        ];
        var polyline3 = new GPolyline(route3, '#CC00FF', 5, 0.7);
         var html3 = '<div style="width: 210px; padding-right: 10px">Bunker front right of green <br />Bunker at back right of green</div>';
            
        map.addOverlay(polyline3);

        GEvent.addListener(polyline3, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html3);
});


var route4 = [ 
            new GLatLng(56.41533,-2.90527),
            new GLatLng(56.41440,-2.90233)

        ];
        var polyline4 = new GPolyline(route4, '#CC00FF', 5, 0.7);
         var html4 = '<div style="width: 210px; padding-right: 10px">The tee on this hole currently being repositioned</div>';
            
        map.addOverlay(polyline4);

        GEvent.addListener(polyline4, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html4);
});



var route5 = [ 
            new GLatLng(56.41440,-2.90233),
            new GLatLng(56.41416,-2.89967)

        ];
        var polyline5 = new GPolyline(route5, '#0099FF', 5, 0.7);
         var html5 = '<div style="width: 210px; padding-right: 10px">Bunker on right approx 150yds from green <br />Bunker on left approx 70yds from green</div>';
            
        map.addOverlay(polyline5);

        GEvent.addListener(polyline5, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html5);
});



var route6 = [ 
            new GLatLng(56.41416,-2.89967),
            new GLatLng(56.41408,-2.89802)
            
        ];
        var polyline6 = new GPolyline(route6, '#66CCFF', 5, 0.7);
         var html6 = '<div style="width: 210px; padding-right: 10px">Bunker on right greenside</div>';
            
        map.addOverlay(polyline6);

        GEvent.addListener(polyline6, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html6);
});


var route7 = [ 
            new GLatLng(56.414117, -2.897331),
            new GLatLng(56.41343,-2.89413)
            
        ];
        var polyline7 = new GPolyline(route7, '#CC00FF', 5, 0.7);
         var html7 = '<div style="width: 210px; padding-right: 10px">Bunker on right approx 200yds from the tee</div>';
            
        map.addOverlay(polyline7);

        GEvent.addListener(polyline7, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html7);
});


var route8 = [ 
            new GLatLng(56.41343,-2.89413),
            new GLatLng(56.41236,-2.89247)
            
        ];
        var polyline8 = new GPolyline(route8, '#0099FF', 5, 0.7);
         var html8 = '<div style="width: 210px; padding-right: 10px">Bunker on right greenside <br />Split level green</div>';
            
        map.addOverlay(polyline8);

        GEvent.addListener(polyline8, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html8);
});


var route9 = [ 
         new GLatLng(56.41229, -2.89534),
         new GLatLng(56.41079,-2.89747)
            
        ];
        var polyline9 = new GPolyline(route9, '#CC00FF', 5, 0.7);
        var html9 = '<div style="width: 210px; padding-right: 10px">Bunkers on right approx 175yds and 193yds from tee</div>';
            
        map.addOverlay(polyline9);

        GEvent.addListener(polyline9, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html9);
});



var route10 = [ 
         new GLatLng(56.41079,-2.89747),         
         new GLatLng(56.40998,-2.89972)
            
        ];
        var polyline10 = new GPolyline(route10, '#0099FF', 5, 0.7);
         var html10 = '<div style="width: 210px; padding-right: 10px">Play towards the right side of the fairway</div>';
            
        map.addOverlay(polyline10);

        GEvent.addListener(polyline10, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html10);
});


var route11 = [ 
         new GLatLng(56.40998,-2.89972),
         new GLatLng(56.40918,-2.90051)
            
        ];
        var polyline11 = new GPolyline(route11, '#66ccff', 5, 0.7);
         var html11 = '<div style="width: 210px; padding-right: 10px">Bunkers on left side front of green and also behind green <br />Quarry wall behind green</div>';
            
        map.addOverlay(polyline11);

        GEvent.addListener(polyline11, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html11);
});


var route12 = [ 
          new GLatLng(56.40984,-2.90130),
          new GLatLng(56.41124,-2.89901)
            
        ];
        var polyline12 = new GPolyline(route12, '#CC00FF', 5, 0.7);
        var html12 = '<div style="width: 210px; padding-right: 10px">Bunker approx 176yds from tee on right</div>';
            
        map.addOverlay(polyline12);

        GEvent.addListener(polyline12, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html12);
});



var route13 = [ 
          new GLatLng(56.41124,-2.89901),
          new GLatLng(56.41215,-2.89690)
            
        ];
        var polyline13 = new GPolyline(route13, '#0099FF', 5, 0.7);
        var html13 = '<div style="width: 210px; padding-right: 10px">Bunkers right and left of green</div>';
            
        map.addOverlay(polyline13);

        GEvent.addListener(polyline13, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html13);
});



var route14 = [ 
            new GLatLng(56.41259,-2.89767),
            new GLatLng(56.41192, -2.90089)

        ];
        var polyline14 = new GPolyline(route14, '#cc00ff', 5, 0.7);
         var html14 = '<div style="width: 210px; padding-right: 10px">Bunker on right approx 173yds from tee</div>';
            
        map.addOverlay(polyline14);

        GEvent.addListener(polyline14, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html14);
});


var route15 = [ 
            new GLatLng(56.41192, -2.90089),
            new GLatLng(56.41176, -2.90242)
            
        ];
        var polyline15 = new GPolyline(route15, '#0099FF', 5, 0.7);
        var html15 = '<div style="width: 210px; padding-right: 10px">Bunker on left approx 65yds from green <br />Bunker at front and rear left of green</div>';
            
        map.addOverlay(polyline15);

        GEvent.addListener(polyline15, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html15);
});


var route16 = [ 
            new GLatLng(56.41143,-2.90351),
            new GLatLng(56.41130,-2.90661)

        ];
        var polyline16 = new GPolyline(route16, '#CC00FF', 5, 0.7);
        var html16 = '<div style="width: 210px; padding-right: 10px">Group of three pot hole bunkers on left approx 183yds to 206yds from tee</div>';
            
        map.addOverlay(polyline16);

        GEvent.addListener(polyline16, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html16);
});



var route17 = [ 
           new GLatLng(56.41130,-2.90661),
           new GLatLng(56.41084,-2.90845)
            
        ];
        var polyline17 = new GPolyline(route17, '#0099FF', 5, 0.7);
         var html17 = '<div style="width: 210px; padding-right: 10px">Bunker on left greenside</div>';
            
        map.addOverlay(polyline17);

        GEvent.addListener(polyline17, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html17);
});

var route18 = [ 
            new GLatLng(56.410917,-2.909336),
            new GLatLng(56.41271,-2.91044)
        ];
        var polyline18 = new GPolyline(route18, '#CC00FF', 5, 0.7);
         var html18 = '<div style="width: 210px; padding-right: 10px">Water hazard right and left and out of bounds</div>';
            
        map.addOverlay(polyline18);

        GEvent.addListener(polyline18, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html18);
});

var route19 = [ 
          new GLatLng(56.41271,-2.91044),
          new GLatLng(56.41391,-2.91172)
            
        ];
        var polyline19 = new GPolyline(route19, '#0099FF', 5, 0.7);
         var html19 = '<div style="width: 210px; padding-right: 10px">Water hazard on left  and out of bounds</div>';
            
        map.addOverlay(polyline19);

        GEvent.addListener(polyline19, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html19);
});


var route20 = [ 
            new GLatLng(56.414186,-2.91235),
            new GLatLng(56.41272,-2.91276)

        ];
        var polyline20 = new GPolyline(route20, '#CC00FF', 5, 0.7);
         var html20 = '<div style="width: 210px; padding-right: 10px">Water hazard on right and left <br />Bunker on right approx 115yds from tee</div>';
            
        map.addOverlay(polyline20);

        GEvent.addListener(polyline20, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html20);
});


var route21 = [ 
            new GLatLng(56.41272,-2.91276),
            new GLatLng(56.41217,-2.91247)
            
        ];
        var polyline21 = new GPolyline(route21, '#0099FF', 5, 0.7);
        var html21 = '<div style="width: 210px; padding-right: 10px">Water hazard right and left and behind green</div>';
            
        map.addOverlay(polyline21);

        GEvent.addListener(polyline21, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html21);
});



var route22 = [ 
            new GLatLng(56.41231,-2.91355),
            new GLatLng(56.41134,-2.91182)
        ];
        var polyline22 = new GPolyline(route22, '#cc00ff', 5, 0.7);
        var html22 = '<div style="width: 210px; padding-right: 10px">Water hazard Greenside bunker right and in front of green</div>';
            
        map.addOverlay(polyline22);

        GEvent.addListener(polyline22, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html22);
});


var route23 = [ 
            new GLatLng(56.410783,-2.912353),
            new GLatLng(56.41010,-2.90920)
        ];
        var polyline23 = new GPolyline(route23, '#CC00FF', 5, 0.7);
         var html23 = '<div style="width: 210px; padding-right: 10px">New tee position</div>';
            
        map.addOverlay(polyline23);

        GEvent.addListener(polyline23, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html23);
});






var route24 = [ 
           new GLatLng(56.41010,-2.90920),
           new GLatLng(56.41038,-2.90656)
            
        ];
        var polyline24 = new GPolyline(route24, '#0099FF', 5, 0.7);
        var html24 = '<div style="width: 210px; padding-right: 10px">Bunker on right approx 180yds from green</div>';
            
        map.addOverlay(polyline24);

        GEvent.addListener(polyline24, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html24);
});


var route25 = [ 
           new GLatLng(56.41038,-2.90656),
           new GLatLng(56.41083,-2.90427)
            
        ];
        var polyline25 = new GPolyline(route25, '#66CCFF', 5, 0.7);
        var html25 = '<div style="width: 210px; padding-right: 10px">Bunkers on left approx 65yds and 45yds from green <br />Greenside bunker on right</div>';
            
        map.addOverlay(polyline25);

        GEvent.addListener(polyline25, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html25);
});


var route26 = [ 
            new GLatLng(56.41081,-2.90346), 
            new GLatLng(56.40931,-2.90177)
            
        ];
        var polyline26 = new GPolyline(route26, '#CC00FF', 5, 0.7);
         var html26 = '<div style="width: 210px; padding-right: 10px">Mound on left hand side of fairway</div>';
            
        map.addOverlay(polyline26);

        GEvent.addListener(polyline26, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html26);
});


var route27 = [ 
            new GLatLng(56.40931,-2.90177),
            new GLatLng(56.40885,-2.90120)
            
        ];
        var polyline27 = new GPolyline(route27, '#0099FF', 5, 0.7);
        var html27 = '<div style="width: 210px; padding-right: 10px">Bunkers front right and left of green <br />Quarry wall behind green</div>';
            
        map.addOverlay(polyline27);

        GEvent.addListener(polyline27, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html27);
});


var route28 = [ 
            new GLatLng(56.40838,-2.90026),
            new GLatLng(56.40917,-2.89793)
        ];
        var polyline28 = new GPolyline(route28, '#cc00ff', 5, 0.7);
        var html28 = '<div style="width: 210px; padding-right: 10px">Greenside bunker on left <br />Out of bounds on right</div>';
            
        map.addOverlay(polyline28);

        GEvent.addListener(polyline28, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html28);
});



var route29 = [ 
            new GLatLng(56.40915,-2.89924),
            new GLatLng(56.41018,-2.89636)

        ];
        var polyline29 = new GPolyline(route29, '#cc00ff', 5, 0.7);
        var html29 = '<div style="width: 210px; padding-right: 10px">Fairway starts 120 yds from tee</div>';
            
        map.addOverlay(polyline29);

        GEvent.addListener(polyline29, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html29);
});



var route30 = [ 
         new GLatLng(56.41018,-2.89636),  
         new GLatLng(56.41113,-2.89433)
            
        ];
        var polyline30 = new GPolyline(route30, '#0099ff', 5, 0.7);
        var html30 = '<div style="width: 210px; padding-right: 10px">Bunker on right approx 105yds from green</div>';
            
        map.addOverlay(polyline30);

        GEvent.addListener(polyline30, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html30);
});


var route31 = [ 
            new GLatLng(56.41113,-2.89433),
            new GLatLng(56.41184,-2.89304)
            
        ];
        var polyline31 = new GPolyline(route31, '#66ccff', 5, 0.7);
         var html31 = '<div style="width: 210px; padding-right: 10px">Bunker on left approx 75yds from green <br />Greenside bunker on right</div>';
            
        map.addOverlay(polyline31);

        GEvent.addListener(polyline31, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html31);
});


var route32 = [ 
            new GLatLng(56.41222,-2.89314),
            new GLatLng(56.41297,-2.89484)

        ];
        var polyline32 = new GPolyline(route32, '#CC00FF', 5, 0.7);
         var html32 = '<div style="width: 210px; padding-right: 10px">Two bunkers approx 108yds from tee</div>';
            
        map.addOverlay(polyline32);

        GEvent.addListener(polyline32, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html32);
});


var route33 = [ 
            new GLatLng(56.41338,-2.89632),
            new GLatLng(56.41316,-2.89971)

        ];
        var polyline33 = new GPolyline(route33, '#cc00ff', 5, 0.7);
         var html33 = '<div style="width: 210px; padding-right: 10px">Bunker on right approx 195yds from tee</div>';
            
        map.addOverlay(polyline33);

        GEvent.addListener(polyline33, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html33);
});



var route34 = [ 
            new GLatLng(56.41316,-2.89971),
            new GLatLng(56.41301,-2.90192)
            
        ];
        var polyline34 = new GPolyline(route34, '#0099ff', 5, 0.7);
        var html34 = '<div style="width: 210px; padding-right: 10px">Bunker on left approx 171yds from green <br />Bunker on right approx 115yds from green</div>';
            
        map.addOverlay(polyline34);

        GEvent.addListener(polyline34, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html34);
});


var route35 = [ 
             new GLatLng(56.41301,-2.90192),
             new GLatLng(56.41324,-2.90366)
            
        ];
        var polyline35 = new GPolyline(route35, '#66ccff', 5, 0.7);
        var html35 = '<div style="width: 210px; padding-right: 10px">Bunker front left greenside <br />Bunker and water hazard behind green</div>';
            
        map.addOverlay(polyline35);

        GEvent.addListener(polyline35, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html35);
});




var route36 = [ 
            new GLatLng(56.41368,-2.90649),
            new GLatLng(56.41368,-2.90962)

        ];
        var polyline36 = new GPolyline(route36, '#cc00ff', 5, 0.7);
         var html36 = '<div style="width: 210px; padding-right: 10px">Out of bounds down left <br />Bunker right greenside<br /> Water hazard left and behind green</div>';
            
        map.addOverlay(polyline36);

        GEvent.addListener(polyline36, 'click', function(latlng) {
    map.openInfoWindowHtml(latlng, html36);
});



// ======= end ShotLines for Drumoig ==========





} // end if GBrowserIsCompatible



/////////////store ad info /////////////////////////
//With the removal of the top row of sponsors, 
//we change the bottom row of sponsors as follows; 


$("#ad01").data("info",{
                        showLocOrSite: "loc",
                        link: "http://www.drumoiggolfhotel.com/golfRange.htm",
                        name: "ad01",
                        lat: 56.41741,
                        lng: -2.91503,
                        zoom: 17,
                        sponsorSlot: 0
                        });
$("#ad02").data("info",{
                        showLocOrSite: "loc",
                        link: "http://www.hi-techacousticservices.co.uk",
                        name: "ad02",
                        lat: 56.46643,
                        lng: -2.86394,
                        zoom: 17,
                        sponsorSlot: 1
                        });
$("#ad03").data("info",{
                        showLocOrSite: "loc",
                        link: "http://www.drumoigturf.com",
                        name: "ad03",
                        lat: 56.40709,
                        lng: -2.90127,
                        zoom: 17,
                        sponsorSlot: 2
                        });
$("#ad04").data("info",{
                        showLocOrSite: "loc",
                        link: "http://www.clearviewscotland.co.uk",
                        name: "ad04",
                        lat: 56.18184,
                        lng: -3.20744,
                        zoom: 17,
                        sponsorSlot: 3
                        });                        

$("#ad05").data("info",{
                        showLocOrSite: "site",
                        link: "http://www.thomsonlocal.com/Kingdom-Windows-&-Conservatories/0231337619802155000/map/companyinfo.html",
                        name: "ad05",
                        lat: 56.21167,
                        lng: -3.16016,
                        zoom: 17,
                        sponsorSlot: 4
                        });
$("#ad06").data("info",{
                        showLocOrSite: "site",
                        link: "http://www.yell.com/b/Bob+Edmiston+Glazier-Glaziers-Kirkcaldy-KY26QB-900747568/index.html",
                        name: "ad06",
                        lat: 56.13252,
                        lng:-3.19559,
                        zoom: 17,
                        sponsorSlot: 5
                        });
/////////////end store ad info /////////////////////////

//////////////clicking on map icon centres map on ad location ////
//// based on click to call gmap function 
/////onclick="map.setCenter(new GLatLng(lat,long),zoom)"


$(".sponsor").click(function () {
    var getWebIDFromMapID = $(this).attr("id");
    var currentSlot = $("#" + getWebIDFromMapID).data("info").sponsorSlot;
    var currentShowLocOrSite = $("#" + getWebIDFromMapID).data("info").showLocOrSite;
    if (currentShowLocOrSite == "loc") {
        map.setCenter(
            new GLatLng(
               $("#" + getWebIDFromMapID).data("info").lat,
               $("#" + getWebIDFromMapID).data("info").lng
            ),
            $("#" + getWebIDFromMapID).data("info").zoom
        );//end map.setCenter
        map.openInfoWindow(map.getCenter(), sponsorMarkersInfoWindow[currentSlot]);
    }
    else {
        var currentName = "win_" + $("#" + getWebIDFromMapID).data("info").name;
        var currentURL = $("#" + getWebIDFromMapID).data("info").link;
        openSponsorInfoWindowLink(currentURL,currentName);
    }

}); // end click on sponsor

function openSponsorInfoWindowLink(url,name){
window.open(url,name,'height=420,width=580,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
} // end openSponsorInfoWindowLink()

//footer text opens about golfcourse maps page in new window
$("#footer-legend").click(
    function() {    window.open('http://www.golfcoursemaps.co.uk/linkpage2/index.html','linkpage','height=650,width=630,left=15,top=15,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
    return false;
    }
);//end footer-legend onclick



}); //end jquery ready


//// functions called by advert infowindows /////////

function infoWindowZoom(lat,lng,zoom){
        var x = lat;
        var y = lng;
        var z = zoom;
        map.setCenter(new GLatLng(x, y), z);
    }//end infoWindowZoom
    
        // reset map
function clickRestorePositionHandler() {
        map.setCenter(new GLatLng(56.41231,-2.90463), 15);
        map.closeInfoWindow();
    }
    //end reset map
//// end functions called by advert infowindows /////////


