// JavaScript Document

function showHideTables(tvalue) {
	for (i=1;i<=5;i++)	//where 5 is the total available tables.
	{
		if (i == tvalue)	//make Table <tvalue> visible
		{
			document.getElementById("tbl" + i).style.display = "";
			document.getElementById("sideLabel").innerHTML = "<img src=\"images/side_lbl_serv_" + tvalue + ".jpg\" alt=\"Events\" />";
		}
		else				//All other tables are made invisible
		{
			document.getElementById("tbl" + i).style.display = "none";
		}
	}
}



function showHideTablesP(tvalue) {
	for (i=1;i<=8;i++)	//where 5 is the total available tables.
	{
		if (i == tvalue)	//make Table <tvalue> visible
		{
			document.getElementById("tbl" + i).style.display = "";
			document.getElementById("sideLabel").innerHTML = "<img src=\"images/side_lbl_part_" + tvalue + ".jpg\" alt=\"Partners\" />";
		}
		else				//All other tables are made invisible
		{
			document.getElementById("tbl" + i).style.display = "none";
		}
	}
}


function showHideTablesG(tvalue) {
	for (i=1;i<=8;i++)	//where 5 is the total available tables.
	{
		if (i == tvalue)	//make Table <tvalue> visible
		{
			document.getElementById("tbl" + i).style.display = "";
			document.getElementById("sideLabel").innerHTML = "<img src=\"images/side_lbl_gal_" + tvalue + ".jpg\" alt=\"Gallery\" />";
		}
		else				//All other tables are made invisible
		{
			document.getElementById("tbl" + i).style.display = "none";
		}
	}
}

function showHideTablesPORT(tvalue) {
	for (i=1;i<=4;i++)	//where 5 is the total available tables.
	{
		if (i == tvalue)	//make Table <tvalue> visible
		{
			document.getElementById("tbl" + i).style.display = "";
			document.getElementById("sideLabel").innerHTML = "<img src=\"images/side_lbl_port_" + tvalue + ".jpg\" alt=\"Gallery\" />";
		}
		else				//All other tables are made invisible
		{
			document.getElementById("tbl" + i).style.display = "none";
		}
	}
}