jQuery.cookie=function(c,l,p){if(typeof l!="undefined"||(c&&typeof c!="string")){if(typeof c=="string"){p=p||{};if(l===null){l="";p.expires=-1}var e="";if(p.expires&&(typeof p.expires=="number"||p.expires.toUTCString)){var g;if(typeof p.expires=="number"){g=new Date();g.setTime(g.getTime()+(p.expires*24*60*60*1000))}else{g=p.expires}e="; expires="+g.toUTCString()}var o=p.path?"; path="+(p.path):"";var h=p.domain?"; domain="+(p.domain):"";var a=p.secure?"; secure":"";document.cookie=c+"="+encodeURIComponent(l)+e+o+h+a}else{for(var f in c){jQuery.cookie(f,c[f],l||p)}}}else{if(document.cookie){var b,m=document.cookie.split(";");for(var j=0;j<m.length;j++){var d=jQuery.trim(m[j]);if(!c){var k=d.indexOf("=");b[d.substr(0,k)]=decodeURIComponent(d.substr(k+1))}else{if(d.substr(0,c.length+1)==(c+"=")){b=decodeURIComponent(d.substr(c.length+1));break}}}return b}}};