﻿// malayalam-specific code in addition to ../functions9.js
var _unicode51 = true;

function localInitialise () {
	// set reveal for Chillus
	document.getElementById('kchillu').onclick = function () { if (_unicode51) { addandcapture('\u0D7F', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D15\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('lchillu').onclick = function () { if (_unicode51) { addandcapture('\u0D7D', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D32\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('ldotbelowchillu').onclick = function () { if (_unicode51) { addandcapture('\u0D7E', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D33\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('nchillu').onclick = function () { if (_unicode51) { addandcapture('\u0D7B', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D28\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('ndotbelowchillu').onclick = function () { if (_unicode51) { addandcapture('\u0D7A', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D23\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('rchillu').onclick = function () { if (_unicode51) { addandcapture('\u0D7C', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D30\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };

// do same for phonic2
if (document.getElementById('kchillu2')) {
	document.getElementById('kchillu2').onclick = function () { if (_unicode51) { addandcapture('\u0D7F', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D15\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('lchillu2').onclick = function () { if (_unicode51) { addandcapture('\u0D7D', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D32\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('ldotbelowchillu2').onclick = function () { if (_unicode51) { addandcapture('\u0D7E', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D33\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('nchillu2').onclick = function () { if (_unicode51) { addandcapture('\u0D7B', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D28\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('ndotbelowchillu2').onclick = function () { if (_unicode51) { addandcapture('\u0D7A', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D23\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
	document.getElementById('rchillu2').onclick = function () { if (_unicode51) { addandcapture('\u0D7C', this.nextSibling.firstChild.nextSibling) } else { addandcapture('\u0D30\u0D4D\u200D', this.nextSibling.firstChild.nextSibling) } };
}
}