$(document).ready(function() {  

	// Format/Blank/Fill Search Entry Field
	$('#location').addClass("idleField");  
    $('#location').focus(function() {  
        $(this).removeClass("idleField").addClass("focusField");  
        if (this.value == this.defaultValue){  
            this.value = '';  
        }  
        if(this.value != this.defaultValue){  
            this.select();  
        }  
    });  
    $('#location').blur(function() {  
        $(this).removeClass("focusField").addClass("idleField");  
        if (this.value == ''){  
            this.value = ('Enter Address, City and State, or Zip');  
        }  
    });  
	
	// Toggle Search result
	$(".seetrucks").toggle( 
		function( ) {
			//alert($(this).parent().parent().next().next().get(0).tagName);
			$(this).parent().next().next().next().next().slideDown(600);
			$(this).fadeOut(600);
			
		}, 
		function( ) {
			$(this).html("See Available Trucks");
			//next(".bookitem").slideUp(600);
		}
	);
	
	$(".bookitem").hide( );
	
});