jQuery(document).ready(function() {
	jQuery('ul.image_slide').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '287px'});
});
jQuery(document).ready(function() {
	Layout.resize();                                                                           
});

var Layout = {
   	
	resize	: function()
	{
		var lftMenuHeight = jQuery('div#content div.menu').height()+30; // 30 is the padding of the parent element
		if (jQuery('div#content div#rgt').height()+175 < jQuery(window).height()) {
			jQuery('div#content div#rgt').css('height', jQuery(window).height()-174+'px');
			jQuery('div.menu_spacer').css('height', (jQuery(window).height()-174-lftMenuHeight)+'px');
		} else {
		    jQuery('div.menu_spacer').css('height', (jQuery('div#content div#rgt').height()-lftMenuHeight)+'px');
		}     
	}   	
	
};

jQuery(window).resize(function() {
 	Layout.resize();
});


