// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); 

Picture[1]  = 'images/Slide01.jpg';
Picture[2]  = 'images/Slide02.jpg';
Picture[3]  = 'images/Slide03.jpg';
Picture[4]  = 'images/Slide04.jpg';
Picture[5]  = 'images/Slide05.jpg';
Picture[6]  = 'images/Slide06.jpg';
Picture[7]  = 'images/Slide00.jpg';

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
   preLoad[iss] = new Image();
   preLoad[iss].src = Picture[iss];
}

function runSlideShow(){
   if (document.all){
      document.images.PictureBox.style.filter="blendTrans(duration=2)";
      document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
      document.images.PictureBox.filters.blendTrans.Apply();
   }
   document.images.PictureBox.src = preLoad[jss].src;
   if (document.all) document.images.PictureBox.filters.blendTrans.Play();
   jss = jss + 1;
   if (jss > (pss)) jss=1;
   tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

/////////////////// End Slide Show Section \\\\\\\\\\\\\\\\\\\


function ShowCGIFooter(CGI_Name, CGI_Version) {
   var mydate=new Date()
   var year=mydate.getYear()

   if (year < 1000) year+=1900

   document.write("</td>");
   document.write("</tr>");
   document.write("</table>");  // Closes the table containing the main text
   document.write("</td>");
   document.write("</tr>");
   document.write("<tr>");
   document.write("<td>");
   document.write(InsertImage("LL_Corner.gif", "147", "20", ""));
   document.write("</td>");
   document.write("<td bgcolor=\"#009500\">&nbsp;</td>");
   document.write("</tr>");
   document.write("<tr>");
   document.write("<td>&nbsp;</td>");
   document.write("<td>");
   document.write("<small>");
   document.write("<small>");
   document.write("<font face=\"Arial\">");
   document.write("<em>");
   document.write("    <H5>");
   document.write("      All contents copyright &copy; 2002-");
   document.write(year);
   document.write("      , International Friesian Show Horse Association. All rights reserved.<BR>");
   document.write("Generated " + document.lastModified);
   document.write(" by " + CGI_Name + ", version of " +CGI_Version + ".");
   document.write("    </H5>");
   document.write("</em>");
   document.write("</font>");
   document.write("</small>");
   document.write("</small>");
   document.write("</td>");
   document.write("</tr>");
   document.write("</table>");
}


// MakeEmail - Dynamically build email link from components.  Hopefully this
//   foils email scanning robots used by spammers.

function MakeEmail(user, domain, suffix, caption){
   if (caption == '') {
      caption = user + '@' + domain + '.' + suffix
   }
   document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + caption + '</a>');
}

