var oldwhich="";
var waittime=500;
var layerTimer;

 
	function layOver(nam,place)
	{
	obj=document.getElementById(nam);
	if (oldwhich!=nam&&oldwhich!="")
	{
		ol=document.getElementById(oldwhich).style;
		ol.visibility="hidden";
	}
	if (obj)
	{
	l = document.getElementById(nam).style;


	l.visibility = "visible";

	oldwhich=nam;
	}
	clearTimeout(layerTimer);
		
	return;
	}
	
//turn off layer and rollover if user is completely off nav 
	function stopOver()
	{   
	layerTimer = setTimeout("layOut()",waittime);
	}

	function layOut()
	{   
	   if (oldwhich!="")
	    {
	ol = document.getElementById(oldwhich).style;
	ol.visibility = "hidden";	
	    }
	}
//reset the timer
	function startOver()
	{
	clearTimeout(layerTimer);
	}

// функции для вывода часов
 	function showMilitaryTime() {
	 return true;
 	}
 	function showZeroFilled(inValue) {
 	if (inValue > 9) {
 	return "" + inValue;
 	}
	 return "0" + inValue;
 	}
 	function showTheTime() {
 	now = new Date 
	months = new Array('января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря')  
	
		function fourdigits(number)	{
		return (number < 1000) ? number + 1900 : number;
		}  
	
	date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
 	document.getElementById('showTime').innerHTML = "<b>" + date + " " + months[now.getMonth()] + " " + (fourdigits(now.getYear())) + "</b>" + " / " + now.getHours() + ":" + showZeroFilled(now.getMinutes())
 	setTimeout("showTheTime()",5000)
 	}