hs.graphicsDir = "js/highslide/graphics/";
hs.showCredits = false;
hs.dimmingOpacity = 0.50;
hs.dimmingDuration = 200;
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.enableKeyListener = false;
hs.outlineType = "rounded-white";
hs.dragHandler = null;
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
});

$(document).ready(function() {
	$("a.hs").each(function() {
		this.onclick = function() {
			return hs.expand(this, { wrapperClassName: "no-footer no-move", align: "center" });
		};
	});
	
	$("a.hs.img").each(function() {
		this.onclick = function() {
			return hs.expand(this, {
				wrapperClassName: "no-footer no-move text-controls",
				align: "center",
				captionEval: "this.thumb.alt"
			});
		};
	});
	
	$("a.highslide.html").each(function() {
		this.onclick = function() {
			return hs.htmlExpand(this, { objectType: "ajax", align: "center", dragByHeading: false, width: 600, height: 320 });
		};
	});
});