 var storage_clr = 50; // 2%
 function ls_inic() {return window.localStorage ? true : false;}
 if (ls_inic() == true) var storage = window.localStorage; else var storage = "";
 function ls_sv(key,val) {storage[key+" "+location.hostname] = val;}
 function ls_gt(key) {key = key+" "+location.hostname; if (storage[key]) var r = storage[key]; else var r = ""; return r;}
 function ls_rm(key) {storage.removeItem(key+" "+location.hostname);}
 function ls_clr() {storage.clear();}

 function ls_rnd(nm)
 {
  var ls_r = false;
  if (storage != "") {var rnd = Math.floor(Math.random()*storage_clr)+1; if (rnd == storage_clr) ls_r = true;}
  return ls_r;
 }