/*
	Extension to prototype library: Class.extend(source,additions)
	
	Free for all uses. Do whatever you like with it.
	
	Contact: ken@wanderingken.com
	Reference: 
*/
Object.extend(Class, {
	extend: function(source,additions) {
		var newclass = Class.create();
		if ($C(source)) {
			Object.extend($C(newclass),$C(source));
		}
		Object.extend($C(newclass), additions);
		return newclass;
	}
});

function $C(object) { return object.prototype; }