/***********************************************
* 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]=['scans/1988_revelation_233.jpg', 'pictures.htm', '<i>Revelation!</i> book p.233']
variableslide[1]=['scans/2003_learn_from_great_teacher_p243_sm.jpg', 'pictures.htm', '<i>Great Teacher</i> book p.243']
variableslide[2]=['scans/1988_revelation_52.jpg', 'pictures.htm', '<i>Revelation!</i> book p.52']
variableslide[3]=['scans/1997_wt_sept_1_23_.jpg', 'pictures.htm', '<i>Watchtower</i> Sep 1/97 p.23']
variableslide[4]=['scans/1988_revelation_127.jpg', 'pictures.htm', '<i>Revelation!</i> book p.127']
variableslide[5]=['scans/1985_life_how_235.jpg', 'pictures.htm', '<i>Life</i> book p.235']
variableslide[6]=['scans/1985_wt_feb_1_6.jpg', 'pictures.htm', '<i>Watchtower</i> Feb 1/85 p.6']
variableslide[7]=['scans/1984_wt_sep_15_6.jpg', 'pictures.htm', '<i>Watchtower</i> Sep 15/84 p.6']
variableslide[8]=['scans/1982_enjoy_life__28.jpg', 'pictures.htm', '<i>Enjoy Life</i> brochure 1982 p.28']
variableslide[9]=['scans/1977_life_purpose_141.jpg', 'pictures.htm', '<i>Life... Purpose</i> book 1977 p.141']
variableslide[10]=['scans/1970_wt_oct_15_620.jpg', 'pictures.htm', '<i>Watchtower</i> Oct 15/77 p.620']
variableslide[11]=['scans/1958_paradise_lost_209.jpg', 'pictures.htm', '<i>Paradise Lost</i> book 1958 p.209']
variableslide[12]=['scans/1958_paradise_lost_209b.jpg', 'pictures.htm', '<i>Paradise Lost</i> book 1958 p.209']

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth='150px' //set to width of LARGEST image in your slideshow
var slideheight='180px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#D2DECC'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=5000

////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
