// JavaScript Document
function swap(id,picexpand,pichidden)
{
	control = "ctrl" + id;
	swapbox = "swap" + id;

	target = document.all(swapbox);
  	if (target.style.display != "none")
	{
  		target.style.display = "none";
		document.images[control].src = picexpand;
		document.images[control].alt = "เปิดเมนู";
  	}
	else
	{
  		target.style.display = "";
		document.images[control].src = pichidden;
		document.images[control].alt = "ซ่อนเมนู";
	}
}

function swap2(id)
{
	document.all('toptable01').style.display = "none";
	document.all('toptable02').style.display = "none";
	document.all('toptable03').style.display = "none";
	document.all('toptable04').style.display = "none";
	document.all('toptable05').style.display = "none";

	document.all('gtoptable01').style.display = "none";
	document.all('gtoptable02').style.display = "none";
	document.all('gtoptable03').style.display = "none";
	document.all('gtoptable04').style.display = "none";
	document.all('gtoptable05').style.display = "none";
	document.all('gtoptable06').style.display = "none";
	document.all('gtoptable07').style.display = "none";
	document.all('gtoptable08').style.display = "none";
	document.all('gtoptable09').style.display = "none";
	document.all('gtoptable10').style.display = "none";
	document.all('gtoptable11').style.display = "none";
	document.all('gtoptable12').style.display = "none";
	document.all('gtoptable13').style.display = "none";
	document.all('gtoptable14').style.display = "none";
	document.all('gtoptable15').style.display = "none";
	document.all('gtoptable16').style.display = "none";
	document.all('gtoptable17').style.display = "none";
	document.all('gtoptable18').style.display = "none";

  	document.all(id).style.display = "";
}
