﻿// JScript File
var i = 0;
var timer_is_on=0;
var t;
var path = new Array();
// LIST OF SLIDES
path[0] = "docs/NYSPMR_UW2.jpg";
path[1] = "docs/NYSPMR_UW5.jpg";
path[2] = "docs/NYSPMR_UW3.jpg";
path[3] = "docs/NYSPMR_UW4.jpg";
path[4] = "docs/NYSPMR_UW1.jpg";

function doTimer()
{
if (!timer_is_on)
  {
  timer_is_on=1;
  swapImage();
  }
}

function swapImage()
{
   document.slide.src = path[i];
   if(i < path.length - 1) i++; else i = 0;
   t=setTimeout("swapImage()",2000);
//   document.write("exec swapImage.");
}

function stopCount()
{
clearTimeout(t);
timer_is_on=0;
}


