
                    

    var num=0, timeDelay
     
    //preload the images in the cache so that the images load faster
    //create new instance of images in memory 

    var imagePreload=new Array()
    for (i=0;i<image.length;i++)
    {
       imagePreload[i]=new Image()
    // set the src attribute
    imagePreload[i].src=image[i]
    }

    //for automatic Slideshow of the Images
    function slideshow_automatic()
    { 
        if (num<image.length)
         {
           num++
           //if last image is reached,display the first image
           if (num==image.length) 
       		    num=0
           
	    slideShow.filters.revealTrans.Transition=12
         slideShow.filters.revealTrans.apply()
         slideShow.filters.revealTrans.play()
           //sets the timer value to 4 seconds,we can create a timing loop by using the setTimeout method
           timeDelay=setTimeout("slideshow_automatic()",4000) 
           document.images.slideShow.src=image[num]   
         }
    }
