var updateif = function () {
	/*var iframe = document.createElement("iframe");
	iframe.style.display = "none";
	iframe.src = "/_site/iframeHelper.php?height="+getDocHeight();
	document.body.appendChild(iframe);
	var head = document.getElementsByTagName('head')[0];
	var script= document.createElement('script');
	script.type= 'text/javascript';
	script.src= "/_site/iframeHelper.php?height="+getDocHeight();
	head.appendChild(script);
	*/
	window.parent.resizeIframeHelper();
	
}

function getDocHeight () {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}

function setIframeHeight (h) {
    window.parent.resizeIframeHelper(myHeight);
}


// selects image header at random
window.addEventListener?window.addEventListener('load',updateif,false):window.attachEvent('onload',updateif);
