//begin_lib
<!-- This document created by WebScripter 3.0 copyright Code Generation 1999 -->
// real-time animation, nested, statement array 
var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
function animation() {
  var args = animation.arguments;
  if (NS4) {
    this.element = window; // the window object
	for (var i = 0; i < args.length; i++) {
	  this.element = this.element.document[args[i]];
	}
  } else {
    this.element = document.all[args[args.length - 1]].style;
  }
  this.active =  0;
  this.timer = null;
  this.path = null;
  this.num = null;
  this.name = args[args.length - 1] + "Var";
  eval(this.name + " = this"); 
  this.top = top;
  this.left = left;
  this.slideTo = slideTo;
  this.slideBy = slideBy;
  this.lineSlide = lineSlide; 
  this.moveTo = moveTo;
}
function left() {
  return (NS4) ? this.element.left : this.element.pixelLeft;
  }
function top() {
  return (NS4) ? this.element.top : this.element.pixelTop;
} 
function moveTo(x, y) {
  this.element.left = Math.round(x);
  this.element.top = Math.round(y);
} 
function shift(ar) {
  var first = ar[0];
  for (var i = 1; i < ar.length; i++) {
	ar[i - 1] = ar[i];
  }
  ar.length--;
  return first;
}     
function slideBy(dx, dy, increment, interval, statement) {
  var fx = this.left();
  var fy = this.top();
  var tx = fx + dx;
  var ty = fy + dy;
  this.slideTo(tx, ty, increment, interval, statement);
}
function slideTo(tx, ty, increment, interval, statement) {
  var fx = this.left();
  var fy = this.top();
  var dx = tx - fx;
  var dy = ty - fy;
  var steps = Math.round(Math.sqrt(dx * dx + dy * dy) / increment);
  var sx = dx / steps;
  var sy = dy / steps;
  if (this.active) return;
  this.active = 1;
  this.statement = statement;
  this.lineSlide(0 ,fx ,fy ,tx ,ty ,sx ,sy ,interval);
}
function lineSlide(num, fx, fy, tx, ty, sx, sy, interval) {
  num++;
  this.moveTo(fx + sx * num, fy + sy * num);
  if (this.left() == tx) {
    this.active = 0;
	if (this.statement) {
	  var ar =  eval(this.statement);
	  if (ar.length> 0)
	    eval(shift(ar));
	}	 
	return;
  }
  this.timer = setTimeout(this.name + ".lineSlide(" + num + ", " + fx + ", " + fy + ", " + tx + ", " + ty + ", " + sx + ", " + sy + ", " + interval + ")", interval);		
  } 
//end_lib
