// Bits for Steve to change...

var timer=60; // the number of seconds between changes, set to zero if you want the page to display permenantly.
var numberoffiles=17; // the number of files



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// stuff for steve NOT to change
var firsttime=true;
timer*=200;

function flip()
{
	if(firsttime)
	{
		// set the timer, toggle the flag, and return
		firsttime=false;
		
		if(timer>0)
			setTimeout("flip()",timer);
			
		return;
	}
	
	u=self.location.href;
	s=u.lastIndexOf("/");
	e=u.lastIndexOf(".");
	
	n=u.substring(s+1,e);
	
	p=Math.floor(Math.random()*numberoffiles + 1);
	
	if(n!="first")
	{
		n*=1;
		while(n==p)
		{
			p=Math.floor(Math.random()*numberoffiles + 1);
		}
	}
	
	self.location.href=p+".html";
}