/***********************************************
* 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[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslide[0]=['store/thumb/cov_baby_bun_small.gif', "http://www.customstorybooks.com/CAB/pmb2.htm", "Picture Me Cuddly as a Bunny"]
variableslide[1]=['homepageimages/70001-Engine_small.jpg', "http://www.customstorybooks.com/Name_Trains/Mytrain.htm", "My Train Cars"]
variableslide[2]=['store/thumb/cotton_small.jpg', "http://www.customstorybooks.com/CAB/Holiday.htm", "Cottontail Adventure Personalized Book"]
variableslide[3]=['store/webkinz/marshmallowbunny_small.jpg', "http://www.customstorybooks.com/webkinz_animals/Seasonal.htm", "Webkinz Marshmallowbunny"]
variableslide[4]=['store/New Folder/10151_small1.jpg', "http://www.customstorybooks.com/Name_Trains/acc.htm", "Easter Name Train Car"]
variableslide[5]=['store/thumb/p870t_small1.jpg', "http://www.customstorybooks.com/CAB/Holiday.htm", "My Easter Pageant Personalized Book"]
variableslide[6]=['homepageimages/spbskt1_small1.jpg', "http://www.customstorybooks.com/CAB/pmb2.htm", "Picture Me Sparkle Basket"]
variableslide[7]=['homepageimages/CAB.ht29_small.gif', "http://www.customstorybooks.com/CAB/Baby.htm", "Personalized Baby Book"]
variableslide[8]=['store/webkinz/rabbitclip_small.jpg', "http://www.customstorybooks.com/webkinz_animals/Seasonal.htm", "Webkinz Rabbit and Kinz Klip"]
variableslide[9]=['store/thumb/pmb2.h7_small.gif', "http://www.customstorybooks.com/CAB/pmb2.htm", "Picture Me Easter Baby"]
variableslide[10]=['store/thumb/CAB2.h35_small.jpg', "http://www.customstorybooks.com/CAB/grownup.htm", "Personalized Graduation Book"]
variableslide[11]=['store/thumb/21100_small.jpg', "http://www.customstorybooks.com/Name_Trains/decorations2.htm", "Personalized Wooden Toys"]
variableslide[12]=['store/thumb/p891t_small1.jpg', "http://www.customstorybooks.com/CAB/grownup.htm", "Mother's Day Personalized Book"]
variableslide[13]=['photobooks/amazing_dad_tn_small.png', "http://www.customstorybooks.com/photobooks/dvd.htm", "Amazing Dad Personalized DVD"]
variableslide[14]=['homepageimages/webkin14_small.jpg', "http://www.customstorybooks.com/webkinz_animals/Clothing.htm", "Webkinz Clothing and Accessories"]
variableslide[15]=['store/thumb/CAB3.h49_small.gif', "http://www.customstorybooks.com/CAB/grownup.htm", "Personalized Fishing Book for Father's Day"]
variableslide[16]=['homepageimages/CAB2.h37_small.jpg', "http://www.customstorybooks.com/CAB/Holiday.htm", "Let Us Thank God Personalized Book"]
variableslide[17]=['homepageimages/noahs_ark_small.png', "http://www.customstorybooks.com/photobooks/books.htm", "Noah's Ark Personalized Photo Book"]
variableslide[18]=['store/thumb/CAB5.h27_small.gif', "http://www.customstorybooks.com/CAB/grownup.htm", "Personalized Wedding Book"]
variableslide[19]=['store/New Folder/10152_small1.jpg', "http://www.customstorybooks.com/Name_Trains/acc.htm", "Birthday Name Train Car"]


//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth='300px' //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

