<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration = 8;
// Specify the root of website
var rootUrl = "http://www.thebookshoponline.com/";
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '../images/logo/tolkien.jpg'
Pic[1] = '../images/banner/harrypotter.jpg'
Pic[2] = '../images/banner/cookery.jpg'
Pic[3] = '../images/banner/politics.jpg'
//Pic[4] = '../images/banner/newreleaseoffer.jpg'


// Specify the image alt tags
var alts = new Array();
// to add more image alt tags, just continue
// the pattern, adding to the array below

alts[0] = rootUrl + 'images/logo/tolkien.jpg'
alts[1] = rootUrl + 'images/banner/harrypotter.jpg'
alts[2] = rootUrl + 'images/banner/cookery.jpg'
alts[3] = rootUrl + 'images/banner/politics.jpg'
//alts[4] = rootUrl + 'images/banner/newreleaseoffer.jpg'

// Specify the image title tags
var titles = new Array();
// to add more image title tags, just continue
// the pattern, adding to the array below

titles[0] = 'J.R.R. Tolkien Books'
titles[1] = 'Harry Potter Books'
titles[2] = 'Cooking Books'
titles[3] = 'Political Books'
//titles[4] = 'New Release Offer'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();

for (i = 0; i < p; i++)
{
	preLoad[i] = new Image();
	preLoad[i].src = Pic[i];
}

function runSlideShow()
{
	if(document.getElementById)
	{
		if(document.getElementById( 'SlideShow' ))
		{
			try
		    {
			    document.getElementById( 'SlideShow' ).style.filter = "blendTrans(duration=2)";
			    document.getElementById( 'SlideShow' ).style.filter = "blendTrans(duration=crossFadeDuration)";
			    document.getElementById( 'SlideShow' ).filters.blendTrans.Apply();

			    document.getElementById( 'SlideShow' ).src = preLoad[j].src;
			    document.getElementById( 'SlideShow' ).alt = alts[j];
			    document.getElementById( 'SlideShow' ).title = titles[j];

			    document.getElementById( 'SlideShow' ).filters.blendTrans.Play();
		    }
		    
		    catch(e)
		    {
			    document.getElementById( 'SlideShow' ).src = preLoad[j].src;
			    document.getElementById( 'SlideShow' ).alt = alts[j];
		    }

			j = j + 1;
			if (j > (p - 1))
			{
				j = 0;
			}

			t = setTimeout('runSlideShow()', slideShowSpeed);
		}
	}
}
-->