// JavaScript Document

var s;
var n;
var nextShowcase = 0;
var lastShowcase = 2;
var currentPos = 0;
var endPos = 890;
var step = 50;
var interval = 10;
var frequency = 12000;

function startShowcase() {
	s = $('showcase' + nextShowcase);
	if (nextShowcase < lastShowcase) {
		nextShowcase++;
	} else {
		nextShowcase = 0;
	}
	n = $('showcase' + nextShowcase);
	
	s.style.left = currentPos + "px";
	
	setTimeout('panShowcase()',frequency);
}
function panShowcase() {
	if (currentPos > -endPos) {
		currentPos -= step;
		s.style.left = currentPos + "px";
		n.style.left = currentPos + endPos + "px";
		setTimeout('panShowcase()',interval);
	} else {
		currentPos = 0;
		startShowcase();
	}
}