<!-- hide
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


// Opera 
var opera;
var currentBrowser = navigator.userAgent;
var search = currentBrowser.indexOf("Opera"); 
if (search != -1) var opera = true;

// Andere Browser 
var ns6 = (!document.all && document.getElementById); 
var ie4 = (document.all);
var ns4 = (document.layers);

// Vertikale LayerPosition 
var topMargin1;
var topMargin2;
var topMargin3;
var topMargin4;

// Definierte Hoehe der Layers (nur bei NS4 anders)
if (ie4) {
  var layerHeight1 = 20;
  var layerHeight2 = 1;
  var layerHeight3 = 1;
  var layerHeight4 = 1;
} else if (ns6 || opera) {
  var layerHeight1 = 21;
  var layerHeight2 = 1;
  var layerHeight3 = 1;
  var layerHeight4 = 1;
} else {
  var layerHeight_NN_1 = 35;
  var layerHeight_NN_2 = 1;
  var layerHeight_NN_3 = 1;
  var layerHeight_NN_4 = 1;
}

var layerHeightAltenrnative1 = 100;
var layerHeightAltenrnative2 = 100;

var slideTime  = 1;

function floatObject() { 
  if (ns4 || ns6) {
    findHt =  window.innerHeight;
  } else if(ie4) {
    findHt =  document.body.clientHeight;
  }
} 

function main() { 
  if (ns4) {
    topMargin1 = window.innerHeight - layerHeight_NN_1;
    topMargin2 = window.innerHeight - layerHeight_NN_2;
    topMargin3 = window.innerHeight - layerHeight_NN_3;
    topMargin4 = window.innerHeight - layerHeight_NN_4;
  } else if  (ns6 ||opera) {
    topMargin1 = window.innerHeight - layerHeight1;
    topMargin2 = window.innerHeight - layerHeight2;
    topMargin3 = window.innerHeight - layerHeight3;
    topMargin4 = window.innerHeight - layerHeight4;
  } else if (ie4) {
    topMargin1 = document.body.clientHeight - layerHeight1;
    topMargin2 = document.body.clientHeight - layerHeight2;
    topMargin3 = document.body.clientHeight - layerHeight3;
    topMargin4 = document.body.clientHeight - layerHeight4;
  } else {
    topMargin1 = layerHeightAltenrnative1;
    topMargin2 = layerHeightAltenrnative2;
    topMargin3 = layerHeightAltenrnative3;
    topMargin4 = layerHeightAltenrnative4;
  }

  if (ns4) { 
    this.currentY1   = document.floatLayer1.top; 
    this.currentY2   = document.floatLayer2.top;
    this.currentY3   = document.floatLayer3.top;
    this.currentY4   = document.floatLayer4.top; 
    this.scrollTop1  = window.pageYOffset;
    this.scrollTop2  = window.pageYOffset;
    this.scrollTop3  = window.pageYOffset;
    this.scrollTop4  = window.pageYOffset;
    mainTrigger();
  } else if(ns6) {
    this.currentY1 = parseInt(document.getElementById('floatLayer1').style.top); 
    this.currentY2 = parseInt(document.getElementById('floatLayer2').style.top); 
    this.currentY3 = parseInt(document.getElementById('floatLayer3').style.top); 
    this.currentY4 = parseInt(document.getElementById('floatLayer4').style.top); 
    this.scrollTop1 = scrollY;
    this.scrollTop2 = scrollY;
    this.scrollTop3 = scrollY;
    this.scrollTop4 = scrollY;
    mainTrigger(); 
  } else if(ie4) { 
    this.currentY1   = floatLayer1.style.pixelTop;
    this.currentY2   = floatLayer2.style.pixelTop;
    this.currentY3   = floatLayer3.style.pixelTop;
    this.currentY4   = floatLayer4.style.pixelTop;
    this.scrollTop1  = document.body.scrollTop; 
    this.scrollTop2  = document.body.scrollTop; 
    this.scrollTop3  = document.body.scrollTop; 
    this.scrollTop4  = document.body.scrollTop; 
    mainTrigger();
  } 
} 


function mainTrigger() { 
  var newTargetY1  = this.scrollTop1 + this.topMargin1;
  var newTargetY2  = this.scrollTop2 + this.topMargin2;
  var newTargetY3  = this.scrollTop3 + this.topMargin3;
  var newTargetY4  = this.scrollTop4 + this.topMargin4;
  
  if ( this.currentY1 != newTargetY1 || this.currentY2 != newTargetY2 || this.currentY3 != newTargetY3 || this.currentY4 != newTargetY4 ) { 
    if ( newTargetY1 != this.targetY1 || newTargetY2 != this.targetY2 || newTargetY3 != this.targetY3 || newTargetY4 != this.targetY4 ) { 
      this.targetY1 = newTargetY1;
      this.targetY2 = newTargetY2;
      this.targetY3 = newTargetY3;
      this.targetY4 = newTargetY4;
      floatStart();
    }
    animator(); 
  }
}


function floatStart() {
  var now  = new Date();
  this.A1    = this.targetY1 - this.currentY1;
  this.A2    = this.targetY2 - this.currentY2;
  this.A3    = this.targetY3 - this.currentY3;
  this.A4    = this.targetY4 - this.currentY4;
  
  this.B    = Math.PI / ( 2 * this.slideTime );
  this.C    = now.getTime();

  if ( Math.abs(this.A1) > this.findHt ) { 
    this.D1 = this.A1 > 0 ? this.targetY1 - this.findHt : this.targetY1 + this.findHt;
    this.D2 = this.A2 > 0 ? this.targetY2 - this.findHt : this.targetY2 + this.findHt;
    this.D3 = this.A3 > 0 ? this.targetY3 - this.findHt : this.targetY3 + this.findHt;
    this.D4 = this.A4 > 0 ? this.targetY4 - this.findHt : this.targetY4 + this.findHt;
    
    this.A1 = this.A1 > 0 ? this.findHt : -this.findHt;
    this.A2 = this.A2 > 0 ? this.findHt : -this.findHt;
    this.A3 = this.A3 > 0 ? this.findHt : -this.findHt;
    this.A4 = this.A4 > 0 ? this.findHt : -this.findHt;
    
  } else {   
    this.D1 = this.currentY1;
    this.D2 = this.currentY2;
    this.D3 = this.currentY3;
    this.D4 = this.currentY4;
  } 
}


function animator() { 
  var now  = new Date();
  var newY1  = this.A1 * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D1;
  var newY2  = this.A2 * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D2;
  var newY3  = this.A3 * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D3;
  var newY4  = this.A4 * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D4;
  
  newY1    = Math.round(newY1);
  newY2    = Math.round(newY2);
  newY3    = Math.round(newY3);
  newY4    = Math.round(newY4);

   if (( this.A1 > 0 && newY1 > this.currentY1 ) || ( this.A1 < 0 && newY1 < this.currentY1 ) || ( this.A2 > 0 && newY2 > this.currentY2 ) || ( this.A2 < 0 && newY2 < this.currentY2 ) || ( this.A3 > 0 && newY3 > this.currentY3 ) || ( this.A3 < 0 && newY3 < this.currentY3 ) || ( this.A4 > 0 && newY4 > this.currentY4 ) || ( this.A4 < 0 && newY4 < this.currentY4 )) { 
    if ( ie4 )floatLayer1.style.pixelTop = newY1;
    if ( ie4 )floatLayer2.style.pixelTop = newY2;
    if ( ie4 )floatLayer3.style.pixelTop = newY3;
    if ( ie4 )floatLayer4.style.pixelTop = newY4;
    
    if ( ns4 )document.floatLayer1.top = newY1;
    if ( ns4 )document.floatLayer2.top = newY2;
    if ( ns4 )document.floatLayer3.top = newY3;
    if ( ns4 )document.floatLayer4.top = newY4;
    
    if ( ns6 )document.getElementById('floatLayer1').style.top = newY1 + "px";
    if ( ns6 )document.getElementById('floatLayer2').style.top = newY2 + "px";
    if ( ns6 )document.getElementById('floatLayer3').style.top = newY3 + "px";
    if ( ns6 )document.getElementById('floatLayer4').style.top = newY4 + "px";
  } 
} 

function footerinit() {
   window.setInterval("main()", 10);
}
// stop hiding -->
