Syntax

function restartSlideshow(sliderId, interval) {
 var timer = null;
 var sliderElem = $('#wikiaPhotoGallery-slider-body-' + sliderId);
 sliderElem.find('.nav.selected').click();
 sliderElem.find('.nav').off('click').click(function (e) {
 if (sliderElem.find('.wikiaPhotoGallery-slider').queue().length == 0) {
 clearInterval(timer);
 WikiaPhotoGallerySlider.scroll($(this));
 }
 });
 $(window).unbind('EditPagePreviewClosed').bind('EditPagePreviewClosed', function () {
 WikiaPhotoGallerySlider.killSlider(timer);
 });
 if (sliderElem.find('ul').children().length > 1) {
 timer = setInterval(function () {
 WikiaPhotoGallerySlider.slideshow(sliderId);
 }, interval);
 }
}
test2
Category:Marooned test
Category:Candidates for deletion