// JavaScript Document
var width = 0;
var height = 0;

function getWindowHeight()
{
	 if (typeof window.innerWidth != 'undefined')
	 {
		  return window.innerHeight;
	 }			 
	 else if (typeof document.documentElement != 'undefined'
		 && typeof document.documentElement.clientWidth !=
		 'undefined' && document.documentElement.clientWidth != 0)
	 {
		   return document.documentElement.clientHeight;
	 }			 
	 else
	 {
		   return document.getElementsByTagName('body')[0].clientHeight;
	 }
}

function getWindowWidth()
{
	 if (typeof window.innerWidth != 'undefined')
	 {
		  return window.innerWidth;
	 }			 
	 else if (typeof document.documentElement != 'undefined'
		 && typeof document.documentElement.clientWidth !=
		 'undefined' && document.documentElement.clientWidth != 0)
	 {
		   return document.documentElement.clientWidth;
	 }			 
	 else
	 {
		   return document.getElementsByTagName('body')[0].clientWidth;
	 }			 	 
}


function checkResize()
{
	if(width != getWindowWidth() || height != getWindowHeight())
	{					
		clearInterval(intervalId);
		window.location.reload( false );
	}
}

width = getWindowWidth();
height = getWindowHeight();			

var flashWidth = width;
var flashHeight = height;

if(flashWidth < 800)
{
	flashWidth = 800;
}

if(flashHeight < 600)
{
	flashHeight = 600;			
}

var intervalId = setInterval("checkResize()",200);

var flashvars = {};
var params = {};
var attributes = {};		
swfobject.embedSWF("Jolt.swf?v=4&width=" + flashWidth + "&height=" + flashHeight, "flashContent", width, height, "9.0.0", "expressInstall.swf", flashvars, params, attributes);