var SlideShowSpeed=5000;
var CrossFadeDuration=8;
var Picture=new Array();

// Just update this array to add new photos.
Picture[1]='/guitars/home-page-scroll1.jpg';
Picture[2]='/guitars/home-page-scroll2.jpg';
Picture[3]='/guitars/home-page-scroll3.jpg';
Picture[4]='/guitars/home-page-scroll4.jpg';
Picture[5]='/guitars/home-page-scroll5.jpg';
Picture[6]='/guitars/home-page-scroll6.jpg';
Picture[7]='/guitars/home-page-scroll7.jpg';

var tss;
// Pick the start of the photo rotation	
var jss= Math.floor(Math.random()*(Picture.length-1))+1;

var pss = Picture.length-1;
var stop = 0;
var preLoad = new Array();

var flag=1;

preLoad[jss] = new Image();
preLoad[jss].src = Picture[jss];

document.write(' <table border=0 cellpadding=0 cellspacing=0 align=center width=500> <tr align=center> <td> <img name=PictureBox src="' + Picture[jss] + '" width=520 height=550 usemap="#map1" border=0> </td> </tr> </table> ');


function runSlideShow()
{
	if (stop==0 && preLoad[jss].complete){
	if (flag==0){
		jss = jss==pss ? 1 :jss + 1;
		if (preLoad[jss]==null){
			preLoad[jss] = new Image();
			preLoad[jss].src = Picture[jss];
		}
	}
	if (document.all){
		document.images.PictureBox.style.filter="blendTrans(duration=2)";
		document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.PictureBox.filters.blendTrans.Apply();
	}
	document.images.PictureBox.src = preLoad[jss].src;
	if (document.all) document.images.PictureBox.filters.blendTrans.Play();
	jss = jss==pss ? 1 :jss + 1;
	flag=1;
	preLoad[jss] = new Image();
	preLoad[jss].src = Picture[jss];
	}
	tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

