$(document).ready(
	function() {
		/*$('.sgh_spotlight_cont').innerfade({ 
			speed: 1000, 
			timeout: 6000, 
			type: 'sequence'
		});*/
	}
);


$(window).load(function() {

	$('.sgh_spotlight_cont').each(function(){
		var oSpot = $(this);
		var iMaxHeight = 0;
		var iCount = 0;
		
		$(this).children('div').each(function(){
			var oCont = $(this);
			var oImg = $(oCont).children('img');
			
			var iImgHeight = $(oImg).height();
			
			if(iImgHeight > iMaxHeight) {
				iMaxHeight = iImgHeight;
			}
			
			$(oCont).css({'height': iImgHeight+"px"});
			
			if(iCount > 0) {
				$(oCont).hide();
			}
			
			iCount++;
		});
		
		$(oSpot).innerfade({ 
			speed: 1000, 
			timeout: 6000, 
			type: 'sequence'
		});
		
		$(oSpot).css({'height': iMaxHeight+"px"});
	});

});

