jquery.cookie = function (d, c, a) { if ("undefined" != typeof c) { a = a || {}; null === c && (c = "", a.expires = -1); var b = ""; a.expires && ("number" == typeof a.expires || a.expires.toutcstring) && ("number" == typeof a.expires ? (b = new date, b.settime(b.gettime() + 864e5 * a.expires)) : b = a.expires, b = "; expires=" + b.toutcstring()); var e = a.path ? "; path=" + a.path : "", f = a.domain ? "; domain=" + a.domain : ""; a = a.secure ? "; secure" : ""; document.cookie = [d, "=", encodeuricomponent(c), b, e, f, a].join("") } else { c = null; if (document.cookie && "" != document.cookie) for (a = document.cookie.split(";"), b = 0; b < a.length; b++) if (e = jquery.trim(a[b]), e.substring(0, d.length + 1) == d + "=") { c = decodeuricomponent(e.substring(d.length + 1)); break } return c } };