<!--
var Ver4=parseInt(navigator.appVersion.charAt(0))>=4
var IE=navigator.appName.indexOf("Microsoft")!=-1
var al, imagesrc, ex=-32, ey=-32, x0=-32, y0=-32


function BewegeSandini()
{ // Neue Position des Sandini 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    0e,1u,2o,3l,4r,5lu,6lo,7ru,8ro
  imagesrc=""
  if ( (ex<x0) && ( (x0-ex) > Math.abs(y0-ey)/2 ) )
  { imagesrc=arImList[4].src;
    if ( (x0-ex) < Math.abs(y0-ey)*2 )
    { if (ey<y0) imagesrc=arImList[5].src;
      if (ey>y0) imagesrc=arImList[3].src;
    }
  }
  if ( (ex>x0) && ( (ex-x0) > Math.abs(y0-ey)/2) )
  { imagesrc=arImList[0].src;
    if ( (ex-x0) < Math.abs(y0-ey)*2 )
    { if (ey<y0) imagesrc=arImList[7].src;
      if (ey>y0) imagesrc=arImList[1].src;
    }
  }
  if (imagesrc=="")
  { if (ey<y0) imagesrc=arImList[6].src;
    if (ey>y0) imagesrc=arImList[2].src;
    if ((ex==x0)&&(ey==y0)) imagesrc=arImList[9].src;
  }

  // Grafik und Position setzen
  if (Ver4)
  { if (!IE)
    { document.SandiniLayer.document.images.Sandini.src=imagesrc }
    else document.all.SandiniLayer.document.images.Sandini.src=imagesrc
  }
  al.left=x0-32
  al.top=y0

  setTimeout("BewegeSandini();",100) // Wie schnell folgt Sandini dem Cursor? Kleinere Zahl gleich schneller, Opt. ca 100
}

function MeinMausEvent(e)
{ // Position des Maus-Cursors ermitteln
  if (Ver4)
  { if (!IE)
    { ex=e.pageX
      ey=e.pageY }
    else
    { ex=event.clientX + document.body.scrollLeft
      ey=event.clientY + document.body.scrollTop }
  }
}

function ScriptSetup()
{
st_onload();
 // Alle Sandini-Grafiken laden
  isIm = (document.images) ? 1 : 0
  if (isIm)
  {
    arImList = new Array();
    arImList[0] = new Image(); arImList[0].src = "../images/mouseimages/sandini_logo_r.gif";
    arImList[1] = new Image(); arImList[1].src = "../images/mouseimages/sandini_logo_ru.gif";
    arImList[2] = new Image(); arImList[2].src = "../images/mouseimages/sandini_logo_u.gif";
    arImList[3] = new Image(); arImList[3].src = "../images/mouseimages/sandini_logo_lu.gif";
    arImList[4] = new Image(); arImList[4].src = "../images/mouseimages/sandini_logo_l.gif";
    arImList[5] = new Image(); arImList[5].src = "../images/mouseimages/sandini_logo_lo.gif";
    arImList[6] = new Image(); arImList[6].src = "../images/mouseimages/sandini_logo_o.gif";
    arImList[7] = new Image(); arImList[7].src = "../images/mouseimages/sandini_logo_ro.gif";
    arImList[8] = new Image(); arImList[8].src = "../images/mouseimages/sandini_logo_s.gif";
    arImList[9] = new Image(); arImList[9].src = "../images/mouseimages/sandini_logo_p.gif";
    arImList[10] = new Image(); arImList[10].src = "../images/mouseimages/sandini_logo_e.gif";
  }

  // Globale Variablen setzen und Maus-Event initialisieren
  if (Ver4)
  { if (!IE)
    { al=document.SandiniLayer
      document.captureEvents(Event.MOUSEMOVE)
    }
    else
    { al=document.all.SandiniLayer.style }
    document.onmousemove = MeinMausEvent
    BewegeSandini()
  }
}

function Hello()
{ window.focus()
  alert("SANDINI freut sich Sie auf seiner Web-Seite begrüßen zu dürfen")
}



function ZeigeSandini()
{ // Setzen der Block-Level Container zur Anzeige der Grafiken
  if(Ver4)
  { s ='<DIV STYLE="visibility:hidden"></DIV>'
    s+='<DIV ID="SandiniLayer" STYLE="position:absolute; '
    s+='top:-32; left:-32; width:32; height:32">'
    s+='<A HREF="javascript:Hello();">'
    s+='<IMG NAME="Sandini" SRC="images/mouseimages/Sandini_Logo_s.gif" border=0>'
    s+='</A></DIV>'
    document.writeln(s)
  }
}

window.onload = ScriptSetup
ZeigeSandini()
//-->