<!--//--><![CDATA[//><!--

// Suckerfish Shoal + IE 5 Mac Support
function suckerfish(type, tag, parentId) {
	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+=(this.className.length>0? " ": "") + "sfhover";
		}
		// event added to keep menu items from disappearing
		sfEls[i].onmousedown=function() {
			this.className+=(this.className.length>0? " ": "") + "sfhover";
		}
		// event added to keep menu items from disappearing
		sfEls[i].onmouseup=function() {
			this.className+=(this.className.length>0? " ": "") + "sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
		}
	}
}


// based on script from shauninman.com
function formInitialValues() {
	d = document;
	if (d.getElementById) {
		theInput = d.getElementById("q");
		theInput.defaultValue = theInput.value;
		theInput.onfocus = clearInitialValues
		theInput.onblur = resetInitialValues
	}
}
function clearInitialValues() {
	if (this.value == this.defaultValue) {
		this.value = "";
		}
	}
function resetInitialValues() {
	if (this.value == "") {
		this.value = this.defaultValue;
		}
	this.blur();
	}


// load everything up

window.onload = function() {
	formInitialValues();

	if (navigator.appVersion.indexOf("MSIE")!=-1){
		suckerfish(sfHover, "div", "search-box");
		suckerfish(sfHover, "li", "nav-main");
	}
}
		
//--><!]]>
