var i = 1;
banner1=new Image();
//banner1.src="/imgs/gr/ENA-ATHEX-site-Banner-ENG.gif";
banner1.src = "/imgs/gr/ATHEX-Internet-Video-Banner.gif";
banner2=new Image();
banner2.src="/imgs/gr/In-Broker-Banner-NEW.gif";
banner3 = new Image();
banner3.src = "imgs/gr/XA-XAK-2-frames-FINAL-ENG.gif";
//banner2=new Image();
//banner2.src="/imgs/gr/ss_en.gif";

var links = new Array
/* 
Put your link between the quotation marks " and " if they are outside of the domain make 
sure that you indicate that with something like: http://www.mydomain.com/thislink.html  
*/
//links[1] = "http://www.athex.gr/ENA/default.aspx?lid=en";
links[1] = "http://www.athex.gr/content/en/ann.asp?AnnID=130970";
links[2] = "http://www.athex.gr/content/en/ann.asp?AnnID=58194";
links[3] ="http://www.athex.gr/content/en/about/cp";
//links[2] = "http://www.athex.gr/content/en/Ann.asp?AnnID=82809";


var description = new Array
//description[1] = "E.NA";
description[1] = "VIDEO";
description[2] = "InBroker";
description[3] = "Common Platforms"
//description[2] = "Short Selling Notification Obligation ";



function loadBanner(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*50+secs;
        closeTime+=1;	/* Change this number to increase decrease the rotation speed */
        Timer1();

}

function Timer1(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*50+secs
        if (curTime>=closeTime){
		if (i < 3){ //CHANGE THIS NUMBER ACCORDING TO NUMBER OF BANNERS
			i++;
			document.banner.src = eval("banner" + i + ".src");
			
		}
		else{
			i = 1;
			document.banner.src = eval("banner" + i + ".src");
		}
		loadBanner();
	}
        else{
                window.setTimeout("Timer1()",5500)}

}

function clickLink(){
	//top.location = links[i]
	window.open(links[i])
}

function descript(){
	window.status = description[i]
}

function nothing() {
	window.status=""
}

