//<![CDATA[
 
  // Base path for images
  var BasePath = 'recent_projects_slideshow/';

  // Set the slideshow speed (in milliseconds)
  var SlideShowSpeed = 3000;
  
  var aPiles    = new Array();
  var aPictures = new Array(); // don't change this
  
  aPictures[1]  = BasePath + "uurvandemuur01.JPG";
  aPictures[2]  = BasePath + "uurvandemuur02.JPG";
  aPictures[3]  = BasePath + "uurvandemuur03.JPG";
  aPictures[4]  = BasePath + "uurvandemuur04.JPG";
  aPictures[5]  = BasePath + "uurvandemuur05.JPG";
  aPictures[6]  = BasePath + "uurvandemuur06.JPG";
  aPictures[7]  = BasePath + "uurvandemuur07.JPG";
  aPictures[8]  = BasePath + "uurvandemuur08.JPG";
  aPictures[9]  = BasePath + "uurvandemuur09.JPG";
  aPictures[10] = BasePath + "uurvandemuur10.JPG";
  aPictures[11] = BasePath + "uurvandemuur11.JPG";
  aPictures[12] = BasePath + "uurvandemuur12.JPG";
  aPictures[13] = BasePath + "uurvandemuur13.JPG";
  aPictures[14] = BasePath + "uurvandemuur14.JPG";
  aPictures[15] = BasePath + "uurvandemuur15.JPG";
  aPictures[16] = BasePath + "uurvandemuur16.JPG";
  aPictures[17] = BasePath + "uurvandemuur17.JPG";
  
  aPiles[1]     = aPictures;

  var aPictures = new Array();
  
  var iPile    = 1;
  var aCounter = new Array();
  var aPreload = new Array();
  var iNrPiles = aPiles.length;
  
  for (i = 1; i < iNrPiles; i++) {
    aCounter[i] = 1;
    var iNrPictures = aPiles[i].length;
    var aTemp = new Array;
    for (j = 1; j <  iNrPictures; j++) {
      aTemp[j] = new Image();
      aTemp[j].src = aPiles[i][j];
    }
    aPreload[i] = aTemp;
  }
  
  function runSlideShow(){

    if (document.all) {
      for (i = 1; i < iNrPiles; i++) {
        if ( i == iPile ) {
          document.images["aPile["+i+"]"].style.filter="blendTrans(duration=2)";
          document.images["aPile["+i+"]"].filters.blendTrans.Apply();
        }
      }
    }
    
    for (i = 1; i < iNrPiles; i++) {
      if ( i == iPile ) {
        document.images["aPile["+i+"]"].src = aPreload[i][aCounter[i]].src;
      }
    }
    
    if (document.all) {
      for (i = 1; i < iNrPiles; i++) {
        if ( i == iPile ) {
          document.images["aPile["+i+"]"].filters.blendTrans.Play();
        }
      }
    }

    for (i = 1; i < iNrPiles; i++) {
      if ( i == iPile ) {
        aCounter[i] = aCounter[i] + 1;
        if (aCounter[i] > aPiles[i].length-1) aCounter[i]=1;
      }
    }
    
    iPile = iPile + 1;
    if (iPile > iNrPiles ) iPile=1;
    
    setTimeout('runSlideShow()', SlideShowSpeed);
  }

//]]>
