document.domain = "source.at";
window.deko_nummer=3;
function equadrat_reload()
{
  window.deko_nummer=(window.deko_nummer+1) % 8;
  var php  = "deko.php";
  var args = "&deko=" + window.deko_nummer + "&dummy=" + (new Date()).getTime();
  var url  = window.location.protocol + "//" + window.location.host + "/" + php + "?" + args;
  var url2 = window.location.protocol + "//" + window.location.host + "/db.php?php=" + php + "&" + args;
  var url3 = window.location.protocol + "//" + window.location.host + "/db2.php?deko=" + window.deko_nummer + "&dummy=" + (new Date()).getTime();;
  var das  = window;

    while (das != top && das.document.getElementById('equadrat') == undefined)
    {
      das = das.parent;
    }
    if (das == window)
    {
      if (php != "")
      {
        das.document.getElementById('equadrat').src   = url;
        das.document.getElementById('dbquadrat').src  = url2;
        das.document.getElementById('db2quadrat').src = url3;
      }
      switch(window.deko_nummer % 8 )
      {
        case 0:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=LittlePilotBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/little_pilot.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

        case 1:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=SuperHeroBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/frush.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

        case 2:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=LittlePilotBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/little_pilot.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

        case 3:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=SuperHeroBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/frush.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

        case 4:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=LittlePilotBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/little_pilot.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

        case 5:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=SuperHeroBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/frush.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

        case 6:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=LittlePilotBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/little_pilot.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

        case 7:
          das.document.getElementById('deko_links_unten').innerHTML = '<a href="/weiter.php?deko=SuperHeroBalken" target="_blank"><img src="http://bike.flash.source.at/images/deko/frush.jpg" align="middle" border="0" alt="" title="by the makers of the Kornspitz Skijumping game" /></a>';
          break;

      }
    }
    else
    {
      das.equadrat_reload();
    }
}
function check_full_screen()
{
  try
  {
    if (self == top || parent == top)
    {
      if (top.innerWidth)
      {
        if (top.innerWidth < 550 || top.innerHeight < 480)
        {
          alert(window.full_screen_text + "");
        }
      }
      else if (top.document.documentElement && top.document.documentElement.clientWidth > 0)
      {
        if (top.document.documentElement.clientWidth < 550 || top.document.documentElement.clientHeight < 480)
        {
          alert(window.full_screen_text + "");
        }
      }
      else if (top.document.body)
      {
        if (top.document.body.clientWidth < 550 || top.document.body.clientHeight < 480)
        {
          alert(window.full_screen_text + "");
        }
      }
    }
  }
  catch(e)
  {
  }
}
function make_full_screen()
{
}
function auto_full_screen()
{
  if (self == top || parent == top)
  {
    if (top.innerWidth)
    {
      if (top.innerWidth >= 550 && top.innerHeight >= 480)
      {
        return true;
      }
    }
    else if (top.document.documentElement && top.document.documentElement.clientWidth > 0)
    {
      if (top.document.documentElement.clientWidth > 550 && top.document.documentElement.clientHeight > 480)
      {
        return true;
      }
    }
    else if (top.document.body && top.document.body.clientWidth > 0)
    {
      if (top.document.body && document.body.clientWidth > 550 && top.document.body.clientHeight > 480)
      {
        return true;
      }
    }
    window.setTimeout("check_full_screen()", 200);
  }
  return true;
}
if (self == top && window.never_on_top)
{
  try
  {
    location.replace('/?');
  }
  catch(e)
  {
    location = '/?';
  }
}
else if (self == top && !window.ontop && !window.ontop_alerted)
{
  try
  {
    document.write("<h1 align=\"center\" class=\"load_frameset\"><a href=\"/" + location.search + "\" class=\"load_frameset\">load the complete frameset</a></h1>");
    window.ontop_alerted = true;
  }
  catch(e)
  {
  }
}
function open_underberg_window(width, height)
{
  top.underberg_window = window.open("http://ks.underberg.source.at/quiz_kraeuter/", "underberg_quiz", "width=" + width + ",height=" + height + ",left=" + (screen.width - width)/2 + ", top=" + (screen.height - height)/2 + ",resizable=yes");
  if (top.underberg_window)
  {
    top.location = "http://kornspitz.source.at";
  }
}

