
// open window for booking system

<!--
function openWindow(windowname) {
    var newWindow = window.open(windowname,"pop","scrollbars=yes,status=no,menubar=no,toolbar=no,resizeable=no,HEIGHT=680,WIDTH=690");
}
// -->





// search form rollover

function classChange(styleChange,item) {
	item.className = styleChange;
}



// apply :hover and :focus for Internet Explorer
// code courtesy of http://www.htmldog.com/articles/suckerfish/shoal/

function suckerfish(type, tag, parentId) {
	if (window.attachEvent) {
		window.attachEvent("onload", function() {
			var sfEls = (parentId==null)?document.getElementsByTagName(tag):document.getElementById(parentId).getElementsByTagName(tag);
			type(sfEls);
		});
	}
}

sfHover = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

sfFocus = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onfocus=function() {
			this.className+=" sffocus";
		}
		sfEls[i].onblur=function() {
			this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
		}
	}
}

suckerfish(sfHover, "LI", "citynav");
suckerfish(sfHover, "LI", "primarynav");
suckerfish(sfFocus, "INPUT", "content");
suckerfish(sfFocus, "TEXTAREA", "content");



// activate quick links select menu

function goto(element) { 
   obj = document.getElementById(element);
   top.location.href = obj.options[obj.selectedIndex].value;
}



// gallery slideshow
	
function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('placeholder').src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('caption').childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('caption').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}
