
/*
Random image slideshow- By Tyler Clarke (tyler@ihatecoffee.com)
For this script and more, VIisit http://www.jaVIascriptkit.com
*/

var delayVII=1500 //set delayIVI in miliseconds
var curindexVII=0

var randomimagesVII=new Array()

	randomimagesVII[0]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5581.jpg"
	randomimagesVII[1]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5582.jpg"
	randomimagesVII[2]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5583.jpg"
	randomimagesVII[3]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5584.jpg"
	randomimagesVII[4]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5585.jpg"
	randomimagesVII[5]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5616.jpg"
	randomimagesVII[6]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5617.jpg"
	randomimagesVII[7]="Plasmacor_Images/Thin_Insulation_Panels/thumbx/100_5618.jpg"


var preload=new Array()

for (n=0;n<randomimagesVII.length;n++)
{
	preload[n]=new Image()
	preload[n].src=randomimagesVII[n]
}

document.write('<img name="defaultimageVII" src="'+randomimagesVII[Math.floor(Math.random()*(randomimagesVII.length))]+'">')

function rotateimageVII()
{

if (curindexVII==(tempindex=Math.floor(Math.random()*(randomimagesVII.length)))){
curindexVII=curindexVII==0? 1 : curindexVII-1
}
else
curindexVII=tempindex

	document.images.defaultimageVII.src=randomimagesVII[curindexVII]
}

setInterval("rotateimageVII()",delayVII)

