(function ($) {
  $(document).ready(function(){
    //$("div[data-role='collapsible']").accordion({icons: false, autoHeight: false, collapsible: true, active: !$(this).prop('data-collapsed')});

  });
}(jQuery));;
// @see http://forum.jquery.com/topic/the-resizeend-event
(function($){
    $.resizeend = function(el, options){
        var base = this;
       
        base.$el = $(el);
        base.el = el;
       
        base.$el.data("resizeend", base);
        base.rtime = new Date(1, 1, 2000, 12,00,00);
        base.timeout = false;
        base.delta = 200;
       
        base.init = function(){
            base.options = $.extend({},$.resizeend.defaultOptions, options);
           
            if(base.options.runOnStart) base.options.onDragEnd();
           
            $(base.el).resize(function() {
               
                base.rtime = new Date();
                if (base.timeout === false) {
                    base.timeout = true;
                    setTimeout(base.resizeend, base.delta);
                }
            });
       
        };
        base.resizeend = function() {
            if (new Date() - base.rtime < base.delta) {
                setTimeout(base.resizeend, base.delta);
            } else {
                base.timeout = false;
                base.options.onDragEnd();
            }               
        };
       
        base.init();
    };
   
    $.resizeend.defaultOptions = {
        onDragEnd : function() {},
        runOnStart : false
    };
   
    $.fn.resizeend = function(options){
        return this.each(function(){
            (new $.resizeend(this, options));
        });
    };
   
})(jQuery);;
/*-------------------------------------------------------------------- 
 * JQuery Plugin: "EqualHeights"
 * by:	Scott Jehl, Todd Parker, Maggie Costello Wachs (http://www.filamentgroup.com)
 *
 * Copyright (c) 2008 Filament Group
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 *
 * Description: Compares the heights or widths of the top-level children of a provided element 
 		and sets their min-height to the tallest height (or width to widest width). Sets in em units 
 		by default if pxToEm() method is available.
 * Dependencies: jQuery library, pxToEm method	(article: 
		http://www.filamentgroup.com/lab/retaining_scalable_interfaces_with_pixel_to_em_conversion/)							  
 * Usage Example: $(element).equalHeights();
  		Optional: to set min-height in px, pass a true argument: $(element).equalHeights(true);
 * Version: 2.0, 08.01.2008
--------------------------------------------------------------------*/
(function ($) {
$.fn.equalHeights = function(px) {

  $(this).each(function(){
  var tallest = 0;

  $(this).children().each(function(i){
  if (tallest < $(this).height()) { tallest = $(this).height(); }
  });
  $(this).children().css({'height': tallest});
  });
  return this;

};
$.fn.resetHeights = function() {
  $(this).each(function() {
    $(this).children().each(function(){
      $(this).css('height', 'auto');
    });
  });
}
}(jQuery));
;
(function ($) {
  $(document).ready(function(){
    
    // Check the default state of any collapsible elements
    $('.comment-wrapper-title.collapsed').siblings('.comment-list').hide();
    
    // Enable the hide/show of the comments
    $('.comment-wrapper-title').click(function(){
      $(this).siblings('.comment-list').slideToggle(null, null, $(this).toggleClass('collapsed'));
    });
    
    // Enable equal heights
    $('.equalheights').equalHeights();
    
    // Recalculate the equal heights on window resize
    // @todo equal heights recalculation on orientation change

    $(window).resizeend(
          {
                onDragEnd : function() {  $('.equalheights').resetHeights(); $('.equalheights').equalHeights();},
                runOnStart : true
          }
    );

    // Fix for IE7/8 for slideshow until Views Slideshow Xtra is fixed
    $('#views_slideshow_cycle_teaser_section_feature_banner-coldfront_feature_banner_pane').cycle('next');

  });  

}(jQuery));
;

