

	// This is my CoverFlow callback function. This is called when a cover is clicked on...
	function ccc (c)
	{
		//alert("you clicked on Cover #" + c.CoverIndex);
	}

	var MyCoverFlowDiv = document.getElementById("CoverFlow1");
	var ImageWidth = 524;
	var ImageHeight = 347;
	var CoverFlowWidth = 750;

	// Instantiate the CoverFlow by pointing it at a DIV that contains IMGs...
	var cf = new CoverFlow(MyCoverFlowDiv, ImageWidth, ImageHeight, CoverFlowWidth, "#fff", ccc);

	// The CoverFlow Update method does not call itself. It's up to you to schedule this...
	function update ()
	{
		cf.Update();
		setTimeout("update()", 20);
	}
	update();

	// Set time of slideshow duration in milliseconds
	var SlideDuration = 5000;
	function slideshow ()
	{
		if (cf.targetPos < cf.Covers.length - 1) {
			// not on the last cover so scroll ahead one and pause for duration
			cf.Flip(1);
			setTimeout("slideshow()", SlideDuration);
		} else {
			// we were at the end so jump to beginning and pause for double duration
			cf.GotoFirst();
			setTimeout("slideshow()", SlideDuration);
		}
	}
	setTimeout("slideshow()", SlideDuration);
	
