﻿leftColumn = document.getElementById('right_height');
bodyHeight = document.getElementById('wrapper_height');

function getBodyHeight() {
if (null == bodyHeight)
{
	leftColumn = document.getElementById('right_height');
	bodyHeight = document.getElementById('wrapper_height');
}

if (null == bodyHeight)
{
return;
}

if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	 
	    //winH = bodyHeight.innerHeight;
	    //winHR = leftColumn.innerHeight;
	    winH = document.getElementById('wrapper_height').offsetHeight;
        winHR = document.getElementById('right_height').offsetHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1) {
	  
	  winH = bodyHeight.offsetHeight;
	  winHR = leftColumn.offsetHeight;
	 
	 }
	 else {
	    winH = document.getElementById('wrapper_height').offsetHeight;
        winHR = document.getElementById('right_height').offsetHeight;
	 }
	}
 
}
 
function setThirdColumn() {

	getBodyHeight();
	 
 if (winH > winHR) 
 {
	if (leftColumn)
	{
		leftColumn.style.height = winH + "px";
	}	  

 }
}

function setThirdColumnForForums() {

 getBodyHeight();
    
 if (winH > winHR) 
 {
	if (leftColumn)
	{
	    //winH += 100;
		leftColumn.style.height = winH + "px";
	}	  

 }
}
