// ////////////////////////////////////
// change the image of the productsites

// beginn changing pictures
var stop = false;
// start with picture number ...
var bildnr = 1;
// how many pictures you got ..
var maxbildnr = 3;

// set the layer visible and hidden
function        showLayer(name,state)
{
        if (client.isNS6)
                eval("document.getElementById('" + name + "').style.visibility='"+(state?'visible':'hidden')+"'");
        else
                eval("document."+(client.isIE?"all":"layers")+"."+name+(client.isIE?".style":"")+".visibility='"+(state?'visible':'hidden')+"'");
}

// compatibility method
function changeimage ()
{
 loopImages();
}

function startstopLoop ()
{
                stop = !stop;
        //if ( !stop )
                loopImages();
}

function loopImages() {
        // alert(bildnr);
         if(!stop) {
            if (client.isNS6) {
                if (!document.getElementById('vis1Layer')) {
                    return;
                }
            } else if (client.isNS4) {
                if (!document.layers.vis1Layer) {
                    return;
                }
            } else {
                if (!document.all.vis1Layer) {
                    return;
                }
            }
            showLayer('vis'+bildnr+'Layer',true);
            for ( var j = 1 ; j <= maxbildnr ; ++j )
                  showLayer('vis'+j+'Layer',j==bildnr);
            bildnr = 1+(bildnr%maxbildnr);
            setTimeout('loopImages();',2400);
         } else {
           clearTimeout();
         }

}