<!--//

// ------------------------------- //
//         Site Search Code        //
// ------------------------------- //
// If the browser is W3 DOM compliant, execute setImageSwaps function
if (document.getElementsByTagName && document.getElementById) {
	if (window.addEventListener) window.addEventListener('load', setSearchBox, false);
else if (window.attachEvent) window.attachEvent('onload', setSearchBox);
}

function setSearchBox() {
	if(document.forms['search']){
		var searchbox = document.forms['search'].q;
	
		searchbox.onclick = clearText;
		searchbox.onblur = resetText;
	}
}

function clearText() {
	if(document.forms['search']){
		var searchbox = document.forms['search'].q;
		if (searchbox.value == 'Search Bear Archery') searchbox.value = '';
	}
}

function resetText() {
	if(document.forms['search']){
		var searchbox = document.forms['search'].q;
		if (searchbox.value == '') searchbox.value = 'Search Bear Archery';
	}
}


// ------------------------------- //
//     Navigational JavaScript     //
// ------------------------------- //
// Navigational Functions (Suckerfish-style CSS Dropdown Menus) //
// this code allows proper display within Internet Explorer 5.5 and Opera //

function sfHover() {
	var sfEls = document.getElementById("navlist").getElementsByTagName("LI");
	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"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);


//-->