// 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/Gifts-Miscellaneous-Carvings.jpg';
 Picture[2]  = 'photos/Gifts-Miscellaneous-1.jpg';
 Picture[3]  = 'photos/Gifts-Miscellaneous-2.jpg';
 Picture[4]  = 'photos/Gifts-Miscellaneous-3.jpg';
 Picture[5]  = 'photos/Gifts-Miscellaneous-4.jpg';
 Picture[6]  = 'photos/Gifts-Miscellaneous-6.jpg';
 Picture[7]  = 'photos/Gifts-Miscellaneous-8.jpg';
 Picture[8]  = 'photos/Gifts-Miscellaneous-9.jpg';
 Picture[9]  = 'photos/Gifts-Miscellaneous-Budda.jpg';
 Picture[10]  = 'photos/Gifts-Miscellaneous-Cat.jpg';
 Picture[11]  = 'photos/Gifts-Miscellaneous-Cockerall.jpg';
 Picture[12]  = 'photos/Gifts-Miscellaneous-Duck.jpg';
 Picture[13]  = 'photos/Gifts-Miscellaneous-Giraffes.jpg';
 Picture[14]  = 'photos/Gifts-Miscellaneous-Sailing-Boat.jpg';
 Picture[15]  = 'photos/Gifts-Penguin.jpg';
 Picture[16]  = 'photos/Gentlemans-Clothes-Horse.jpg';
 Picture[17]  = 'photos/White-Towel-Rail.jpg';
 Picture[18]  = 'photos/Gifts-Miscellaneous-Motorbike.jpg';
 Picture[19]  = 'photos/postbox.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();
}}
