function grow(e,element) { var fromElement = e.relatedTarget || e.fromElement; while (fromElement && fromElement != element && fromElement.nodeName != 'BODY') { fromElement = fromElement.parentNode } if (fromElement == element) return; var tableElement = element; var imgElement = tableElement.firstChild.firstChild.firstChild.firstChild.firstChild; if(!imgElement.inited) init(imgElement); tableElement.nextSibling.width = tableElement.offsetWidth; tableElement.nextSibling.height = tableElement.offsetHeight+1; tableElement.className = "emEnlarged"; tableElement.parentNode.style.zIndex = 1; window.clearTimeout(imgElement.imgDelayID); imgElement.imgDelayID = window.setTimeout(imgElement.expand,300); } function shrink(e,element) { var toElement = e.relatedTarget || e.toElement; while(toElement && toElement != element && toElement.nodeName != 'BODY') toElement = toElement.parentNode; if(toElement == element) return; var tableElement = element; var imgElement = tableElement.firstChild.firstChild.firstChild.firstChild.firstChild; window.clearTimeout(imgElement.imgDelayID); var trElements = tableElement.firstChild.childNodes; if(trElements[1].firstChild.firstChild.nodeName == "DIV") trElements[1].firstChild.firstChild.style.height = "30px"; for(var i=0;i imgElement.originalWidth) { imgElement.width -= factor; imgElement.height -= factor; imgElement.imgDelayID = window.setTimeout(imgElement.contract,15); } else { imgElement.width = imgElement.originalWidth; imgElement.height = imgElement.originalHeight; var parentTable = imgElement.parentNode.parentNode.parentNode.parentNode.parentNode; parentTable.className = "emEnlarge"; parentTable.parentNode.style.zIndex = 0; parentTable.nextSibling.height = "1"; parentTable.nextSibling.width = "1"; } }; imgElement.inited = true; }