var 
    boIncludeFlash = false
    ;


function Initialize ()
{
  Resize();
  
  // load flash content
  
  // flash_includeSWF( name, src, targetid, width, height, alignment )
  if (boIncludeFlash && "undefined" != typeof SWFObject)
  {
    flash_includeSWF("Logo", "/fileadmin/lib/dsa/flash/Logo.swf", "MainLogo", "400", "200", "left");
    flash_includeSWF("Intro", "/fileadmin/lib/dsa/flash/Intro.swf", "MainTopImage", "400", "200", "right");
  }  
} // Initialize()






function Resize()
{
  return;

  var body = document.getElementsByTagName("body")[0],
      cnt = document.getElementById("Page"),
      sts = document.getElementById("Statusbar"),
      bodyh, cnth, diff;

  // Set page container height
  if (null != cnt && null != body && null != sts)
  {
    bodyh = body.offsetHeight;
    cnth  = cnt.offsetHeight;
    diff  = bodyh - cnth;
    if (diff > 0)
    {
      cnt.style.height = cnth + diff-1 + "px";
      sts.style.top    = diff + "px";
    }
  }

} // Resize()

function HandleResize( boExecute )
{
  if (true == boExecute)
  {
    Resize();
    HandleResize.timeout = null;
  }
  else
  {
    clearTimeout(HandleResize.timeout);
    HandleResize.timeout = setTimeout("HandleResize(true)", 100);
  }
}
HandleResize.timeout = null;




/**************************************
 * Flash Content
 *************************************/

function flash_includeSWF( in_name, in_src, in_targetid, in_width, in_height, in_align )
{
  var w, h, align,
      so;
  
  if (null != in_name && null != in_src && null != in_targetid)
  {
    w     = (null != in_width)  ? in_width  : "320";
    h     = (null != in_height) ? in_height : "240";
    align = (null != in_align)  ? in_align  : "middle";

    so = new SWFObject(in_src, in_name, w, h, 7, "#111111");
    so.write(in_targetid);

  } // if (in_src)
}

