
function ShowFotogalery() {
	document.getElementById('fotogalery').style.display = "block";
}
function HideFotogalery() {
	document.getElementById('fotogalery').style.display = "none";
}

function getXHTML(url, pars) {
	var gameAjax = new Ajax.Updater({	success: 'box' },	'web/'+url, {
			method: 'get',
			parameters: pars,
			onFailure: reportError
		 }
	);
}

function getPicture(url, pars) {
	var gameAjax = new Ajax.Updater({	success: 'photo' },	'include/photo.php?id='+url, {
			method: 'get',
			parameters: pars,
			onFailure: reportError
		 }
	);
}

function getPictures(menu, page, pars) {
	var gameAjax = new Ajax.Updater({	success: 'fotogalery' },	'include/fotogaleryAjax.php?menu='+menu+'&page='+page, {
			method: 'get',
			parameters: pars,
			onFailure: reportError
		 }
	);
}

function reportError(request) {
	alert('The requested URL was not found on this server.');
}
	
var PopupWindows = {
	open: function(options) {
		this.options = {
			url: '#',
			width: 600,
			height: 460,
			resizable: 'yes'
		}
		Object.extend(this.options, options || {});
		window.open(this.options.url, '', 'width=' + this.options.width + ',height=' + this.options.height + ',resizable=' + this.options.resizable);
	}
}
