function WriteFlash(sWidth, sHeight, sName, sVars, sFile, sScale, sWhere)
{
	GetObject(sWhere).innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + sWidth + "\" height=\"" + sHeight + "\" id=\"" + sName + "\" align=\"middle\" scale=\"" + sScale + "\"><param name=\"flashvars\" value=\"" + sVars + "\" /><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"" + sFile + "\" /><param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"" + sScale + "\" /><param name=\"wmode\" value=\"transparent\"><embed src=\"" + sFile + "\" quality=\"high\" width=\"" + sWidth + "\" height=\"" + sHeight + "\" name=\"" + sName + "\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" flashvars=\"" + sVars + "\" wmode=\"transparent\" /></object>";
}

function GetObject(sName)
{
	var obj;
	if (document.getElementById)
	{
		obj = document.getElementById(sName);
	}
	else if (document.all)
	{
		obj = document.all[sName];
	}
	else if (document.layers)
	{
		obj = document.layers[sName];
	}
	return obj;
}

function init()
{
    window.onresize = ContentSize; 
    ContentSize();    
}

function ContentSize() 
{
  	var myHeight = 0;
  	
	if( typeof( window.innerWidth ) == 'number' ) 
	{
        //Non-IE
        myHeight = window.innerHeight;
    } 
    else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
    {
        //IE 6+ in 'standards compliant mode'
        myHeight = document.documentElement.clientHeight;
    } 
    else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
    {
        //IE 4 compatible
        myHeight = document.body.clientHeight;
    }
    
    oHeader = GetObject("header");
    oNav = GetObject("nav");
    oContent = GetObject("content");
    oFooter = GetObject("footer");
        

    if ((oHeader.offsetHeight + oNav.offsetHeight + oContent.offsetHeight + oFooter.offsetHeight) < myHeight)
    {
	    oContent.style.height = (myHeight - oHeader.offsetHeight - oNav.offsetHeight - oFooter.offsetHeight) + "px";
	}
}