// 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 = null;
			if (parentId==null) {
				sfEls = document.getElementsByTagName(tag);
			} else {
				var parent = document.getElementById(parentId);
				if (parent != null) {
				  sfEls = getElementsByTagName(tag);
				}
			}
			if (sfEls != null) {
			  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(sfFocus, "INPUT", "content");
suckerfish(sfFocus, "TEXTAREA", "content");



// 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;
 }
}