$(document).ready(function() {
	var wrapperHeight = $(document).height();
	if(wrapperHeight < 870) wrapperHeight = 870;
						   
	$('#wrapper').height(wrapperHeight);
	
	if(typeof sIFR == "function"){
		sIFR.replaceElement("h1.newsarticle-title", named({sFlashSrc: '/modules/core/flash/poplar.swf', sColor: '#E64715', sWmode: 'transparent'}));
		sIFR.replaceElement("h2", named({sFlashSrc: '/modules/core/flash/poplar.swf', sColor: '#E64715', sWmode: 'transparent'}));
		sIFR.replaceElement("h3", named({sFlashSrc: '/modules/core/flash/poplar.swf', sColor: '#E64715', sWmode: 'transparent'}));
	};
	
	if($('#content').attr('scrollHeight') <= 280) $('#content').attr('style', 'overflow: hidden;');
	
	$('.person').hover(function(evt) {
			var id = $(this).attr('id');
			$('#overlay-' + id).show();
			$('#'+ id).addClass('person-selected');
		},
		function(evt) {
			var id = $(this).attr('id');
			$('#overlay-' + id).hide();			
			$('#'+ id).removeClass('person-selected');
		}
	);
	
});
