<!--
function TopFIn(Button)
{
	MinMax = document.getElementById(Button);
	if(MinMax.className == "collapse")
	{
		MinMax.className = "collapseO";
	}
	if(MinMax.className == "expand")
	{
		MinMax.className = "expandO";
	}
}
function TopFOut(Button)
{
	MinMax = document.getElementById(Button);
	if(MinMax.className == "collapseO")
	{
		MinMax.className = "collapse";
	}
	if(MinMax.className == "expandO")
	{
		MinMax.className = "expand";
	}
}

function AC(Menu)
{
	ButtonObj = document.getElementById(Menu);
	MenuObj = document.getElementById(Menu).nextSibling.style;
	
	if (ButtonObj.className == "menuadt")
		{
		ButtonObj.className = "menuadtmax";
		MenuObj.display = "none";
		}
	else
		{
		ButtonObj.className = "menuadt";
		MenuObj.display = "block";
		}
}


function FIn(Button)
{
	MinMax = document.getElementById(Button).childNodes.item(2);
	MHide= document.getElementById(Button).childNodes.item(1);
	if(MinMax.className == "Max")
	{
		MinMax.className = "MaxO";
	}
	if(MinMax.className == "Min")
	{
		MinMax.className = "MinO";
	}
	MHide.className="MHideO";
}
function FOut(Button)
{
	MinMax = document.getElementById(Button).childNodes.item(2);
	MHide = document.getElementById(Button).childNodes.item(1);
	if(MinMax.className == "MaxO")
	{
		MinMax.className = "Max";
	}
	if(MinMax.className == "MinO")
	{
		MinMax.className = "Min";
	}
	MHide.className="MHide";
}
function EC(Menu)
{
	ButtonObj = document.getElementById(Menu);
	MenuObj = document.getElementById(Menu).nextSibling.style;
	
	if (ButtonObj.className == "MenuT")
		{
		ButtonObj.className = "MenuTMax";
		MenuObj.display = "none";
		}
	else
		{
		ButtonObj.className = "MenuT";
		MenuObj.display = "block";
		}
}
function collapse(LenghtA,LenghtB,LenghtC)
{
	var Kolom = "A";
	for (j = 1; j <= 3; j++)
	{
		if (j==1){Lenght = LenghtA;Kolom = "A"}
		if (j==2){Lenght = LenghtB;Kolom = "B"}
		if (j==3){Lenght = LenghtC;Kolom = "C"}
		for (i = 1; i <= Lenght; i++)
		{	
			ButtonObj = document.getElementById(Kolom + i);
			MenuObj = document.getElementById(Kolom + i).nextSibling.style;
			if (ButtonObj.className == "MenuT")
			{
				ButtonObj.className = "MenuTMax";
				MenuObj.display = "none";
			}
		}
	}
			LegendObj = document.getElementById("L1");
		LegendMenuObj = document.getElementById("L1").nextSibling.style;
		if (LegendObj.className == "MenuT")
		{
			LegendObj.className = "MenuTMax";
			LegendMenuObj.display = "none";
		}
}
function expand(LenghtA,LenghtB,LenghtC,LenghtT)
{
	var Kolom = "A";
	for (j = 1; j <= 3; j++)
	{
		if (j==1){Lenght = LenghtA;Kolom = "A"}
		if (j==2){Lenght = LenghtB;Kolom = "B"}
		if (j==3){Lenght = LenghtC;Kolom = "C"}
		for (i = 1; i <= Lenght; i++)
		{	
			ButtonObj = document.getElementById(Kolom + i);
			MenuObj = document.getElementById(Kolom + i).nextSibling.style;
			if (ButtonObj.className == "MenuTMax")
			{
				ButtonObj.className = "MenuT";
				MenuObj.display = "block";
			}
		}
	}
	LegendObj = document.getElementById("L1");
	LegendMenuObj = document.getElementById("L1").nextSibling.style;
	if (LegendObj.className == "MenuTMax")
	{
		LegendObj.className = "MenuT";
		LegendMenuObj.display = "block";
	}
}
//  -->
