// 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_spuno_2.jpg';
Picture[2]  = 'corsi_file/ex_spuno_3.jpg';
Picture[3]  = 'corsi_file/ex_spuno_4.jpg';
Picture[4]  = 'corsi_file/ex_spuno_5.jpg';
Picture[5]  = 'corsi_file/ex_spuno_6.jpg';
Picture[6]  = 'corsi_file/ex_spuno_7.jpg';
Picture[7]  = 'corsi_file/ex_spuno_8.jpg';
Picture[8]  = 'corsi_file/ex_spuno_9.jpg';
Picture[9]  = 'corsi_file/ex_spuno_10.jpg';
Picture[10] = 'corsi_file/ex_spuno_11.jpg';


Caption[1]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Slalom veloce</font></b>";
Caption[2]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Curve sottosterzo</font></b>";
Caption[3]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Curve sovrasterzo</font></b>";
Caption[4]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">'esse'</font></small></b>";
Caption[5]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Inversione dinamica rollìo</font></b>";
Caption[6]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Traiettorie</font></small></b>";
Caption[7]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Uso del cambio e dei freni</font></b>";
Caption[8]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Fluidità di guida</font></b>";
Caption[9]  = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Guida sportiva veloce</font></b>";
Caption[10] = "<b><font face=\"Verdana\" size=\"1\" color=\"#0000FF\">Prove circuito completo</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 (how=="J") jss = 10;

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();
}}