function expandIframe () { if (window.anIframe1 && window.anIframe1.scrollBy) { var ifr = window.anIframe1; var sPath = ifr.location.pathname; var sPage = sPath.substring(sPath.lastIndexOf('/') + 1); document.getElementById("anIframe1").style.height=500; // alert( getDocHeight() ); // document.getElementById("anIframe1").style.height = getDocHeight(); //IE if (document.all) { document.getElementById("anIframe1").style.height = ifr.document.body.scrollHeight + 170; } //Netscape; else if (document.getElementById) { // The iframe must be reset back to normal for Firefox document.getElementById("anIframe1").style.height=500; // document.getElementById("anIframe1").style.height = ifr.document.body.clientHeight + 170 ; document.getElementById("anIframe1").style.height = ifr.document.body.scrollHeight + 170; } } } 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) ); } /* if (window.anIframe1 && window.anIframe1.scrollBy) { var ifr = window.anIframe1; var sPath = ifr.location.pathname; var sPage = sPath.substring(sPath.lastIndexOf('/') + 1); var pageHeightRef = 0; //If members or quote page move images down a bit further in case there are links under the swf image //IE if (document.all) { pageHeightRef = 600; if (sPage=="members.html" || sPage=="quote.html"){pageHeightRef=700;}; document.getElementById("anIframe1").height = ifr.document.body.scrollHeight + 180; document.getElementById("footer").style.top = ifr.document.body.scrollHeight + pageHeightRef + 50; document.getElementById("menubottom").style.top = ifr.document.body.scrollHeight + pageHeightRef + 25; document.getElementById("borderbottom").style.top = ifr.document.body.scrollHeight + pageHeightRef + 100; } else if (document.getElementById) { pageHeightRef = 1000; if (sPage=="members.html" || sPage=="quote.html"){pageHeightRef=1400;}; if (sPage=="join.html"){pageHeightRef=1900;}; document.getElementById("anIframe1").height = pageHeightRef ; document.getElementById("footer").style.top = pageHeightRef + 450; document.getElementById("menubottom").style.top = pageHeightRef + 425; document.getElementById("borderbottom").style.top = pageHeightRef + 500; } } */