var currentImage = 0;
   function RotateImages()
  {
  
      var a = new Array("http://www.manivaski.it/meteo/cams/thumbs/manivaday.jpg","http://www.manivaski.it/meteo/cams/thumbs/manivanight.jpg","http://www.manivaski.it/meteo/cams/thumbs/dasdana1.jpg","http://www.manivaski.it/meteo/cams/thumbs/dasdana2.jpg","http://www.manivaski.it/meteo/cams/thumbs/bonardi.jpg","http://www.manivaski.it/meteo/cams/thumbs/chaletmaniva.jpg","http://www.manivaski.it/meteo/cams/thumbs/igloo.jpg");
      var c = new Array("http://www.manivaski.it/meteo/cams/manivaday.jpg", "http://www.manivaski.it/meteo/cams/manivanight.jpg", "http://www.manivaski.it/meteo/cams/dasdana1.jpg", "http://www.manivaski.it/meteo/cams/dasdana2.jpg", "http://www.manivaski.it/meteo/cams/bonardi.jpg", "http://www.manivaski.it/meteo/cams/chaletmaniva.jpg", "http://www.manivaski.it/meteo/cams/igloo.jpg");

	  var b = document.getElementById('Rotating1');
	  	  
      var d = document.getElementById('imageurl0');
	  var e = document.getElementById('imageurl1');
	  var f = document.getElementById('imageurl2');
	  var g = document.getElementById('imageurl3');
	  var h = document.getElementById('imageurl4');
  	  var i = document.getElementById('imageurl5');
	  var j = document.getElementById('imageurl6');

	  
	  
      currentImage++;

    if(currentImage>= a.length) 
      currentImage=0;

    b.src  = a[currentImage];
	
	d.href = c[currentImage];
	if(currentImage == 0) {
	e.href = c[1];
	f.href = c[2];
	g.href = c[3];
	h.href = c[4];
	i.href = c[5];
	j.href = c[6];

	} else if(currentImage == 1) {
	f.href = c[2];
	g.href = c[3];
	h.href = c[4];
	i.href = c[5];
	j.href = c[6];
	d.href = c[0];
	} else if(currentImage == 2) {
	g.href = c[3];
	h.href = c[4];
	i.href = c[5];
	j.href = c[6];
	d.href = c[0];
	e.href = c[1];
	} else if(currentImage == 3) {
	h.href = c[4];
	i.href = c[5];
	j.href = c[6];
	d.href = c[0];
	e.href = c[1];
	f.href = c[2];
	}

	rotator = window.setTimeout("RotateImages(" + (currentImage+1) + ")",2500);
 
  }

  function StopRotation()
  {
    window.clearTimeout(rotator);
  }

  RotateImages();
