function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

//**********************************************************************************************
//** NU EDGE SLIDESHOW
//**********************************************************************************************
var slideshow_position = 0;
var slideshow_items = 0;
var slideshow_timing = 5;

function activate_slideshow(){
		// Hide all contents
		$('#slideshow').children().hide();
		slideshow_items = $('#slideshow').children().length;
		$('#slideshow').children(':eq('+slideshow_position+')').show();
		slideshow_timer();
}

function slideshow_timer(){
	setTimeout(slideshow_nextslide,slideshow_timing * 1000);
}

function slideshow_nextslide(){
	// Fade current out
	$('#slideshow').children(':eq('+slideshow_position+')').fadeOut('slow');
	
	if(slideshow_position + 1 == slideshow_items){
		slideshow_position = 0;	
	} else {
		slideshow_position++;	
	}
	
	// Fade current in
	$('#slideshow').children(':eq('+slideshow_position+')').fadeIn('slow');
	slideshow_timer();
}
