<!--
var imagewidth = 170;
var imagecount = 3;
var movesteps = 10;
var id = 1;

var animdelay = 25;
var pausedelay = 10000;

var timerID = 0;
var movecount = 0;

function UpdateTimer()
{
	var el = document.getElementById("slide" + id);
	var pos = -(imagewidth) + ((imagewidth/movesteps)*movecount);
	var par = el.offsetParent;
	
	while ( par )
	{
		pos = pos - par.offsetLeft;
		par = par.offsetParent;
	}

	if ( movecount == 0 )
	{
		el.style.zIndex++;
	}
	
	var delay = animdelay;
	if ( movecount >= movesteps )
	{
		if ( pos > 0 )
		{
			pos = 0;
		}
		delay = pausedelay;
		movecount = -1;
		id++;
		if ( id > imagecount )
		{
			id = 1;
		}
	}
	el.style.left = pos + "px";
	
	movecount++;
	timerID = setTimeout("UpdateTimer()", delay);
}

function Start()
{
	document.getElementById('featured').innerHTML = "Featured Artists";
	timerID  = setTimeout("UpdateTimer()", animdelay);
}

function Stop()
{
	if(timerID)
	{
		clearTimeout(timerID);
		timerID  = 0;
	}
}

function Stretch(Q, L, c)
{ 
	var S = Q + '';
	if (c.length > 0)
	{
		while (S.length<L)
		{ 
			S = c+S
		}
	}
	return S
}
    
function DebugPrint(val)
{
	var debug = document.getElementById("debug");
	debug.innerHTML = val;
}
//-->

