/* Copyright exedis Kai Blümchen und René Kubach GbR */
/* E-Mail: info@exedis.de    Internet: http://www.exedis.de            */
/* Alle Rechte vorbehalten. Änderungen untersagt.                         */

function dom() {
  return (document.getElementById);
}

function ns4() {
  return (document.layers);
}

function changeImg(name,src) {
  if (document.images) {
    document.images[name].src = src;
  }
}

function moveObjTo(name,x,y) {
  if (ns4()) {
    if(x!='') eval("document."+name).left = x;
    if(y!='') eval("document."+name).top  = y;
  } else if (dom()) {
    if(x!='') document.getElementById(name).style.left = x;
    if(y!='') document.getElementById(name).style.top  = y;
  }
}

function lade_frames( anzahl ) {
  if ( top.frames.length != anzahl ) {
    top.location.href = "index.php";
  }
}

function getFrameHeight() {
    if(window.innerHeight) return window.innerHeight;
    else if(document.body && document.body.clientHeight) return document.body.clientHeight;
    else return 0;
}

gakt = "";
nakt = "";

function gover(i) {
  gout();
  changeImg( "g"+i, "img/g4.gif" );
  gakt = i;
}

function gout() {
  if (gakt!="") {
    changeImg("g"+gakt, "img/g3.gif");
  }
  gakt = "";
}

function nover(i) {
  nout();
  changeImg( i, "img/reddot.gif" );
  nakt = i;
}

function nout() {
  if (nakt!="") {
    changeImg( nakt, "img/greydot.gif");
  }
  nakt = "";
}