﻿// JScript File
function containerHeights()
{
	textOneHeight = document.getElementById('textOne').offsetHeight;
	secondImgHeight = document.getElementById('secondImgContainer').offsetHeight;	
	
	textTwoHeight = document.getElementById('textTwo').offsetHeight;	
	textThreeHeight = document.getElementById('textThree').offsetHeight;
	
	if (textOneHeight < secondImgHeight)
	    {
	        secondImgHeight = secondImgHeight - 23;
    	    document.getElementById('textOne').style.height = secondImgHeight + 'px';
	    }
	    else
	    {
	        textOneHeight = textOneHeight - 3;
    	    document.getElementById('secondImgContainer').style.height = textOneHeight + 'px';
        }
	
	if (textTwoHeight < textThreeHeight)
	    {
	        textThreeHeight = textThreeHeight - 23;
    	    document.getElementById('textTwo').style.height = textThreeHeight + 'px';
	    }
	    else
	    {
	        textTwoHeight = textTwoHeight - 23;
    	    document.getElementById('textThree').style.height = textTwoHeight + 'px';
        }
	    
}
