<!-- 

   // By Oliver Knill,
    // February 28,  2000               

if (document.layers) {                                 // for netscape
  layerStyleRef  ="layer.";
  layerRef       ="document.layers";
  styleSwitch    ="";
}
else{                                                  // for ie
  layerStyleRef  ="layer.style.";
  layerRef       ="document.all";
  styleSwitch    =".style";
}                  

function move_body(layerName,left,top){
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.top=top');
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.left=left');
}

function show_body(layerName){
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}

function hide_body(layerName){
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}

var a=0;
var b=70; 
var direction=-1; 
var interrupt=0; 

function run(){
  if (interrupt==0) {
    if (a<-3000) {direction=1;}
    if (a>10) {direction=-1;}
    a=a+direction*6; 
    move_body("B1",a,b);
    show_body("B1");        
  }
    setTimeout("run();",80);
}

function go_ahead(){
  interrupt=0;
}
function go_right(){
  direction=-1; 
  interrupt=0;
}
function go_left(){
  direction=1; 
  interrupt=0;
}
function stop(){
  interrupt=1;
}

run();

// -->
