//<![CDATA[
window.onload = onPageLoad;
var map;
function onPageLoad() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(46.83802, -110.71827), 7);
        map.setUIToDefault();        
        map.openInfoWindow(map.getCenter(),
        document.createTextNode("Showdown Ski Resort"));
var publisher_id = 'pub-7036741240318833';
var adsManagerOptions = {
  maxAdsOnMap : 2,
  style: 'adunit',
  // The channel field is optional - replace this field with a channel number 
  // for Google AdSense tracking
  channel: '2878101471'  
};

adsManager = new GAdsManager(map, publisher_id, adsManagerOptions);
adsManager.enable();           
        // Creating a new marker       
var marker1 = new GMarker (new GLatLng(45.78270, -108.50447)) 
// Adding a click-event to the marker  
GEvent.addListener(marker1, 'click', function() {  
  // When clicked, open an Info Window  
  marker1.openInfoWindowHtml('<a class="e" href="http://www.tkqlhce.com/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dbillings_mt&cjsku=BMO3" rel="nofollow" onclick="window.open(this.href);return false;">Billings Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker1); 
        // Creating a new marker       
var marker2 = new GMarker (new GLatLng(45.67929, -111.04623)) 
// Adding a click-event to the marker  
GEvent.addListener(marker2, 'click', function() {  
  // When clicked, open an Info Window  
  marker2.openInfoWindowHtml('<a class="e" href="http://www.dpbolvw.net/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dbozeman_mt&cjsku=B0AA" rel="nofollow" onclick="window.open(this.href);return false;">Bozeman Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker2);
        // Creating a new marker       
var marker3 = new GMarker (new GLatLng(46.00392, -112.53445)) 
// Adding a click-event to the marker  
GEvent.addListener(marker3, 'click', function() {  
  // When clicked, open an Info Window  
  marker3.openInfoWindowHtml('<a class="e" href="http://www.tkqlhce.com/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dbutte_mt&cjsku=BPXO" rel="nofollow" onclick="window.open(this.href);return false;">Butte Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker3);
        // Creating a new marker       
var marker4 = new GMarker (new GLatLng(47.50645, -111.30602)) 
// Adding a click-event to the marker  
GEvent.addListener(marker4, 'click', function() {  
  // When clicked, open an Info Window  
  marker4.openInfoWindowHtml('<a class="e" href="http://www.anrdoezrs.net/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dgreat_falls_mt&cjsku=GWXG" rel="nofollow" onclick="window.open(this.href);return false;">Great Falls Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker4);
        // Creating a new marker       
var marker5 = new GMarker (new GLatLng(46.59107, -112.02046)) 
// Adding a click-event to the marker  
GEvent.addListener(marker5, 'click', function() {  
  // When clicked, open an Info Window  
  marker5.openInfoWindowHtml('<a class="e" href="http://www.dpbolvw.net/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dhelena_mt&cjsku=HPZV" rel="nofollow" onclick="window.open(this.href);return false;">Hellena Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker5);
        // Creating a new marker       
var marker6 = new GMarker (new GLatLng(46.87450, -114.00185)) 
// Adding a click-event to the marker  
GEvent.addListener(marker6, 'click', function() {  
  // When clicked, open an Info Window  
  marker6.openInfoWindowHtml('<a class="e" href="http://www.jdoqocy.com/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dmissoula_mt&cjsku=MQVJ" rel="nofollow" onclick="window.open(this.href);return false;">Missoula Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker6);
        // Creating a new marker       
var marker7 = new GMarker (new GLatLng(48.44212, -114.34727)) 
// Adding a click-event to the marker  
GEvent.addListener(marker7, 'click', function() {  
  // When clicked, open an Info Window  
  marker7.openInfoWindowHtml('<a class="e" href="http://www.anrdoezrs.net/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dwhitefish_mt&cjsku=WQZU" rel="nofollow" onclick="window.open(this.href);return false;">Whitefish Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker7);
        // Creating a new marker    
var myIcon = new GIcon(G_DEFAULT_ICON);
        myIcon.image = "http://www.montanatravelmap.com/images/map-lodging.png";
        myIcon.iconSize = new GSize(32, 32);        
var markerOptions = { icon:myIcon };            
var marker8 = new GMarker (new GLatLng(46.87968, -110.36257), markerOptions) 
// Adding a click-event to the marker  
GEvent.addListener(marker8, 'click', function() {  
  // When clicked, open an Info Window  
  marker8.openInfoWindowHtml('<a class="e" href="http://www.anrdoezrs.net/click-3115467-10592070?sid=Montana+Hotels&url=http%3A%2F%2Ftravela.priceline.com%2Ftravelguides%2FUnited_States%2FMontana-MT.html%3Fplf%3DPCLN%26irefid%3DHPTRAV1216ICON%26irefclickid%3DCG" rel="nofollow" onclick="window.open(this.href);return false;">Montana Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker8);
        // Creating a new marker       
var marker9 = new GMarker (new GLatLng(48.20053, -114.31510)) 
// Adding a click-event to the marker  
GEvent.addListener(marker9, 'click', function() {  
  // When clicked, open an Info Window  
  marker9.openInfoWindowHtml('<a class="e" href="http://www.anrdoezrs.net/click-3115467-10619015?url=http%3A%2F%2Fwww.gtahotels.com%2Frdcj.php%3Fcity%3Dkalispell_mt&cjsku=KU0J" rel="nofollow" onclick="window.open(this.href);return false;">Kalispell Hotels</a>');  
});  
// Add marker to map  
map.addOverlay(marker9);
      }
    }