var hideParents=null;var galleries=null;jQuery(function(){jQuery('img.image1').data('ad-desc','');jQuery('img.image1').data('ad-title','');jQuery('img.image4').data('ad-desc','');jQuery('img.image5').data('ad-desc','');var hidParents=jQuery('.ad-gallery').parents("tr:hidden");hidParents.css("visibility","hidden").css("display","");hideParents=hidParents;var gallery_settings=self.gallery_settings||{description_wrapper:jQuery('#descriptions')};if(!galleries){galleries=jQuery('.ad-gallery').adGallery(gallery_settings);}jQuery('#switch-effect').change(function(){galleries[0].settings.effect=jQuery(this).val();return false;});jQuery('#toggle-slideshow').click(function(){galleries[0].slideshow.toggle();return false;});});function afterLoadHandling(){if(hideParents)hideParents.css("display","none").css("visibility","visible");}