// * Dependencies * 
// this function requires the following snippets:
// JavaScript/images/switchImage
//
// BODY Example:
// <body onLoad="mySlideShow1.play(); mySlideShow2.play();">
// <img src="originalImage1.gif" name="slide1">
// <img src="originalImage2.gif" name="slide2">
//
// SCRIPT Example:
//var mySlideList1 = [ 'images/intel_logo.gif', 'images/wsi_logo.jpg', 'images/sm_emc_logo.jpg', 'images/sm_novell_logo.gif','images/sm_broadcom_logo.jpg'];
var mySlideList1 = [ 'images/wsi_logo.jpg', 'images/intel_logo.gif', 'images/sm_novell_logo.gif', 'images/sm_broadcom_logo.jpg'];
var mySlideShow1 = new SlideShow(mySlideList1, 'slide1', 3000, "mySlideShow1");
//var mySlideList2 = ['images/symantec_logo.jpg','images/sm_broadcom_logo.jpg','images/sm_dell_logo.jpg','images/sm_uxcomm_logo.jpg','images/sm_dmtf_logo.gif','images/sm_dmtf_cdm_logo.gif','images/sm_dmtf_smash_logo.gif','images/sm_ogf_logo.jpg','images/sm_the_open_group_logo.jpg','images/sm_picmg_logo.jpg','images/small_saf_logo.jpg','images/SNIA_new.jpg'];
//var mySlideList2 = ['images/BSA_sm.jpg','images/sm_dmtf_logo.gif','images/sm_the_open_group_logo.jpg','images/sm_dmtf_cdm_logo.gif','images/sm_ogf_logo.jpg','images/smf_2007.gif', 'images/SNIA_new.jpg'];
var mySlideList2 = ['images/sm_dmtf_logo.gif', 'images/SNIA_new.jpg', 'images/smf_2007.gif', 'images/sm_dmtf_cdm_logo.gif'];
var mySlideShow2 = new SlideShow(mySlideList2, 'slide2', 2000, "mySlideShow2");
function SlideShow(slideList, image, speed, name)          
{
  this.slideList = slideList;
  this.image = image;
  this.speed = speed;
  this.name = name;
  this.current = 0;
  this.timer = 0;
}
SlideShow.prototype.play = SlideShow_play;  
function SlideShow_play()       
{
  with(this)
  {
    if(current++ == slideList.length-1) current = 0;
    switchImage(image, slideList[current]);
    clearTimeout(timer);
    timer = setTimeout(name+'.play()', speed);
  }
}
function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}

