/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide=new Array()

variableslide[0]=['store/New Folder/img28.jpg', "http://www.customstorybooks.com/CAB/pmb.htm", "Picture Me Be My Honey"]
variableslide[1]=['store/thumb/11240-TownSet_small.jpg', "http://www.customstorybooks.com/Name_Trains/trainsets.htm", "Train Sets"]
variableslide[2]=['CAB/CAB/img72.jpg', "http://www.customstorybooks.com/CAB/Holiday.htm", "The Cotton Tail Mystery"]
variableslide[3]=['store/New Folder/img12.gif', "http://www.customstorybooks.com/CAB/pmb.htm", "Picture Me Cuddly as a Bunny"]
variableslide[4]=['store/webkinz12/HM641_small.jpg', "http://www.customstorybooks.com/webkinz_animals/webkinz2.htm", "Webkinz Dreamy Sheep"]
variableslide[5]=['homepageimages/CAB.ht29_small.gif', "http://www.customstorybooks.com/CAB/Baby.htm", "Personalized Baby Book"]
variableslide[6]=['homepageimages/CAB2.h37_small.jpg', "http://www.customstorybooks.com/CAB/Holiday.htm", "Thank God Personalized Book"]
variableslide[7]=['store/games/amazing-kid-thumb_small.jpg', "http://www.customstorybooks.com/photobook/dvd.htm", "Amazing Kid Photo Personalized DVD"]
variableslide[8]=['store/thumb/CAB2.h35_small.jpg', "http://www.customstorybooks.com/CAB/grownup.htm", "Personalized Graduation Book"]
variableslide[9]=['store/webkinz12/HM602_small.jpg', "http://www.customstorybooks.com/webkinz_animals/webkinz2.htm", "Webkinz Eluvant"]
variableslide[10]=['store/webkinz12/HM669_small.jpg', "http://www.customstorybooks.com/webkinz_animals/webkinz2.htm", "Webkinz Clover Cat"]
variableslide[11]=['store/img/10075_small1.jpg', "http://www.customstorybooks.com/Name_Trains/color_name_train.htm", "Name Train"]
variableslide[12]=['store/thumb/p829d_small1.gif', "http://www.customstorybooks.com/CAB/Holiday.htm", "Personalized Easter Letter"]
variableslide[13]=['homepageimages/noahs_ark_small.png', "http://www.customstorybooks.com/photobooks/books.htm", "Noah's Ark Personalized Photo Book"]
variableslide[14]=['store/thumb/CAB5.h27_small.gif', "http://www.customstorybooks.com/CAB/grownup.htm", "Personalized Wedding Book"]
variableslide[15]=['store/New Folder/10152_small1.jpg', "http://www.customstorybooks.com/Name_Trains/acc.htm", "Birthday Name Train Car"]
variableslide[16]=['homepageimages/can-count-coloring-book_small.png', "http://www.customstorybooks.com/photobook.htm ", "Personalized Photo Books"]
variableslide[17]=['store/games/snow-white_thumb_small.jpg', "http://www.customstorybooks.com/photobook/dvd.htm", "Snow White Photo Personalized DVD"]
//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth='225px' //set to width of LARGEST image in your slideshow
var slideheight='125px' //set to height of LARGEST iamge in your slideshow, plus any text description

var slidebgcolor='#FFFFFF'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=3000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider


