var store=(function(){var d={},f=window,e=f.document,c="localStorage",b="globalStorage",g;d.set=function(h,i){};d.get=function(h){};d.remove=function(h){};d.clear=function(){};if(c in f&&f[c]){g=f[c];d.set=function(h,i){g.setItem(h,i)};d.get=function(h){return g.getItem(h)};d.remove=function(h){g.removeItem(h)};d.clear=function(){g.clear()}}else{if(b in f&&f[b]){g=f[b][f.location.hostname];d.set=function(h,i){g[h]=i};d.get=function(h){return g[h]&&g[h].value};d.remove=function(h){delete g[h]};d.clear=function(){for(var h in g){delete g[h]}}}else{if(e.documentElement.addBehavior){function a(){if(g){return g}g=e.body.appendChild(e.createElement("div"));g.style.display="none";g.addBehavior("#default#userData");g.load(c);return g}d.set=function(h,i){var j=a();j.setAttribute(h,i);j.save(c)};d.get=function(h){var i=a();return i.getAttribute(h)};d.remove=function(h){var i=a();i.removeAttribute(h);i.save(c)};d.clear=function(){var l=a();var j=l.XMLDocument.documentElement.attributes;l.load(c);for(var k=0,h;h=j[k];k++){l.removeAttribute(h.name)}l.save(c)}}}}return d})();