// Overlay Highslide
hs.registerOverlay({
		overlayId: 'closebutton',
		position: 'top right',
		hideOnMouseOut: true,
		fade: 2 // fading the semi-transparent overlay looks bad in IE
	});
hs.Expander.prototype.onBeforeExpand = function (sender, e) {

   // create a new DOM element
   	var div = document.createElement('div');

   // add a class name to allow CSS styling
   	div.className = "highslide-overlay";

   // use the thumbnail's alt attribute as inner HTML
   	div.innerHTML = sender.thumb.alt;

   // attatch it to this hs.Expander instance and add some options
  	sender.createOverlay( { overlayId: div, position: "left",
      hideOnMouseOut: true } );
}
