function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

$(document).ready(function() {	
	equalHeight($('.equal'));
	
	$('.colorbox').colorbox({
		iframe: true, 
		innerWidth: '700', 
		innerHeight: '400'
	});
	$('.alternating li:even').addClass('even');
	$('.partners li:even').before('<div class="clear" />');
	
	$('.alternating li').hover( 
		function() {$(this).addClass('hover')},
		function() {$(this).removeClass('hover')}
	);

	$('#header a').supersleight({shim: '/images/common/clear.gif'});
	$('#leftnav ul li').supersleight({shim: '/images/common/clear.gif'});
	$('#content #video a').supersleight({shim: '/images/common/clear.gif'});
	$('#cboxClose').supersleight({shim: '/images/common/clear.gif'});
	$('img').supersleight({shim: '/images/common/clear.gif'});
	
	$('img.alignRight').wrapAll('<div class="photoContainer alignRight"></div>').before('<div class="top"><div></div></div>').after('<div class="btm"><div></div></div>').wrap('<div class="photo"><div></div></div>').removeClass('alignRight');
	$('img.alignLeft').wrapAll('<div class="photoContainer alignLeft"></div>').before('<div class="top"><div></div></div>').after('<div class="btm"><div></div></div>').wrap('<div class="photo"><div></div></div>').removeClass('alignLeft');
			
});

