jQuery(document).ready(function() {
       chas();
	   /*
       if (typeof(headpic)!='undefined') {

			$headpic=jQuery('<img>');
			$headpic.css({  opacity:'0', position:'absolute', top:'0', left:'0', zIndex:'1' }).load(function(){ $headpic.animate ({ opacity:'1' }, { queue: false, duration: 900 }) }).attr('src', headpic);
			jQuery('#headpic').append($headpic);
		}
		*/
		$('.sec').hover( function() {
			$(this).find('.podmenu').css('display', 'block');
		},
		function() {
			$(this).find('.podmenu').css('display', 'none');
		});
		
		$('#bot-menu a.menulink, #bot-menu span.menulink').hover( function() {
			$(this).next('div').css('display', 'block');
		},
		function() {
			var obj = $(this);
			setTimeout(function() { hideMenu(obj) }, 1000);
		});
		
		function hideMenu(obj){
			$(obj).next('div').css('display', 'none')
		}
		
		$('#bot-menu .podmenu ul').hover( function() {
			$(this).parent().css('display', 'block');
		},
		function() {
			$(this).parent().css('display', 'none');
		});
		
});

function chas() {
	t=new Date();
	h=t.getUTCHours();
	m=t.getUTCMinutes();
	s=t.getUTCSeconds();
	document.getElementById('top-line').innerHTML='UTC '+h+':'+formatChas(m)+':'+formatChas(s);
	setTimeout(chas, 1000);
}

function formatChas(t) {
	out=t;
	if (t<10) out='0'+t;
	return out;
}
