/*!jQuery Cookie plugin
* Copyright (c) 2010 Klaus Hartl (stilbuero.de)
*/
jQuery.cookie = function(d, b, a) { if (arguments.length > 1 && (b === null || typeof b !== "object")) { a = jQuery.extend({}, a); if (b === null) a.expires = -1; if (typeof a.expires === "number") { var g = a.expires, e = a.expires = new Date; e.setDate(e.getDate() + g) } return document.cookie = [encodeURIComponent(d), "=", a.raw ? String(b) : encodeURIComponent(String(b)), a.expires ? "; expires=" + a.expires.toUTCString() : "", a.path ? "; path=" + a.path : "", a.domain ? "; domain=" + a.domain : "", a.secure ? "; secure" : ""].join("") } a = b || {}; var c, f = a.raw ? function(a) { return a } : decodeURIComponent; return (c = new RegExp("(?:^|; )" + encodeURIComponent(d) + "=([^;]*)").exec(document.cookie)) ? f(c[1]) : null };
/*!@project JSON Cookie
* @author Randall Morey
* @version 0.9
*/
(function(a) { var b = function(a) { return typeof a === "object" && !(a instanceof Array) && a !== null }; a.extend({ getJSONCookie: function(c) { var b = a.cookie(c); return b ? JSON.parse(b) : {} }, setJSONCookie: function(f, e, c) { var d = ""; c = a.extend({ expires: 90, path: "/" }, c); if (!b(e)) throw new Error("JSONCookie data must be an object"); d = JSON.stringify(e); return a.cookie(f, d, c) }, removeJSONCookie: function(b) { return a.cookie(b, null) }, JSONCookie: function(b, c, d) { c && a.setJSONCookie(b, c, d); return a.getJSONCookie(b) } }) })(jQuery);
