var slideChangeRate = 12700;
var crossFadeTime = 2;

var path="";

imagearray = new Array(); 

imagearray[0] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/andream.jpg';
imagearray[1] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/tashflowersm071907.jpg' ;
imagearray[2] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/smilelizfizsm.jpg' ;
imagearray[3] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/Calliehorse.jpg' ;
imagearray[4] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/yuicecream.jpg' ;
imagearray[5] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/vik2sm.jpg' ;
imagearray[6] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/cookiesm.jpg';
imagearray[7] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/gorgeous.jpg';
imagearray[8] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/giaseagullssm.jpg';
imagearray[9] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/peace.abstract.jpg' ;
imagearray[10] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/cammath.jpg';
imagearray[11] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/rainbowcam.jpg';
imagearray[12] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/appletreenatasm.jpg';
imagearray[13] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/colorswirlsm.jpg';
imagearray[14] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/emsart.jpg';
imagearray[15] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/thecoolone.cs.jpg';
imagearray[16] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/mirkssunset.jpg';
imagearray[17] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/lzastripe.jpg';
imagearray[18] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/zpainting.jpg';
imagearray[19] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/emperart.jpg';
imagearray[20] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/mose040808w.jpg';
imagearray[21] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/chlbart.jpg';
imagearray[22] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/bobart.jpg';
imagearray[23] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/ayayaheartsm.jpg';
imagearray[24] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/calmodartsm.jpg';
imagearray[25] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/millsbeach.jpg';
imagearray[26] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/vicart.61107.jpg';
imagearray[27] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/lale.jpg';
imagearray[28] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/alyart.jpg';
imagearray[29] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/inksurfcal.jpg';
imagearray[30] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/chanart.jpg';
imagearray[31] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/indragonupl.jpg';
imagearray[32] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/sartreesm.jpg';
imagearray[33] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/alxart.jpg';
imagearray[34] = path+'http://www.mathtrain.com/mathtrain/file.php/1/art/circlecsm.jpg';

var t;
var j = 0;

runSlideShow();

function runSlideShow(){


var preLoad = new Array()
for (i = 0; i < imagearray.length; i++){
   preLoad[i] = new Image()
   preLoad[i].src = imagearray[i]
}


   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeTime)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (imagearray.length-1)) j=0
   t = setTimeout('runSlideShow()', slideChangeRate)

}