/**
 * This is part of a patch to address a jQueryUI bug.  The bug is responsible
 * for the inability to scroll a page when a modal dialog is active. If the content
 * of the dialog extends beyond the bottom of the viewport, the user is only able
 * to scroll with a mousewheel or up/down keyboard keys.
 *
 * @see http://bugs.jqueryui.com/ticket/4671
 * @see https://bugs.webkit.org/show_bug.cgi?id=19033
 * @see /views_ui.module
 * @see /js/jquery.ui.dialog.min.js
 *
 * This javascript patch overwrites the $.ui.dialog.overlay.events object to remove
 * the mousedown, mouseup and click events from the list of events that are bound
 * in $.ui.dialog.overlay.create
 *
 * The original code for this object:
 * $.ui.dialog.overlay.events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),
 *  function(event) { return event + '.dialog-overlay'; }).join(' '),
 *
 */

(function ($, undefined) {
  if ($.ui && $.ui.dialog) {
    $.ui.dialog.overlay.events = $.map('focus,keydown,keypress'.split(','),
                                 function(event) { return event + '.dialog-overlay'; }).join(' ');
  }
}(jQuery));
;
// $Id: equalize-blocks.js,v 1.2.4.3 2010/10/30 23:13:53 jmburnz Exp $
(function ($) {
  Drupal.behaviors.adaptivetheme_equalizeblocks = {
    attach: function(context) {
      var tags_hash = new Array();
      tmp=Drupal.settings.active_regions+'';
      if(tmp.indexOf(',')<1) {
        tags_hash[0]=tmp;
      } else {
        tags_hash=tmp.split(",");
      }
      applyHeights(tags_hash);
    }
  };
  function applyHeights(tags_hash) {
    var tmpTag = "";
    var toLoop = tags_hash.length;
    for (tmpi=0; tmpi<toLoop; tmpi++) {
      xclass=$('.'+tags_hash[tmpi]+' .block-inner').attr('class');
      $('.'+tags_hash[tmpi]+' .block-inner').attr('class',xclass+' clearfix');
      $('.'+tags_hash[tmpi]+' .block-inner').equalHeight();
    }
  }
})(jQuery);;
// $Id: equalize-columns.js,v 1.2.4.1 2010/06/10 23:00:08 jmburnz Exp $
(function ($) {
  Drupal.behaviors.adaptivetheme_equalizecolumns = {
    attach: function(context) {
      $('#content-column, .sidebar').equalHeight();
    }
  };
})(jQuery);;
// $Id: equalize-gpanels.js,v 1.2.4.1 2010/06/10 23:00:08 jmburnz Exp $
(function ($) {
  Drupal.behaviors.adaptivetheme_equalizegpanels = {
    attach: function(context) {
      $('.gpanel .block-inner').equalHeight();
    }
  };
})(jQuery);;

