function wechsel() {
verkn=document.getElementsByTagName('a');
for (i=0;i<verkn.length;i++) {
verkn[i].onfocus=new Function("if(this.wechsel)this.wechsel()");
}
}

onload=wechsel;

//Banner

var nr=-1, gesamt;
var banner=new Array();
banner[0]="http://rinschbachtal.de/bilder/sponsoren/b/debeka.jpg";
banner[1]="http://rinschbachtal.de/bilder/sponsoren/b/kkigmbhlogo.jpg";
banner[2]="http://rinschbachtal.de/bilder/sponsoren/b/leitz.jpg";
banner[3]="http://rinschbachtal.de/bilder/sponsoren/b/niestroj.gif";
banner[4]="http://rinschbachtal.de/bilder/sponsoren/b/logo_rudolf.gif";
banner[5]="http://rinschbachtal.de/bilder/sponsoren/b/rinschbachtal.jpg";
banner[6]="http://rinschbachtal.de/bilder/sponsoren/b/trabold.gif";
banner[7]="http://rinschbachtal.de/bilder/sponsoren/b/ers.jpg";
banner[8]="http://rinschbachtal.de/bilder/sponsoren/b/fischer.jpg";
gesamt=banner.length;
function werbung() {
if (document.images) {
nr++;
if (nr==gesamt) {
nr=0;
}
document.anzeige.src=banner[nr];
setTimeout("werbung()",3000);
}
}

function openPictureWindow_Fever(imageName,laenge,breite,alt,posLeft,posTop) {
        newWindow = window.open("","newWindow","width="+laenge+",height="+breite+",left="+posLeft+",top="+posTop+",status=yes,scrollbars=yes,resizable=yes,toolbar=yes");
        newWindow.document.open();
        newWindow.document.write('<html><head><title>'+alt+'</title><link href="http://rinschbachtal.de/css/rbt_style.css" rel="stylesheet" type="text/css"></head><body bgcolor="#FFFFFF" leftmargin="5" topmargin="5" marginheight="5" marginwidth="5" onAbort="self.close()">');
        newWindow.document.write('<img src='+imageName+' alt='+alt+'>');
        newWindow.document.write('<p><font face="Verdana"><img src="http://rinschbachtal.de/bilder/news.gif" width="10" height="9" border="0" alt="">&nbsp;<a href="javascript:self.print()">Drucken</a> | <a href="javascript:self.close()">Fenster schließen</a></font></p></body></html>');
        newWindow.document.close();
        newWindow.focus();
}

 if(top.frames.length > 0)
    top.location.href=self.location;
