// JavaScript Document

/*image rotator*/
function rotateImages() {
	var imagenumber = 4;
	var randomnumber = Math.random() ;
	var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
	optionalities = new Array;
	optionalities[1] = "A";
	optionalities[2] = "B";
	optionalities[3] = "C";
	optionalities[4] = "D";
	optionalities[5] = "E";
	var randomLetter = optionalities[rand1];
	var isW3C = (document.getElementById) ? true : false;
	if (isW3C) {
	document.getElementById("rotator").src = ('images/home/random/photo' + randomLetter + '.jpg');
	}
}


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=startList;