   jQuery(document).ready(function(){ 
        jQuery("ul.sf-menu").superfish({ 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            delay:     1200           // 1.2 second delay on mouseout 
           
           
        }); 

                jQuery('input#go').hide();   
                     
         jQuery('.crashes dl').hide();
      		jQuery('.crashes .post-meta').click(function() {
				jQuery(this).next('dl').slideToggle ('slow'); 
				jQuery(this).toggleClass ('show');
 				jQuery(this).toggleClass ('hide');
  				return false;
  				}); 

	
	       
	       
	    jQuery('#make').bind('change',function() {
	      postData = jQuery(this).serialize();
	 	    
			jQuery.post('/wordpress/wp-content/themes/copters-6/searchbox/models_form.php', postData,function(data) {
			jQuery('#model').remove();
			jQuery(data).insertAfter('#make');
		});
	       });
	    
	       
	       
	       
	 jQuery('#TheModel').live('submit',function(event) {
	 
            if (jQuery("option:selected", jQuery(this)).attr("value")=="empty"){
	 			alert ('Please first choose a make, then choose a model');
				 return false;
				 }
 
     });
 
 
 
           
 });





  
    
       