hs.graphicsDir = 'highslide/graphics/';
hs.showCredits = false;
hs.outlineType = 'drop-shadow';
hs.dimmingOpacity = 0.75;
hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
	position: 'top right',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});

 // The following is added to prevent browser back buttons from being used during HS popups
hs.Expander.prototype.onAfterExpand = function () {    
  window.location.hash = 'autoload='+this.a.id;
  Cufon.refresh();
}
hs.Expander.prototype.onBeforeClose = function () {    
  window.location.hash = ' ';   // space was added here because browser seems to refresh the page if empty hash is assigned
}
hs.addEventListener(window, "load", function() {
// get the value of the autoload parameter
var autoload = /[?&#]autoload=([^&#]*)/.exec(window.location.hash);
// virtually click the anchor
if (autoload)
 document.getElementById(autoload[1]).onclick();
});
