text: Motif.Page.include("Motif.Collections.Hashtable.js"),Motif.Page.include("Motif.Net.HttpCookie.js"),Motif.Net.HttpCookieCollection=function(t){Motif.Utility.extend(this,"Motif.Collections.Hashtable"),this.__class.push("KWik.Net.HttpCookieCollection"),this.add=function(t){document.cookie=t.toString(),this.Motif$Collections$Hashtable.add(t.name,t)},this.remove=function(t){var e=this.Motif$Collections$Hashtable.remove(e.name,e);e.value="",e.expires=new Date(1800,1,1),document.cookie=e.toString()},this.removeAll=function(){for(var t=this.Motif$Collections$Hashtable.removeAll(),e=0;e<t.length;e++)t[e].value="",t[e].expires=new Date(1800,1,1),document.cookie=t[e].toString();return t},this.getInt=function(t){var e=this.getItem(t,null);return e=null!=e?parseInt(e.value):0,isNaN(e)?0:e},this.getFloat=function(t){var e=this.getItem(t,null);return e=null!=e?parseFloat(e.value):0,isNaN(e)?0:e},this.getBoolean=function(t){var e=this.getItem(t,null);return null==e?!1:"true"==e.value||0!=this.getInt(t)?!0:!1},this.clone=function(){return new Motif.Net.HttpCookieCollection({items:this.items})},this.main=function(t){for(var e=document.cookie.split(";"),i=0;i<e.length;i++){var o=e[i].substr(0,e[i].indexOf("=")),n=e[i].substr(e[i].indexOf("=")+1);this.items[o]=new Motif.Net.HttpCookie({name:o,value:unescape(n)})}t&&this.configure(t)},this.main(t)};