$.plugin = function(name, object) {
	$.fn[name] = function(options) {
		// optionally, you could test if options was a string
		// and use it to call a method name on the plugin instance.
		return this.each(function() {
			if ( ! $.data(this, name) ) {
				$.data(this, name, Object.create(object).init(options, this));
			}
		});
	};
};

