IE4 = (document.all) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; ver4 =(NS4 || IE4) ? 1 : 0; var NS6 = (document.getElementById && !document.all) ? true : false; isMac = (navigator.appVersion.indexOf("Mac") != -1); //resize image heights in left and right columns according to content in middle column function matchHeights() { if (IE4) { var x = document.all.middleColumn.clientHeight; var imgLeftHeight = (x - 244) + 25; var imgRightHeight = (x - 187 + 25); //alert(document.all.middleColumn.clientHeight); document.all.imgLeft.height = imgLeftHeight; document.all.imgRight.height = imgRightHeight; } else if (NS6) { var x = document.getElementById("middleColumn").offsetHeight; var imgLeftHeight = (x - 244) + 25; var imgRightHeight = (x - 187) + 25; //alert(document.getElementById("middleColumn").offsetHeight); document.getElementById("imgLeft").height = imgLeftHeight; //alert("image height = " + document.getElementById("imgLeft").height); document.getElementById("imgRight").height = imgRightHeight; } /*else if (NS4) { var x = document.middleColumn.clientHeight; var imgLeftHeight = (x - 244); var imgRightHeight = (x - 187); alert(document.middleColumn.offsetHeight); document.imgLeft.height = imgLeftHeight; document.imgRight.height = imgRightHeight; }*/ }