var i = 1;

banner1= new Image();
banner1.src = "http://tklopp.euromlm.de/cgi-tklopp/468_1/ads.pl?member=digitalwelten;page=01";
banner2 = new Image();
banner2.src = "http://www.fair-ist-mehr.de/cgi-bin/bt.pl?member=digitalwelten;page=01;zone=";
banner3 = new Image();
banner3.src = "http://www.dasauge.de/cgi-bin/zerabanner.pl?n=731";
banner4 = new Image();
banner4.src = "http://www.linkstation.de/cgi-bin/show/L14136";
banner5 = new Image();
banner5.src = "http://www.digitalwelten.com/bilder/banner/sundogs.jpg";
banner6 = new Image();
banner6.src = "http://www.digitalwelten.com/bilder/banner/amazon_02.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://tklopp.euromlm.de/cgi-tklopp/468_1/ads.pl?member=digitalwelten;banner=NonSSI;page=01"
links[2] = "http://www.fair-ist-mehr.de/cgi-bin/bt.pl?member=digitalwelten;banner=NonSSI;page=01;zone="
links[3] = "http://www.dasauge.de/cgi-bin/zeraklick.pl?n=731"
links[4] = "http://www.linkstation.de/cgi-bin/click/L14136"
links[5] = "http://www.sundogs.de"
links[6] = "http://www.amazon.de/exec/obidos/redirect-home?tag=diginewmedi03-21&site=home"

var description = new Array
description[1] = "CGIgo Bannertausch 468"
description[2] = "Fair-ist-mehr Bannertausch"
description[3] = "DAS AUGE - Kreative im Netz"
description[4] = "Linkstation-PRO-Ads"
description[5] = "Helfen Sie Tieren: Sundog Animal Rescue e.V."
description[6] = "Amazon.de"

function loadBanner(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=30;	/* Change this number to increase decrease the rotation speed */
        Timer();

}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
		if (i < 5){
			i++;
			document.banner.src = eval("banner" + i + ".src");
		}
		else{
			i = 1;
			document.banner.src = eval("banner" + i + ".src");
		}
		loadBanner();
	}
        else{
                window.setTimeout("Timer()",1000)}

}

function clickLink(){
	top.location = window.open(links[i])
}

function descript(){
	window.status = description[i]
}

function nothing() {
	window.status=""
}

