/** delegate - simple event delegation  Copyright (c) 2008 Michael Manning (http://actingthemaggot.com) Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.*/
(function(A){A.fn.extend({delegate:function(B,C,E,D){return this.bind(B,function(H){if(E){H.preventDefault()}if(D){H.stopPropagation()}var G=A(H.target);for(var F in C){if(G.is(F)){return C[F].apply(this,A.makeArray(arguments))}}})}})})(jQuery);