// Browser Check

  function moveLAYER(layName,x,y){
    if(document.layers)document.layers[layName].moveTo(x,y);   //NN
    if(document.all)document.all(layName).style.pixelLeft=x;  //IE
    if(document.all)document.all(layName).style.pixelTop=y;   //IE
  }

  //--
  with(navigator){
    var v4=0+appVersion.charAt(0)>=4
    var N4=(v4&&appName=="Netscape")
    var IE4=(v4&&userAgent.indexOf("MSIE")!=-1)
  }

  //--

  window.onload=ini
  var ojev = document;
  if(N4) { ojev=window } else { ojev=document }
  ojev.onMouseMove=onMouse_move
  if(N4){window.captureEvents(Event.MOUSEMOVE | Event.DBLCLICK)}

  // Logo animation
  var yBase = 200;
  var xBase = 200;
  var step = .15;
  var currStep = 0;
  var Xpos = 50;
  var Ypos = 50;

  function onMouse_move(e){
    if(N4) {
        Xpos=e.pageX;
        Ypos=e.pageY;
    }
    if(IE4){
        Xpos=event.clientX;
        Ypos=event.clientY;
    }
  }

  function animateLogo() {
    moveLAYER( 'lay1',
      Xpos + Math.sin((20*Math.sin(currStep/20))+1*70)*xBase*(Math.sin(10+currStep/10)+0.2),
      Ypos + Math.cos((20*Math.sin(currStep/20))+1*70)*yBase*(Math.sin(10+currStep/10)+0.2)*(Math.cos(currStep/30)+0.2) );
    currStep += step;
    moveLAYER( 'lay2',
      Xpos + Math.sin((20*Math.sin(currStep/20))+2*70)*xBase*(Math.sin(10+currStep/10)+0.2),
      Ypos + Math.cos((20*Math.sin(currStep/20))+2*70)*yBase*(Math.sin(10+currStep/10)+0.2)*(Math.cos(currStep/31)+0.2) );
    currStep += step;
    moveLAYER( 'lay3',
      Xpos + Math.sin((20*Math.sin(currStep/20))+3*70)*xBase*(Math.sin(10+currStep/10)+0.2),
      Ypos + Math.cos((20*Math.sin(currStep/20))+3*70)*yBase*(Math.sin(10+currStep/10)+0.2)*(Math.cos(currStep/32)+0.2) );
    currStep += step;
    moveLAYER( 'lay4',
      Xpos + Math.sin((20*Math.sin(currStep/20))+4*70)*xBase*(Math.sin(10+currStep/10)+0.2),
      Ypos + Math.cos((20*Math.sin(currStep/20))+4*70)*yBase*(Math.sin(10+currStep/10)+0.2)*(Math.cos(currStep/33)+0.2) );
    currStep += step;
  }

  function ini() {
    setInterval( "animateLogo()" ,50);
  }
