/*

  Copyright (C) 2008 LIONICS Internet- und Netzwerkloesungen, L. Fellermayr.

  All rights reserved.

*/

function resizeContent ()
{

  offset = 310;

  if (is.ie5)
    val = document.body.clientHeight - offset;

  else if (document.all)
    val = document.documentElement.clientHeight - offset;

  else
    val = window.innerHeight - offset;

  eval ('document.getElementById("content").style.height = "' + val + 'px";');

} // resizeContent ()


function initPage ()
{

  /* initially resize content div */

  resizeContent ();

  /* set up all the handlers */

  window.onresize = resizeContent;

} // initPage ()


function tb_goaway (target)
{

  self.parent.tb_remove ();
  self.parent.location.href = target;

} // tb_goaway ()


function leaveForeignFrames ()
{

  if (top.frames.length > 0)
    top.location.href = self.location;

} // leaveForeignFrames ()


/* showVideo () : shortcut function for easier access */

function showVideo (idart, width, height)
{

  tbwidth = width - 20;
  tbheight = height + 84;

  queryStr = 'front_content.php?idart=' + idart + '&amp;vw=' + width + '&amp;vh=' + height + '&amp;TB_iframe&amp;modal=true&amp;height=' + tbheight + '&amp;width=' + tbwidth;

  tb_show(null, queryStr, false);

} // showVideo ()

function showBox (idart, width, height)
{

  width -= 30;
  height -= 11;

  queryStr = 'front_content.php?idart=' + idart + '&amp;TB_iframe&amp;modal=true&amp;height=' + height + '&amp;width=' + width;

  tb_show(null, queryStr, false);

} // showBox ()

