/*******Open Gallery Code****************/
	hs.graphicsDir = 'JavaSlide/highslide/graphics/';
    hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.dimmingOpacity = 0.8;
	hs.outlineType = 'rounded-white';
	hs.captionEval = 'this.thumb.alt';
	hs.marginBottom = 105; // make room for the thumbstrip and the controls
	hs.numberPosition = 'caption';
	
	// Add the slideshow providing the controlbar and the thumbstrip
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		overlayOptions: {
			className: 'text-controls',
			position: 'bottom center',
			relativeTo: 'viewport',
			offsetY: -60
		},
		thumbstrip: {
			position: 'bottom center',
			mode: 'horizontal',
			relativeTo: 'viewport'
		}
	});
	
	hs.isUnobtrusiveAnchor = function(el) {
	if (el.href && /\.jpg$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	if (el.href && /\.JPG$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	if (el.href && /\.JPEG$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	if (el.href && /\.jpeg$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	if (el.href && /\.gif$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	if (el.href && /\.GIF$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	if (el.href && /\.png$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	if (el.href && /\.PNG$/.test(el.href)) {
		el.className = 'highslide'; // for the zoom-in cursor
		return 'image';
	  }
	}
	
/*******Close Code****************/