	var showcaseLength = 0;
	var showcaseTimer;

	var showcaseWidth = 0;
	var showcaseTotalWidth = 0;
	var showcaseMaxLeft = 0;

	var showcaseNextLeft = 0;
	var showcaseNextRight = 0;

function moveleft() {
	elmShowcase = document.getElementById("showcase-box");

	lf = elmShowcase.style.left;

	if(lf == "")
		showcaseLeft = 0;
	else
		showcaseLeft = (-1) * parseInt(lf.substring(0, lf.indexOf("px")));

	if(showcaseLeft > showcaseNextLeft) {
		elmShowcase.style.left = parseInt((-1) * (showcaseLeft - 10)) + "px";

		showcaseTimer = setTimeout("moveleft()", 10);
	} else {
		clearTimeout(showcaseTimer);

		newShowcaseNextLeft = showcaseTotalWidth;

		i = showcaseLength;

		while((i > 0) && (newShowcaseNextLeft >= showcaseLeft)) {
			showcaseElm = document.getElementById('showcase' + i.toString());

			width = showcaseElm.clientWidth;

			newShowcaseNextLeft -= width;

			i--;
		}

		showcaseNextLeft = newShowcaseNextLeft;

		newShowcaseNextRight = 0;

		i = 1;

		while((i <= showcaseLength) && (newShowcaseNextRight <= showcaseLeft + showcaseWidth)) {
			showcaseElm = document.getElementById('showcase' + i.toString());

			width = showcaseElm.clientWidth;

			newShowcaseNextRight += width;

			i++;
		}

		showcaseNextRight = newShowcaseNextRight - showcaseWidth;
	}
}

function moveright() {
	elmShowcase = document.getElementById("showcase-box");

	lf = elmShowcase.style.left;

	if(lf == "")
		showcaseLeft = 0;
	else
		showcaseLeft = (-1) * parseInt(lf.substring(0, lf.indexOf("px")));

	if(showcaseLeft < showcaseNextRight) {
		elmShowcase.style.left = parseInt((-1) * (showcaseLeft + 10)) + "px";

		showcaseTimer = setTimeout("moveright()", 10);
	} else {
		clearTimeout(showcaseTimer);

		newShowcaseNextLeft = showcaseTotalWidth;

		i = showcaseLength;

		while((i > 0) && (newShowcaseNextLeft >= showcaseLeft)) {
			showcaseElm = document.getElementById('showcase' + i.toString());

			width = showcaseElm.clientWidth;

			newShowcaseNextLeft -= width;

			i--;
		}

		showcaseNextLeft = newShowcaseNextLeft;

		newShowcaseNextRight = 0;

		i = 1;

		while((i <= showcaseLength) && (newShowcaseNextRight <= showcaseLeft + showcaseWidth)) {
			showcaseElm = document.getElementById('showcase' + i.toString());

			width = showcaseElm.clientWidth;

			newShowcaseNextRight += width;

			i++;
		}

		showcaseNextRight = newShowcaseNextRight - showcaseWidth;
	}
}

function initShowcase() {
	var elm = document.getElementById('showcase-body');
	if(elm != null)
		showcaseWidth = elm.clientWidth;

	elm = document.getElementById('showcase-box');

	if(elm != null) {
		showcaseLength = elm.getElementsByTagName('img').length;

		showcaseTotalWidth = 0;
		showcaseNextLeft = 0;
		showcaseNextRight = 0;
		for(i = 1;i <= showcaseLength;i++) {
			showcaseElm = document.getElementById('showcase' + i.toString());

			width = showcaseElm.clientWidth;

			showcaseTotalWidth += width;

			if((showcaseTotalWidth > showcaseWidth) && (showcaseNextRight == 0))
				showcaseNextRight = showcaseTotalWidth - showcaseWidth;
		}

		showcaseMaxLeft = showcaseTotalWidth - showcaseWidth;
	}
}

	initShowcase()