function ShowFlash(strID, strFilename, nWidth, nHeight, nTop)
{
  document.writeln('<div id="'+strID+'" style="position: absolute; top: '+nTop+'px; left: '+GetPosition(nWidth)+'px;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+nWidth+'" height="'+nHeight+'" wmode="transparent"><param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /><param NAME="wmode" VALUE="transparent" /> <param name="movie" value="'+strFilename+'" /><embed src="'+strFilename+'" quality="high" bgcolor="#FFFFFF" width="'+nWidth+'" height="'+nHeight+'" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" wmode="transparent"></embed></object></div>');
}

function ShowFlashInline(strFilename, nWidth, nHeight)
{
  document.writeln('<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+nWidth+'" height="'+nHeight+'" wmode="transparent"><param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /><param NAME="wmode" VALUE="transparent" /> <param name="movie" value="'+strFilename+'" /><embed src="'+strFilename+'" quality="high" bgcolor="#FFFFFF" width="'+nWidth+'" height="'+nHeight+'" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" wmode="transparent"></embed></object></div>');
}

function GetPosition(nElementWidth)
{
  var nScreenWidth;

  if(navigator.appName.indexOf("Microsoft")!=-1)
  {
    nScreenWidth=document.body.offsetWidth+40;
  }
  else
  {
    nScreenWidth=window.innerWidth+22;
  }

  return (nScreenWidth-nElementWidth)/2;
}

function SetPosition(strID, nWidth)
{
  var nLeft;

  nLeft=GetPosition(nWidth);
  
  if(document.getElementById(strID)!=null)
  {
    document.getElementById(strID).style.left=nLeft+"px";
  }
}

function Init()
{
  if(navigator.appName.indexOf("Microsoft")!=-1)
  {
    window.onresize = function() { SetPosition('divFlash', 710); }

    SetPosition();
  }
}

window.onload=Init;