// cross-platform API for getting zIndex property function getZIndex(objectName) { var theObj if (isNav4) { theObj = eval("document." + objectName) } if (isIE4) { theObj = eval("document.all." + objectName + ".style") } if (theObj) return theObj.zIndex }