hs.graphicsDir = './highslide/graphics/';
	hs.align = 'center';
	hs.creditsText='<i>New England Book Auctions</i>';
	hs.creditsTitle='New England Book Auctions';
	hs.creditsHref='http://www.nebookauctions.com/';
	hs.restoreTitle='Click to zoom image, arrow keys for Previous/Next';
	hs.transitions = ['expand', 'crossfade'];
	hs.numberPosition = "heading";
	hs.outlineType = 'glossy-dark';
	hs.wrapperClassName = 'controls-in-heading';
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.00000001;
	hs.useBox = true;
	//hs.lang.number = "Image %1 of %2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Click Image to Zoom";
	hs.width = 700;
	hs.height=1500;
	//hs.addSlideshow=false;

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'false',
		overlayOptions: {
			opacity: 1,
			position: 'top right',
			hideOnMouseOut: false
		}
	});
	
	// expand twice
	hs.Expander.prototype.onImageClick = function() {
          if (this.custom) {
             hs.expand(this.content, { src: this.custom.large, allowSizeReduction: false, useBox: false, wrapperClassName: 'no-controls', numberPosition: null });
             return false;
          }
       }


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-custom-overlay";

   // Set text for the overlay
   if (this.custom) {
   div.innerHTML = 'Click image to zoom';
   }
   else
   {
     div.innerHTML = 'Click again to return';
   }

   // attatch it to this hs.Expander instance and add some options
   sender.createOverlay( { overlayId: div, position: "above",
      hideOnMouseOut: false, width: '100%' } );
}



