// JavaScript Document

var aika;

function  ShowLayerRenkaat() {
	clearTimeout(aika);
	var myLayer = document.getElementById('LayerRenkaat');
	myLayer.style.visibility = 'visible';
}
 
function HideLayerRenkaat() {	
	if (aika) clearTimeout(aika);
	aika = setTimeout("var myLayer = document.getElementById('LayerRenkaat'); myLayer.style.visibility = 'hidden'", 500);
}


/* TYYLIEN VAIHTO LINKEILLE */
/*
function checkStyle() {

	if (document.getElementById("2_link").onclick = true) {
		document.getElementById("2_link").style.backgroundColor = "red";
		}		
}

function changeStyle(data) {
	document.getElementById(data+"_link").className = "act"
}
*/


/*
function changeStyle(data) {

var linkCount = 6;
var linkArray = new Array();

for (i=0; i < linkCount; i++) {
                linkArray.push((i+1) + "_link");
				document.getElementById(linkArray[i]).setAttribute("class", "norm");
				document.getElementById(data+"_link").setAttribute("class", "act"); 
                }  		
		return true;				
}
*/

