(function ($) {

/**
 * Override the transitionBegin for the slide counter.
 */
Drupal.viewsSlideshowSlideCounter.transitionBegin = function (options) {
  $('.views_slideshow_slide_counter').removeClass('active');
  // Adding active class to the current slideshow and remove it from the others.
  $('#views_slideshow_slide_counter_' + options.slideshowID + ' .num-' + (options.slideNum + 1)).addClass('active');
};
  
  
/**
 * Set the sidebar height.
 */
Drupal.behaviors.TelemSideBar = {
  attach: function (context) {
	
//	$(window).load(function () { 
//	    // Setting the sidebar of the panel in the same width of the main column
//		$('.panel-grid-13-3, .panel-grid-12-4').each(function(){
//			var height =  $(this).find('.panel-col-first').height();
//			var oldheight = $(this).find('.panel-col-last .inside').height();
//			$(this).find('.panel-col-last .inside').height(Math.max(height, oldheight));
//		});
//		
//		$('.panel-grid-3-10-3').each(function(){
//			var height =  $(this).find('.main-panel-wrapper').height();
//			var oldheight = $(this).find('.panel-col-last .inside').height();
//			$(this).find('.panel-col-last .inside').height(Math.max(height, oldheight));
//		});
//	});
  }
};

})(jQuery);

;

