jQuery(
	jQuery('.ui-state-default').hover(
		function () { jQuery(this).addClass('ui-state-hover'); },
		function () { jQuery(this).removeClass('ui-state-hover'); }
	).mousedown(
		function () { jQuery(this).addClass('ui-state-active'); }
	).mouseout(
		function () { jQuery(this).removeClass('ui-state-active'); }
	)
);