document.write('
'); if(!window.getAbsolutePosition) window.getAbsolutePosition = function (theElement) { var x = 0, y = 0; while(theElement != null){ x += theElement.offsetLeft; y += theElement.offsetTop; theElement = theElement.offsetParent; } return {x:x,y:y}; } if(!window.querystring) window.querystring = function(key) { var query = window.location.search; var idx = query.indexOf('?' + key + '='); if(idx < 0) idx = query.indexOf('&' + key + '='); if(idx < 0) return null; var endidx = query.indexOf('&',idx+1); if(endidx < 0) endidx = query.length; return query.substring(idx+ ('?' + key + '=').length,endidx); } function updateFrameHeight() { if(!window.parent || window.parent == window) return; //var zl_frameid = zl_getCookie('the_frameid'); var height = document.getElementsByTagName('body')[0].offsetHeight; // getAbsolutePosition(document.getElementById('lastElement')).y; if(height != updateFrameHeight.lastHeight) { try { if(parent.updateFrameHeight) parent.updateFrameHeight(height, querystring("frameid")); updateFrameHeight.lastHeight = height; if(window.updateFrameHeightUserFunction) updateFrameHeightUserFunction(); } catch(e) { } } } function updateFrameHeightAfterInterval() { setTimeout(updateFrameHeight,10); } if(!window.addEvent) window.addEvent = function (oTarget, sType, fpDest) { var oOldEvent = oTarget[sType]; if (typeof oOldEvent != "function") { oTarget[sType] = fpDest; } else { oTarget[sType] = function(e) { oOldEvent(e); fpDest(e); } } }; addEvent(window,'onload',updateFrameHeightAfterInterval); addEvent(document,'onclick',updateFrameHeightAfterInterval); setTimeout(updateFrameHeight,250); setInterval(updateFrameHeight,2000); // roept gedurende 'duration' ms de updateFrameHeight functie aan function frameHeightUpdater(duration) { var step = 50; var timer = setInterval(function() { updateFrameHeight(); duration -= step; if(duration < 0) clearInterval(timer); }, step); }