(function($)
{
	// Set starting height property
	var s = 0;

	// Function to fix the 100% height
	fixHeight = function()
	{
		// Get the current document's and window's dimension	
		var w = $(window).height();
	
		// Get the content-container's current height
		var c = $('#content').height();
	
		// Set height of the header to remove from the total height
		var h = 95;
	
		// Set starting height if empty
		if (!s) s = c;
	
		// Fix the height if the document's height is bigger
		// than the start
		if ((w - h) > s) $('#content').height(w - h);
	
		// Set the correct height back
		else $('#content').height(s);
	
		// Get the document't s height
		var d = $(document).height();
	
		// If the document is still higher than the current
		// window's size, something else is bigger...
		// resize to the corrent size
		$('#content').height(d - h);
	};
})(jQuery);
