$(document).ready(function(){

  $(".reservationmenu").hover(function(){
    $(".dropdown").toggleFade("fast");
  });
  
  setTimeout(function () {
      // sorts out scroller
      $ScropllAreaHeight = $('.textscroll').height();
      if ($ScropllAreaHeight > 300) {
        $('.textscroll').height("300px");
        $('div.contentpaneopen div.controler').fadeIn();
      }
    
        $('.textscroll').css("overflow","hidden");
        $('.textscroll').css("visibility","visible");
        
      
  }, 500);
  
  
});





(function($) {
  $.fn.toggleFade = function(settings)
  {
    settings = jQuery.extend(
      {
        speedIn: "normal",
        speedOut: settings.speedIn
      }, settings
    );
    return this.each(function()
    {
      var isHidden = jQuery(this).is(":hidden");
      jQuery(this)[ isHidden ? "fadeIn" : "fadeOut" ]( isHidden ? settings.speedIn : settings.speedOut);
    });
  };
})(jQuery);

