<!--
var al, imagesrc, ex=-32, ey=-32, x0=-32, y0=-32
  
//Browser checking and syntax variables
var docLayers = (document.layers) ? true:false;
var docId = (document.getElementById) ? true:false;
var docAll = (document.all) ? true:false;
var docbitK = (docLayers) ? "document.layers['":(docId) ? "document.getElementById('":(docAll) ? "document.all['":"document."
var docbitendK = (docLayers) ? "']":(docId) ? "')":(docAll) ? "']":""
var stylebitK = (docLayers) ? "":".style"

var ns6=document.getElementById&&!document.all

function moveeyes() { // Neue Position berechnen
  if (Math.abs(ex-x0)>=10) { 
    x0+=Math.floor((ex-x0)*0.1) 
  } else if (ex!=x0) { 
    x0+=Math.abs(ex-x0)/(ex-x0) 
  }
  if (Math.abs(ey-y0)>=10) { 
    y0+=Math.floor((ey-y0)*0.1) 
  } else if (ey!=y0) { 
    y0+=Math.abs(ey-y0)/(ey-y0) 
  }

  // entsprechende Grafik in Bezug zur Maus-Position waehlen
  imagesrc=""
  if ( (ex<x0) && ( (x0-ex) > Math.abs(y0-ey)/2 ) )
  { imagesrc="images/animation/augen_l.gif"
    if ( (x0-ex) < Math.abs(y0-ey)*2 )
    { 
      if (ey<y0) 
        imagesrc="images/animation/augen_lo.gif"
      if (ey>y0) 
        imagesrc="images/animation/augen_lu.gif"
    }
  }
  if ( (ex>x0) && ( (ex-x0) > Math.abs(y0-ey)/2) ) {
    imagesrc="images/animation/augen_r.gif"
    if ( (ex-x0) < Math.abs(y0-ey)*2 ) {
      if (ey<y0) 
        imagesrc="images/animation/augen_ro.gif"
      if (ey>y0) 
        imagesrc="images/animation/augen_ru.gif"
    }
  }
  if (imagesrc=="") {
    if (ey<y0) 
      imagesrc="images/animation/augen_o.gif"
    if (ey>y0) 
      imagesrc="images/animation/augen_u.gif"
    if ((ex==x0)&&(ey==y0)) 
      imagesrc="images/animation/augen.gif"
  }

  // Grafik und Position setzen
  document.images.eyeimg.src=imagesrc;
  x1=x0-72;
  eval("al.left='"+ x1 + "px'");
  eval("al.top='" + y0 + "px'");

  setTimeout("moveeyes();",100)
}

// Get the horizontal position of the mouse
function getMouseXPos(e) {
  if (document.layers||ns6) {
    return parseInt(e.pageX+10)
  } else {
    return (parseInt(event.clientX+10) + parseInt(document.body.scrollLeft))
  }
}
// Get the vartical position of the mouse
function getMouseYPos(e) {
  if (document.layers||ns6) {
    return parseInt(e.pageY)
  } else {
    return (parseInt(event.clientY) + posTop())
  }
}

function getposition(e) { 
  ex = getMouseXPos(e);
  ey = getMouseYPos(e);
}

function initeyes()
{ // Alle Alien-Grafiken laden
  isIm = (document.images) ? 1 : 0
  if (isIm)
  { arImLoad = new Array
    ('augen','augen_u','augen_o','augen_l','augen_r',
     'augen_lu','augen_lo','augen_ru','augen_ro')
    arImList = new Array ()
    for (counter in arImLoad)
    { arImList[counter] = new Image()
      arImList[counter].src = arImLoad[counter] + '.gif'
    }
  }
  al = eval(docbitK + "eyes" + docbitendK + stylebitK);

//Let the browser know when the mouse moves
  if (docLayers) {
    document.captureEvents(Event.MOUSEMOVE)
  } 
  document.onmousemove = getposition
  moveeyes();

}


//-->
