var bName=navigator.appName;
var bVer=parseInt(navigator.appVersion);
var NS4=(bName=="Netscape" && bVer<5);
if (NS4) location.replace("bloer_n4.htm");

var buttonan = 0
var isNav4 = false;
var isW3C = false;
var isIE = false;

var dx = 0, dy = 0;
var objList = new Array();
var current = null;
var zIndexTop = 10;
var datails = 0;
var b = 1;
var a = 0;
var auswahl = 0;
var hgeinse = 1;



function init() {
        // Browser ueberpruefen
        if (navigator.appName.indexOf("Netscape") != -1) {
                if (parseInt(navigator.appVersion) == 4) {
                        // Netscape Communicator 4.x
                        isNav4 = true;
                } else if (parseInt(navigator.appVersion) >= 5) {
                        // Netscape 6 oder Mozilla
                        isW3C = true;
                }
        } else {
                if ((parseInt(navigator.appVersion) >= 4) &&
                        (navigator.appName.indexOf("Microsoft") != -1) ) {
                        // MSIE 4.x oder hoeher
                        isIE = true;
                }

                if (navigator.userAgent.indexOf("Opera 5") != -1) {
                        // Opera 5.x - wird wie MSIE behandelt
                        isIE = true;
                }
        }

        // Festlegen der Objekte
        erzeugeListe("bild1", "bild2", "bild3");

        // Event Capturing
        if ((isNav4) || (isW3C)) {
                document.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
        }

        document.onmousedown = startDrag;
        document.onmouseup = endDrag;
setTimeout("menuean();",3000)
}

function erzeugeListe() {
  for (var i = 0; i < erzeugeListe.arguments.length; i++) {
    if (isNav4) {
            objList[i] = document.layers[erzeugeListe.arguments[i]];
    }
  }
}

function startDrag(e) {
        var found = false;
        var i = objList.length;

        if (isNav4) {
                var zIndexGefunden = 0;
                var gefunden = 0;

                while ((i > 0)) {
                        i--;
                        var obj = objList[i];

                        // Ueberpruefen, welches Objekt angeklickt wurde
                        if ((e.pageX > obj.left) &&
                                (e.pageX < obj.left + obj.clip.width) &&
                                (e.pageY > obj.top) &&
                                (e.pageY < obj.top + obj.clip.height)) {

                                if (obj.zIndex > zIndexGefunden) {
                                        found = true;
                                        gefunden = i;
                                        zIndexGefunden = obj.zIndex;
                                }
                        }
                }

                if (found) {
                        current = objList[gefunden];

                        dx = e.pageX - current.left;
                        dy = e.pageY - current.top;

                        // Setze Objekt nach oben
                        zIndexTop++;
                        current.zIndex = zIndexTop;

                        // Event-Capturing
                        document.captureEvents(Event.MOUSEMOVE);
                        document.onmousemove = drag;
                        return false;
                }
        }

        if (isW3C) {
                var obj = e.target;
                if  ((obj.parentNode.id != null) &&
                        (obj.parentNode.id.indexOf("bild") != -1)) {
                        current = obj.parentNode.style;

                        dx = e.clientX - parseInt(current.left);
                        dy = e.clientY - parseInt(current.top);

                        // Setze Objekt nach oben
                        zIndexTop++;
                        current.zIndex = zIndexTop;

                          document.captureEvents(Event.MOUSEMOVE);
                        document.onmousemove = drag;
                        return false;
                }
        }

        if (isIE) {
                var obj = window.event.srcElement;
                if ((obj.parentElement != null) &&
                        (obj.parentElement.id.indexOf("bild") != -1)) {
                        current = obj.parentElement.style;

                        dx = window.event.clientX - current.pixelLeft;
                        dy = window.event.clientY - current.pixelTop;

                        // Setze Objekt nach oben
                        zIndexTop++;
                        current.zIndex = zIndexTop;

                        document.onmousemove = drag;
                        return false;
                }
        }

        // Benutzer hat auf kein Objekt geklickt
        current = null;
        return false;
}

function drag(e) {
        if (current != null) {
                if (isNav4) {
                        current.top = e.pageY - dy;
                        current.left = e.pageX - dx;
                }
                if (isW3C) {
                        current.top = parseInt(e.clientY) - dy;
                        current.left = parseInt(e.clientX) - dx;
                }
                if (isIE) {
                        current.pixelTop = window.event.clientY - dy;
                        current.pixelLeft = window.event.clientX - dx;
                }
        }

        return false;
}

function endDrag(e) {
        if ((isNav4) || (isW3C)) {
                document.releaseEvents(Event.MOUSEMOVE);
        }

        document.onmousemove = null;
        current = null;

        return false;
}
function wandlerhoch()

{a=-1;
auswahl=auswahl+1;
if (auswahl==0) window.setTimeout("openUnten('katalog_unten/bloer_001.htm');",0)
if (auswahl==1) window.setTimeout("openUnten('katalog_unten/bloer_004.htm');",0)
if (auswahl==2) window.setTimeout("openUnten('katalog_unten/bloer_006.htm');",0)
if (auswahl==3) window.setTimeout("openUnten('katalog_unten/bloer_007.htm');",0)
if (auswahl==4) window.setTimeout("openUnten('katalog_unten/bloer_012.htm');",0)
if (auswahl==5) window.setTimeout("openUnten('katalog_unten/bloer_015.htm');",0)
if (auswahl==6) window.setTimeout("openUnten('katalog_unten/bloer_016.htm');",0)
if (auswahl==7) window.setTimeout("openUnten('katalog_unten/bloer_019.htm');",0)
if (auswahl==8) window.setTimeout("openUnten('katalog_unten/bloer_021.htm');",0)
if (auswahl==9) window.setTimeout("openUnten('katalog_unten/bloer_022.htm');",0)
if (auswahl==10) window.setTimeout("openUnten('katalog_unten/bloer_023.htm');",0)
if (auswahl==11) window.setTimeout("openUnten('katalog_unten/bloer_025.htm');",0)
if (auswahl==12) window.setTimeout("openUnten('katalog_unten/bloer_026.htm');",0)
if (auswahl==13) window.setTimeout("openUnten('katalog_unten/bloer_027.htm');",0)
if (auswahl==14) window.setTimeout("openUnten('katalog_unten/bloer_030.htm');",0)
if (auswahl==15) window.setTimeout("openUnten('katalog_unten/blrrm001.htm');",0)
if (auswahl==16) window.setTimeout("openUnten('katalog_unten/blrbd001.htm');",0)
if (auswahl==17) window.setTimeout("openUnten('katalog_unten/blrfs001.htm');",0)
if (auswahl==18) {auswahl =0;window.setTimeout("openUnten('katalog_unten/bloer_001.htm');",0)}
}

function wandlerrunter()
{a=-1;
auswahl=auswahl-1;
if (auswahl==0) window.setTimeout("openUnten('katalog_unten/bloer_001.htm');",0)
if (auswahl==1) window.setTimeout("openUnten('katalog_unten/bloer_004.htm');",0)
if (auswahl==2) window.setTimeout("openUnten('katalog_unten/bloer_006.htm');",0)
if (auswahl==3) window.setTimeout("openUnten('katalog_unten/bloer_007.htm');",0)
if (auswahl==4) window.setTimeout("openUnten('katalog_unten/bloer_012.htm');",0)
if (auswahl==5) window.setTimeout("openUnten('katalog_unten/bloer_015.htm');",0)
if (auswahl==6) window.setTimeout("openUnten('katalog_unten/bloer_016.htm');",0)
if (auswahl==7) window.setTimeout("openUnten('katalog_unten/bloer_019.htm');",0)
if (auswahl==8) window.setTimeout("openUnten('katalog_unten/bloer_021.htm');",0)
if (auswahl==9) window.setTimeout("openUnten('katalog_unten/bloer_022.htm');",0)
if (auswahl==10) window.setTimeout("openUnten('katalog_unten/bloer_023.htm');",0)
if (auswahl==11) window.setTimeout("openUnten('katalog_unten/bloer_025.htm');",0)
if (auswahl==12) window.setTimeout("openUnten('katalog_unten/bloer_026.htm');",0)
if (auswahl==13) window.setTimeout("openUnten('katalog_unten/bloer_027.htm');",0)
if (auswahl==14) window.setTimeout("openUnten('katalog_unten/bloer_030.htm');",0)
if (auswahl==15) window.setTimeout("openUnten('katalog_unten/blrrm001.htm');",0)
if (auswahl==16) window.setTimeout("openUnten('katalog_unten/blrbd001.htm');",0)
if (auswahl==-1) {auswahl=17;window.setTimeout("openUnten('katalog_unten/blrfs001.htm');",0)}
}
function weiter()
{
if (auswahl==0 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer02.htm');",0)
if (auswahl==0 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer01.htm');",0)
if (auswahl==1 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer04.htm');",0)
if (auswahl==1 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer03.htm');",0)
if (auswahl==4 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer08.htm');",0)
if (auswahl==4 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer07.htm');",0)
if (auswahl==8 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer13.htm');",0)
if (auswahl==8 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer12.htm');",0)
if (auswahl==9 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer15.htm');",0)
if (auswahl==9 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer14.htm');",0)
if (auswahl==11 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer17.htm');",0)
if (auswahl==11 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer18.htm');",0)
if (auswahl==11 && b==3) window.setTimeout("openContent2('katalog_seiten/bloer19.htm');",0)
if (auswahl==13 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer21.htm');",0)
if (auswahl==13 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer22.htm');",0)
if (auswahl==13 && b==3) window.setTimeout("openContent2('katalog_seiten/bloer23.htm');",0)
if (auswahl==14 && b==1) window.setTimeout("openContent2('katalog_seiten/bloer24.htm');",0)
if (auswahl==14 && b==2) window.setTimeout("openContent2('katalog_seiten/bloer25.htm');",0)
if (auswahl==14 && b==3) window.setTimeout("openContent2('katalog_seiten/bloer26.htm');",0)
}
function wandlerhoch2()

{a=-1;
datails=datails+1;
if (datails==0) window.setTimeout("openContent2('bilder_details/detail1.htm');",0)
if (datails==1) window.setTimeout("openContent2('bilder_details/detail2.htm');",0)
if (datails==2) window.setTimeout("openContent2('bilder_details/detail3.htm');",0)
if (datails==3) window.setTimeout("openContent2('bilder_details/detail4.htm');",0)
if (datails==4) window.setTimeout("openContent2('bilder_details/detail5.htm');",0)
if (datails==5) window.setTimeout("openContent2('bilder_details/detail6.htm');",0)
if (datails==6) window.setTimeout("openContent2('bilder_details/detail7.htm');",0)
if (datails==7) window.setTimeout("openContent2('bilder_details/detail8.htm');",0)
if (datails==8) window.setTimeout("openContent2('bilder_details/detail9.htm');",0)
if (datails==9) {datails=0;window.setTimeout("openContent2('bilder_details/detail1.htm');",0)}
}

function wandlerrunter2()
{a=-1;
datails=datails-1;
if (datails==0) window.setTimeout("openContent2('bilder_details/detail1.htm');",0)
if (datails==1) window.setTimeout("openContent2('bilder_details/detail2.htm');",0)
if (datails==2) window.setTimeout("openContent2('bilder_details/detail3.htm');",0)
if (datails==3) window.setTimeout("openContent2('bilder_details/detail4.htm');",0)
if (datails==4) window.setTimeout("openContent2('bilder_details/detail5.htm');",0)
if (datails==5) window.setTimeout("openContent2('bilder_details/detail6.htm');",0)
if (datails==6) window.setTimeout("openContent2('bilder_details/detail7.htm');",0)
if (datails==7) window.setTimeout("openContent2('bilder_details/detail8.htm');",0)
if (datails==-1) {datails=8;window.setTimeout("openContent2('bilder_details/detail9.htm');",0)}
}
function openUnten(urlUnten)
{
document.getElementById('unten2').src = urlUnten;
}

function openContent2(urlContent)
{
document.getElementById('content').src = urlContent;
}
function openContent3(urlContent)
{
document.getElementById('content').src = urlContent;document.getElementById('unten2').src = "unten_onshirt.htm";
}

function menuean(){
if (buttonan == 0) {
document.getElementById("menue").style.visibility = "inherit"
}
}
function allesweg(){
document.getElementById("bild1").style.visibility = "hidden"
document.getElementById("schrift1").style.visibility = "visible"
}

function alleshin(){
document.getElementById("bild1").style.visibility = "visible"
document.getElementById("schrift1").style.visibility = "hidden"
}
function inhaltrein(){
document.getElementById("content").src = "bloer_menue.htm";
}

function menueaus(){
document.getElementById('menue').style.visibility = "hidden";
document.getElementById('vorzurueck').style.visibility = "hidden";
document.getElementById('vorzurueck2').style.visibility = "hidden";
document.getElementById('naechstes').style.visibility = "hidden";
document.getElementById('liste1').style.visibility = "hidden";
document.getElementById('schrift2').style.visibility = "visible";
buttonan = 1;
window.setTimeout("inhaltrein();",0);
}
function hgein() {


   if (hgeinse==4) {
   window.document.bgColor = "#003333";
   hgeinse=hgeinse+1;
   }
   if (hgeinse==3) {
   window.document.bgColor = "#333333";
   hgeinse=hgeinse+1;
   }
   if (hgeinse==2) {
   document.body.background = "bilder/trans.gif";
   window.document.bgColor = "#000010";
   hgeinse=hgeinse+1;
   }
   if (hgeinse==1) {
   document.body.background = "bilder/bloer_tarn.gif";
   hgeinse=hgeinse+1;
   }
   if (hgeinse==5) {
   window.document.bgColor = "#708090";hgeinse=hgeinse-4;
   }
   }


function hilfean(){
if (document.getElementById("bild1").style.visibility == "hidden") { document.getElementById("hilfe1").style.visibility = "visible";}
else {

if (document.getElementById("liste1").style.visibility == "inherit") { document.getElementById("hilfekol").style.visibility = "visible";}
else {document.getElementById("hilfe").style.visibility = "visible";}
}
}

function hilfeaus(){
document.getElementById("hilfe").style.visibility = "hidden";
document.getElementById("hilfe1").style.visibility = "hidden";
document.getElementById("hilfekol").style.visibility = "hidden";
}
