//configure variables

// Set Playing to 0 for autosatart Off and 1 for autostart On
Playing = 1;

// Time between slides in milliseconds
TimeDelay = 4000;

thisSlide = 0;
j_imax = 0;
j_Description = new Array();
j_Image = new Array ();

j_Description[j_imax] = "Platform dimensions are verified.";
j_Image[j_imax++] = "images/transit-tile-install-01.jpg";

j_Description[j_imax] = "For tiles provided with flanges, 3/8 cuts to be made 24 apart and within 1/8 tolerance.";
j_Image[j_imax++] = "images/transit-tile-install-02.jpg";

j_Description[j_imax] = "";
j_Image[j_imax++] = "images/transit-tile-install-03.jpg";

j_Description[j_imax] = "Tile surface area is ground approximately 3/16 - surface to be smooth using scarifier (Von Arx), diamond wheel, grinder, etc.";
j_Image[j_imax++] = "images/transit-tile-install-04.jpg";

j_Description[j_imax] = "";
j_Image[j_imax++] = "images/transit-tile-install-05.jpg";

//j_Description[j_imax] = "";
//j_Image[j_imax++] = "images/transit-tile-install-06.jpg";

j_Description[j_imax] = "";
j_Image[j_imax++] = "images/transit-tile-install-07.jpg";

//j_Description[j_imax] = "";
//j_Image[j_imax++] = "images/transit-tile-install-08.jpg";

j_Description[j_imax] = "Tiles are first inspected, then abraded with grinder or heavy sand paper.";
j_Image[j_imax++] = "images/transit-tile-install-09.jpg";

j_Description[j_imax] = "Tiles are wiped clean and dust free.";
j_Image[j_imax++] = "images/transit-tile-install-10.jpg";

j_Description[j_imax] = "";
j_Image[j_imax++] = "images/transit-tile-install-11.jpg";

j_Description[j_imax] = "A 2-part elastomeric adhesive is mixed and applied to the tiles.";
j_Image[j_imax++] = "images/transit-tile-install-12.jpg";

j_Description[j_imax] = "Tile is located on platform where upon te pre-moled fastener locations are drilled.";
j_Image[j_imax++] = "images/transit-tile-install-13.jpg";

j_Description[j_imax] = "Approved wedge type or similar anchors are then used to attach tile to concrete.";
j_Image[j_imax++] = "images/transit-tile-install-14.jpg";

j_Description[j_imax] = "";
j_Image[j_imax++] = "images/transit-tile-install-15.jpg";


function NextSlide()
{
   thisSlide ++;
    if (thisSlide == j_imax) {
      thisSlide = 0;
    }
    ShowSlide();
}

function PrevSlide()
{
   thisSlide --;
   if (thisSlide < 0) {
    thisSlide = j_imax -1;
   }
    ShowSlide();
}

function ShowSlide()
{
 if (document.images) {
   document.j_Slide.src = j_Image[thisSlide];
  }
 if (document.getElementById) {
 if (document.getElementById('j_Descrip')){ 
   document.getElementById('j_Descrip').innerHTML = j_Description[thisSlide];
  }
 if (document.getElementById('j_Count')){ 
   j_Cnt  = thisSlide +1;
   j_CntOfTotal = "(Slide " + j_Cnt.toString() + " of " + j_imax.toString() + ")";
   document.getElementById('j_Count').innerHTML = j_CntOfTotal;
  }
 }
}

function PlaySlide()
{
  NextSlide();
  timerID = setTimeout ("PlaySlide()", TimeDelay);
}

function StartStop()
{
   if (Playing == 0) {
      Playing = 1;
      PlaySlide();
  }
  else {
   Playing = 0;
   clearTimeout(timerID);
  }
}

ShowSlide();
if (Playing == 1) {
  timerID = setTimeout ("PlaySlide()", 3000);
}

