var imgs = new Array();
for (i=0; i<11; i++) {
	imgs[i] = new Image();
	imgs[i].src = "images/Left-Side-100/m-" + (i+1)	+ ".jpg";
}
var n; n = 0;
var img;
var opacity;
var timer;

function init()
{
	n++; 
	if (n<2) { timer = setTimeout("init()", 10000); }
	else {clearTimeout(timer); rotate(); }
}
function rotate()
{
	if (document.images)
	{
		opacity = 100;
		FadeOut();
		setTimeout("rotate()", 10000);
		
	}
}

function FadeOut() 
{
  document.images("leftpic1").style.filter = 'alpha(opacity = ' + opacity + ')'; 
  document.images("leftpic2").style.filter = 'alpha(opacity = ' + opacity + ')'; 
  document.images("leftpic3").style.filter = 'alpha(opacity = ' + opacity + ')'; 
  
  opacity -= 10;
  if (opacity >= 0) 
  {
    timer = setTimeout("FadeOut()", 100);
  }
  else
  {	
	clearTimeout(timer);
	n++; if (n > 8) n=0; 
	document.images("leftpic1").src = imgs[n].src;
	document.images("leftpic2").src = imgs[n+1].src;
	document.images("leftpic3").src = imgs[n+2].src;
	
	opacity = 0;
	FadeIn();
  }
}

function FadeIn() 
{
  document.images("leftpic1").style.filter = 'alpha(opacity = ' + opacity + ')'; 
  document.images("leftpic2").style.filter = 'alpha(opacity = ' + opacity + ')'; 
  document.images("leftpic3").style.filter = 'alpha(opacity = ' + opacity + ')'; 

  opacity += 10;
  if (opacity <= 100) 
  {
    timer = setTimeout("FadeIn()", 100);
  }
  else
  {	
	clearTimeout(timer);
  }
}


function totop()
{
	if (top.location != self.location)
			{top.location = self.location;}
}

-->