function Cookie(a,c,b,f,d,e){this.$document=a;this.$name=c;if((b)&&(b!=0)){this.$expiration=new Date((new Date()).getTime()+b*3600000)}else{this.$expiration=null}if(f){this.$path=f}else{this.$path=null}if(d){if(d=="_DOMAIN_"){this.$domain=getDomain()}else{if(d=="_HOST_"){this.$domain=a.location.host}else{this.$domain=d}}}else{this.$domain=null}if(e){this.$secure=true}else{this.$secure=false}}function getDomain(){if((document.location.host=="10.21.100.2")||(document.location.host=="bswst192")){return null}else{var a=document.location.host.split(".");if(a.length>1){return a.slice(1).join(".")}else{return null}}}function _Cookie_store(){var b="";for(var c in this){if((c.charAt(0)=="$")||((typeof this[c])=="function")){continue}if(b!=""){b+="&"}b+=c+":"+escape(this[c])}var a=this.$name+"="+b;if(this.$expiration){a+="; expires="+this.$expiration.toGMTString()}if(this.$path){a+="; path="+this.$path}if(this.$domain){a+="; domain="+this.$domain}if(this.$secure){a+="; secure"}this.$document.cookie=a}function _Cookie_load(b){var k=false;var e="";var d=this.$document.cookie;if(d==""){e="No cookies"}else{var c=d.indexOf(this.$name+"=");if(c==-1){e="Can't find start of cookie "+this.$name}else{c+=this.$name.length+1;var f=d.indexOf(";",c);if(f==-1){f=d.length}var h=d.substring(c,f);var j=h.split("&");for(var g=0;g<j.length;g++){j[g]=j[g].split(":")}for(var g=0;g<j.length;g++){this[j[g][0]]=unescape(j[g][1])}k=true}}if(b){window.status=e}return k}function _Cookie_remove(){var a;a=this.$name+"=";if(this.$path){a+="; path="+this.$path}if(this.$domain){a+="; domain="+this.$domain}a+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.$document.cookie=a}new Cookie();Cookie.prototype.store=_Cookie_store;Cookie.prototype.load=_Cookie_load;Cookie.prototype.remove=_Cookie_remove;
