lastImageSrc = "";

function roll(obj, newImage) {
	lastImageSrc = obj.src;
	lastImageObj = obj;
	obj.src = newImage;
}

function rollBack(obj) {
	obj.src = lastImageSrc;
}

function rollBck() {
	lastImageObj.src = lastImageSrc;
}

var iLoc = 0;
var interval = 5000;

function nextSlide(obj) {
	iLoc = (iLoc+1) % fCount;
	document[obj].src = "topAnim/" + iArray[iLoc];
	//document[obj].alt = "topAnim/" + iArray[iloc];
	var recur_call = "nextSlide('"+obj+"')";
	timerID = setTimeout(recur_call, interval);
}

function toggleLayer( whichLayer )
	{
	  var elem, vis;
	  if( document.getElementById ) // this is the way the standards work
	    elem = document.getElementById( whichLayer );
	  else if( document.all ) // this is the way old msie versions work
	      elem = document.all[whichLayer];
	  else if( document.layers ) // this is the way nn4 works
	    elem = document.layers[whichLayer];
	  vis = elem.style;
	  // if the style.display value is blank we try to figure it out here
	  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
	  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
	}
function showLayer( whichLayer ) {
	document.getElementById( whichLayer ).style.display = "block";
}
function hideLayer( whichLayer ) {
	document.getElementById( whichLayer ).style.display = "none";
}
function showMaillingList() {
	showLayer('signupform');
	hideLayer('displayrequirements');
	showLayer('floatSysRequirements');
}
