(function ($) {
    $.widget("ett.buttonSt", {
        options: {
            buttonName: null
        },

        _create: function () {
        },

        _init: function () {
            this.element.hover(
				function(){
					$(this).addClass("state-hover");
					$(this)
						.mousedown(
							function(){
								$(this).addClass("state-mousedown");
							})
						.mouseup(
							function(){
								$(this).removeClass("state-mousedown");
							}
						);
					
				}, function(){
					$(this)
						.removeClass("state-hover")
						.removeClass("state-mousedown");
				}
			);
        },
        setOption: function (key, value) {
            if (value != undefined) {
                this.options[key] = value;
                return this;
            }
            else {
                return this.options[key];
            }
        }
    })
})(jQuery)
