$(document).ready(function() {
   $('a[href$=jpg], a[href$=JPG], a[href$=png], a[href$=gif]').addClass('highslide').each(function() {
      this.onclick = function() {
         return hs.expand(this);
      };
   });
});

// e54b03e71e9b7ba27ee6e100cd04404c
hs.showCredits = false;
hs.graphicsDir = TEMPLATE_URL + '/img/highslide/';
hs.marginTop = 42;
hs.marginBottom = 42;
hs.dimmingOpacity = 0.75;
hs.captionEval = '"<span>"+this.thumb.title+"</span>"';

hs.registerOverlay({
	html: '<div class="highslide-closebutton" onclick="return hs.close(this)" title="Stäng"></div>',
	position: 'top right'
});

