jQuery(document).ready(function () {
	if($.browser.msie) {
		//$('.js-shadow').textShadow({xoffset: "-2px", yoffset: "-2px", radius: 1, opacity: 30});
		$('.ribbon .shadow, .header, img').supersleight({exclude: '.btn, .btn a'});
	}
	
	// If active primary nav element has a ul set primary nav div to a certain height
	if ($('.primary-nav .active ul').length) {
		$('.primary-nav').height(85);
	}
});

// Safari needs to have everything loaded before adjusting heights.
// Don't place this in a document.ready function
window.onload = function() {
	$('#reside, #relax, #rehab').equalizeHeights();
	$('#flood-welcome, #flood-information').equalizeHeights();
	$('.equalize-tables-1 .data-table').equalizeHeights();
	$('.equalize-tables-2 .data-table').equalizeHeights();
	$('.equalize-banners .banner-content').equalizeHeights();
	$('#kinderhouse .banner-content').equalizeHeights();
	$('#kinderhouse .banner-content').equalizeHeights();
	$('#career-apply .banner-content').equalizeHeights();
	$('#contact-options .banner-content').equalizeHeights();
	$('#l42nd_serv, #l42nd .frame-left').equalizeHeights();	
	$('#bugs .content-box').equalizeHeights();	
};
