$(document).ready(function(){
	
	if($('#search_text').attr('value')== undefined)
		$('#search_text').removeAttr('value');
	$('#search_submit, #submitContact').attr('value', '');
	$('.search label').hide();
	
	function returnValue(obj) {
		if (obj.attr('value') == 'Search'){
			obj.removeAttr('value');							  
		} else if (obj.attr('value') == undefined){
			obj.attr('value', 'Search');	
		}
	}

	$('#search_text').focus(function(){	
		returnValue($(this));
	});
	
	$('#search_text').blur(function(){	
		returnValue($(this));
	});
	
	$('.datelist li:odd, .productList div:odd').addClass('even');
	
});

//Help IE with the menu's li:hover class for rest of site (Horizontal Navigation)
sfHover = function() {
	var sfEls = document.getElementById("nav").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);

