﻿var whydexter_expand = document.getElementById("whydexter_expand");
var lineofsight_expand = document.getElementById("lineofsight_expand");
var workflow_expand = document.getElementById("workflow_expand");
var improving_expand = document.getElementById("improving_expand");
var workforce_expand = document.getElementById("workforce_expand");
var expertise_expand = document.getElementById("expertise_expand");

function hideSections() {
	whydexter_expand.style.display = "none";
	lineofsight_expand.style.display = "none";
	workflow_expand.style.display = "none";
	improving_expand.style.display = "none";
	workforce_expand.style.display = "none";
	expertise_expand.style.display = "none";
}

function showSection(value) {
	hideSections();

	value = value.replace("_tag", "");
	value = value.replace("_head", "");

	document.getElementById(value + "_expand").style.display = "block";

	$(".leftcolumn,.centercolumn,.rightcolumn").css("height", "auto");
	$(".leftcolumn,.centercolumn,.rightcolumn").equalHeights(511);
}

$(document).ready(function() {

var section = getParameterByName("id");
	if (section != "") {
		showSection(section);
	}

	$('.leftHead').mouseover(function() {
		$(this).addClass("over");
	}).mouseout(function() {
		$(this).removeClass("over");
	});

	$('.leftHead').click(function() {
		var current_id = $(this).attr("id");
		showSection(current_id);
		return false;
	});
});

