

jQuery(document).ready(function(){
	
	jQuery('input.searchButton').hide();
	// Default value of search box
		var defaultValue ="Enter search term and press enter";
	jQuery('#s').attr('value',defaultValue); // Sets default on page load
		
		jQuery('#s').focus(function(){ // When search box is in focus
				
			if( this.value == defaultValue ) { // If default text is in
            	this.value = ""; // Make it blank
        	}
      	}); 
	
	
		jQuery('#s').blur(function(){ // When search box is blurred
		
			if( this.value == "" ) { // Test if it's been left blank
            	this.value = defaultValue; // If so, return to default value
	        }
		
	}); 	
	
	
	jQuery('#s').keypress(function(e){
	
		if(e.keyCode==13){
			jQuery('#searchForm').submit();
        }
	})

	jQuery('select#cat').change(function(){
		
			jQuery('#catSubmit').click();	
	
			})

	
	
 });
