/* Project Name Global Javascript Functions

By  - ISITE Design


*/

//start the jQuery functions
$(document).ready(function() {


	/*clear search field on click - made into plugin so it can easily be used more than once.*/
	$.fn.inputClear = function() {
		return this.focus(function() {
			if( this.value == this.defaultValue ) {
				this.value = "";
			}
		}).blur(function() {
			if( !this.value.length ) {
				this.value = this.defaultValue;
			}
		});
	};


	/*apply to the header search input - add as needed*/
	$("#search").inputClear();


	/*add class to drop downs for IE <6*/
	if(document.all){
	    $("#mainNav li").hover(
	            function() {
					$(this).addClass("over");
				},
	            function() {
					$(this).removeClass("over");
				}
	    );
	}// if document.all


});// document ready / end jquery functions
