function image_effects()
{
   try {
     //var selobj = document.getElementById('slidehow_transition');
     //var selIndex = selobj.selectedIndex;
     //set the transition to the number selected in the list
     slideShow.filters.revealTrans.Transition=23
     slideShow.filters.revealTrans.apply()
     slideShow.filters.revealTrans.play()
	}
   catch (e) {}
  
}

//function to get the previous image in the array
function previous_image(chk)
{  
if (document.getElementById(chk).checked==false)
   {
    if (num>0)
    {
       num--
       image_effects()
       //set the SRC attribute to let the browser load the preloaded images 
       document.images.slideShow.src=image[num] 
     }
    if (num==0)
    {  //if first image is displayed
       num=image.length
       num--
       image_effects()
       document.images.slideShow.src=image[num] 
    } 
  }
}

//function to get the next image in the array
function next_image(chk)
{ 
if (document.getElementById(chk).checked==false)
   {
    if (num<image.length)
    {
       num++
       //if last image is reached,display the first image
       if (num==image.length) 
       num=0
       image_effects()
        //set the SRC attribute to let the browser load the preloaded images 
       document.images.slideShow.src=image[num]   
    }
  }
}

//for automatic Slideshow of the Images
function slideshow_automatic(chk)
{ 
var slchecked=true
try
{slchecked = document.getElementById(chk).checked}
catch (e) {}

if (slchecked==true)
   {
    if (num<image.length)
     {
       num++
       //if last image is reached,display the first image
       if (num==image.length) 
       num=0
       image_effects()
       //sets the timer value to 4 seconds,we can create a timing loop by using the setTimeout method
       timedelay=setTimeout("slideshow_automatic()",5400) 
       document.images.slideShow.src=image[num]   
     }
   }  
   if (slchecked==false)
   { 
     //Cancels the time-out that was set with the setTimeout method. 
      clearTimeout(timedelay)
   }
}
