<!-- 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/img_chart1.jpg';
Pic[1] = '../../images/img_chart2.jpg';
Pic[2] = '../../images/img_chart3.jpg';


var alts = new Array();
// to add more images, just continue
// the pattern, adding to the array below

alts[0] = 'Tough Charts';
alts[1] = 'Admiralty Collection';
alts[2] = 'Paper Charts';

// Below is the variable that will describe the page
/*var pageDescription = "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowMenu('CH01', '2'), ShowProductList('CH01');\">Admirality Leisure</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowMenu('CH02', '2'), ShowProductList('CH02');\">Admirality</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('CH03');\">Imray 2000 Small Craft</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowMenu('CH04', '2'), ShowProductList('CH04');\">Imray</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('CH06');\">Norwegian</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowMenu('CH07', '2'), ShowProductList('CH07');\">United States</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('CH08');\">Canadian</a></p><br />";
pageDescription += "<p class=\"categorySubItem\"><a href=\"#\" onclick=\"javascript: ShowProductList('CH09');\">Admirality Collections</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);
		}
	}
}

//-->
