var Timerid = 0;


function resetGuitar() {
	var Count;
	clearTimeout(Timerid);
	for (Count=0; Count < 42; Count++) {	
	 	document.getElementById(Count).style.backgroundColor ="#ffffff";
	 	}

}

function blink1 (el) {
	var Count;
	var element = "blink('"+el+"')";
	for (Count = 0; Count < 6; Count++) {
		if  (document.getElementById(el).style.backgroundColor =="#000F00"){document.getElementById(el).style.backgroundColor ="#FF0000";}
		else{document.getElementById(el).style.backgroundColor ="#000F00";}	
		}
	Timerid = setTimeout ("blink('blink1')", 500)
}

function blink (el) {
		if  (document.getElementById(el).className =="logokleur"){document.getElementById(el).className ="blinkblank";}
		else {document.getElementById(el).className ="logokleur"}	
	Timerid = setTimeout ("blink('"+el+"')", 200);
}

function blinkuit (el) {
document.getElementById(el).className ="blinkblank";
clearTimeout(Timerid);
}


function setakkoord()
{
resetGuitar();
var Item,ArrNr;
var arraycord= new Array(10) ;
arraycord[0] = "";
Item = document.guitar.chord.value;
ArrNr=0;
	if (Item != -1) 
	{
	for (Count=0; Count < Item.length; Count++)  
		{
		if (Item.charAt(Count)==";"){ArrNr++;arraycord[ArrNr]="";}
		else{arraycord[ArrNr] = arraycord[ArrNr] + Item.charAt(Count);}
		}

	
	for (Count=1; Count < ArrNr+1; Count++)
		{
		t = Count
		document.getElementById(arraycord[t]).style.backgroundColor ="#800000";
		}
	
	for (Count=0; Count < 7; Count++)  
		{
		if (Item.charAt(Count)=="1"){document.getElementById(Count).style.backgroundColor ="#00FF00";}
		}	
	}
}





