// Set the transition speed (in milliseconds)
var TransSpeed = 10000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 1;

var Picture = new Array();
var showHot = false;

// Specify the image files...
 Picture[1] = 'photos/Welland-Bedroom-1-door-wardrobe.jpg';
 Picture[2] = 'photos/Welland-Bedroom-2-door-wardrobe-with-mirror.jpg';
 Picture[3] = 'photos/Welland-Bedroom-3-drawer-bedside-cabinet.jpg';
 Picture[4] = 'photos/Welland-Bedroom-42-chest-of-drawers.jpg';
 Picture[5] = 'photos/Welland-Bedroom-4-6-Bed.jpg';
 Picture[6] = 'photos/Welland-Bedroom-4-drawer-chest.jpg';
 Picture[7] = 'photos/Welland-Bedroom-5-drawer-slim-jim.jpg';
 Picture[8] = 'photos/Welland-Bedroom-9-drawer-large-chest.jpg';
 Picture[9] = 'photos/Welland-Bedroom-Bed.jpg';
Picture[10] = 'photos/Welland-Bedroom-Blanket-box.jpg';
Picture[11] = 'photos/Welland-Bedroom-Double-pedestal-desk_dressing-table.jpg';
Picture[12] = 'photos/Welland-Bedroom-Full-hanging-wardrobe.jpg';
Picture[13] = 'photos/Welland-Bedroom-Roomset.jpg';
Picture[14] = 'photos/Welland-Bedroom-Single-pedestal-desk_dressing-table.jpg';
Picture[15] = 'photos/Welland-Bedroom-Stool.jpg';
Picture[16] = 'photos/Welland-Bedroom-Swivel-mirror.jpg';
Picture[17] = 'photos/Welland-Bedroom-Triple-mirror.jpg';
Picture[18] = 'photos/Welland-Bedroom-Triple-wardrobe.jpg';

var tss;
var iss;
var jss = 0;
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 control(how){
if (showHot){
jss = how;
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 = preLoad[jss].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}}
