/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
jQuery.cookie=function(n,v,o){if(typeof v!='undefined'){o=o||{};if(v===null){v='';o.expires=-1;}var e='';if(o.expires&&(typeof o.expires=='number'||o.expires.toUTCString)){var da;if(typeof o.expires=='number'){da=new Date();da.setTime(da.getTime()+(o.expires*24*60*60*1000));}else{da=o.expires;}e='; expires='+da.toUTCString();}var p=o.path ?'; path='+(o.path):'';var d=o.domain?'; domain='+(o.domain):'';var s=o.secure?'; secure':'';document.cookie=[n,'=',encodeURIComponent(v),e,p,d,s].join('');}else{var cv=null;if(document.cookie&&document.cookie!=''){var cs=document.cookie.split(';');for(var i=0;i<cs.length;i++){var c=jQuery.trim(cs[i]);if(c.substring(0,n.length+1)==(n+'=')){cv=decodeURIComponent(c.substring(n.length+1));break;}}}return cv;}};