Das Script im HEAD Bereich sieht jetzt so aus.
<script language="javascript">
var state = 'hidden';
function showhide(layer_ref) {
if (state == 'visible') {
state = 'hidden';
}
else {
state = 'visible';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.visibility = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].visibility = state;
}
if (document.document.getElementsByClassName && !document.all) {
maxwell_smart = document.document.getElementsByClassName(layer_ref);
maxwell_smart.style.visibility = state;
}
}
//-->
</script>
Leider geht durch die Änderung von Id zu ClassName nichts mehr.