var state = 'hidden'; function showhide(div1,div2) { if (state == 'visible') { state = 'hidden'; } else { state = 'visible'; } if (document.all) { eval( "document.all." + div1 + ".style.visibility = state"); eval( "document.all." + div2 + ".style.visibility = state"); } if (document.getElementById && !document.all) { div1 = document.getElementById(div1); div2 = document.getElementById(div2); div1.style.visibility = state; div2.style.visibility = state; } } //ruft den Layer auf, je nach übergebenem typ. function loading(types,picid,formatid,untergruppe,bid) { //Gestaltung Postkarte if (types == 'cover_postcard') { showhide('layer_loading_postcard_bg','layer_loading_postcard'); cover_postcard(bid,picid,formatid,untergruppe); } } /*2009-08-19 AK: Lade Layer fuer uebergebene DIV Boxen*/ function loading_allover_layer(types) { if (types != '') { showhide('layer_loading_'+types+'_bg','layer_loading_'+types); } }