// Apply common settings here, or override them in the html file. hs.graphicsDir = '/images/highslide/'; hs.padToMinWidth = true; hs.showCredits = false; // HTML extension hs.captionId = 'the-caption'; hs.slideshowGroup = '99'; hs.minWidth = 420; hs.minHeight = 300; hs.outlineType = 'rounded-white'; hs.fadeInOut = true; // OBJ of Button 'X-Close' hs.registerOverlay({ thumbnailId: null, overlayId: 'closebutton', position: 'top right', hideOnMouseOut: true }); // Add function hs.getCaptionId = function(id, str) { var pn = id-1, nn = id+1; var pid = document.getElementById(str+pn); var nid = document.getElementById(str+nn); if (pid && nid) return 'the-caption'; if (pid && !nid) return 'the-caption-nonext'; if (!pid && nid) return 'the-caption-noprev'; if (!pid && !nid) return 'the-caption-noside'; return null; };