var CurrentImage = 0;
var Active = new Boolean(true);
var images = new Array();
var comments = new Array();
var FlipTimer;
function rotate()
{
images[0]="/images/FrontPage/10.jpg";
comments[0]="Jordan takes bronze at the 2008 Youth Pacific Coast Championships!";
images[1]="/images/FrontPage/9.jpg";
comments[1]="Some of our saber fencers after a club tournament";
images[2]="/images/FrontPage/8.jpg";
comments[2]="SCFC fencer Shirley with her coach, Brenden Richard";
images[3]="/images/FrontPage/4.jpg";
comments[3]="SCFC intermediate foilists prepare for their pool bouts";
images[4]="/images/FrontPage/3.jpg";
comments[4]="Max, Brenden, Hailee, and Geoffrey.";
images[5]="/images/FrontPage/5.jpg";
comments[5]="On guard. Ready? Fence!";
images[6]="/images/FrontPage/6.jpg";
comments[6]="Christie and Brenden. All smiles in-between bouts.";
images[7]="/images/FrontPage/7.jpg";
comments[7]="Relaxing after a hard day at the tournament.";
images[8]="/images/FrontPage/2.jpg";
comments[8]="Group shot from the SCFC Youth Tournament.";
images[9]="/images/FrontPage/1.jpg";
comments[9]="Geoffrey, Christie, and Hailee posing for the camera.";
flip(1);
}
function flip (Counter)
{
if (Active == true)
{
clearTimeout(FlipTimer);
CurrentImage = CurrentImage + Counter;
if (images.length == CurrentImage) {
CurrentImage = 0; }
if (CurrentImage <= -1) {
CurrentImage = images.length - 1; }
document.images["FlipImage"].src = images[CurrentImage];
document.getElementById('PicNotes').innerHTML = comments[CurrentImage];
}
FlipTimer = setTimeout("flip(1)", 5000);
}
function start_rotate()
{
Active = true;
}
function stop_rotate()
{
Active = false;
}
function image_click()
{
window.open(images[CurrentImage],'NewWindow');
}