

(function($) {

  $(document).ready(function() {
						      	
	// ACTIVATE TOOLTIPS //
	
	$(".list-img li a").tooltip({ relative: "true", position: 'bottom center', effect: "fade"});
	
	
	/*
	// INITIALIZE SLIDES //
	
	$('.list-img').tabs('div.panes > div', { rotate: 'true', effect: 'fade', fadeOutSpeed: '400'}).slideshow({interval: '12000', autoplay: 'true'});
	
	$("#feature").hover(
	  function () {
		   $(".list-img").data("slideshow").pause();
	  },
	  function () {
		   $(".list-img").data("slideshow").pause();
	  }
	);
	*/
	
	// Match column heights //
	mw = $("#mainContent").width();
	c1w = $("#col1").outerWidth(true);
	c2w = $("#col2").outerWidth(true);
	c1h = $('#col1').height();
	c2h = $('#col2').height();
	newWidth = mw - c1w - c2w;
	$("#mainContent").width(newWidth);
	$("#col1").hide();
	h = $('#mainContent').height();
	
	if(h > c2h) {
		mh = $('#mainContent').height();
		$('#col2').height(mh);
	}
	if(h > c1h) {
		mh = $('#mainContent').height();
		$('#col1').height(mh);
	}
	$("#mainContent").width("auto");
	$("#col1").show();
	//$(".view-id-courses_list img").wrap('<div class="image-wrapper" />');
  });
})(jQuery);
