Including the necessary scripts

<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/jquery.photostack.pack.js"></script>

First include the latest release of the jQuery library. If you plan to use easing include the easing plugin next. Finally include the photostack plugin, either the unpacked or the packed version.

Available options

var defaults = {
  prev : '#prev',             // the element to control the previous function, can be any selector (links, input, image...)
  next : '#next',             // the element to control the next function
  speed : 'slow',             // the speed the photo swaps, either 'slow', 'normal', 'fast' or any number (3000 = 3sec)
  direction : 'vertical',     // the direction the photos swaps, either 'vertical' or 'horizontal'
  easeIn : null,              // the easing method for the in transition
  easeOut : null,             // the easing method for the out transition
  randomTop : 10,             // number of random (+/-) pixels to the top each time a photo gets swapped
  randomLeft : 10,            // number of random (+/-) pixels to the left each time a photo gets swapped
  autoplay : false,           // start a slideshow automatically
  autoplayDirection : 'next', // the action to be called on a slideshow, either 'next' or 'prev'
  autoplayTimeout : 5000,     // the timeout between the photo swapping
  autoplayStart : '#start',   // the element to start the slideshow
  autoplayStop : '#stop',     // the element to stop the slideshow
  rotate : true,              // rotate the photos (only working with latest Firefox, Safari and Chrome)
  rotateDeg : 5,              // the degrees (random between 0 and X) of the rotation
  shadow : false,             // show shadows on the photos (only working with latest Firefox, Safari and Chrome - beware, slows down the animation)
  shadowOffsetX : 0,          // the X offset of the shadow
  shadowOffsetY : 0,          // the Y offset of the shadow
  shadowBlur : 5,             // the blur of the shadow
  shadowColor : 'black'       // the color of the shadow
};