if ((id == 100) && (type == 'off') && (arrSound['v1'] != 1)) {
ion.sound.play('off');
arrSound['v1'] = 1;
} else if ((id == 100) && (type == 'on') && (arrSound['v1'] == 1)) {
ion.sound.play('on');
arrSound['v1'] = 0;
}
if (id === 100) {
(type === 'off') ? ion.sound.play('off') | ion.sound.play('on');
arrSound['v1'] = (arrSound['v1'] !== 1) ? 1 : 0;
}