var submitButtonReplacement = new Class({
	initialize: function(classname){
		this.classname = classname;
		this.allButtons = $$('input.'+classname);
		this.replaceButtons();
	},
	replaceButtons :  function(){
		thisClass = this;
		this.allButtons.each(function(input, index){
			input.setStyle('display', 'none');
			var theDiv = new Element('div', {'class': thisClass.classname+'-wrapper'});
			var theEm = new Element('em');
			var theAnchor = new Element('a', {
				'href': '#',
				'class': input.className,
				'html': input.value,
				'events': {
					'click': function(){
						input.click();
						return false;
					}
				}
			});
			
			theEm.inject(theAnchor, 'top');
			theDiv.adopt(theAnchor);
			theDiv.inject(input, 'before');
		});
	}
});
