<!--
var newWin = null; 
var xOffset = 30;
var yOffset = -5;





// pop-up-palooza
function externalLinks() 
{ 
 	if (!document.getElementsByTagName) return; 
 	var anchors = document.getElementsByTagName("a"); 
 	for (var i=0; i<anchors.length; i++) 
	{ 
   		var anchor = anchors[i]; 
   		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
     		anchor.target = "_blank"; 
		//<a href="some.php" rel="external">goodbye target="_blank"</a>
 	} 
} 
window.onload = externalLinks;
function popup(strURL, strType, strWidth, strHeight) 
{ 
	if (newWin != null && !newWin.closed){newWin.close();}
	var strOptions=""; 
	if (strType=="console"){strOptions="resizable,height="+strHeight+",width="+strWidth;}
	if (strType=="fixed"){strOptions="status,height="+strHeight+",width="+strWidth;} 
	if (strType == "fixed_scroll"){strOptions = "scrollbars, menubar, height="+strHeight+",width="+strWidth;}
	if (strType=="elastic"){strOptions="toolbar,menubar,scrollbars,"+"resizable,location,height="+strHeight+",width="+strWidth;} 
	newWin = window.open(strURL, 'newWin', strOptions);
	newWin.focus();
}
function popwindow(pageSource)
{
	leWindow = window.open(pageSource, 'popwindow', 'width=730,height=550,toolbar=no,status=yes,resizable=yes,scrollbars=yes,menubar=no,screenX=20,screenY=30,left=20,top=30'); 
	leWindow.focus();
}
function preloader(x,description)
	{

	document.getElementById("bigPhotoContainer").src= 'http://images.milesmediagroup.net/640X480/'+x;
    if(description != "")
    {
    document.getElementById("caption").innerHTML = description;	
    }
    else{
    document.getElementById("caption").innerHTML = "";     	
    }
    
}
function popupWeather(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500,left = 700,top = 325');");
}
function cmsZoom(pageSource, pageName, theHeight, theWidth)
{
	showScrollbars = '';
	leWindow = window.open(pageSource, pageName, 'width='+theWidth+',height='+theHeight+','+showScrollbars+'resizable'); 
	leWindow.resizeTo(theWidth,theHeight);
	leWindow.focus();
}

function getStyleObject(objectId) 
{
	if(document.getElementById && document.getElementById(objectId)) {return document.getElementById(objectId).style;} 
	else if (document.all && document.all(objectId)) {return document.all(objectId).style;} 
	else if (document.layers && document.layers[objectId]) {return document.layers[objectId];} 
	else {return false;}		
} 
function changeObjectVisibility(objectId, newVisibility) 
{
	var styleObject = getStyleObject(objectId);
    	if(styleObject) {styleObject.visibility = newVisibility; return true;} 
	else {return false;}
} 
function moveObject(objectId, newXCoordinate, newYCoordinate) 
{
	var styleObject = getStyleObject(objectId); 
    	if(styleObject) 
	{	
		styleObject.left = newXCoordinate - 250;
		styleObject.top = newYCoordinate;
		return true;
    	} 
	else 
	{
		return false;
    	}
} 
var xOffset = 100; 
var yOffset = 495; 
function showPopup(targetObjectId, eventObj) 
{
	if(eventObj) 
	{
		hideCurrentPopup();
		eventObj.cancelBubble = true;
		var newXCoordinate = (eventObj.pageX)?eventObj.pageX + xOffset:eventObj.x + xOffset + ((document.body.scrollLeft)?document.body.scrollLeft:0);
		//var newYCoordinate = (eventObj.pageY)?eventObj.pageY + yOffset:eventObj.y + yOffset + ((document.body.scrollTop)?document.body.scrollTop:0);
		//var newXCoordinate = xOffset;
		var newYCoordinate = yOffset; 					
		moveObject(targetObjectId, newXCoordinate, newYCoordinate);
		if(changeObjectVisibility(targetObjectId, 'visible') ) {window.currentlyVisiblePopup = targetObjectId;return true;} 
		else {return false;}
    	} 
	else 
	{
		return false;
    	}
} 
function hideCurrentPopup() 
{
	if(window.currentlyVisiblePopup) 
	{
		changeObjectVisibility(window.currentlyVisiblePopup, 'hidden');
		window.currentlyVisiblePopup = false;
    	}
}
window.onload = initializeHacks;
document.onclick = hideCurrentPopup;
function initializeHacks() 
{
	if ((navigator.appVersion.indexOf('MSIE 5') != -1) && (navigator.platform.indexOf('Mac') != -1) && getStyleObject('blankDiv')) 
	{
		window.onresize = explorerMacResizeFix;
	}
    	resizeBlankDiv();
	createFakeEventObj();
}
function createFakeEventObj() 
{
	if (!window.event) {window.event = false;}
}
function resizeBlankDiv() 
{
	if ((navigator.appVersion.indexOf('MSIE 5') != -1) && (navigator.platform.indexOf('Mac') != -1) && getStyleObject('blankDiv')) 
	{
		getStyleObject('blankDiv').width = document.body.clientWidth - 20;
		getStyleObject('blankDiv').height = document.body.clientHeight - 20;
    	}
}
	  	 	function switch1(key)
			{
				if (document.getElementById('caption_0'))
				{
					var option=['caption_0','caption_1','caption_2','caption_3','caption_4'];
					for(var i=0; i<option.length; i++)
					{ 
						obj=document.getElementById(option[i]);
							if(option[i]==("caption_"+key))
							{
								obj.style.display="block";
								document.getElementById('captionContainer').style.display = (obj.innerHTML == "") ? "none" : "";
							}
							else
							{
								obj.style.display="none";
							}				
					}
				}
			}
			
			function switch2(key)
			{
				if (document.getElementById('tab1'))
				{
					var option=['tab1','tab2','tab3'];
					var elm = document.getElementById('tabContainer');
					for(var i=0; i<option.length; i++)
					{ 
						obj=document.getElementById(option[i]);
						
							if(option[i]==("tab"+key))
							{
								obj.style.display="";							
								obj.style.visibility="";
								elm.style.height = "";
												
							}
							else
							{
								obj.style.display="none";							
								obj.style.visibility="hidden";
								elm.style.height = "";
								
							}									
					}
				}	
			}

			function switchGridTab(key)
			{
					
					var elm = document.getElementById('gridContainer');
					var tabImages = Array();
					tabImages[1] = '/images/shell/venues_tab.jpg';
					tabImages[2] = '/images/shell/activities_tab.jpg';
					tabImages[3] = '/images/shell/golf_tab.jpg';
					tabImages[4] = '/images/shell/dining_tab.jpg';
					var option=['gridTab1','gridTab2','gridTab3','gridTab4'];
					for(var i=0; i<option.length; i++)
					{ 
						if (document.getElementById('gridTab1'))
						{
							obj=document.getElementById(option[i]);
							
							document.getElementById('grid_tab').src=tabImages[key];
							if(option[i]==("gridTab"+key))
							{
								obj.style.display="block";
								obj.style.visibility="visible";
								obj.style.height = "";								
							}
							else
							{
								obj.style.display="none";
								obj.style.visibility="hidden";
								obj.style.height = "";						
							}
						}		
					}
			}
			function switchGridTabGolf(key)
			{
					var elm = document.getElementById('gridContainer');
					var tabImages = Array();
					tabImages[1] = '/images/grids/golf_grid_lodging.gif';
					tabImages[2] = '/images/grids/golf_grid_golf.gif';
					tabImages[3] = '/images/grids/golf_grid_activities.gif';
					tabImages[4] = '/images/grids/golf_grid_dining.gif';
					var option=['gridTab1','gridTab2','gridTab3','gridTab4'];
					for(var i=0; i<option.length; i++)
					{ 
						if (document.getElementById('gridTab1'))
						{
							obj=document.getElementById(option[i]);
							document.getElementById('grid_tab').src=tabImages[key];
							if(option[i]==("gridTab"+key))
							{
								obj.style.display="";
								obj.style.visibility="";
								elm.style.height = "";								
							}
							else
							{
								obj.style.display="none";
								obj.style.visibility="hidden";
								elm.style.height = "";						
							}
						}		
					}
			}
			function switchGridTabMeeting(key)
			{
					var elm = document.getElementById('gridContainer');
					var tabImages = Array();
					tabImages[1] = '/images/grids/meeting_grid_meetings.gif';
					tabImages[2] = '/images/grids/meeting_grid_vs.gif';
					tabImages[3] = '/images/grids/meeting_grid_golf.gif';
					tabImages[4] = '/images/grids/meeting_grid_dining.gif';
					var option=['gridTab1','gridTab2','gridTab3','gridTab4'];
					for(var i=0; i<option.length; i++)
					{ 
						if (document.getElementById('gridTab1'))
						{
							obj=document.getElementById(option[i]);
							document.getElementById('grid_tab').src=tabImages[key];
							if(option[i]==("gridTab"+key))
							{
								obj.style.display="";
								obj.style.visibility="";
								elm.style.height = "";								
							}
							else
							{
								obj.style.display="none";
								obj.style.visibility="hidden";
								elm.style.height = "";						
							}
						}		
					}
			}			
			function switchGridTabVS(key)
			{
					var elm = document.getElementById('gridContainer');
					var tabImages = Array();
					tabImages[1] = '/images/grids/vs_grid_lodging.gif';
					tabImages[2] = '/images/grids/vs_grid_vs.gif';
					tabImages[3] = '/images/grids/vs_grid_activities.gif';
					tabImages[4] = '/images/grids/vs_grid_dining.gif';
					var option=['gridTab1','gridTab2','gridTab3','gridTab4'];
					for(var i=0; i<option.length; i++)
					{ 
						if (document.getElementById('gridTab1'))
						{
							obj=document.getElementById(option[i]);
							document.getElementById('grid_tab').src=tabImages[key];
							if(option[i]==("gridTab"+key))
							{
								obj.style.display="";
								obj.style.visibility="";
								elm.style.height = "";								
							}
							else
							{
								obj.style.display="none";
								obj.style.visibility="hidden";
								elm.style.height = "";						
							}
						}		
					}
			}		
			function switchPlanningHome(key)
			{
				if (document.getElementById('planning1'))
				{
					var option=['planning1','planning2','planning3','planning4'];
					for(var i=0; i<option.length; i++)
					{ 
							obj=document.getElementById(option[i]);
							if(option[i]==("planning"+key))
							{
								obj.style.display="";							
								obj.style.visibility="";			
							}
							else
							{
								obj.style.display="none";							
								obj.style.visibility="hidden";
							}
									
					}
				}
			}
			
			function switchPlanning(key)
			{
				if (document.getElementById('landing1'))
				{
				
					var option=['landing1','landing2','landing3','landing4'];
					var elm = document.getElementById('tabContainer');
					var scroll=['scroll1','scroll2','scroll3','scroll4'];
					for(var i=0; i<option.length; i++)
					{ 
						obj=document.getElementById(option[i]);
							if(option[i]==("landing"+key))
							{
								obj.style.display="";							
								obj.style.visibility="";
								elm.style.height = "";			
							}
							else
							{
								obj.style.display="none";							
								obj.style.visibility="hidden";
								elm.style.height = "";
							}
					}
					var scroll=['scroll1','scroll2','scroll3','scroll4'];
					for(var i=0; i<scroll.length; i++)
					{ 
							tab=document.getElementById(scroll[i]);
							if(scroll[i]==("scroll"+key))
							{
								tab.style.display="";							
								tab.style.visibility="";			
							}
							else
							{
								tab.style.display="none";							
								tab.style.visibility="hidden";
							}
					}
				}
			}
			function switchRelated(key)
			{
				if (document.getElementById('related1'))
				{
				
					var related=['related1','related2'];
					var container = document.getElementById('relatedContainer');
					
					for(var i=0; i<related.length; i++)
					{ 
						rel=document.getElementById(related[i]);
							if(related[i]==("related"+key))
							{
								rel.style.display="";							
								rel.style.visibility="";
								container.style.height = "";			
							}
							else
							{
								rel.style.display="none";							
								rel.style.visibility="hidden";
								container.style.height = "";
							}
									
					}

					//for(var i=0; i<relatedScroll.length; i++)
					//{ 
							//relatedTab=document.getElementById(relatedScroll[i]);
							//if(relatedScroll[i]==("related"+key))
							//{
								//relatedTab.style.display="";							
								//relatedTab.style.visibility="";			
							//}
							//else
							//{

								//relatedTab.style.display="none";							
								//relatedTab.style.visibility="hidden";

							//}
									
					 //}

				}

			}
			function switchLocations(key)
			{
				if (document.getElementById('locations1'))
				{
					var option=['locations1','locations2','locations3','locations4'];
					for(var i=0; i<option.length; i++)
					{ 
						obj=document.getElementById(option[i]);
						
							if(option[i]==("locations"+key))
							{
								obj.style.display="";								
							}
							else
							{
								obj.style.display="none";
							}
					}
				}
			}
			
			function getItem(id)
			{
					var itm = false;
					if(document.getElementById)
							itm = document.getElementById(id);
					else if(document.all)
							itm = document.all[id];
					else if(document.layers)
							itm = document.layers[id];
	
					return itm;
			}
	
			function toggleItem(id)
			{
					itm = getItem(id);
	
					if(!itm)
							return false;
	
					if(itm.style.display == '')
							itm.style.display = 'none';
					else
							itm.style.display = '';
	
					return false;
			}
    	
		image1 = new Image();
		image1.src = "/images/shell/history_header_clear.jpg";
		image2 = new Image();
		image2.src = "/images/shell/attractions_header_clear.jpg";
		image3 = new Image();
		image3.src = "/images/shell/culture_header_clear.jpg";
		image4 = new Image();
		image4.src = "/images/shell/luxury_header_clear.jpg";
		image5 = new Image();
		image5.src = "/images/shell/outdoors_header_clear.jpg";
		image6 = new Image();
		image6.src = "/images/shell/golf_header_clear.jpg";
function explorerMacResizeFix() {location.reload(false);}
// flash detection
if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, ver, xiRedirectUrl, redirectUrl, detectKey)
{
	if (!document.createElement || !document.getElementById) return;
  	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
  	this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT_KEY);
  	this.params = new Object();
  	this.variables = new Object();
  	this.attributes = new Array();
  	if(swf) this.setAttribute('swf', swf);
  	if(id) this.setAttribute('id', id);
  	if(w) this.setAttribute('width', w);
  	if(h) this.setAttribute('height', h);
  	if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
  	this.installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute('version'));
  	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
  	this.setAttribute('xiRedirectUrl', xir);
  	this.setAttribute('redirectUrl', '');
  	if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
}
com.deconcept.FlashObject.prototype = 
{
	setAttribute: function(name, value){this.attributes[name] = value;},
	getAttribute: function(name){return this.attributes[name];},
	addParam: function(name, value){this.params[name] = value;},
	getParams: function(){return this.params;},
 	addVariable: function(name, value){this.variables[name] = value;},
  	getVariable: function(name){return this.variables[name];},
  	getVariables: function(){return this.variables;},
	createParamTag: function(n, v)
	{
    		var p = document.createElement('param');
    		p.setAttribute('name', n);
    		p.setAttribute('value', v);
    		return p;
  	},
	getVariablePairs: function()
	{
    		var variablePairs = new Array();
    		var key;
   		var variables = this.getVariables();
    		for(key in variables){variablePairs.push(key +"="+ variables[key]);}
    		return variablePairs;
	},
	getFlashHTML: function() 
	{
    		var flashNode = "";
    		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) 
		{	 
      			flashNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';
      			flashNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
      			var params = this.getParams();
       			for(var key in params){flashNode += [key] +'="'+ params[key] +'" '; }
      			var pairs = this.getVariablePairs().join("&");
       			if (pairs.length > 0){ flashNode += 'flashvars="'+ pairs +'"'; }
      			flashNode += '/>';
    		} 
		else 
		{ 	
      			flashNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';
      			flashNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />"';
      			var params = this.getParams();
      	 		for(var key in params) {flashNode += '<param name="'+ key +'" value="'+ params[key] +'">';}
      			var pairs = this.getVariablePairs().join("&");
       			if(pairs.length > 0) flashNode += '<param name="flashvars" value="'+ pairs +'">';
      			flashNode += "</object>";
		}
    		return flashNode;
	},
	write: function(elementId)
	{
    		if(this.skipDetect  || this.installedVer.versionIsValid(this.getAttribute('version')))
		{
      			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
      			n.innerHTML = this.getFlashHTML();
    		}
		else
		{
      			if(this.getAttribute('redirectUrl') != "") {document.location.replace(this.getAttribute('redirectUrl'));}
    		}
	}
}
com.deconcept.FlashObjectUtil.getPlayerVersion = function(reqVer, xiInstall)
{
  	var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
  	if(navigator.plugins && navigator.mimeTypes.length)
	{
    		var x = navigator.plugins["Shockwave Flash"];
    		if(x && x.description) {PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));}
  	}
	else
	{
    		try
		{
      			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
      			for (var i=3; axo!=null; i++) 
			{
        			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
        			PlayerVersion = new com.deconcept.PlayerVersion([i,0,0]);
      			}
    		}
		catch(e){}
    		if (reqVer && PlayerVersion.major > reqVer.major) return PlayerVersion; 
    		if (!reqVer || ((reqVer.minor != 0 || reqVer.rev != 0) && PlayerVersion.major == reqVer.major) || PlayerVersion.major != 6 || xiInstall) 
		{
			try
			{
				PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
			}
			catch(e){}
		}
	}
	return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion)
{
  	this.major = parseInt(arrVersion[0]) || 0;
  	this.minor = parseInt(arrVersion[1]) || 0;
  	this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)
{
  	if(this.major < fv.major) return false;
  	if(this.major > fv.major) return true;
  	if(this.minor < fv.minor) return false;
  	if(this.minor > fv.minor) return true;
  	if(this.rev < fv.rev) return false;
  	return true;
}
com.deconcept.util = 
{
	getRequestParameter: function(param)
	{
		var q = document.location.search || document.location.href.hash;
    		if(q)
    		{
			var startIndex = q.indexOf(param +"=");
			var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
			if (q.length > 1 && startIndex > -1) {return q.substring(q.indexOf("=", startIndex)+1, endIndex);}
    		}
    		return "";
	},
	removeChildren: function(n){while (n.hasChildNodes()) n.removeChild(n.firstChild);}
}
if (Array.prototype.push == null) {Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}
var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;
// slightly modified from (and many thanks to) Geoff Stearns, @ http://blog.deconcept.com/flashobject/

if (document.getElementById && document.getElementsByTagName) {
if (window.addEventListener) window.addEventListener('load', initScrollBars, false);
else if (window.attachEvent) window.attachEvent('onload', initScrollBars);
}
function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
function initScrollBars() {
CSBfleXcroll('scroll1');
CSBfleXcroll('scroll2');
CSBfleXcroll('scroll3');
CSBfleXcroll('scroll4');
CSBfleXcroll('scrollPhotos');
}
window.onload=function(){initScrollBars();switch1('0');switch2('1');switchPlanning('1');switchRelated('1');switchPlanningHome('1');switchLocations('1');}
-->
