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 = '';
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();
66 else window.location.hash = '';
68 // If the new hash is not equal to the hash we store internally,
69 // then it must be the user hitting the "back/forward" button
70 function checkHashChange() {
71 var hashParts = window.location.hash.split(hashDelimiter);
72 if (hashParts[1] != hashTag) {
74 window.location.hash = '';
78 // Add onLoad and onHashChange functions
80 var current = window.onload;
81 var newAction = function() {
85 window.onload = newAction;
86 } else window.onload = showDefaultImage;
88 if(window.onhashchange) {
89 var current = window.onHashChange;
90 var newAction = function() {
94 window.onhashchange = newAction;
95 } else window.onhashchange = checkHashChange;