var storage_cookies={domain:"",path:"/",expiry:30,data:new Hash(),add:function(A,B){this.data.set(A,B)},remove:function(A){this.data.remove(A)},get:function(A){try{return this.data.get(A)}catch(B){return null}},commit:function(B){var A="";this.data.each(function(D,C){A+=String(C)+"=>"+String(D)+"|"});A=A.substr(0,Number(A.length)-1);Cookie.set(B,A,{expiry:this.expiry,path:this.path,domain:this.domain})},load:function(C){this.data=new Hash();var B=Cookie.get(C);if(B==null){return B}B=B.split("|");for(i=0;i<B.length;i++){var A=B[i].split("=>");this.data.set(A[0],A[1])}},unload:function(A){this.deleteCookie(A,this.path,this.domain)},getCookie:function(C){var D=document.cookie.indexOf(C+"=");var A=D+C.length+1;if((!D)&&(C!=document.cookie.substring(0,C.length))){return null}if(D==-1){return null}var B=document.cookie.indexOf(";",A);if(B==-1){B=document.cookie.length}return unescape(document.cookie.substring(A,B))},setCookie:function(C,E,A,H,D,G){var B=new Date();B.setTime(B.getTime());if(A){A=A*1000*60*60*24}var F=new Date(B.getTime()+(A));document.cookie=C+"="+escape(E)+((A)?";expires="+F.toGMTString():"")+((H)?";path="+H:"")+((D)?";domain="+D:"")+((G)?";secure":"")},deleteCookie:function(A,C,B){if(this.getCookie(A)){document.cookie=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}};