
/*
Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com)
For this script and more, VIisit http://www.jaVIascriptkit.com
*/

var delayVI=1500 //set delayIVI in miliseconds
var curindexVI=0

var randomimagesVI=new Array()

	randomimagesVI[0]="Plasmacor_Images/Wall-Panel-Seam/thumbx/100_5575.jpg"
	randomimagesVI[1]="Plasmacor_Images/Wall-Panel-Seam/thumbx/100_5576.jpg"
	randomimagesVI[2]="Plasmacor_Images/Wall-Panel-Seam/thumbx/100_5577.jpg"
	randomimagesVI[3]="Plasmacor_Images/Wall-Panel-Seam/thumbx/100_5578.jpg"
	randomimagesVI[4]="Plasmacor_Images/Wall-Panel-Seam/thumbx/100_5579.jpg"
	randomimagesVI[5]="Plasmacor_Images/Wall-Panel-Seam/thumbx/100_5580.jpg"


var preload=new Array()

for (n=0;n<randomimagesVI.length;n++)
{
	preload[n]=new Image()
	preload[n].src=randomimagesVI[n]
}

document.write('<img name="defaultimageVI" src="'+randomimagesVI[Math.floor(Math.random()*(randomimagesVI.length))]+'">')

function rotateimageVI()
{

if (curindexVI==(tempindex=Math.floor(Math.random()*(randomimagesVI.length)))){
curindexVI=curindexVI==0? 1 : curindexVI-1
}
else
curindexVI=tempindex

	document.images.defaultimageVI.src=randomimagesVI[curindexVI]
}

setInterval("rotateimageVI()",delayVI)


