<!--
var WindowWidth;
var WindowHeight;
var swfHeight;
var swfWidth;
var swfHalfHeight;
var swfRatio;
var swfMargin;


// Check window size start
// ------------------------------------------------------------------------------
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
if (typeof window.innerWidth != 'undefined')
{
	  WindowWidth = window.innerWidth,
	  WindowHeight = window.innerHeight
}

// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
else if (typeof document.documentElement != 'undefined'
	 && typeof document.documentElement.clientWidth !=
	 'undefined' && document.documentElement.clientWidth != 0)
{
	   WindowWidth = document.documentElement.clientWidth,
	   WindowHeight = document.documentElement.clientHeight
}

// older versions of IE
else
{
	   WindowWidth = document.getElementsByTagName('body')[0].clientWidth,
	   WindowHeight = document.getElementsByTagName('body')[0].clientHeight
}
// ------------------------------------------------------------------------------
// Check window size end


// Check flash ratio size start
// ------------------------------------------------------------------------------  
// give the flash correct size depend on window width..
if (WindowWidth>=1681)
{
	//1920x1200 (1132x800)
	swfWidth = "1680";
	swfHeight = swfWidth / 1.908;
	swfWidth = Math.round(swfWidth);
	swfHeight = Math.round(swfHeight);
	swfHalfHeight = -swfHalfHeight;
	swfHalfHeight = Math.round(swfHalfHeight=swfHeight/2  );
	swfRatio = swfWidth/swfHeight;
}
else
{
	//TEST
	swfMargin = "25";
	swfHeight = WindowHeight - swfMargin;
	swfWidth = swfHeight * 1.908
	
	swfWidth = Math.round(swfWidth);
	swfHeight = Math.round(swfHeight);
	swfHalfHeight = swfHalfHeight;
	swfHalfHeight = Math.round(swfHalfHeight=swfHeight/2  );
	swfRatio = swfWidth/swfHeight;
}

//BARE FOR UTSKRIFT PÅ SKJERM
//document.write("swfWidth= " + swfWidth + "<br>");
//document.write("swfHeight= " + swfHeight + "<br>");
//document.write("swfHalfHeight= " + swfHalfHeight + "<br>");
//document.write("swfRatio= " + swfRatio + "<br>");
 //-->
