$(document).ready(function() {
	$(".image img[rel]").overlay({
		fixed: false,
		onBeforeLoad : function() {
			var rel = $("img", this.getOverlay()).attr("rel");
			$("img", this.getOverlay()).attr("src", rel);
			$("html").css("overflow-x", "hidden");
		},
		onClose : function() {
			$("html").css("overflow-x", "visible");
		}
	});
});

