<!-- 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/newreleases.jpg';
Pic[1] = '../images/banner/newreleases2.jpg';
Pic[2] = '../images/banner/newbooks1.jpg';


var alts = new Array();
// to add more images, just continue
// the pattern, adding to the array below

alts[0] = 'New Releases';
alts[1] = 'New Releases';
alts[2] = 'New Releases';

// Below is the variable that will describe the page

//Title 183599
var pageDescription = "<p class=\"featuredCategorySubItem\" style=\"text-align: center;\">New Releases</p>";
//Book Title and Author
pageDescription += "<h5 class=\"featuredBookTitle\"><a href=\"http://www.thebookshoponline.com/Shop/IndividualProduct.aspx?TopLevelCategory=BK&amp;ISBN=9780593057056&amp;BookTitle=GONE TOMORROW\" title=\"Lee Child's Gone Tomorrow\">Lee Child's Gone Tomorrow</a></h5>";
//Picture 
pageDescription += "<p><a href=\"http://www.thebookshoponline.com/Shop/IndividualProduct.aspx?TopLevelCategory=BK&amp;ISBN=9780593057056&amp;BookTitle=GONE TOMORROW\" title=\"Lee Child's Gone Tomorrow\"><img src=\"http://www.thebookshoponline.com/images/leechild-gonetomorrow.jpg\" alt=\"http://www.thebookshoponline.com/images/leechild-gonetomorrow.jpg\" style=\"margin-left: auto; margin-right: auto; width: 183px; display: block;\" title=\"Lee Child's Gone Tomorrow\" /></a></p>";
//Book Desciption
pageDescription += "<p class=\"featuredProductContent\">Suicide bombers are easy to spot. They give out all kinds of tell-tale signs. Mostly because they're nervous. Riding the subway in New York at two o'clock in the morning, Reacher knows the twelve giveaway signs to look out for. Watching one of his fellow-passengers, he becomes sharply aware: one by one, she ticks off every bulletpoint on his list.</p>";
//--------------------------------------------------------------

pageDescription += "<p class=\"featuredCategorySubItem\">Other new releases:</p>";
pageDescription += "<h5 class=\"featuredProductLink\"><a href=\"http://www.thebookshoponline.com/Shop/Default.aspx?TopLevelCategory=NR&CategoryTop=NR&NewReleases=1\" title=\"In the last week\">In the last week</a></h5>";
pageDescription += "<h5 class=\"featuredProductLink\"><a href=\"http://www.thebookshoponline.com/Shop/Default.aspx?TopLevelCategory=NR&CategoryTop=NR&NewReleases=2\" title=\"In the last month\">In the last month</a></h5>";
pageDescription += "<h5 class=\"featuredProductLink\"><a href=\"http://www.thebookshoponline.com/Shop/Default.aspx?TopLevelCategory=NR&CategoryTop=NR&NewReleases=3\" title=\"In the last 3 months\">In the last 3 months</a></h5>";


// 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;
        }

//-->