
<!--
function rand_number(n)
{
var x;
x=Math.round(Math.random()*100);
x%=n;
return x;
}
function boucle_imagesB(lastid)
{
var i;
var intervalle=3000;
var img = new Array();
img[0]='<a href="http://www.gardasee.it/Hotels_Images/torr/cl_11/home.htm" target="_blank"><IMG src="JS/b-susy.jpg" border=0></a>';
img[1]='<a href="http://www.gardasee.it/Hotels_Images/torr/cl_05/home.htm" target="_blank"><IMG src="JS/b-menapace.jpg" border=0></a>';
img[2]='<a href="http://www.gardasee.it/Hotels_Images/torr/cl_14/home.htm" target="_blank"><IMG src="JS/b-speranza.jpg" border=0></a>';

var imageToShowIndex = -1;
if (lastid>=0)
if (lastid!=img.length-1)
imageToShowIndex = lastid+1;
else
imageToShowIndex = 0;
else
imageToShowIndex=rand_number(img.length);

document.getElementById('boucleB').innerHTML=img[imageToShowIndex];
setTimeout("boucle_imagesB("+eval("imageToShowIndex")+")",intervalle);
}
//-->
