var photoIndex=rand(photos.length);
doit();
cacheNextPhoto();
setTimeout("timerPop()", 7500);
function doit()
{
m=photos[photoIndex][0];
name=photos[photoIndex][1];
width=photos[photoIndex][2];
height=photos[photoIndex][3];
if (width > 750)
		{
		height=height*750/width;
		width=750;
		}
if (height > 500)
	    {
		width=width*500/height;
		height=500;
		}
document.getElementById("f1a").innerHTML='<center><b><a href="'+members[m][1]+'">'+members[m][2]+'</a><b></center>';
document.getElementById("f1b").innerHTML='<center><a href="'+members[m][1]+'#'+name+'"><img border="0" height="'+height+'" width="'+width+'" src="images/'+name+'.jpg"></a></center>';
document.getElementById("f1c").innerHTML='<center><a href="'+members[m][3]+'">'+members[m][4]+'</a></center>';
}

function timerPop()
{
 photoIndex=getNextPhotoIndex();
 doit();
 cacheNextPhoto();
 setTimeout("timerPop()", 7500);
}

function cacheNextPhoto()
{
 document.getElementById("f1d").innerHTML='<img border="0" width=0px heigth=0px src="images/'+photos[getNextPhotoIndex()][1]+'.jpg">';
}

function rand(max)
{
return Math.floor(max*Math.random());
}

function getNextPhotoIndex()
{
 x=photoIndex+1;
 if (x >= photos.length) return 0;
 return x;
}