document.observe('dom:loaded', function(){
  
  if($('slideshow')){
    new dd.ui.Slideshow($('slideshow'));
  }
  
});