function picModal(span) { showOverlay(); zorder0("picZoomStatus",9999); centerObj("picZoomStatus"); setVisible("picZoomStatus",true); var big = span.getAttribute("pic"); var pic = gEL("picBig"); if(!pic) { var div = gEL("picZoom"); var frm = gEL2(div,"inhalt"); var pic = document.createElement("img"); pic.id = "picBig"; frm.appendChild(pic); var capt = document.createElement("div"); capt.id = "picZoomCapt"; frm.appendChild(capt); } pic.onload = function() { setVisible("picZoom",true); var capt = gEL("picZoomCapt"); capt.style.width = this.width+"px"; var wi = parseInt(this.width); var he = parseInt(this.height)+capt.offsetHeight+8; he+="px"; var frm = gEL("picZoom"); frm.style.width = parseInt(wi)+47+"px"; frm.style.height = he; var frm = gEL2(frm,"inhalt"); frm.style.width = parseInt(wi)+"px"; frm.style.height = he; setVisible("picZoomStatus",false); zorder0("picZoom",999); centerObj("picZoom"); } pic.src = big; var capt = span.getAttribute("capt"); setContent("picZoomCapt",capt); }