 
// JavaScript Document
function setFlashBGHeight(){
	var numPageHeight = $("#Wrapper").height() - $("#footer").height();// De sidste 30 kan nok skiftes ud med noget padding på containeren
//	var numWinHeight = window.innerHeight;
	var numWindowHeight = $(window).height();
	var numTopHeight = 188;
	//testing if the current page is the front page (contains the div with id "Content_Container")
	if ($("#Content_Container").length > 0)
	{
		var numContentHeight = $("#Content_Container").height();
		
	}
	//testing if the current page is a sub page (contains the div with id "SubContent_Container")
	if($("#SubContent_Container").length > 0)
	{
		var numContentHeight = $("#SubContent_Container").height();
	}
	
	if(numPageHeight>numWindowHeight){
		numOutputHeight = numPageHeight;
	}
	else
	{
		numOutputHeight = numWindowHeight;
	}
	var finalHeight = numOutputHeight - $("#footer").height();
	var pageContentHeight = numTopHeight + numContentHeight + 18; // adding 18px padding
	var contentBtmPadding = finalHeight - pageContentHeight + 18; // adding 18px padding
	if(contentBtmPadding > 0)
	{
//		$("#Container").css("padding-bottom", contentBtmPadding + "px");
		$("#Page_Container").css("height", finalHeight + "px");
	}
	else
	{
		$("#Page_Container").css("height", pageContentHeight + "px");
	}
}