	function switchDiv(el, image_show, image_hide, display)
	{
		if (display=="hide")
		{
			var change = document.getElementById(el);
			change.style.display = "none";
			document.getElementById(image_show).style.display="";
			document.getElementById(image_hide).style.display="none";
		}
		else if (display=="show")
		{
			var changeagain = document.getElementById(el);
			changeagain.style.display = "inline-block";
			document.getElementById(image_show).style.display="";
			document.getElementById(image_hide).style.display="none";
		}
	}

	var __URL_PATH__ = "http://www.indianagrain.com";
	var __URL_PATH_SECURE__ = "https://www.indianagrain.com";
	var __URL_PATH_CSS__ = "http://www.indianagrain.com/inc/css";
	var __URL_PATH_JS__ = "http://www.indianagrain.com/inc/js";
	var __URL_PATH_ADMIN__ = "http://www.indianagrain.com/admin";
	var __URL_PATH_IMAGES__ = "http://www.indianagrain.com/media/images";
	var __URL_PATH_FLASH__ = "http://www.indianagrain.com/media/flash";
	var __URL_PATH_VIDEO__ = "http://www.indianagrain.com/media/video";


function adjustSidebars() {

	var midCol = document.getElementById("info_middle_column");
	var leftCol = document.getElementById("info_left_column");
	var rightCol = document.getElementById("info_right_column");

	var tallestCol = 1;

	tallestCol = Math.max( tallestCol, midCol.offsetHeight );
	tallestCol = Math.max( tallestCol, leftCol.offsetHeight );
	tallestCol = Math.max( tallestCol, rightCol.offsetHeight );

	//alert("left: " +leftCol.offsetHeight + "  mid: " + midCol.offsetHeight + "  right: " + rightCol.offsetHeight);
	//alert("tallest" + tallestCol);


	//Set all columns if existing to the tallest column height
	if (leftCol) {
		if (leftCol.offsetHeight < tallestCol){
			leftCol.style.height = (tallestCol - 10) + "px";
		}

	}

	if (midCol) {
		if (midCol.offsetHeight < tallestCol){
			midCol.style.height = (tallestCol - 10) + "px";
		}
	}

	if (rightCol) {
		if (rightCol.offsetHeight < tallestCol) {
			rightCol.style.height = (tallestCol - 10) + "px";
		}

	}

}

var threeColHeightManager = function() {
	adjustSidebars();
}

window.onload=threeColHeightManager;

