<!--
// SHEEP MOVER v2.5 dwyss@gmx.net
//
// Anpassung an NS 4: Frank@Antwerpes.de
// Anpassung an IE: Tom@Stich.com
var nn = (document.layers);
var ie = (document.all);

// Logo animation
var nObjects // muss in HTML-datei einen entsprechenden wert zugewiesen bekommen!!!!!!!!!!!!
var yBase = 50;
var xBase = 50;
var delay = 20;  // 15
var yAmpl = 10;
var yMax = 40;
var step = .1;   // .2
var ystep = .2;  // .5
var currStep = 0;
var tAmpl=1;
var Xpos = 50;
var Ypos = 50;
var j = 0;

function MoveHandlerNN(e) {
Xpos = e.pageX ;
Ypos = e.pageY ;
}

// original: function MoveHandlerIE() {
// original: Xpos = event.clientX ;
// original: Ypos = event.clientY ;
// original: }
function MoveHandlerIE() {
    Xpos = window.event.x + document.body.scrollLeft;
    Ypos = window.event.y + document.body.scrollTop;
}

function animateNN() {
yBase = window.innerHeight/4 ;
xBase = window.innerWidth/4;
// for ( j = 0 ; j < 6 ; j++ ) { geändert zu
for ( j = 0 ; j < nObjects ; j++ ) {
document["s"+j].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)* Math.cos((currStep + j*25)/10);
document["s"+j].left = Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)* Math.cos((currStep + j*25)/10);
}
currStep += step;
setTimeout("animateNN()", delay) ;
}

function animateIE() {
yBase = document.body.clientHeight/4;
xBase = document.body.clientWidth/4;
// for ( j = 0 ; j < 6 ; j++ ) { geändert zu
for ( j = 0 ; j < nObjects ; j++ ) {
document.all["s"+j].style.top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)* Math.cos((currStep + j*25)/10);
document.all["s"+j].style.left = Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)* Math.cos((currStep + j*25)/10);
}
currStep += step;
setTimeout("animateIE()", delay) ;
}

function animate() {
if (nn) animateNN();
if (ie) animateIE();
}

if(nn) {
window.captureEvents(Event.MOUSEMOVE);
window.onmousemove = MoveHandlerNN;
}
if (ie)
document.onmousemove = MoveHandlerIE;

//-->