/*Executed before page is loaded.*/
window.onload = function(){
}

/*Executed after page is loaded*/
$(document).ready(function() {
	fixContainer();
	prepareWebpage();
});


/*Fixes the container object so that contours are displayed correctly in background.*/
function fixContainer(){
	var theDiv = $("#container")[0];
	var theWindow = $(window).height();
	var theContent = $(document).height();
	if(theContent>theWindow)$("#container").height(theContent);
}