// JavaScript Document

window.addEvent('domready', function(){
									 
	//adjust legalbox area depending on new height of content
	nh = $('contentarea').getStyle('height').toInt() + $('contentarea').getStyle('margin-top').toInt();
	if($('paneltop').getStyle('height').toInt() < nh+100){
		$('paneltop').setStyle('height',nh+55);
	} else {
		$('paneltop').setStyle('height',1000);
	}
	$('legalarea').setStyle('margin-top',$('paneltop').getStyle('height').toInt()-950);
	
	if($('photos')) {
		ReMooz.assign('#photos a', {
			'origin': 'img',
			'shadow': 'onOpenEnd', // fx is faster because shadow appears after resize animation
			'resizeFactor': 0.8, // resize to maximum 80% of screen size
			'cutOut': false, // don't hide the original
			'opacityResize': 0.4, // opaque resize
			'dragging': false, // disable dragging
			'centered': true // resize to center of the screen, not relative to the source element
		});
	}
});