var numeroimag = 8; 
var tempcamb = 9000;
var vecchionum;
function rand(min,max,exept)
{
	res = (Math.floor(Math.random()*max))+min;
	if(res == exept) rand(min,max,exept);
	return res;
}

function startSrc()
{
	if(document.cambiajpg);
	{
		setSrc();
		setInterval('setSrc()',tempcamb);
	}
}

function setSrc()
{
	var ratio = rand(0,5);
	var num = (ratio == 0 && vecchionum != 0)? 0 : rand(0,numeroimag,vecchionum);
	num = (num<10)? '0'+num : num;
	document.cambiajpg.src="immagini/rotazione_"+num+'.jpg';
	vecchionum = num;
}

<!-- hide this script from non-javascript-enabled browsers
<!-- //Browser Check
        var bName = navigator.appName;
        var bVer=navigator.appVersion.charAt(0);
        if (navigator.userAgent.indexOf('Win')!=-1)
        {       bPlat="windows";     }
        else if (navigator.userAgent.indexOf('Mac')!=-1)
        {       bPlat="mac";       }
        else if (navigator.userAgent.indexOf('WebTV')!=-1)
        {       bPlat="webtv";     }
//-->
<!--// pop-up window 
function popup(site,width,height,which) {
        if (site != "") {
              
         if (bName.indexOf('Microsoft')!=-1) {
                    if (bVer>=4) {
                        if (bPlat=="mac")       {
                                height-=15;
                                                width-=15;
                                        }                                                       
                    }  else {
                                height-=28;
                                width-=11;
                    }    
              } 
                var popupwindow=window.open(site, "newwindow"+which,"location=no,scrollbars=no,width="+width+",height="+height); popupwindow.focus();
        }
}

function popup2(site,width,height,which) {
        if (site != "") {
              
         if (bName.indexOf('Microsoft')!=-1) {
                    if (bVer>=4) {
                        if (bPlat=="mac")       {
                                height-=15;
                                                width-=15;
                                        }                                                       
                    }  else {
                                height-=28;
                                width-=11;
                    }    
              } 
                var popupwindow2=window.open(site, "newwindow"+which,"location=no,scrollbars=yes,width="+width+",height="+height); popupwindow2.focus();
        }
}

/* Function that displays status bar messages. */

function dm(msgStr) {
    window.status = msgStr;
    document.MM_returnValue = true;
}

// stop hiding -->

//var num=Math.ceil(Math.random()*12);


netscape=false;
if (navigator.appName.indexOf('Netscape') != -1) {
        netscape=true;
}
var tamagnox=screen.width;
	
function MM_timelinePlay(tmLnName, myID) {
	if (!netscape){
	  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
	  if (document.MM_Time == null) MM_initTimelines();
	  tmLn = document.MM_Time[tmLnName];
	  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}
	  if (myID == tmLn.ID) {
	    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
	    fNew = ++tmLn.curFrame;
	    for (i=0; i<tmLn.length; i++) {
	      sprite = tmLn[i];
	      if (sprite.charAt(0) == 's') {
	        if (sprite.obj) {
	          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
	          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {
	            keyFrm=1;
	            for (j=0; j<sprite.values.length; j++) {
	              props = sprite.values[j]; 
	              if (numKeyFr != props.length) {
	                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
	        	else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
	              } else {
	                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
	                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
	                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
	                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
	        } } } } }
	      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
	      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
	  } }
	}
}

function MM_initTimelines() {
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(1);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0][0] = new String("sprite");
    document.MM_Time[0][0].slot = 1;
    document.MM_Time[0][0].obj = document.all ? document.all["Layer1"] : null;
//    alert(eje_x.length);
    document.MM_Time[0][0].keyFrames = new Array(1, eje_x.length);
    document.MM_Time[0][0].values = new Array(2);
    document.MM_Time[0][0].values[0] = eje_x;
    document.MM_Time[0][0].values[0].prop = "left";
    document.MM_Time[0][0].values[1] = eje_y;
    document.MM_Time[0][0].values[1].prop = "top";
    document.MM_Time[0][0].values[0].prop2 = "style";
    document.MM_Time[0][0].values[1].prop2 = "style";
    document.MM_Time[0].lastFrame = 146;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}

{
				document.write ("<div id='Layer1' style='position:absolute; left:-392px; top:250px; width:392; height:185; z-index:2'><img src='immagini/bannervert_ferie.jpg' width='150' height='600' border='0'></div>");
				
				eje_x=new Array(635,635,635,635,635,635,635,635,635,635,635,635,635,635,635,635,635);
				eje_y=new Array(0,10,20,30,40,50,60,65,70,75,80,85,90,95,100,105,110);
			}