﻿var datastorm_expand = document.getElementById("datastorm_expand");
var app_core_expand = document.getElementById("app_core_expand");
var ria_platform_expand = document.getElementById("ria_platform_expand");
var automated_messaging_expand = document.getElementById("automated_messaging_expand");
var app_architecture_expand = document.getElementById("app_architecture_expand");
var database_expand = document.getElementById("database_expand");
var geocoding_expand = document.getElementById("geocoding_expand");

function hideSections() {
	datastorm_expand.style.display = "none";
	app_core_expand.style.display = "none";
	ria_platform_expand.style.display = "none";
	automated_messaging_expand.style.display = "none";
	app_architecture_expand.style.display = "none";
	database_expand.style.display = "none";
	geocoding_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;
	});

});

