function notice_color(num)
{
	document.getElementById(num).style.backgroundColor='FDFFF1';
}
function notice_hide(num)
{
	document.getElementById(num).style.backgroundColor='F3F9D7';
}



function best_color(num)
{
	document.getElementById(num).style.backgroundColor='F8FFD8';
}
function best_hide(num)
{
	document.getElementById(num).style.backgroundColor='D5E585';
}



function best01_color(num)
{
	document.getElementById(num).style.backgroundColor='F8FFD8';
}
function best01_hide(num)
{
	document.getElementById(num).style.backgroundColor='F0FCB7';
}


function sort_color(num)
{
	document.getElementById(num).style.backgroundColor='F8FFD8';
}
function sort_hide(num)
{
	document.getElementById(num).style.backgroundColor='E0ED9D';
}


function sort01_color(num)
{
	document.getElementById(num).style.backgroundColor='F8FFD8';
}
function sort01_hide(num)
{
	document.getElementById(num).style.backgroundColor='F0FCB7';
}



/* boardToggle */
function boardToggle(el) {
	var toggleContainer = document.getElementById(el);
	triggers = toggleContainer.getElementsByTagName("a");

	for(i = 0; i < triggers.length; i++) {
		if (triggers.item(i).href.split("#")[1])
			triggers.item(i).targetEl = document.getElementById(triggers.item(i).href.split("#")[1]);

		if (!triggers.item(i).targetEl)
			continue;

		triggers.item(i).targetEl.style.display = "none";
		triggers.item(i).onclick = function () {
			if (toggleContainer.current == this) {
				this.targetEl.style.display = "none";
				this.className = "";
				toggleContainer.current = null;
			} else {
				if (toggleContainer.current) {
					toggleContainer.current.targetEl.style.display = "none";
					toggleContainer.current.className = "";
				}
				this.targetEl.style.display = "";
				this.className = "selected";
				toggleContainer.current = this;
			}
			return false;
		}
	}
}