/* Jugs Global Javascript Functions

By Will Moore - ISITE Design


*/

//start the jQuery functions
$(document).ready(function() {





	/* clears default text from input boxes. applied to the header search input - add as needed*/
	$("#search_term").inputClear();

	/*add class of 'over' to :hovered items to help IE6 and earlier get with the program*/
	if(document.all){
	    $("button, #nav li").hover(
	            function() { $(this).addClass("over");},
	            function() { $(this).removeClass("over");}
	    );
	}// if document.all

$("input[name='order']").hide();
});// document ready / end jquery functions


	/*clear search field on click - made into plugin so it can easily be used more than once.*/
	jQuery.fn.inputClear = function() {
		return this.focus(function() {
			if( this.value == this.defaultValue ) {
				this.value = "";
			}
		}).blur(function() {
			if( !this.value.length ) {
				this.value = this.defaultValue;
			}
		});
	};