		// override Highslide settings here
		// instead of editing the highslide.js file
		hs.graphicsDir = '/highslide/graphics/';
		hs.showCredits = false;
		hs.expandCursor = null;
		hs.loadingOpacity = 0.90;
		hs.transitions = ['expand', 'crossfade'];
		hs.restoreCursor = null;
		hs.lang.restoreTitle = 'Click for next image';
		hs.captionOverlay.position = 'above';


hs.onKeyDown = function(sender, e) {
     if (e.keyCode == 70) return false;
 }

// Keep the position after window resize
hs.addEventListener(window, 'resize', function() {
	var i, exp;
	hs.getPageSize();

	for (i = 0; i < hs.expanders.length; i++) {
		exp = hs.expanders[i];
		if (exp) {
			var x = exp.x,
				y = exp.y;

			// get new thumb positions
			exp.tpos = hs.getPosition(exp.el);
			x.calcThumb();
			y.calcThumb();

			// calculate new popup position
		 	x.pos = x.tpos - x.cb + x.tb;
			x.scroll = hs.page.scrollLeft;
			x.clientSize = hs.page.width;
			y.pos = y.tpos - y.cb + y.tb;
			y.scroll = hs.page.scrollTop;
			y.clientSize = hs.page.height;
			exp.justify(x, true);
			exp.justify(y, true);

			// set new left and top to wrapper and outline
			exp.moveTo(x.pos, y.pos);
		}
	}
});


// Set different restorTitle for gallery and large image
hs.Expander.prototype.onInit = function() {
	if (this.slideshowGroup == 'large') hs.lang.restoreTitle = "Click to close"; 
	else hs.lang.restoreTitle = "Click for next image";
};

var sender_hs;

	hs.Expander.prototype.onBeforeExpand = function (sender, e) {
		   // attatch it to this hs.Expander instance and add some options
		   sender.createOverlay( { html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>', position: 'top right', fade: 2 } );		
	}
	
	


	
	hs.Expander.prototype.onFocus = function (sender, e) {
		sender_hs = sender;
	}


function video_hs(this_hs) {
	return hs.htmlExpand( null, { objectType: 'iframe', src: 'http://www.centralfloridaretina.com/share-our-vision/popup.htm', outlineType: 'drop-shadow', wrapperClassName: 'borderless video', transitions: ["fade"], preserveContent: false, width: 640, align: 'center', objectLoadTime: 'after', objectHeight: 360 } );
}

