var fDesc=new Array(); fDesc[0] = "In this game there will be a colour shown and you need to create that colour by mixing the colours given. There are two scenarios, one is the use of additive colour mixing of lights, the other is the use of subtractive colour mixing of paints. When lights are mixed, their colours add up, for example, when red light and green light are added, yellow light is formed. When paints are mixed, their colours subtract from each other, for example, when yellow paint is mixed with cyan paint, green is formed. Click the colours to mix and then click OK to mix the colours. The faster you answer a question correctly, the higher your score."; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }