jQuery(document).ready(function(){

  jQuery("#ConsultationsFormWrap form").addClass("clearfix");

  // Handle the contact us tab
  jQuery("a#ConsultationsButton").toggle(function() {

    jQuery(this)
      .removeClass("off")
      .addClass("on")
      .siblings("#ConsultationsFormWrap").slideDown("fast");
      

    return false;
  }, function() {
  
    jQuery(this)
      .removeClass("on")
      .addClass("off")
      .siblings("#ConsultationsFormWrap").slideUp("fast");
    
    return false;
  });
  


  jQuery("#main").css("z-index", "1");
  

});







function open_contact_tab() {
    jQuery("#header #nav li.contact-us a").parent("li").animate({ height: contact_form_height }, "fast", "swing");
  
    jQuery("#ContactFormHolder").load("/contact-us/ div.wpcf7", function() {

        // Contact Form 7 scripts Need to fire after the form is loaded.
        // If CF7 is upgraded this will have to be manually changed.
        // It'd be nice if this were automated...
        
        //jQuery.getScript("/wp/wp-content/plugins/contact-form-7/jquery.form.js?ver=2.52");
        jQuery.getScript("/wp/wp-content/plugins/contact-form-7/scripts.js?ver=2.4.4");
        
        jQuery("#ContactFormHolder").removeClass("empty");
      
      });
}
