function ShowThumbsOnSlideshow()
{
    if (gallerySlideshow)
    {
        // if the slideshow is already loaded, then just toggle the thumbs now
        if (gallerySlideshow._slideshowLoaded)
        {
            toggleThumbs();
        }
        else
        {
            // if the slideshow isn't loaded yet, then set a trigger event for when it is
            gallerySlideshow.on('slideshowLoaded', function() 
            {
                toggleThumbs();
            });
        }
    }
}

// Use onDOMReady to set a timer to make sure we're after the onDOMReady call that creates the slideshow object
if (galleryStyle == "slideshow" && typeof(toggleThumbs) != "undefined")
{
    YE.onDOMReady(function() {YAHOO.lang.later(1000, null, ShowThumbsOnSlideshow);});
}




