startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace
    (" over", "");
   }
   }
  }
 }
}
window.onload = function()
{
	startList;
	rotateImages();
}

// slideshow timer in seconds
var timer = 4;

var img, count = 1, size = 4;

function rotateImages()
{
	window.setTimeout('nextSlide()', timer * 1000);
}

function nextSlide()
{
	if (++count == size + 1) { count = 1; }
	
	//new Effect.Opacity(document.getElementById('display').style.background, {delay: 1, duration: 1, from:0, to: 1.0});
	
	document.getElementById('display').style.background = '#fff url(photos/' + count + '.jpg) no-repeat';
	
	window.setTimeout('nextSlide()', timer * 1000);
}
