<!-- Begin

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;

// Duration of crossfade (seconds)
var crossFadeDuration = 6;

// Specify the image files
var Pic = new Array();

// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '../../images/books_main2.jpg';
Pic[1] = '../../images/books_main3.jpg';
Pic[2] = '../../images/books_main1.jpg';


var alts = new Array();
// to add more images, just continue
// the pattern, adding to the array below

alts[0] = 'IMO Books';
alts[1] = 'Nautical Almanacs';
alts[2] = 'Commercial Shipping Books';

// Below is the variable that will describe the page
/*var pageDescription = "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK01');\">R.Y.A</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK02');\">Cruising Guides &amp; Pilots</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK03');\">Racing</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK04');\">Dinghy</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK05');\">Cruising</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK06');\">Almanacs</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowMenu('BK07', '2'), ShowProductList('BK07');\">Navigation, Chartwork &amp; Compass</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowMenu('BK08', '2'), ShowProductList('BK08');\">General Interest</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK09');\">Technical</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK10');\">Rules Of the Road</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('BK11');\">Record Books &amp;Stationary</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowMenu('BK12', '2'), ShowProductList('BK12');\">Commercial Shipping</a></p><br />";
*/
// 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 runSlideShowOld() {
	try
	{
		if (document.all)
		{
			document.images.SlideShow.style.filter="blendTrans(duration=2)";
			document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.SlideShow.filters.blendTrans.Apply();
		}

		document.images.SlideShow.src = preLoad[j].src;
		document.images.SlideShow.alt = alts[j];
		if (document.all)
		{
			document.images.SlideShow.filters.blendTrans.Play();
		}

		j = j + 1;
		if (j > (p - 1)) j = 0;

		t = setTimeout('runSlideShow()', slideShowSpeed);
	}

	catch(err)
	{

	}
}

function runSlideShowDemo()
{
	if(document.getElementById)
	{
		if(document.getElementById( 'SlideShow' ))
		{
			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' ).filters.blendTrans.Play();

			j = j + 1;
			if (j > (p - 1))
			{
				j = 0;
			}

			t = setTimeout('runSlideShow()', slideShowSpeed);
		}
	}
}

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);
		}
	}
}

//-->
