/*** Regularize Columns ***/
$(document).ready(function(){

$("#transimg").rightClick(function () {
         alert("Call or email chamberworks@morrischamber.org to inquire about our logo use.");
    });
});
/*** hack added by chicks@IMA for mccc ***/
function normalizePage() {
	
	//index
	regularizeColumns('index_info', 'index_intro');
	regularizeColumns('index_info', 'row5');
	
	//content
	regularizeColumns('content_left', 'content_right', 'dots_container', 'content_container');
	regularizeColumns('content_left', 'row5_content');
}


function regularizeColumns() 
{
	var height = 0;
	if(arguments.length > 1)
	{
		var tallest = document.getElementById(arguments[0]);
		if(tallest){ height = tallest.offsetHeight; }
		
		
		if(height > 0)
		{
			
			for(x = 1; x < arguments.length; x++)
			{
				var new_height = height;
				
				
				if(arguments[0] == 'content_left') {
					if(arguments[x] == 'content_right') {
						new_height = height - 20;
					}
				} 
				/*
				if(arguments[0] == 'detail_left') {
					if(arguments[x] == 'left_pane') {
						new_height = height - 36;
					}
				} 
				*/
				var column = document.getElementById(arguments[x]);	
				
					column.style.height = new_height + 'px'; //if you get a javascript error here, it is probably because you passed in an invalid ID for a column
				
			}
		}
	}
}
