/**
* ScrollTo
* - event.data.scrollTarget
*   The element to scroll to, passed in with the event object
* - Acquia object is created if it doesn't exist and a theme object built or referenced
*   if it exists to store the functions for this theme.
*/
/*var Acquia = Acquia || {};
Acquia.theme = Acquia.theme || {}; 

Acquia.theme.scrollTo = function (event) {
  event.preventDefault(); // Keep the page from jumping to the hash target
  
  var targetOffset = event.data.scrollTarget.offset().top;
  jQuery('html,body').animate({scrollTop: targetOffset}, 1000);
}*/

/*
* EqualHeights plugin:
* Iterates over target elements and sets them all at the same height.  
* 
* Usage: $(selector).equalheights(options);
* @param options (object): Configuration options for the plugin
*-----------------------------------------------*/
(function($){$.fn.equalheights=function(options){var defaults={targetElement:'li'};var settings=$.extend({},defaults,options);return this.each(function(){if(settings.targetElement!==undefined&&settings.targetElement!==null){var $elems=$(this).find(settings.targetElement);var tmp=0;if($elems.length>1){$elems.each(function(){if($(this).height()>tmp){tmp=$(this).height();}});$elems.css({'height':tmp+'px'});}}});};})(jQuery);

/**
* Document ready handler.
*************************/

jQuery(document).ready(function () {
  /* 
  var addCommentTrigger = jQuery('.comment_add');
  var addCommentForm = jQuery('#comment-new');
  var commentFormSize = (addCommentForm != undefined) ? addCommentForm.size() : 0;
  if (false) { // Add only if the comment form exists on the page.
    addCommentTrigger.bind('click', {scrollTarget: addCommentForm}, Acquia.theme.scrollTo); // Bind click event handlers to all .comment_add links
  }
  */
  // Add a class of js to the body for theming
  jQuery('body').addClass('js');
  
});
;

