//This function set column heights - determines which is tallest then sets others accordingly
function fill_col_height(){
var browserName=navigator.appName; 
	if (document.getElementById('LayoutColumn1').clientHeight >= document.getElementById('LayoutColumn2').clientHeight){
					//1 is greater than 2
						if (document.getElementById('LayoutColumn1').clientHeight >= document.getElementById('LayoutColumn3').clientHeight){		
							//	1 is the tallest
							//window.alert('column 1 is tallest');
							document.getElementById('LayoutColumn2').style.height = document.getElementById('LayoutColumn1').clientHeight + 'px';
							document.getElementById('LayoutColumn3').style.height = document.getElementById('LayoutColumn1').clientHeight + 'px';
						}else{
							//3 is tallest
							//window.alert('column 3 is tallest - a');
							document.getElementById('LayoutColumn1').style.height = document.getElementById('LayoutColumn3').clientHeight + 'px';
							document.getElementById('LayoutColumn2').style.height = document.getElementById('LayoutColumn3').clientHeight + 'px';
						}
	}else{
					//2 is greater than 1		
							if (document.getElementById('LayoutColumn2').clientHeight >= document.getElementById('LayoutColumn3').clientHeight){
								//2 is the tallest
								//window.alert('column 2 is tallest');
								document.getElementById('LayoutColumn1').style.height = document.getElementById('LayoutColumn2').clientHeight + 'px';
								document.getElementById('LayoutColumn3').style.height = document.getElementById('LayoutColumn2').clientHeight + 'px';
							}else{
								//3 is tallest
								//window.alert('column 3 is tallest');
								//window.alert(document.getElementById('LayoutColumn3').clientHeight);
								if (browserName=="Microsoft Internet Explorer"){
								//document.getElementById('LayoutColumn1').style.height = document.getElementById('LayoutColumn3').clientHeight - 1000 + 'px';
								//document.getElementById('LayoutColumn2').style.height = document.getElementById('LayoutColumn3').clientHeight - 1000 + 'px';
								}else{
								document.getElementById('LayoutColumn1').style.height = document.getElementById('LayoutColumn3').clientHeight + 'px';
								document.getElementById('LayoutColumn2').style.height = document.getElementById('LayoutColumn3').clientHeight + 'px';
								//window.alert(document.getElementById('LayoutColumn2').style.height);
							  }
							}
	}
	// adjust for Sidebar content
	if (document.getElementById('PostAuthorDetails')){
		if (document.getElementById('PostAuthorDetails').clientHeight >= document.getElementById('PostContent').clientHeight){
			//window.alert('inside');
			document.getElementById('PostContent').style.height = document.getElementById('PostAuthorDetails').clientHeight + 'px';
			//document.getElementById('PostAuthorDetails').style.height = (document.getElementById('PostAuthorDetails').clientHeight +) + 'px';
	}
	}
}

