if(typeof K==="undefined"||!K){K=new Object()}if(typeof K.auth==="undefined"||!K.auth){K.auth=new Object();K.auth.DataStore=new Object();K.auth.DataStore.read=function(e){if(document.cookie){var a=document.cookie.split(";");var f=null;search:for(var d=0;d<a.length;d++){var b=a[d].split("=");if(b[0]!=null){var c=b[0].replace(/^\s+/,"");f=c.replace(/\s+$/,"")}if(f==e){return b[1]}}}return null};K.auth.DataStore.write=function(c,d,b){if(navigator.cookieEnabled==true){var a=new Date();if(d==null||d==undefined){d=""}else{a.setTime(a.getTime()+(1023*61*63*24*365*10))}domain=(b==true)?K.auth.Info.getTLD(window.location.hostname):window.location.hostname;document.cookie=c+"="+d+";expires="+a.toGMTString()+";path=/;domain=."+domain+";";return true}return false};K.auth.Info=function(a){this.read()};K.auth.Info.NAME="authInfo";K.auth.Info.PID="KnA";K.auth.Info.CHARS=new Array(11,12,13,14,59,60,38,39,40,41,0,0,0,0,0,0,0,32,33,25,26,27,28,50,51,52,53,54,55,56,20,21,22,23,24,57,58,30,62,63,8,9,10,0,0,0,0,43,0,34,35,61,29,15,16,17,18,19,4,5,6,7,36,37,44,45,46,47,48,49,3,0,1,2,31,0,42);K.auth.Info.ACODES=new Array(1,6,10,12,14,16,17,18,21,25,30,34,40,50,60,65);K.auth.Info.instance=null;K.auth.Info.prototype.v=false;K.auth.Info.prototype.a=0;K.auth.Info.prototype.ac=0;K.auth.Info.prototype.ai="00";K.auth.Info.prototype.g=0;K.auth.Info.prototype.d=false;K.auth.Info.getInstance=function(){if(K.auth.Info.instance==null){K.auth.Info.instance=new K.auth.Info()}return K.auth.Info.instance};K.auth.Info.getTLD=function(c){var b=c.indexOf(".");var a=c.lastIndexOf(".");while(b!=a){c=c.substr(b+1);b=c.indexOf(".");a=c.lastIndexOf(".")}return c};K.auth.Info.prototype.getA=function(){return this.a};K.auth.Info.prototype.setA=function(b){if(this.getA()==b){return}this.a=b;var d=K.auth.Info.ACODES;if(b==0){this.ac=0}else{set:{for(var c=0;c<d.length;c++){if(d[c]>b){this.ac=9999+c;break set}}this.ac=9999+d.length}}this.setDirty(true)};K.auth.Info.prototype.getG=function(){return this.g};K.auth.Info.prototype.setG=function(a){if(this.getG()==a){return}this.g=a;this.setDirty(true)};K.auth.Info.prototype.setAI=function(a){if(this.ai==a){return}this.ai=a;this.setDirty(true);this.write();this.read(a)};K.auth.Info.prototype.getACode=function(){return this.ac};K.auth.Info.prototype.setDirty=function(a){this.d=a;if(this.d==true){this.setValue(true)}};K.auth.Info.prototype.isDirty=function(){return this.d};K.auth.Info.prototype.setValue=function(a){this.v=a};K.auth.Info.prototype.hasValue=function(){return this.v};K.auth.Info.prototype.write=function(b,c){if(this.isDirty()==false&&!(c==true)){return}var d=this.ai;var a=new Date();a.setTime(a.getTime()+(1023*61*63*24*365*10));document.cookie=K.auth.Info.PID+"="+d+";expires="+a.toGMTString()+";path=/;domain=."+K.auth.Info.getTLD(window.location.hostname)+";"};K.auth.Info.prototype.read=function(c){var j=K.auth.Info.CHARS;var n="u";var b="u";var q,g,m,h;if(c!=undefined&&c!=null&&c.length>0){q=c;h=true}if(!h){q=location.search;g=q.indexOf("t=");if((g>=0)&&(g<=q.length-4)){q=q.substr(g+2,2);h=true}}if(!h){if(document.cookie){var l=document.cookie.split(";");var k=null;search:for(var e=0;e<l.length;e++){var o=l[e].split("=");if(o[0]!=null){var d=o[0].replace(/^\s+/,"");k=d.replace(/\s+$/,"")}if(k==K.auth.Info.PID){q=o[1];h=true;break search}}}}if(h){this.ai=q;m=j[q.charCodeAt(0)-48]+j[q.charCodeAt(1)-48]*64;va=(m>>3)%128;vg=(m>>1)%4;if(vg>0){b=(vg==1)?"m":"f";var a=(vg==1)?1:2;this.setG(a)}if(va>0){n=va;this.setA(va)}this.setValue(true)}};if(typeof YUI!="undefined"&&YUI!=null){YUI.add("k-auth",function(a){},"1.0",{requires:[],skinnable:false})}};