var flexiBackground = function(){
	
	/**
		Declare and define variables
	*/ 
	var $window = $(window),
                $container = $('content-container'),
                $menu = $('menu-container');

	var resizeAction = function() {

		$container.setStyle('min-height', $menu.getSize().y-20);

	};
	
	return {
		
		/*
			Sets up the basic functionality
		*/
		initialize : function() {
			
			// Set up a resize listener to add/remove classes from the body 
			$window.addEvent('resize', resizeAction);

			// Set it up by triggering a resize
			$window.fireEvent('resize');
		}
	};
};

window.addEvent('domready', function() {
    flexiBackground().initialize();
});

