var Cookie_GA = new function() {

this.setKeyValue = skv;
this.getKeyValue = gkv;
this.delKeyValue = dkv;
this._setVar = sv;
this.getCookie = gc;
this.setCookie = sc;
	
function skv(d, k, v) {
var a = new String(d);
if(a.length <= 0) return (v != "d3L")? ("/" + k + "=" + v):d;
var s = a.indexOf("/" + k + "=");
if(s == -1 && v != "d3L") return (s == -1)? (a + "/" + k + "=" + v):a;
var e = a.indexOf("/",s + 1);
if(e == -1) e = a.length;
var t = a.substring(s, e);
return (v == "d3L")? (a.replace(t, "")):(a.replace(t, "/" + k + "=" + v));
};

function gkv(d,k) {
var a = new String(d);
if(a.length <= 0) return "";
var s = a.indexOf("/" + k + "=");
if(s == -1) return "";
var e = a.indexOf("/",s + 1);
if(e == -1) e = a.length;
var t = a.substring(s, e);
return t;
}
	
function dkv(d,k) {
return skv(d,k,"d3L");
};
	
function sv(k,v,p,c) {
if(!p) return;
d = (!c)? gc("__utmv"):"";
z=d.split('.');
a = "";
if(z.length > 1) {for(i=1;i<z.length;i++) {a += z[i];} d = a;}
if(k instanceof Object && v instanceof Object) {for(i=0; i<k.length; i++) d = skv(d,k[i],v[i]);}
else d = skv(a,k,v);
p._setVar(d);
};
	
function gc(n) {
c = document.cookie;
l = c.length;           if(l <= 0) return "";
s = c.indexOf(n + "="); if(s == -1) return "";
s = s + n.length + 1;				
e = c.indexOf(";",s);	if(e == -1)e = l;
return unescape(c.substring(s, e));
};
	
function sc(n,v,e) {
d = new Date();
c = document.cookie;

d.setDate(d.getDate()+e);
c = n+"="+escape(v)+((e==null)? "":";expires="+d.toGMTString());
document.cookie = c;
};
};

