
/* Common javascripts and localized strings for Zenphoto */

var zppath =  "/galerie/zp-core";

var zpstrings = {
	/* Used in jquery.editinplace.js */
	'Save' : "Save",
	'Cancel' : "Cancel",
	'Saving' : "Saving",
	'ClickToEdit' : "Click to edit...",
	/* Used in thickbox.js */
	'Test' : "Test",
	'Close' : "Close",
	'close' : "close",
	'orEscKey' : "or Esc Key",
	'Next' : "Next",
	'Prev' : "Prev",
	'Image' : "Image",
	'of' : "of"
};

// Toggle element display
function toggle(x) {
	jQuery('#'+x).toggle();
}

function confirmDeleteAlbum(url, message1, message2) {
	if (confirm(message1)) {
		if (confirm(message2)) {
			window.location = url;
		}
	}
}

function confirmDeleteImage(url, message) {
	if (confirm(message)) {
		window.location = url;
	}
}

