$(function() {
	// Required for the close button to function if placed within the ajax'ed HTML pages.
	$("#close").click(function() {
		$("img[rel]").overlay({close: '#close'}).close(), window.location = "../"; // Must include {api:true, close: '#close'} to prevent overlay from adding extra HTML for close button
		$("a[rel]").overlay({close: '#close'}).close(), window.location = "../"; // Must include {api:true, close: '#close'} to prevent overlay from adding extra HTML for close button
	});
});
