if(typeof Jack == "undefined")
	Jack = {};
Jack.Button = Class.create();
Object.extend(Jack.Button.prototype, {
	initialize: function(link) {	
		this.link = $(link);
		this.button = Element.extend(document.createElement('input'))
		this.button.value = this.link.getInnerText();
		this.button.type = 'button';
		this.button.className = this.link.className;
		this.button.addClassName('button')
			.observe('click', function(event) {
				// @todo why does IE6 this.link.href return about:blank url?
				window.location = (Prototype.Browser.IE) ? this.link.getAttribute('href', 2) : this.link.href;			   
			}.bindAsEventListener(this));
		this.link.parentNode.replaceChild(this.button, this.link);
	}
});