/* ####################### begins list of images to be used
####################### */
currentIndx1=0;
currentIndx2=1;
currentIndx3=2;
currentIndx4=3;
currentIndx5=4;
currentIndx6=5;
currentIndx7=6;
currentIndx8=7;
MyImages=new Array();
MyImages[0]='images/pipefitting2_small.jpg';
MyImages[1]='images/heater_small.jpg';
MyImages[2]='images/thermowell3_small.jpg';
MyImages[3]='images/anodebasket2_small.jpg';
MyImages[4]='images/thermowell1_small.jpg';
MyImages[5]='images/anodes_small.jpg';
MyImages[6]='images/chlorinator5_small.jpg';
MyImages[7]='images/thermowell2_small.jpg';
Messages=new Array()
Messages[0]='aaa';
Messages[1]='';
Messages[2]=''
Messages[3]='';
/* ####################### now we preload the images ####################### */
imagesPreloaded = new Array(8)
for (var i = 0; i < MyImages.length ; i++)
{
imagesPreloaded[i] = new Image(120,120)
imagesPreloaded[i].src=MyImages[i]
}
/* ####################### we create the functions to go forward and go back ####################### */
function Nexter(){
if (currentIndx0){
currentIndx=currentIndx-1;
document.theImage.src=imagesPreloaded[currentIndx].src
document.form1.text1.value=Messages[currentIndx];
}
else {
currentIndx=3
document.theImage.src=imagesPreloaded[currentIndx].src
document.form1.text1.value=Messages[currentIndx];
}}
function automaticly() {
//if (document.form1.automatic.checked) {
if (currentIndx1< imagesPreloaded.length){ currentIndx1=currentIndx1;}
else { currentIndx1=0 ; }
if (currentIndx2 < imagesPreloaded.length){ currentIndx2=currentIndx2 }
else { currentIndx2=0;}
if (currentIndx3 < imagesPreloaded.length)
{ currentIndx3=currentIndx3; }
else { currentIndx3=0;}
if (currentIndx4< imagesPreloaded.length)
{ currentIndx4=currentIndx4 ;}
else { currentIndx4=0;}
if (currentIndx5 < imagesPreloaded.length){
currentIndx5=currentIndx5 ;
}
else { currentIndx5=0;}
if (currentIndx6 < imagesPreloaded.length){
currentIndx6=currentIndx6 ;
}
else { currentIndx6=0;}
if (currentIndx7 < imagesPreloaded.length){
currentIndx7=currentIndx7 ;
}
else { currentIndx7=0;}
if (currentIndx8 < imagesPreloaded.length){
currentIndx8=currentIndx8 ;
}
else { currentIndx8=0;}
document.img1.src=imagesPreloaded[currentIndx1].src
//document.forms[0].a1.value="a"
document.img2.src=imagesPreloaded[currentIndx2].src
document.img3.src=imagesPreloaded[currentIndx3].src
document.img4.src=imagesPreloaded[currentIndx4].src
document.img5.src=imagesPreloaded[currentIndx5].src
document.img6.src=imagesPreloaded[currentIndx6].src
document.img7.src=imagesPreloaded[currentIndx7].src
document.img8.src=imagesPreloaded[currentIndx8].src
//document.form1.text1.value=Messages[currentIndx];
//document.form1.lin1.value = "A";
currentIndx1=currentIndx1+1;
currentIndx2=currentIndx2+1;
currentIndx3=currentIndx3+1;
currentIndx4=currentIndx4+1;
currentIndx5=currentIndx5+1;
currentIndx6=currentIndx6+1;
currentIndx7=currentIndx7+1;
currentIndx8=currentIndx8+1;
var delay = setTimeout("automaticly()",1500)
// }
}
automaticly();