/* function to make sure site is always at least as high as the browser (inner) window */ function checkHeight() { var ie55 = false; var ie55 = checkIE55(); // get browser height var winHeight = getWindowHeight(); // get content height var conHeight = getContentHeight(); // if content height < browser height make it longer if (conHeight < winHeight) { var diff = winHeight - conHeight; if (!ie55) { padding = 210; } else { padding = 80; } var newHeight = (conHeight + diff) - padding; document.getElementById('content').style.height = newHeight + "px"; } } /* browser check function */ function checkIE55() { var os = navigator.platform.toLowerCase(); var agt = navigator.userAgent.toLowerCase(); if ((os.indexOf('win') != -1) && (agt.indexOf('msie 5.5') != -1)) { var ie55 = true; } return ie55; } function getWindowHeight() { if (window.innerHeight) { return window.innerHeight; } else if ( document.documentElement && document.documentElement.clientHeight != 0) { return document.documentElement.clientHeight; } else if ( document.body ) { return document.body.clientHeight; } return 0; } function getContentHeight() { return document.getElementById('content').offsetHeight; } /* function for thumbnails and previews */ function previews() { var exterior = document.getElementById("exterior"); var interior = document.getElementById("interior"); if (interior) { buildPreviews(interior); } if (exterior) { buildPreviews(exterior); } else { return false; } } function buildPreviews(context) { this.thumbArr = new Array; var contents = (document.all ? context.all : context.getElementsByTagName("*")); for (var c=0; c