<!--

var photo = new PhotoMorpher('photo', 'photoArea', 'photoList', 'photoItemActive',
 {'photoArea':'photoAreaActive', 'photoList':'photoListActive',
  'photoPrev':'photoPrevActive', 'photoNext':'photoNextActive', 'photoAuto':'photoAutoPlay'}
);

addEvent(photo, 'setup', function() {

 addEvent(document.getElementById('photoPrev'), 'click',
  new Function('photo.prev(); return false'));

 addEvent(document.getElementById('photoNext'), 'click',
  new Function('photo.next(); return false'));

 addEvent(document.getElementById('photoAuto'), 'click',
  new Function('photo.play(); this.className="photoAuto"+(photo.autoPlay?"Pause":"Play")'));

});

addEvent(photo, 'beforeload',
 new Function('document.getElementById("photoLoadMessage").style.visibility = "visible"'));

addEvent(photo, 'load',
 new Function('document.getElementById("photoLoadMessage").style.visibility = "hidden"'));

// Here's some optional settings you might want to tweak...
//photo.fadeSteps = 5;
//photo.autoPlay = true;
//photo.autoDelay = 10000;
//photo.autoPreload = false;



//-->