(function($)
{
	$.fn.mybutton = function(options)
	{
		var _options =
		{
//		      color: 'yellow',
//		      type: 'bottom'
	 	};

		return this.each(function()
		{
			options && $.extend(_options, options);

			var $this = $(this);
			var id = $this.attr('id'); $this.attr('id', null);

			$this.wrap(function()
			{
				return '<div' + (id ? ' id="' + id + '"' : '') + ' class="button"/>';
			});

			$this.before('<div class="edge left"></div>');
			$this.after('<div class="edge right"></div>');
		});
	}
})(jQuery);
