$(document).ready(function() {
				/* for top navigation */
				$(" #nav ul ").css({display: "none"}); // Opera Fix
				$(" #nav li").hover(function(){
					$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400);
				},function(){
					$(this).find('ul:first').css({visibility: "hidden"});
				});
				
				$.timer(1000,function(){trTarih();});
});


function showFilled(Value) {
  return (Value > 9) ? "" + Value : "0" + Value;
}
function makeArray() {
	for (i = 0; i<makeArray.arguments.length; i++)
	this[i + 1] = makeArray.arguments[i];
}
function trTarih(){
	var saat, dk, sn, goster, months, date, day, month, yy, year, tarih;
	months = new makeArray('Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık');
	date = new Date();
	day = date.getDate();
	month = date.getMonth() + 1;
	yy = date.getYear();
	year = (yy < 1000) ? yy + 1900 : yy;
	tarih = day + " " + months[month] + " " + year;
	saat = showFilled(date.getHours()); dk = showFilled(date.getMinutes()); sn = showFilled(date.getSeconds());	
	goster = tarih + "  " + saat +":"+dk + ":" + sn;
	$('#tarih').html(goster);
}

