﻿// JScript File
//script to fade rotating images.


// do not edit anything below this line
 var slideShowSpeed = 3000;
 var crossFadeDuration = 3;
 var preLoadpics = new Array();
 var t;
 var j;
 var p;

 function preparePoleSlideShow()
 {
   
    
    j = 0;
    p = PolePics.length;
    for (i = 0; i < p; i++) {
        preLoadpics[i] = new Image();
        preLoadpics[i].src = PolePics[i];
    }

    runSlideShow()
 
 }
 
 function prepareFunkSlideShow()
 {
   
    j = 0;
    p = thePics.length;
    for (i = 0; i < p; i++) {
        preLoadpics[i] = new Image();
        preLoadpics[i].src = thePics[i];
    }

    runSlideShow()
 
 }
 
  
 function prepareBodySlideShow()
 {
   
       
    j = 0;
    p = thePics.length;
    for (i = 0; i < p; i++) {
        preLoadpics[i] = new Image();
        preLoadpics[i].src = thePics[i];
    }

    runSlideShow()
 
 }
 
 function prepareBootCampSlideShow()
 {
   
    j = 0;
    p = thePics.length;
    for (i = 0; i < p; i++) {
        preLoadpics[i] = new Image();
        preLoadpics[i].src = thePics[i];
    }

    runSlideShow()
 
 }
 
 function prepareBellySlideShow()
 {
   
    j = 0;
    p = thePics.length;
    for (i = 0; i < p; i++) {
        preLoadpics[i] = new Image();
        preLoadpics[i].src = thePics[i];
    }

    runSlideShow()
 
 }
 
  
 function prepareHipHopSlideShow()
 {
   
    j = 0;
    p = thePics.length;
    for (i = 0; i < p; i++) {
        preLoadpics[i] = new Image();
        preLoadpics[i].src = thePics[i];
    }

    runSlideShow()
 
 }

 function runSlideShow() {

    
    if (document.all) {
        document.images.SlideShow.style.filter="blendTrans(duration=2)";
        document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
        document.images.SlideShow.filters.blendTrans.Apply();
    }
    document.images.SlideShow.src = preLoadpics[j].src;
    if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
    }
        j = j + 1;
        if (j > (p - 1)) j = 0;
        t = setTimeout('runSlideShow()', slideShowSpeed);
 }

