text: var DataStorageHelper={SaveLocal:function(a,b){if(typeof(Storage)!=="undefined"){saveToLocalStorage(a,b)}else{saveCookie(a,b)}},ReadLocal:function(a){if(typeof(Storage)!=="undefined"){return readFromLocalStorage(a)}else{return readCookie(a)}},RemoveLocal:function(a){if(typeof(Storage)!=="undefined"){return removeFromLocalStorage(a)}else{return removeCookie(a)}}};function saveToLocalStorage(a,b){localStorage.setItem(a,JSON.stringify(b))}function readFromLocalStorage(b){var a=localStorage[b];a&&(a=JSON.parse(a));return a}function removeFromLocalStorage(a){localStorage.removeItem(a)}function saveCookie(b,c){if(navigator.cookieEnabled){var a=[b,"=",JSON.stringify(c),"; domain=.",window.location.host.toString(),"; path=/;"].join("");document.cookie=a}else{alert("Включите cookie для комфортной работы с этим сайтом")}}function readCookie(b){if(navigator.cookieEnabled){var a=document.cookie.match(new RegExp(b+"=([^;]+)"));a&&(a=JSON.parse(a[1]));return a}else{alert("Включите cookie для комфортной работы с этим сайтом");return null}}function removeCookie(c){if(navigator.cookieEnabled){var a=new Date();a.setTime(a.getTime()-(1000*60*60*24));var b=[c,"=; domain=.",window.location.host.toString(),"; path=/","; expires=",a.toGMTString(),";"].join("");document.cookie=b}else{alert("Включите cookie для комфортной работы с этим сайтом")}};