<!--
var readingTime=3; // Amount of time the user has to see the image (seconds)
var imagePath='images/slideShow/';

images=new Array("ftCusterNationalCemetery.png : galleries/signs/index.php", "dickmanRoad.png : galleries/signs/index.php", "gallagher.png : galleries/speciality/index.php", "hmAccessVision.png : galleries/signs/index.php");

/* Do not edit the following variables */
var currDir=0;
var currNum=0;
var stopSlide = 0;

function nextSlide() {
  currNum++;
  if(currNum == images.length) {
    currNum=0;
  }
	
  document.getElementById("disp-slide").src=imagePath+images[currNum].split(" : ")[0];
  document.getElementById("disp-link").href=images[currNum].split(" : ")[1];
}

function prevSlide() {
  currNum--;
  if(currNum == -1) {
    currNum=images.length-1;
  }
  document.getElementById("disp-slide").src=imagePath+images[currNum].split(" : ")[0];
  document.getElementById("disp-link").href=images[currNum].split(" : ")[1];
}

function fadeSlide() {
  if(currDir==0) {
	if(!stopSlide) {
      currDir=1;
      nextSlide();		
	}
  }
  
  if(currDir==1) {
    window.setTimeout("commenceFade()", (readingTime * 1000));
  }
}

function pausePlaySlide() {
  if(stopSlide == 1) {
    stopSlide = 0;
    fadeSlide();
   // document.getElementById("slideButton").src = 'images/slideShow/pauseButton.jpg';  	  
  } else if(stopSlide == 0) {
    stopSlide = 1;
    fadeSlide();
   // document.getElementById("slideButton").src = 'images/slideShow/playButton.jpg';  
  }
}

function commenceFade() {
  currDir=0;
  fadeSlide();
}

window.setTimeout("commenceFade()", readingTime * 1000);
-->
