var CurrentImage = 0;
var Active = new Boolean(true);
var images = new Array();
var comments = new Array();
var FlipTimer;
function rotate()
{
images[0]="/images/FrontPage/0116200910.jpg";
comments[0]="World Champion Sergei Golubitsky giving a summer camp at SCFC";
images[1]="/images/FrontPage/0116200909.jpg";
comments[1]="SCFC comes in 2nd and tied for 3rd in foil";
images[2]="/images/FrontPage/0116200908.jpg";
comments[2]="SCFC comes in 1st and tied for third in saber";
images[3]="/images/FrontPage/0116200907.jpg";
comments[3]="2008 RYC competition";
images[4]="/images/FrontPage/0116200906.jpg";
comments[4]="Group shot of some of our fencers";
images[5]="/images/FrontPage/0116200905.jpg";
comments[5]="Alex and Drake";
images[6]="/images/FrontPage/0116200904.jpg";
comments[6]="Tournament night - all ages!";
images[7]="/images/FrontPage/0116200903.jpg";
comments[7]="Individualized instruction in all weapons";
images[8]="/images/FrontPage/0116200902.jpg";
comments[8]="Foil fencing at the center";
images[9]="/images/FrontPage/0116200901.jpg";
comments[9]="One of our group intro classes";
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');
}