﻿var mission_expand = document.getElementById("mission_expand");
var values_expand = document.getElementById("values_expand");
var history_expand = document.getElementById("history_expand");
var leadership_expand = document.getElementById("leadership_expand");

function hideSections() {
	mission_expand.style.display = "none";
	values_expand.style.display = "none";
	history_expand.style.display = "none";
	leadership_expand.style.display = "none";
	news_expand.style.display = "none";
}

function showSection(value) {
	hideSections();

	value = value.replace("_tag", "");
	value = value.replace("_head", "");

	document.getElementById(value + "_expand").style.display = "block";
}

$(document).ready(function() {

	$('.leftHead').mouseover(function() {
		$(this).addClass("over");
	}).mouseout(function() {
		$(this).removeClass("over");
	});

	$('.leftHead').click(function() {
		var current_id = $(this).attr("id");
		showSection(current_id);
		$(".leftcolumn,.centercolumn,.rightcolumn").css("height", "auto");
		$(".leftcolumn,.centercolumn,.rightcolumn").equalHeights(511);
		return false;
	});
});

