windows = new Array(
	"aleko",
	"planning",
	"permanent",
	"workShop",
	"theater",
	"community",
	"restaurant",
	"commission",
	"commission2"
	);

i = 0; 
var hideTimerID = 20; 

function showWin(i){ 
	clearInterval(hideTimerID); 
	resetWin(); 
	document.getElementById(windows[i]).style.visibility = "visible"; 
} 
		 	 
function hideWin(k) { 
	hideTimerID = setInterval('executeHideWin('+ k +')',0); 
} 

function executeHideWin(m){ 
	document.getElementById(windows[m]).style.visibility = "hidden"; 
} 

function resetWin() { 
	for (var j=0; j < windows.length; j++) { 
	executeHideWin(j); 
	} 
} 
