//equal heights function - matches heights of a group of elements to the largest 
function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

$(document).ready(function() { 
	
	/************************************************
		set equalHeights on left, center and right columns
	*************************************************/	
	equalHeight($('#sidebar-left, #center, #sidebar-right'));
	
	/****************************************
		sidenav content rotater
	****************************************/
	$('#profile').cycle({
	    speed: 1500,
		easing: 'easeOutQuad',
	    timeout: 200000,
		delay: -2000, 
	    next: '#next-slide', 
	    prev: '#prev-slide',
		pause: 1
	});

	$("#center img[align='left']").addClass('left-image');
	$("#center img[align='right']").addClass('right-image');
	

});
