function getTotalHeight(){
	//Getting height of wrapper div
	var topHeight = 0;
	var contentHeight = document.getElementById("wrapper").offsetHeight;
	var bottomSpace = 0;
	var fullHeight = topHeight + contentHeight + bottomSpace;
   
   // Checking for max avail height in browser
   if(fullHeight < window.innerHeight){
	    fullHeight = window.innerHeight;	    
	}
	//Equivalent for ie
	if(fullHeight < document.body.clientHeight){
	    fullHeight = document.body.clientHeight;
	}
    
// ====================================================================
//       URLEncode and URLDecode functions
//
// Copyright Albion Research Ltd. 2002
// http://www.albionresearch.com/
//
// You may copy these functions providing that 
// (a) you leave this copyright notice intact, and 
// (b) if you use these functions on a publicly accessible
//     web site you include a credit somewhere on the web site 
//     with a link back to http://www.albionresearch.com/
//
// If you find or fix any bugs, please let us know at albionresearch.com
//
// SpecialThanks to Neelesh Thakur for being the first to
// report a bug in URLDecode() - now fixed 2003-02-19.
// And thanks to everyone else who has provided comments and suggestions.
// ====================================================================
	
	// Skriver flashen i html 
	var FO = { movie:"http://www.museloungedc.com/images/background.swf", swliveconnect:"true", allowScriptAccess:"sameDomain", width:"100%", wmode:"opaque",  height:fullHeight.toString(), bgcolor:"#000000", majorversion:"8", build:"0", id:"bgflashobject", name:"bgflashobject", flashvars:"wrapperHeight=" + contentHeight, xi:"false"  };
	UFO.create(FO, "bgflash");
	
	/*var fo = new FlashObject( "/ui/park/flash/llp_topmenu.swf", "flashMovie", "100%", fullHeight.toString(), "8", "#FFFFFF", true );
    fo.addParam("wmode", "transparent");
    fo.addParam("swliveconnect", "true");
    fo.addParam("allowScriptAccess", "allways");
    
    fo.addVariable("wrapperHeight", contentHeight);
    fo.addVariable("surl", xmlpath);
    
	fo.write( "bg-flash" );	 		
	*/
	document.getElementById("bgflash").style.height = fullHeight + "px";	
}

window.onload = getTotalHeight;