var ultimateshow=new Array()

//ultimateshow[x]=["path to image", "OPTIONAL link for image", "OPTIONAL link target"]

ultimateshow[0]=['./images/graphics/38097SHCR.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[1]=['./images/graphics/38114SH.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[2]=['./images/graphics/36224sv2.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[3]=['./images/graphics/38023SV.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[4]=['./images/graphics/37196sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[5]=['./images/graphics/35042sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[6]=['./images/graphics/33115sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[7]=['./images/graphics/33121sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[8]=['./images/graphics/36136sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[9]=['./images/graphics/35112sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[10]=['./images/graphics/36097sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[11]=['./images/graphics/28062sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[12]=['./images/graphics/36011sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[13]=['./images/graphics/24014sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[14]=['./images/graphics/33089sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[15]=['./images/graphics/40060sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[16]=['./images/graphics/40027sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[17]=['./images/graphics/40017sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[18]=['./images/graphics/39270sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[19]=['./images/graphics/39269sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[20]=['./images/graphics/39210sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[21]=['./images/graphics/39116sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[22]=['./images/graphics/39104sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[23]=['./images/graphics/39047sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[24]=['./images/graphics/38230sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[25]=['./images/graphics/38208sh.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']
ultimateshow[26]=['./images/graphics/38162sv.jpg', 'http://www.lonoveracker.com/galleries.html', '_self']

//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth="400px" //set to width of LARGEST image in your slideshow
var slideheight="400px" //set to height of LARGEST iamge in your slideshow
var slidecycles="continuous" //number of cycles before slideshow stops (ie: "2" or "continous")
var randomorder="yes" //randomize the order in which images are displayed? "yes" or "no"
var preloadimages="yes" //preload images? "yes" or "no"
var slidebgcolor='d0d0d0'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=10000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById
var curcycle=0

if (preloadimages=="yes"){
for (i=0;i<ultimateshow.length;i++){
var cacheimage=new Image()
cacheimage.src=ultimateshow[i][0]
}
}

var currentslide=0

function randomize(targetarray){
ultimateshowCopy=new Array()
var the_one
var z=0
while (z<targetarray.length){
the_one=Math.floor(Math.random()*targetarray.length)
if (targetarray[the_one]!="_selected!"){
ultimateshowCopy[z]=targetarray[the_one]
targetarray[the_one]="_selected!"
z++
}
}
}

if (randomorder=="yes")
randomize(ultimateshow)
else
ultimateshowCopy=ultimateshow

function rotateimages(){
curcycle=(currentslide==0)? curcycle+1 : curcycle
ultcontainer='<center>'
if (ultimateshowCopy[currentslide][1]!="")
ultcontainer+='<a href="'+ultimateshowCopy[currentslide][1]+'" target="'+ultimateshowCopy[currentslide][2]+'">'
ultcontainer+='<img src="'+ultimateshowCopy[currentslide][0]+'" border="0">'
if (ultimateshowCopy[currentslide][1]!="")
ultcontainer+='</a>'
ultcontainer+='</center>'
if (ie||dom)
crossrotateobj.innerHTML=ultcontainer
if (currentslide==ultimateshow.length-1) currentslide=0
else currentslide++
if (curcycle==parseInt(slidecycles) && currentslide==0)
return
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") : document.all.slidedom
rotateimages()
}

if (ie||dom)
window.onload=start_slider
