
(function ($) {
  Drupal.Panels = {};

  Drupal.Panels.autoAttach = function() {
    if ($.browser.msie) {
      // If IE, attach a hover event so we can see our admin links.
      $("div.panel-pane").hover(
        function() {
          $('div.panel-hide', this).addClass("panel-hide-hover"); return true;
        },
        function() {
          $('div.panel-hide', this).removeClass("panel-hide-hover"); return true;
        }
      );
      $("div.admin-links").hover(
        function() {
          $(this).addClass("admin-links-hover"); return true;
        },
        function(){
          $(this).removeClass("admin-links-hover"); return true;
        }
      );
    }
  };

  $(Drupal.Panels.autoAttach);
})(jQuery);
;
jQuery(document).ready(function($){
    /*var shadowOptions = {
        x: 1, 
        y: 1, 
        radius: 2,
        color: "#999"
    }
    $("#main-menu a").textShadow(shadowOptions);
    $(".home-block h2.field-content").textShadow(shadowOptions);
    */
    
    function pleinairPositionFooter() {
        var pageHeight = $("#top").height();
        var windowHeight = $(window).height();
        var difference = windowHeight - pageHeight;
        if (difference < 0)
        difference = 0;

        $("#footer-margin-top").css({
            height: difference + "px"
        });
    }
    pleinairPositionFooter();
    $(window).resize(function($) {
        pleinairPositionFooter();
    });

});


;

