// Функции для отображения/скрытия модальных окон

athena.showModalWindow = function(message) {
	document.getElementById("fog").style.left = "0px";
	document.getElementById("modalWindow").style.left = "50%";
	if (!+"\v1") {
		document.getElementById("fog").style.filter = "alpha(opacity=60)";
		document.getElementById("modalWindow").style.filter = "alpha(opacity=100)";
	} else {
		athena.animateOpacity(document.getElementById("fog"), 0.6, 0.05, 5);
		athena.animateOpacity(document.getElementById("modalWindow"), 1, 0.05, 5);
	}
	document.getElementById("modalWindowContentBlock").innerHTML = message;
}

athena.hideModalWindow = function() {
	setTimeout(function () {
		document.getElementById("modalWindow").style.left = "-9999px";
		document.getElementById("fog").style.left = "-9999px";
	}, 100);
	if (!+"\v1") {
		document.getElementById("fog").style.filter = "alpha(opacity=0)";
		document.getElementById("modalWindow").style.filter = "alpha(opacity=0)";
	} else {
		athena.animateOpacity(document.getElementById("modalWindow"), 0, 0.05, 5);
		athena.animateOpacity(document.getElementById("fog"), 0, 0.05, 5);
	}
}

// © E. Knyazev, 2011
