/*  Copyright (c) 2001,2002 by Kristof Lipfert, Duesseldorf. All rights reserved.  kl@     */
/*  lipfert-malik.de. onClick, getElementById fuer Divs bei Netscape 4, onclick-div-nc4.js */
/*  Einsatz mit diesem Urhebervermerk gestattet. www.lipfert-malik.de/webdesign/tutorial   */

if(!document.getElementById){
function getElementById(id_var){if(document.all)return document.all[id_var];
else if(document.ids)return getLayerById[id_var];}
document.getElementById=window.getElementById;
if(document.ids){var origWidth=innerWidth;var origHeight=innerHeight;
window.onResize=function(){if((innerWidth!=origWidth)||(innerHeight!=origHeight))self.location.reload();}
var getLayerById=new Object;function layerScan(ebene){
for(i=0;i<ebene.document.layers.length;i++){
id_var=ebene.document.layers[i].id;
getLayerById[id_var]=ebene.document.layers[i];
getLayerById[id_var].style=getLayerById[id_var];
getLayerById[id_var].onfocus=neuf;
}}
function lw(ds){ds(window);var l=document.layers;
for(h=0;h<l.length;h++){ds(l[h]);var m=l[h].document.layers;
for(g=0;g<m.length;g++){ds(m[g]);var n=m[g].document.layers;
for(f=0;f<n.length;f++){ds(n[f]);var o=n[f].document.layers;
for(e=0;e<o.length;e++){ds(o[e]); }}}}}
ds=function(dies){layerScan(dies)};lw(ds);
}function neuf(){var xy=this.onclick;xy();}}

/* onClick und getElementById für 4er Browser Ende            */
