/*
 * jQuery Tiny Pub/Sub - v0.6 - 1/10/2011
 * http://benalman.com/
 *
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(A){var B=A("<b/>");
A.subscribe=function(C,D){function E(){return D.apply(this,Array.prototype.slice.call(arguments,1))
}E.guid=D.guid=D.guid||(A.guid?A.guid++:A.event.guid++);
B.bind(C,E)
};
A.unsubscribe=function(){B.unbind.apply(B,arguments)
};
A.publish=function(){B.trigger.apply(B,arguments)
}
})(jQuery);
jQuery.cookie=function(D,E,B){if(arguments.length>1&&String(E)!=="[object Object]"){B=jQuery.extend({},B);
if(E===null||E===undefined){B.expires=-1
}if(typeof B.expires==="number"){var G=B.expires,C=B.expires=new Date();
C.setDate(C.getDate()+G)
}E=String(E);
return(document.cookie=[encodeURIComponent(D),"=",B.raw?E:encodeURIComponent(E),B.expires?"; expires="+B.expires.toUTCString():"",B.path?"; path="+B.path:"",B.domain?"; domain="+B.domain:"",B.secure?"; secure":""].join(""))
}B=E||{};
var A,F=B.raw?function(H){return H
}:decodeURIComponent;
return(A=new RegExp("(?:^|; )"+encodeURIComponent(D)+"=([^;]*)").exec(document.cookie))?F(A[1]):null
};
