﻿var beyond_ss_expand = document.getElementById("beyond_ss_expand");
var four_kinds_expand = document.getElementById("four_kinds_expand");
var perf_inflation_expand = document.getElementById("perf_inflation_expand");
var mature_proc_expand = document.getElementById("mature_proc_expand");
var agile_expand = document.getElementById("agile_expand");

function hideSections() {
	beyond_ss_expand.style.display = "none";
	four_kinds_expand.style.display = "none";
	perf_inflation_expand.style.display = "none";
	mature_proc_expand.style.display = "none";
	agile_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;
	});

});

