/*
 * jQuery button plugin for IE
 *
 * version 1.00 (01/30/2009)
 *
 */

$(document).ready(function(){
	$('button[type=submit]').live('click',function () {
		if($.browser.msie && !$(this).attr('disabled')) {
			var outer = $('body').append('<div id="_botton_ie_container" style="height:0px;display:none;"></div>');
			$('#_botton_ie_container').html($(this).clone());
			var val = outer.html().match(/value="(.*?)"/);
			var value = '';
			if(val){ value = val[1] };
			$(this).after('<input id="_botton_ie_helper" type="submit" style="display:none;" name="' + $(this).attr('name') + '" value="' + value + '" />');
			$('button').attr('name','');
			$('button').attr('disabled','disabled');
			$('#_botton_ie_helper').click();
			return false;
		}
	});
});

