﻿var col1_1_height = document.getElementById('col1_1').offsetHeight;
var col2_1_height = document.getElementById('col2_1').offsetHeight;
var col3_1_height = document.getElementById('col3_1').offsetHeight;
var main_height = document.getElementById('maindiv').offsetHeight;
var footer_height = document.getElementById('footer').offsetHeight;


var heights1 = new Array();
heights1[0] = col1_1_height;
heights1[1] = col2_1_height;
heights1[2] = col3_1_height;

var col1_1 = document.getElementById('col1_1');
var col2_1 = document.getElementById('col2_1');
var col3_1 = document.getElementById('col3_1');

var tallest_height1 = 0;
for (x in heights1) {

	if (heights1[x] > tallest_height1) {
		tallest_height1 = heights1[x];
	}
}

tallest_height1 = (tallest_height1 < 500) ? 500 : tallest_height1;

col1_1.style.height = (tallest_height1 + 5) + 'px';
col2_1.style.height = (tallest_height1 + 5) + 'px';
col3_1.style.height = (tallest_height1 + 5) + 'px';

/* var rightShadow = document.getElementById('right-shadow');
var main_definitiv_height = (main_height < 670) ? 870 : main_height;
rightShadow.style.height =  main_definitiv_height + footer_height + 'px';



alert(tallest_height1); 
 alert(left_shadow.style.height);  */
