// JavaScript Document
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this
var Picture2 = new Array(); // don't change this
var Picture3 = new Array();
var Picture4 = new Array();
// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = '/images/slideshow/cupholder1.jpg';
Picture[2]  = '/images/slideshow/toiletrollholder1.jpg';

Picture2[1]  = '/images/slideshow/grabbar1.jpg';
Picture2[2]  = '/images/slideshow/grabbar2.jpg';

Picture3[1]  = '/images/slideshow/seat1.jpg';
Picture3[2]  = '/images/slideshow/seat2.jpg';

Picture4[1]  = '/images/slideshow/rail1.jpg';
Picture4[2]  = '/images/slideshow/handrail2.jpg';

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();
document.images.PictureBox.src = Picture[jss];

//picture2
document.images.PictureBox2.style.filter="blendTrans(duration=2)";
document.images.PictureBox2.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox2.filters.blendTrans.Apply();
document.images.PictureBox2.src = Picture2[jss];

//picture3
document.images.PictureBox3.style.filter="blendTrans(duration=2)";
document.images.PictureBox3.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox3.filters.blendTrans.Apply();
document.images.PictureBox3.src = Picture3[jss];

//picture4
document.images.PictureBox4.style.filter="blendTrans(duration=2)";
document.images.PictureBox4.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox4.filters.blendTrans.Apply();
document.images.PictureBox4.src = Picture4[jss];

}
if (document.all) document.images.PictureBox.filters.blendTrans.Play();

if (document.all) document.images.PictureBox2.filters.blendTrans.Play();

if (document.all) document.images.PictureBox3.filters.blendTrans.Play();
if (document.all) document.images.PictureBox4.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

