/**********
* GLOBALS *
**********/

// Blocks
var g_project;
var g_blocks;

/************
* FUNCTIONS *
************/

// Preloaded settings
function f_preLoad(a_project, a_sections)
{
	// Set global variables from PHP
	g_project = a_project;
	g_blocks = a_sections;
	
	// Set default content
	f_switchCatcher("games");
}

// Switching eyecatcher content
function f_switchCatcher(a_section)
{
	// Hide all content
	document.getElementById("games").style.display = "none";
	document.getElementById("about").style.display = "none";
	document.getElementById("jobs").style.display = "none";
	document.getElementById("contact").style.display = "none";
	
	// Show correct content
	document.getElementById(a_section).style.display = "block";
}
