2 * Site-specific configuration settings for Highslide JS
6 hs.creditsPosition = 'top right';
7 hs.outlineType = 'rounded-black';
13 // hs.allowMultipleInstances = false;
14 hs.captionEval = 'this.thumb.title';
15 hs.captionOverlay = { position: "top" };
16 hs.expandDuration = 100;
17 hs.restoreDuration = 100;
18 hs.dimmingDuration = 100;
19 hs.dimmingOpacity = 0.8;
20 hs.transitionDuration = 100;
21 hs.thumbnailId = 'thumb1';
22 hs.numberPosition = 'caption';
23 hs.transitions = ['expand', 'crossfade'];
31 className: 'controls-in-heading',
33 position: 'top center',
39 relativeTo: 'expander'
44 ////////////////////////////////////////////////
45 // Dynamic change of the hash part of the URL //
46 ////////////////////////////////////////////////
48 // Use hashDelimiter to "hide" name of the anchor (and to not scroll the page)
49 var hashDelimiter = '_';
51 hs.extend (hs.Expander.prototype, {
52 onAfterExpand: function(sender) {
54 window.location.hash = hashDelimiter + hashTag;
57 onBeforeClose: function(sender) {
58 window.location.hash = hashDelimiter;
62 function showDefaultImage() {
63 var hashParts = window.location.hash.split(hashDelimiter);
64 var myThumb = document.getElementById(hashParts[1])
65 if (hashParts[1] && myThumb) myThumb.click();
67 // If the new hash is not equal to the hash we store internally,
68 // then it must be the user hitting the "back/forward" button
69 function checkHashChange() {
70 var hashParts = window.location.hash.split(hashDelimiter);
71 if (hashParts[1] != hashTag) {
73 window.location.hash = hashDelimiter;
77 // Add onLoad and onHashChange functions
79 var current = window.onload;
80 var newAction = function() {
84 window.onload = newAction;
85 } else window.onload = showDefaultImage;
87 if(window.onhashchange) {
88 var current = window.onHashChange;
89 var newAction = function() {
93 window.onhashchange = newAction;
94 } else window.onhashchange = checkHashChange;