/* 
 *  Inheritance functions... 
 */

(function() {
    jQuery.inherits = function(A, C) {
        function B() {}
        B.prototype = C.prototype;
        A.prototype = new B();
        A.prototype.constructor = A
    }
})(); (function() {
    jQuery.fn.equals = function(A) {
        return this.get(0) == A.get(0)
    }
})(); (function() {
    jQuery.fn.hasParent = function(A) {
        var B = false;
        this.parents().map(function() {
            if ($(this).equals(A)) {
                B = true
            }
        });
        return B
    }
})();