<!-- 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/banner/sport.jpg';
Pic[1] = '../images/banner/travel.jpg';
Pic[2] = '../images/banner/sesame.jpg';


var alts = new Array();
// to add more images, just continue
// the pattern, adding to the array below

alts[0] = 'Sport Books';
alts[1] = 'Travel Books';
alts[2] = 'Childrens Books';

image1 = new Image
image2 = new Image
image3 = new Image
image4 = new Image
image5 = new Image
image6 = new Image
image7 = new Image
image8 = new Image

image1.src = "../images/aliensloveunderpants.jpg"
image2.src = "../images/computer.jpg"
image3.src = "../images/dictionary.jpg"
image4.src = "../images/education.jpg"
image5.src = "../images/fiction.jpg"
image6.src = "../images/literature.jpg"
image7.src = "../images/sport.jpg"
image8.src = "../images/travel.jpg"

// Below is the variable that will describe the page
var pageDescription = "<p class=\"featuredCategorySubItem\" style=\"text-align: center;\">Popular Categories</p>";
pageDescription += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" height=\"67%\" width=\"70%\" style=\"padding-top:20px;\">";
    pageDescription += "<tr>";
        pageDescription += "<td align=\"center\" colspan=\"1\" valign=\"middle\">";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK08', '2'), ShowProductList('BK08');\" onMouseover=\"document.imagename.src=image1.src\" class=\"featuredBookTitle\" title=\"Children's\">Children's</a><br /><br />";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK09', '2'), ShowProductList('BK09');\" onMouseover=\"document.imagename.src=image2.src\" class=\"featuredBookTitle\" title=\"Computing\">Computing</a><br /><br />";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK12', '2'), ShowProductList('BK12');\" onMouseover=\"document.imagename.src=image3.src\" class=\"featuredBookTitle\" title=\"Dictionaries &amp; Reference\">Dictionaries &amp; Reference</a><br /><br />";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK13', '2'), ShowProductList('BK13');\" onMouseover=\"document.imagename.src=image4.src\" class=\"featuredBookTitle\" title=\"Education\">Education</a><br /><br />";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK14', '2'), ShowProductList('BK14');\" onMouseover=\"document.imagename.src=image5.src\" class=\"featuredBookTitle\" title=\"Fiction\">Fiction</a><br /><br />";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK24', '2'), ShowProductList('BK24');\" onMouseover=\"document.imagename.src=image6.src\" class=\"featuredBookTitle\" title=\"Literature\">Literature</a><br /><br />";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK34', '2'), ShowProductList('BK34');\" onMouseover=\"document.imagename.src=image7.src\" class=\"featuredBookTitle\" title=\"Sports &amp; Games\">Sports &amp; Games</a><br /><br />";
            pageDescription += "<a href=\"#\" onclick=\"javascript: ShowMenu('BK35', '2'), ShowProductList('BK35');\" onMouseover=\"document.imagename.src=image8.src\" class=\"featuredBookTitle\" title=\"Travel\">Travel</a><br />";
        pageDescription += "</td>";
        pageDescription += "<td align=\"center\" colspan=\"1\" valign=\"middle\">";
            pageDescription += "<p><img src=\"../images/aliensloveunderpants.jpg\" name=\"imagename\"></p>";
        pageDescription += "</td>";
    pageDescription += "</tr>";
pageDescription += "</table>";

// 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' ).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);
		}
	}
}

        window.onerror = displayErrorMessage;

        function displayErrorMessage(msg, url, linenumber)
        {
            return true;
        }

//-->