<!-- Verstecke dieses Skript vor Browsern, die kein JavaScript verstehen
// ---------------------------------------------------------------------
// dfWKCheck.js
// Urheber und copyright: 2003 Ute Voigt direktfoto. Alle Rechte vorbehalten.
// --------------------------------------------------------------------------
function Bild(Bnumber,Bpath,Bprevpath) {
    this.number = Bnumber;
    this.path = Bpath;
    this.prevpath = Bprevpath;
}
function SetMyWarenkorb(gewaehlterButton) { 

    var xnumber = gewaehlterButton.name;
    var xpath = document.images[xnumber].src;
    var len = document.links.length;
    var xprevpath = "";
    for (var i=0; i<len; i++) {
    	if (document.links[i].target == xnumber) {
    		xprevpath += self.document.links[i];
    	}
   	}
    var gewaehltesBild = new Bild(xnumber,xpath,xprevpath);

    if (gewaehlterButton.checked) { AddToMyWarenkorb(gewaehltesBild); }
    else { DeleteFromMyWarenkorb(gewaehltesBild); }

    UpdateAnzeige();
    return true;
}
function AddToMyWarenkorb(xBild) {
    if (vorhandenesBild(xBild) == -1 ) {
        addBild(xBild);
    }
    return true;
}
function DeleteFromMyWarenkorb(xBild) {
    var k = vorhandenesBild(xBild);
    if (k != -1) {
        delBild(k);
    }
    return true;
}
function vorhandenesBild(xBild) {
    var l = getLength();
    var recnum = -1;
    for (var i=0; i<l; i++) {
        if (getNumber(i) == xBild.number) {
            recnum = i;
            break;
        }
    }
    return recnum;
}
function UpdateAnzeige() {
    var is = new Is();
    if (parent.leftnav.document.all && !is.opera) {
    	if (parent.leftnav.document.all.aCell) {
			parent.leftnav.document.all.aCell.innerHTML = getLength() ; }
 	}
	else if (parent.leftnav.document.getElementById && !is.opera) {
		if (parent.leftnav.document.getElementById('aCell')) {
			parent.leftnav.document.getElementById('aCell').innerHTML = getLength() ; }
	}
    else { parent.leftnav.location.reload(); }
    return true;
}
function SetBoxenStatus(MyForm) {
    var Fotonummern = getAllNumbers();
    if (Fotonummern == "") { 
        return false;
    }
    var l = document.forms[MyForm].length;
    for (var i=0; i<l; i++) {
        var Boxname = document.forms[MyForm].elements[i].name;
        for (var Foto in Fotonummern) {
            if (Boxname == Fotonummern[Foto]) {
                document.forms[MyForm].elements[i].checked = true;
            }
        }
    }
    return true;
}
function Is ()
{   // alle Zeichen in Kleinbuchstaben umwandeln, um Tests zu vereinfachen
    var agt=navigator.userAgent.toLowerCase();

    // *** BROWSER-VERSION ***
    // Anmerkung: On IE5 liefert hier den Wert 4, also verwenden Sie is.ie5up, um IE5 zu erkennen.
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);

    this.nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1));
    this.nav4 = (this.nav && (this.major == 4));
    this.nav4up = (this.nav && (this.major >= 4));
    this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    this.nav5 = (this.nav && (this.major == 5));
    this.nav5up = (this.nav && (this.major >= 5));
    this.ie   = (agt.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major < 4));
    this.ie4  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")==-1) );
    this.ie4up  = (this.ie  && (this.major >= 4));
    this.ie5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5up  = (this.ie  && !this.ie3 && !this.ie4);
    this.opera = (agt.indexOf("opera") != -1);
    this.icab = (agt.indexOf("icab") != -1);

    // *** PLATTFORM ***
    this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));

    this.win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
    this.winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
    this.win32 = ( this.win95 || this.winnt || this.win98 ||
                   ((this.major >= 4) && (navigator.platform == "Win32")) ||
                   (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1) );

    this.mac    = (agt.indexOf("mac")!=-1);
    this.linux = (agt.indexOf("inux")!=-1);
}
// stop hiding -->
