function initDiaks() {
	if (document.getElementById('checkWords')) {
		var x = document.getElementsByTagName('a');
		for (var i=0;i<x.length;i++) {
			if (x[i].className == 'diak') {
				x[i].onmouseover = function () {
					y = this.getElementsByTagName('span');
					for (var j=0;j<y.length;j++) if (y[j].className != 'hidden') {
						y[j].style.display = 'block';
						y[j].onmouseout = function () {
							this.style.display = 'none';
						}
						z = this.getElementsByTagName('strong');
						for (var k=0;k<z.length;k++) {
							z[k].onclick = function () {
								w = this.parentNode.parentNode.parentNode;
								v = w.getElementsByTagName('input');
								v[0].value += this.firstChild.nodeValue;
							}
						}
					}
				}
			}
		}
	}
}

function czysc(co) {
	if (co.value == 'tu podaj słówko') {
		co.value='';
	}
}

window.onload = function () {
	initDiaks();
}
