var animated = "tcr";


// declare variables
var browser=navigator.appName;
var version=navigator.appVersion;
var count = "ss";
var diditgo = '';
var hinc = '';

// figure out which "document" etc. to use
if (browser.indexOf("Netscape") >= 0 && version.indexOf("4.") >= 0) {  
var whichdoc = "document." +animated+ "";
}
else if (browser.indexOf("Microsoft") >= 0 && version.indexOf("4.") >= 0) {
var whichdoc = "document.all." +animated+ ".style";
}

// animation function
function moveIt(startv, endv, starth, endh, inc, speed) {
  if (startv <= endv && diditgo != "down") {
	// if this is the first time
	if (count == "ss") {
		eval(vtotal = (endv - startv));
		eval(vinc = (vtotal / (vtotal / inc)));

		eval(htotal = (endh - starth));
		eval(hinc = (htotal / (vtotal / inc)));
	}
	count="gg";
	diditgo="up";
	eval(whichdoc + '.top = (startv += vinc)');
	eval(whichdoc + '.left = (starth += hinc)');
	// start it over again
	setTimeout('moveIt(' + startv + ',' + endv + ',' + starth + ',' + endh + ',' + inc + ',' + speed + ')', speed);
  }
  else if (endv <= startv && diditgo != "up") {
	// if this is the first time
	if (count == "ss") {
		eval(vtotal = (startv - endv));
		eval(vinc = (vtotal / (vtotal / inc)));

		eval(htotal = (starth - endh ));
		eval(hinc = (htotal / (vtotal / inc)));
	}
	count="gg";
	diditgo="down";
	eval(whichdoc + '.top = (startv -= vinc)');
	eval(whichdoc + '.left = (starth -= hinc)');
	// start it over again
	setTimeout('moveIt(' + startv + ',' + endv + ',' + starth + ',' + endh + ',' + inc + ',' + speed + ')', speed);
  }
}


//    Format setTimeout('moveIt('vertical start','vertical end','horizontal start','horizontal end','movement increment','movement speed in milliseconds')', 'time to wait before starting in milliseconds');
setTimeout('moveIt(10,48,800,257,1,1)', 2000);
// -->

