﻿var tracking_expand = document.getElementById("tracking_expand");
var workflow_expand = document.getElementById("workflow_expand");
var reporting_expand = document.getElementById("reporting_expand");

function hideSections() {
	tracking_expand.style.display = "none";
	workflow_expand.style.display = "none";
	reporting_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;
	});

});

