//The reason for type is on the home page only all other pages ignore it with using just '' inside the () example resizer('');
function resizer(){
	//Getting the main 3 columns
	var mcLeft		= document.getElementById('mainContentLeft');
	var mcMiddle	= document.getElementById('mainContentMiddle');
	var mcRight		= document.getElementById('mainContentRight');

	//Getting internal columns that you want the height applied too.
	var related_items		= document.getElementById('related_items');
	
	//Setting any padding there maybe set in the css
	var mcLeftP		= 70;//this one is 80-10 for offset
	var mcMiddleP	= 10;
	var mcRightP	= 10;
	
	//Getting the height of the main 3 columns
	var mcLeftH		= mcLeft ? mcLeft.offsetHeight : '';
	var mcMiddleH	= mcMiddle ? mcMiddle.offsetHeight : '';
	var mcRightH	= mcRight ? mcRight.offsetHeight : '';
	
	//Finding the tallest column of the main 3
	var tallestNum = 0;
	
	//Finding the name of the tallest column
	var tallestName = '';

	//alert("left: "+mcLeftH+" Middle: "+mcMiddleH+" Right: "+mcRightH);
	if(mcLeftH > mcRightH)
	{
		if( mcLeftH > mcMiddleH ) {
			tallestNum = mcLeftH;
			tallestName = 'mcLeft';
		} else {
			tallestNum = mcMiddleH;
			tallestName = 'mcMiddle';
		}
	} else {
		if( mcRightH > mcMiddleH ) {
			tallestNum = mcRightH;
			tallestName = 'mcRight';
		} else {
			tallestNum = mcMiddleH;
			tallestName = 'mcMiddle';
		}
	}
	
	//alert(tallestNum);
	//alert(tallestName);
	
	if(mcLeftP > mcRightP)
	{
		if( mcLeftP > mcMiddleP ) {
			tallestNumPad = mcLeftP;
			tallestNamePad = 'mcLeftP';
		} else {
			tallestNumPad = mcMiddleP;
			tallestNamePad = 'mcMiddleP';
		}
	} else {
		if( mcRightP > mcMiddleP ) {
			tallestNumPad = mcRightP;
			tallestNamePad = 'mcRightP';
		} else {
			tallestNumPad = mcMiddleP;
			tallestNamePad = 'mcMiddleP';
		}
	}	
	
	//alert(tallestNumPad);
	//alert(tallestNamePad);
	
	//setting the height of the main columns
	mcLeft.style.height = tallestNum-((tallestNamePad=='mcLeftP')?tallestNumPad:"")+"px";
	mcMiddle.style.height = tallestNum-((tallestNamePad=='mcMiddleP')?tallestNumPad:"")+"px";
	mcRight.style.height = tallestNum-((tallestNamePad=='mcRightP')?tallestNumPad:"")+"px";

	//alert("left: "+mcLeft.style.height+" Middle: "+mcMiddle.style.height+" Right: "+mcRight.style.height);

	//setting the height of any other columns you want height applied to.
	if(related_items){
		related_items.style.height = tallestNum+"px";
	}

}