var browserName=navigator.appName;			
	window.onload = function(){
	var cont = document.getElementById('contact');
	if(cont != null){							
		var button = document.getElementById('buttonnav')!=null?document.getElementById('buttonnav').offsetHeight:0;
		var desc = document.getElementById('hp_descriptiontext');
		var imgboxes = document.getElementById('imgboxes')!=null?document.getElementById('imgboxes').offsetHeight:0;
		var zillow = document.getElementById('zillow_descl')!=null ?document.getElementById('zillow_descl').offsetHeight:0 ;		
		/*if(button.offsetHeight < (desc.offsetHeight+imgboxes.offsetHeight+zillow))
		{*/
		//alert('Container Height: ' + cont.offsetHeight + ' | Button: ' + button + ' | Desc, imgBoxes & Zillow: ' + desc.offsetHeight + ', ' + imgboxes + ', ' +zillow);  
		if(cont.offsetHeight < (button+desc.offsetHeight+imgboxes+zillow) )
		{						
			var setHeight = button+desc.offsetHeight+imgboxes+zillow;
			//alert(setHeight);
			//Approx. 660px			
			cont.style.height = (setHeight - 55) +"px";
		}
		/*}else{
			button.style.height = desc.offsetHeight+imgboxes.offsetHeight+cont.offsetHeight+"px";
		}*/
	}
	var cont = document.getElementById('nestedcnav');
	if(cont != null){
		var x = cont.offsetHeight;		
		var lefy = document.getElementById('leftnav');
		lefy.style.height = 'auto';
		var lx = lefy.offsetHeight;		
		if(lx > x)
		{
			cont.style.height = lx - 30 + "px";	
			//cont.style.height = (lx > x) ? lx + "px" : x + "px";
		}else{			
			lefy.style.height = x+"px";
		}
	}
}
