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'
43 ////////////////////////////////////////////////
44 // Dynamic change of the hash part of the URL //
45 ////////////////////////////////////////////////
47 // Use hashDelimiter to "hide" name of the anchor (and to not scroll the page)
48 var hashDelimiter = '_';
50 hs.extend (hs.Expander.prototype, {
51 onAfterExpand: function(sender) {
53 window.location.hash = hashDelimiter + hashTag;
56 onBeforeClose: function(sender) {
57 window.location.hash = '';
61 function showDefaultImage() {
62 var hashParts = window.location.hash.split(hashDelimiter);
63 var myThumb = document.getElementById(hashParts[1])
64 if (hashParts[1] && myThumb) myThumb.click();
65 else window.location.hash = '';
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 = '';
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 curronload = window.onHashChange;
89 var newAction = function() {
93 window.onhashchange = newAction;
94 } else window.onhashchange = checkHashChange;