$(function() {
	
	if($('#photo_library_content').outerHeight() < $('#side_nav').outerHeight())
	{
		$('#photo_library_content').height($('#side_nav').outerHeight() - 50);
	}
	else
	{
		$('#side_nav').height($('#photo_library_content').outerHeight());
	}

	if($('#case_studies_content').outerHeight() < $('#side_nav').outerHeight())
	{
		$('#case_studies_content').height($('#side_nav').outerHeight() - 50);
	}
	else
	{
		$('#side_nav').height($('#case_studies_content').outerHeight());
	}

	$('#case_studies_display').height($('#case_studies_content').outerHeight() - 50);
	
	try {
	$('#photo_library_content ul a.lightbox').colorbox({opacity: 0.7});
	} catch(e) {}
	
	
	$('#case_study_image_nav_container li a').mouseover(function() {
		//console.log($(this).attr('href'));
		$('#case_study_image_nav_container li a').removeClass('active');
		$(this).addClass('active');
		$('#case_study_image img').attr('src', $(this).attr('href'));
	});
	
});
