--- zogiLib/js/Attic/navigation.js 2004/04/28 09:03:21 1.4 +++ zogiLib/js/Attic/navigation.js 2004/04/28 16:27:16 1.5 @@ -388,7 +388,11 @@ function getElement(tagid) { alert("document.all!"); return document.all[tagid]; } else { - alert("no document.all!"); + var s = ""; + for (var e in document.layers) { + s += "'" + e + "', "; + } + alert("no document.all! "+tagid+" = "+s); return document[tagid]; } } @@ -541,14 +545,20 @@ function bestPicSize(tagid) { var inset = 0; var ws = getWinSize(); var es = getElementSize(tagid); - ws.width = ws.width - es.x - inset; - ws.height = ws.height - es.y - inset; + if (es) { + ws.width = ws.width - es.x - inset; + ws.height = ws.height - es.y - inset; + } return ws; } function init() { + if (document.layers) { + alert("Sorry Netscape4 is not supported!"); + return false; + } // give a name to the window containing digilib - this way one can test if there is already a // digilib-window open and replace the contents of it (ex. digicat) top.window.name = "digilib";