function selectMonth() {
	
	var fullURL = location.href;
	var urlPieces = new Array();
	urlPieces = fullURL.split("?mo=");
	var monthArg = urlPieces[1];
	myform.mylist.selectedIndex = monthArg;

	
}

//Popup window code

function popitup(url,windowWidthx,windowHeighty,scrollbar) {
 var windowWidth = windowWidthx, windowHeight=windowHeighty;
 if (scrollbar) {
  var scrollbars = scrollbar;
 } else {
  var scrollbars = "yes";
 }
 if (document.all) {
 var xMax = screen.width, yMax = screen.height;
 } else {
 if (document.layers) {
 var xMax = window.outerWidth, yMax = window.outerHeight;
 } else {
 var xMax = 640, yMax=480;
   }
 }
 var xOffset = (xMax - windowWidth)/2, yOffset = (yMax - windowHeight)/2;
 newwindow=window.open(url,'nameofwinder','height='+windowHeight+',width='+windowWidth+',scrollbars='+scrollbars+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset);
 if (window.focus) {
  newwindow.focus();
  }
 return false;
}


//For Clearing Search Box on main and sub pages

function doFormClear() {
 searchForm.q.value = "";
 document.searchForm.q.focus();
}

//Macromedia Standard Functions

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
 if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
 if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Create a cookie with the specified name and value.
// The cookie expires the year 2010.
function SetCookie(sName, sValue)
{
  date = new Date();
  document.cookie = sName + "=" + escape(sValue) + "; expires=Monday, 04-Apr-2010 05:00:00 GMT";
}

// Retrieve the value of the cookie with the specified name.
function GetCookie(sName)
{
  // cookies are separated by semicolons
  var aCookie = document.cookie.split("; ");
  for (var i=0; i < aCookie.length; i++)
  {
 // a name/value pair (a crumb) is separated by an equal sign
 var aCrumb = aCookie[i].split("=");
 if (sName == aCrumb[0]) 
  return unescape(aCrumb[1]);
  }

  // a cookie with the requested name does not exist
  return null;
}

function initializeCookie(){
var imageRotation = GetCookie("imageRotation");

  if(!GetCookie("imageRotation")){
 SetCookie("imageRotation","1");
 //If there is no cookie called "imageRotation", make one and set its value to 1"
  } else {
 if (imageRotation < 9) {
  imageRotation++;
  //If there is a cookie already, add 1 to its value
 } else {
  imageRotation = 0;
 }
   SetCookie("imageRotation",imageRotation);
 //Write the cookie.
  }
}

//IE Flash Fix Code:

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, c, useExpressInstall, quality, 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();
  this.useExpressInstall = useExpressInstall;

  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'), useExpressInstall);
  if(c) this.addParam('bgcolor', c);
  var q = quality ? quality : 'high';
  this.addParam('quality', q);
  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) { // netscape plugin architecture
  if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "PlugIn");
  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 { // PC IE
  if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "ActiveX");
  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.useExpressInstall) {
 
  var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
  if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
 this.setAttribute('doExpressInstall', true);
 this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
 document.title = document.title.slice(0, 47) + " - Flash Player Installation";
 this.addVariable("MMdoctitle", document.title);
  }
 } else {
  this.setAttribute('doExpressInstall', false);
 }
 if(this.skipDetect || this.getAttribute('doExpressInstall') || 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.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 "";
  }
}


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;


//Police Department FAQ Code

function showAnswer(idstring) {
 if (!idstring.expanded) {
  idstring.innerHTML = idstring.answer;
  idstring.expanded = true;
 } else {
  idstring.innerHTML = "";
  idstring.expanded = false;
 }
}

function hideAnswers() {
 faq1.answer = faq1.innerHTML;
 faq1.innerHTML = "";

 faq2.answer = faq2.innerHTML;
 faq2.innerHTML = "";

 faq3.answer = faq3.innerHTML;
 faq3.innerHTML = "";

 faq4.answer = faq4.innerHTML;
 faq4.innerHTML = "";

 faq5.answer = faq5.innerHTML;
 faq5.innerHTML = "";

 faq6.answer = faq6.innerHTML;
 faq6.innerHTML = "";

 faq7.answer = faq7.innerHTML;
 faq7.innerHTML = "";

 faq8.answer = faq8.innerHTML;
 faq8.innerHTML = "";
}

//Dining Page Code

function openRestaurant(rest) {
 if (!rest.opened) {
  rest.innerHTML = rest.info;
  rest.opened = true;
 } else {
  rest.innerHTML = "";
  rest.opened = false;
 }
}

function closeRestaurants() {
 
if(GetCookie("diningExpanded") != 1){
  
sf1.info = sf1.innerHTML;
sf1.innerHTML="";

sf2.info = sf2.innerHTML;
sf2.innerHTML="";

sf3.info = sf3.innerHTML;
sf3.innerHTML="";

sf4.info = sf4.innerHTML;
sf4.innerHTML="";

sf5.info = sf5.innerHTML;
sf5.innerHTML="";

//sf6.info = sf6.innerHTML;
//sf6.innerHTML="";

sf7.info = sf7.innerHTML;
sf7.innerHTML="";

sf8.info = sf8.innerHTML;
sf8.innerHTML="";

cf1.info = cf1.innerHTML;
cf1.innerHTML="";

//cf2.info = cf2.innerHTML;
//cf2.innerHTML="";

cf3.info = cf3.innerHTML;
cf3.innerHTML="";

cf4.info = cf4.innerHTML;
cf4.innerHTML="";

cf5.info = cf5.innerHTML;
cf5.innerHTML="";

cf6.info = cf6.innerHTML;
cf6.innerHTML="";

cf7.info = cf7.innerHTML;
cf7.innerHTML="";

cf8.info = cf8.innerHTML;
cf8.innerHTML="";

cf9.info = cf9.innerHTML;
cf9.innerHTML="";

cf10.info = cf10.innerHTML;
cf10.innerHTML="";

cf11.info = cf11.innerHTML;
cf11.innerHTML="";

cf12.info = cf12.innerHTML;
cf12.innerHTML="";

cf13.info = cf13.innerHTML;
cf13.innerHTML="";

cf14.info = cf14.innerHTML;
cf14.innerHTML="";

cf15.info = cf15.innerHTML;
cf15.innerHTML="";

int1.info = int1.innerHTML;
int1.innerHTML="";

int2.info = int2.innerHTML;
int2.innerHTML="";

int3.info = int3.innerHTML;
int3.innerHTML="";

int4.info = int4.innerHTML;
int4.innerHTML="";

int5.info = int5.innerHTML;
int5.innerHTML="";

int6.info = int6.innerHTML;
int6.innerHTML="";

ch1.info = ch1.innerHTML;
ch1.innerHTML="";

ch2.info = ch2.innerHTML;
ch2.innerHTML="";

ch3.info = ch3.innerHTML;
ch3.innerHTML="";

ch4.info = ch4.innerHTML;
ch4.innerHTML="";

ch5.info = ch5.innerHTML;
ch5.innerHTML="";

ch6.info = ch6.innerHTML;
ch6.innerHTML="";

ch7.info = ch7.innerHTML;
ch7.innerHTML="";

ch8.info = ch8.innerHTML;
ch8.innerHTML="";

ch9.info = ch9.innerHTML;
ch9.innerHTML="";

ch10.info = ch10.innerHTML;
ch10.innerHTML="";

ch11.info = ch11.innerHTML;
ch11.innerHTML="";

ch12.info = ch12.innerHTML;
ch12.innerHTML="";

ch13.info = ch13.innerHTML;
ch13.innerHTML="";

ch14.info = ch14.innerHTML;
ch14.innerHTML="";

ch15.info = ch15.innerHTML;
ch15.innerHTML="";

ch16.info = ch16.innerHTML;
ch16.innerHTML="";

ch17.info = ch17.innerHTML;
ch17.innerHTML="";

ch18.info = ch18.innerHTML;
ch18.innerHTML="";

preference.checkbox.checked = true;
}
}

function changeDiningCookie(){
var diningExpanded = GetCookie("diningExpanded");

  if(!GetCookie("diningExpanded")){
 SetCookie("diningExpanded","1");
 //If there is no cookie called "diningExpanded", make one and set its value to "1"
  } else {
 if (diningExpanded == 0) {
  diningExpanded = 1;
  //If there is a cookie and if its value is 0, make its value 1.
 } else {
  diningExpanded = 0;
 }
   SetCookie("diningExpanded",diningExpanded);
 //Write the cookie.
  }
  window.location.reload( false );
  //Refresh the page
}

//Lodging Page Code

function openLodge(lodge) {
 if (!lodge.opened) {
  lodge.innerHTML = lodge.info;
  lodge.opened = true;
 } else {
  lodge.innerHTML = "";
  lodge.opened = false;
 }
}

function closeLodges() {
 
if(GetCookie("lodgingExpanded") != 1){
  
lodge1.info = lodge1.innerHTML;
lodge1.innerHTML="";

lodge2.info = lodge2.innerHTML;
lodge2.innerHTML="";

lodge3.info = lodge3.innerHTML;
lodge3.innerHTML="";

lodge4.info = lodge4.innerHTML;
lodge4.innerHTML="";

lodge5.info = lodge5.innerHTML;
lodge5.innerHTML="";

lodge6.info = lodge6.innerHTML;
lodge6.innerHTML="";

lodge7.info = lodge7.innerHTML;
lodge7.innerHTML="";

lodge8.info = lodge8.innerHTML;
lodge8.innerHTML="";

lodge9.info = lodge9.innerHTML;
lodge9.innerHTML="";

lodge10.info = lodge10.innerHTML;
lodge10.innerHTML="";

lodge11.info = lodge11.innerHTML;
lodge11.innerHTML="";

lodge12.info = lodge12.innerHTML;
lodge12.innerHTML="";

lodge13.info = lodge13.innerHTML;
lodge13.innerHTML="";

lodge14.info = lodge14.innerHTML;
lodge14.innerHTML="";

lodge15.info = lodge15.innerHTML;
lodge15.innerHTML="";

lodge16.info = lodge16.innerHTML;
lodge16.innerHTML="";

lodge17.info = lodge17.innerHTML;
lodge17.innerHTML="";

lodge18.info = lodge18.innerHTML;
lodge18.innerHTML="";

lodge19.info = lodge19.innerHTML;
lodge19.innerHTML="";

lodge20.info = lodge20.innerHTML;
lodge20.innerHTML="";

lodge21.info = lodge21.innerHTML;
lodge21.innerHTML="";

lodge22.info = lodge22.innerHTML;
lodge22.innerHTML="";

lodge23.info = lodge23.innerHTML;
lodge23.innerHTML="";

lodge24.info = lodge24.innerHTML;
lodge24.innerHTML="";

lodge25.info = lodge25.innerHTML;
lodge25.innerHTML="";

lodge26.info = lodge26.innerHTML;
lodge26.innerHTML="";

lodge27.info = lodge27.innerHTML;
lodge27.innerHTML="";

lodge28.info = lodge28.innerHTML;
lodge28.innerHTML="";

lodge29.info = lodge29.innerHTML;
lodge29.innerHTML="";

lodge30.info = lodge30.innerHTML;
lodge30.innerHTML="";

lodge31.info = lodge31.innerHTML;
lodge31.innerHTML="";

lodge32.info = lodge32.innerHTML;
lodge32.innerHTML="";

lodge33.info = lodge33.innerHTML;
lodge33.innerHTML="";

lodge34.info = lodge34.innerHTML;
lodge34.innerHTML="";



preference.checkbox.checked = true;
}
}

function changeLodgingCookie(){
var lodgingExpanded = GetCookie("lodgingExpanded");

  if(!GetCookie("lodgingExpanded")){
 SetCookie("lodgingExpanded","1");
 //If there is no cookie called "lodgingExpanded", make one and set its value to "1"
  } else {
 if (lodgingExpanded == 0) {
  lodgingExpanded = 1;
  //If there is a cookie and if its value is 0, make its value 1.
 } else {
  lodgingExpanded = 0;
 }
   SetCookie("lodgingExpanded",lodgingExpanded);
 //Write the cookie.
  }
  window.location.reload( false );
  //Refresh the page
}
