
/***********************************************
* MultiFrame Image Slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var seqslidesb=new Array()
//Set Path to Image plus optional URL ("" for no URL):
seqslidesb[0]=["covers/6.jpg", "http://amzn.com/B0016OM3UY"]
seqslidesb[1]=["covers/7.jpg", "http://amzn.com/B000UNY094"]
seqslidesb[2]=["covers/8.jpg", "http://amzn.com/B001Y7SJ6K"]
seqslidesb[3]=["covers/9.jpg", "http://amzn.com/B001F0TSAW"]
seqslidesb[4]=["covers/10.jpg", "http://amzn.com/B0001HK23W"]
seqslidesb[5]=["covers/11.jpg", "http://amzn.com/B000WEUW4S"]
seqslidesb[6]=["covers/12.jpg", "http://amzn.com/B001F0TSB6"]
seqslidesb[7]=["covers/13.jpg", "http://amzn.com/B000WEUW48"]
seqslidesb[8]=["covers/14.jpg", "http://amzn.com/B00005Y7QG"]
seqslidesb[9]=["covers/15.jpg", "http://amzn.com/B002EP8U1K"]
seqslidesb[10]=["covers/16.jpg", "http://amzn.com/B000GIXIIM"]
seqslidesb[11]=["covers/17.jpg", "http://amzn.com/B000EHSNDA"]
seqslidesb[12]=["covers/18.jpg", "http://amzn.com/B001RPAYN0"]
//Set pause between each image display (2000=2 second):
var slidedelayb=2500

//Set how many images to show at once (must be less than total # of images above):
var slidestorevealb=3

//Specify code to insert between each slide (ie: "<br>" to insert a line break and create a vertical layout)
//"" for none (or horizontal):
var slideseparater="<br>"

//Set optional link target to be added to all images with a link:
var optlinktarget="secwindow"

//Set image border width:
var imgborderwidth=0

//Set opacity value of each image when it's "dimmed", and when it's not, respectively (1=100% opaque/normal).
//Change 0.2 to 0 to completely hide image when it's dimmed:
var opacityvalues=[1,1]

///No need to edit beyond here///////////

function processimgcodeb(theimgb){
var imghtml=""
if (theimgb[1]!="")
imghtml='<a href="'+theimgb[1]+'" target="'+optlinktarget+'">'
imghtml+='<img src="'+theimgb[0]+'" border="'+imgborderwidth+'" style="filter:alpha(opacity='+(opacityvalues[0]*100)+');-moz-opacity:'+opacityvalues[0]+'">'
if (theimgb[1]!="")
imghtml+='</a>'
return imghtml
}

var curslideb=1 //var to track current slide (total: slidestorevealb)
var curimgindexb=0 //var to track current image (total: seqslidesb.length)
var isfirstcycleb=1 //boolean to indicate whether this is the first cycle

if (document.getElementById){
for (i=0;i<slidestorevealb;i++)
document.write('<span id="seqslideb'+i+'" class="seqslidesbtyle">'+processimgcodeb(seqslidesb[i])+'</span>'+slideseparater)
curimgindexb=slidestorevealb
illuminateslideb(0,opacityvalues[1])
}

function illuminateslideb(slideindexb, amtb){
var slideobj=document.getElementById("seqslideb"+slideindexb).getElementsByTagName("IMG")[0]
if (slideobj.filters)
slideobj.filters.alpha.opacity=amtb*100
else if (slideobj.style.MozOpacity)
slideobj.style.MozOpacity=amtb
}

function displayitb(){
if (curslideb<slidestorevealb){
if (!isfirstcycleb)
changeimageb(curslideb)
illuminateslideb(curslideb, opacityvalues[1])
curslideb++
}
else{
isfirstcycleb=0
for (i=0;i<slidestorevealb;i++)
illuminateslideb(i, opacityvalues[0])
changeimageb(0)
illuminateslideb(0, opacityvalues[1])
curslideb=1
}
}

function changeimageb(slideindexb){
document.getElementById("seqslideb"+slideindexb).innerHTML=processimgcodeb(seqslidesb[curimgindexb])
curimgindexb++
if (curimgindexb>=seqslidesb.length)
curimgindexb=0
}

if (document.getElementById)
setInterval("displayitb()",slidedelayb)

