// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Picture = new Array(); 
var Caption = new Array(); 
var showHot = false;       


Picture[1]  = 'corsi_file/ex_sicu_2.jpg';
Picture[2]  = 'corsi_file/ex_sicu_3.jpg';
Picture[3]  = 'corsi_file/ex_sicu_4.jpg';
Picture[4]  = 'corsi_file/ex_sicu_5.jpg';
Picture[5]  = 'corsi_file/ex_sicu_6.jpg';
Picture[6]  = 'corsi_file/ex_sicu_7.jpg';
Picture[7]  = 'corsi_file/ex_sicu_8.jpg';
Picture[8]  = 'corsi_file/ex_sicu_9.jpg';
Picture[9]  = 'corsi_file/ex_sicu_10.jpg';


Caption[1]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Slalom lento</font></b>";
Caption[2]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Skid car</font></b>";
Caption[3]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Slalom veloce</font></b>";
Caption[4]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Frenata modulata</font></b>";
Caption[5]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Frenata con evitamento di ostacolo</font></b>";
Caption[6]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Frenata differenziata</font></b>";
Caption[7]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Controllo auto in curva</font></b>";
Caption[8]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Sottosterzo e sbandata</font></b>";
Caption[9]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Acqua-planing</font></b>";



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){
if (how=="A") jss = 1;
if (how=="B") jss = 2;
if (how=="C") jss = 3;
if (how=="D") jss = 4;
if (how=="E") jss = 5;
if (how=="F") jss = 6;
if (how=="G") jss = 7;
if (how=="H") jss = 8;
if (how=="I") jss = 9;


if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;
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.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}}