<script>
var raz = document.getElementsByName('menu-state');
for (var i = 0; i < raz.length; i++) {
raz[i].onclick = function() {
localStorage.setItem('IRadioRaz', this.value);
}
}
if(localStorage.getItem('IRadioRaz')) {
var IRadioRaz = localStorage.getItem('IRadioRaz');
document.querySelector('input[name="menu-state"][value="' + IRadioRaz + '"]').setAttribute('checked','checked');
}
</script>