﻿// JScript-Datei Bilder
var bcell=-1;
var bnumb = navigator.appVersion;
var rel = bnumb.substring( 0 , 2 );
var bname = navigator.appName;
bgood=0;

bilder ()

function bilder ( ) {
if ((parseInt( rel ) >= 3.0 && bname=="Netscape") || (parseInt( rel ) >= 4.0 && bname=="Microsoft Internet Explorer"))
{
//aload()
bload()
}
}
// 4 bilder serie 2 in ein Register laden
function bload() {
bgood=1;
bImage= new Array (4)
for (i=0; i < 6; i++) {
bImage[i] = new Image ()
}
bImage[0].src = "Baustofflieferant/unternehmenfs.gif";
bImage[1].src = "Baustofflieferant/unternehmenfs2.gif";
bImage[2].src = "Baustofflieferant/unternehmenfs3.gif";
bImage[3].src = "Baustofflieferant/unternehmenfs4.gif";
bImage[4].src = "Baustofflieferant/unternehmenfs2.gif";
}
// zeiten für die Anzeige festlegen
bTime= 7500;  // Zeit Bildserie 1
// bcnt ist der Zähler Bildanzahl minus 1 (4-1)
var bcnt= 4;
function ani02 () {
        bcell=bcell+1;
        if (bcell==0) setTimeout ("ani02 ()",bTime);
        else if (bcell >0 && bcell <= bcnt) {
                document.images['bild-b'].src=bImage[bcell].src;
                setTimeout ("ani02 ()",bTime);
                }
        else if (bcell >bcnt) {
                document.images['bild-b'].src=bImage[0].src;
                bcell=-1;
                ani02 ();
        }
}


