$(document).ready(function(){
	tday  = new Array("Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο", "Κυριακή");
	tmonth= new Array("Ιανουαρίου", "Φεβρουαρίου", "Μαρτίου", "Απριλίου", "Μαϊου", "Ιουνίου", "Ιουλίου", "Αυγούστου", "Σεπτεμβρίου", "Οκτωβρίου", "Νοεμβρίου", "Δεκεμβρίου");

	getClock();
});

var bid = 0;
function banners(place, count) {
	bid++
	if (bid == count)
		bid = 0;

	document.getElementById("iframe_header").src = "iframe_header.asp?bid=" + bid;
}

function getClock(){
	d = new Date();
	nday   = d.getDay();
	nmonth = d.getMonth();
	ndate  = d.getDate();
	nyear  = d.getYear();
	nhour  = d.getHours();
	nmin   = d.getMinutes();

	if(nyear<1000) nyear=nyear+1900;
	if(nmin <= 9) {nmin = "0" +nmin;}

	document.getElementById('clock').innerHTML=""+tday[nday]+", "+ndate+" "+tmonth[nmonth]+" "+nyear+" | "+nhour+":"+nmin;
	setTimeout("getClock()", 1000);
}

if (document.images) {
    contacton= new Image(19,17);
    contacton.src="images/contact_over.gif";
    contactoff= new Image(19,17);
    contactoff.src="images/contact.gif";
    homeon= new Image(17,17);
    homeon.src="images/home_over.gif";
    homeoff= new Image(17,17);
    homeoff.src="images/home.gif";
}
function toggleon(imgName) {
    document[imgName].src = eval(imgName + "on.src");
}
function toggleoff(imgName) {
    document[imgName].src = eval(imgName + "off.src");
}

function redirect(id, option){
	if (id != 0) {
		if (option)
			document.location='nomos.asp?nid=' + id
		else
			document.location='sport.asp?ath=' + id
	}
}

