/////////////////////////////////////////////////////////////////////// slideshow - Rich Galiano - Pasch Consulting Group// specify imagesvar base = "/wp-content/uploads/" ;var slideimages = new Array("slide_01.jpg","slide_02.jpg","slide_03.jpg","slide_04.jpg","slide_05.jpg") ;// specify behaviorvar autostart   = true ;	// duh		var randomstart = true ;    // start with first image or random image	var randomrun   = false ;	// step through images in order or randomlyvar controls    = false ;	// draw control buttons underneath// specify speedvar slidespeed = 4000 ;     // millisecondsvar blenddelay = 1000;      // milliseconds/////////////////////////////////////////////////////////////////////// that's it - you're done////////////////////////////////////////////////////////////////////*USAGE: make sure you get the paths right<form id="slideshow" method="get"><div style="text-align:center"><img id="slideshow" src="/skinned0/slide_01.jpg" width="600" height="400" alt="" /><script type="text/javascript" src="/skinned0/slideshow1.js"></script></div></form>*//////////////////////////////////////////////////////////////////////// nothing below here to editvar imageholder = new Array() ;for ( i=0 ; i<slideimages.length ; i++ )  {  imageholder[i] = new Image() ;  imageholder[i].src = base + slideimages[i] ;  ////alert( imageholder[i].src ) ;  }var whichimage = 0 ;var ie = document.all ;if( !ie ) blenddelay = 0;function ss_run()  {  document.images.slideshow.style.filter = "blendTrans(duration=1)" ;  if ( controls ) ss_draw_buttons();  if( ! autostart )    {    document.forms.slideshow.btn_play.value = ">" ;    return ;    }  if( randomstart ) whichimage = Math.floor(Math.random() * slideimages.length ) ;  if( randomstart ) { slideit() }  else { setTimeout( "slideit()", slidespeed+blenddelay ) }  }function slideit()  {  if( ! document.images ) return ; // oops  if( ! autostart ) return ;  lastslide = whichimage;  whichimage = ( whichimage < slideimages.length-1 ) ? whichimage+1 : 0 ;  if( randomrun ) whichimage = Math.floor( Math.random() * slideimages.length ) ;     if( ie ) document.images.slideshow.filters[0].apply() ;  document.images.slideshow.src=imageholder[whichimage].src ;  if( ie ) document.images.slideshow.filters[0].play() ;  setTimeout( "slideit()", slidespeed+blenddelay ) ;  }function ss_play()  {  if ( autostart )    {    document.forms.slideshow.btn_play.value = ">" ;    autostart = false ;    }  else    {    document.forms.slideshow.btn_play.value = "| |" ;    autostart = true ;    slideit() ;    }  }function ss_forward()  {  document.forms.slideshow.btn_play.value = ">" ;  autostart = false ;  lastslide = whichimage;  whichimage = ( whichimage < slideimages.length-1 ) ? whichimage+1 : 0 ;  if( ie ) document.images.slideshow.filters[0].apply() ;  document.images.slideshow.src=imageholder[whichimage].src ;  if( ie ) document.images.slideshow.filters[0].play() ;  }function ss_back()  {  document.forms.slideshow.btn_play.value = ">" ;  autostart = false ;  if( --whichimage < 0 ) whichimage = slideimages.length-1 ;  if( randomrun ) whichimage = lastslide ;  if (ie) document.images.slideshow.filters[0].apply() ;  document.images.slideshow.src=imageholder[whichimage].src ;  if (ie) document.images.slideshow.filters[0].play() ;   }function ss_draw_buttons()  {  document.write( '<p>' ) ;  document.write( '<input id="btn_back" class="slideshow-button" onclick="ss_back()" alt="Previous" size="20" type="button" value="&lt;&lt;" /> ' ) ;  document.write( '<input id="btn_play" class="slideshow-button" onclick="ss_play()" alt="Play" size="20" type="button" value="| |" />  ' ) ;
  document.write( '<input id="btn_fwd" class="slideshow-button" onclick="ss_forward()" alt="Next" size="20" type="button" value="&gt;&gt;" /> ' ) ;
  document.write( '</p>' ) ;
  }

///////////////////////////////////////////////////////////////////
//// and go!

ss_run() ;