(function(){var a;a=(function(){b.prototype.value=null;b.prototype.cookieName="weblogssl_d";function b(){var c;c=this.getCookie();if(c){this.value=this.parseCookie(c)}}b.prototype.getCookie=function(){var d,e,g,f,c;e=document.cookie.split(";");g=this.cookieName+"=";for(f=0,c=e.length;f<c;f++){d=e[f];d=jQuery.trim(d);if(d.indexOf(g)===0){return d.substring(g.length,d.length)}}return null};b.prototype.parseCookie=function(c){return jQuery.parseJSON(decodeURIComponent(decodeURIComponent(c)))};b.prototype.getValue=function(){return this.value};b.prototype.clearCookie=function(){var c;c=new Date();c.setDate(c.getDate()-5);return document.cookie=this.cookieName+"=deleted; expires="+c.toUTCString()+"; domain="+WSL2.config.cookieDomain+"; path = /"};b.prototype.loginType=function(){return this.value.login_type||"none"};b.prototype.hasSession=function(){return this.value!==null};return b})();window.WSL2||(window.WSL2={});window.WSL2.Cookie=a}).call(this);
(function(){var a;a=(function(){function b(){var c;this.cookie=new WSL2.Cookie;if(this.cookie.hasSession()&&this.cookie.loginType()==="happing"){c=1}else{c=0}jQuery.post("/auth/cocacola/user/checkLogin",{cookie_present:c})}return b})();new a}).call(this);
