This class encapsulates a DIV element and provides cross-browser
access to its properties such as position, visibility, and clipping.
This implementation is the lean core class for working with layers.

function LyrObj(lyrName, nestedRef)Constructs a new LyrObj wrapping the layer lyrName. If the layer is nested within another, you have to specify the parent layer's name in the nestedRef parameter, otherwise Netscape 4.5x won't be able to find it in the document's object hierarchy.

Parameters
String lyrName - the name of the layer as in <div id="(layername)"></div>
String [nestedRef] - path to a nested layerReturns
LyrObj - a new LyrObj object for the layer lyrName

function getRef(layerName)Returns the reference to the actual DIV element

function fixNetscape()Intention: After starting Netscape 4.x, the first call to the constructor fails, throwing an error.
This is a fix that simply causes a reload of the page in case the test layer couldn't be accessed. To apply, make sure the page contains the line
<div id="fixnetscape" style="position:absolute;visibility:hidden"></div>
and call this function in your onLoad-handler.