// layer handling start ------------------------------------------------------------ var ns6 = (document.getElementById) ? 1:0; //netscape6+ var ie = (document.all) ? 1:0; //internetexplorer4+ var ns = (document.layers) ? 1:0; //netscape4+ <6 var mask = 0; var taggedlayer = 0; var taggedlink = 0; var blocktagged = 0; if(navigator.userAgent.indexOf( "Mac" )!= -1){ Mac = true ; }else{ Mac = false ; } function hidelayer(layerName){ if(ns){ document.layers[layerName].visibility = "hide"; } if(ie){ document.all.item(layerName).style.visibility = "hidden"; } else{if(ns6){ document.getElementById(layerName).style.visibility = "hidden"; } } } function showlayer(layerName){ if(ns){ if (layerName != 'layeraus') document.layers[layerName].style.top = document.layers[layerName.replace(/layer/gi,"")].offsetTop; document.layers[layerName].visibility = "show"; } if(ie){ if (layerName != 'layeraus'){ if(Mac == true){ document.all.item(layerName).style.top = document.all.item(layerName.replace(/layer/gi,"")).offsetTop-6; }else{ document.all.item(layerName).style.top = document.all.item(layerName.replace(/layer/gi,"")).offsetTop; } } document.all.item(layerName).style.visibility = "visible"; } else{if(ns6){ if (layerName != 'layeraus') document.getElementById(layerName).style.top = document.getElementById(layerName.replace(/layer/gi,"")).offsetTop; document.getElementById(layerName).style.visibility = "visible"; } } } //layer fuer content function layeraus(){ if(taggedlayer!='0'){ hidelayer('layer' + taggedlayer) hidelayer('layeraus') } } function layeran(){ if(taggedlayer!='0'){ showlayer('layer' + taggedlayer) showlayer('layeraus') } } //class auf On bzw. Off function classaus(){ if(taggedlayer!='0'){ if(taggedlayer.substring(0,1) == 'a'){ document.getElementById(taggedlayer).className='navitem'; } if(taggedlayer.substring(0,1) == 'b'){ document.getElementById(taggedlayer).className='navitem2'; } if(taggedlayer.substring(0,1) == 'x'){ document.getElementById(taggedlayer).className='loginHead'; } } } function classan(){ if(taggedlayer!='0'){ if(taggedlayer.substring(0,1) != 'x'){ document.getElementById(taggedlayer).className='navitemOn'; }else{ document.getElementById(taggedlayer).className='loginHeadOn'; } } } function linkaus(){ if(taggedlink!='0'){ if(taggedlayer.substring(0,1) == 'a'){ document.getElementById(taggedlink).className='navLeft'; } if(taggedlayer.substring(0,1) == 'b' || taggedlayer.substring(0,1) == 'x'){ document.getElementById(taggedlink).className='navLeft2'; } } } function linkan(){ if(taggedlink!='0'){ document.getElementById(taggedlink).className='navLeftOn'; } } // layer handling ende ------------------------------------------------------------- //block function hideBlock(layerName){ document.getElementById(layerName).style.display = "none"; } function showBlock(layerName){ document.getElementById(layerName).style.display = "block"; } function switchBlock(layerName){ //Beim ersten Abfragen der Eigenschaft kommt immer leer raus, nach dem ersten setzen funktioniert es dann korrekt (ms) //alert(document.getElementById(layerName).style.display); if (document.getElementById(layerName).style.display == "block") hideBlock(layerName); else if (blocktagged != 0){ hideBlock(blocktagged); } showBlock(layerName); } //Dynapi function layermenu(layertoshow,father) { if (layertoshowold != ""){ DynAPI.document.all[layertoshowold].setVisible(false); DynAPI.document.all[layertoshowold].setZIndex(-1); } if (untertoshowold != ""){ DynAPI.document.all[untertoshowold].setVisible(false); DynAPI.document.all[untertoshowold].setZIndex(-1); } if (DynAPI.document.all[layertoshow]) { if (father != "") DynAPI.document.all[layertoshow].moveTo(DynAPI.document.all[father].getX() + DynAPI.document.all[father].getWidth()+ hauptabstand,(DynAPI.document.all[father].getY())); DynAPI.document.all[layertoshow].setVisible(true); DynAPI.document.all[layertoshow].setZIndex(2); layertoshowold = layertoshow; } timer = new Date(); } function layerunter(untertoshow,father,punkt) { if (untertoshowold != ""){ DynAPI.document.all[untertoshowold].setVisible(false); DynAPI.document.all[untertoshowold].setZIndex(-1); } if (DynAPI.document.all[untertoshow]) { DynAPI.document.all[untertoshow].moveTo(DynAPI.document.all[father].getX() + DynAPI.document.all[father].getWidth()+ hauptabstand,(postop + buttonheight + ((punkt-1) * buttonheight2))); DynAPI.document.all[untertoshow].setVisible(true); DynAPI.document.all[untertoshow].setZIndex(2); untertoshowold = untertoshow; } timer = new Date(); } function checkhidemenu() { tempDate = new Date(); if((tempDate - timer) > ausblenden){ if (layertoshowold != ""){ DynAPI.document.all[layertoshowold].setVisible(false); DynAPI.document.all[layertoshowold].setZIndex(-1); } if (untertoshowold != ""){ DynAPI.document.all[untertoshowold].setVisible(false); DynAPI.document.all[untertoshowold].setZIndex(-1); } } } function reset(){ timer = new Date(); } function navigation(myname) {linkaus();classaus();layeraus();taggedlayer=myname;classan();layeran();taggedlink=myname + "a";linkan();} function navlayer() {classaus();linkaus();layeraus();}