define(function (require, exports, module){
	return function(jquery){
		(function(jQuery){
			jQuery.extend({
				cookie: function(e, t, n) {
				  if(arguments.length > 1 && String(t) !== "[object Object]") {
				    n = jQuery.extend({}, n);
				    if(t === null || t === undefined) n.expires = -1;
				    if(typeof n.expires == "number") {
				      var r = n.expires,
				        i = n.expires = new Date;
				      i.setDate(i.getDate() + r)
				    }
				    return t = String(t), document.cookie = [encodeURIComponent(e), "=", n.raw ? t : encodeURIComponent(t), n.expires ? "; expires=" + n.expires.toUTCString() : "", n.path ? "; path=" + n.path : "", n.domain ? "; domain=" + n.domain : "", n.secure ? "; secure" : ""].join("")
				  }
				  n = t || {};
				  var s, o = n.raw ? function(e) {
				      return e
				    } : decodeURIComponent;
				  return(s = (new RegExp("(?:^|; )" + encodeURIComponent(e) + "=([^;]*)")).exec(document.cookie)) ? o(s[1]) : null
				}
			});
		})(jquery);
	}
});