
jQuery.SimpleClass = (function() {
	function subclass() {}
	return {
	    create: function(parent) {
		function klass() {
		    this.initialize.apply(this, arguments);
		}

		var index = 0;
		if(jQuery.isFunction(parent)) {
		    index = 1;
		    subclass.prototype = parent.prototype;
		    klass.prototype = new subclass;
		}
		for(; index < arguments.length; ++index) {
		    jQuery.extend(klass.prototype, arguments[index]);
		}
		return klass;
	    }
	}
    })();

