if(typeof jQuery != 'undefined') {
$('.yiiForm INPUT[type=text], .yiiForm INPUT[type=password], .yiiForm TEXTAREA, .yiiForm SELECT').addClass('ui-state-default ui-corner-all');
$('.yiiForm INPUT[type=submit],.yiiForm INPUT[type=button], .yiiForm INPUT[type=file]').addClass(' ui-state-default ui-corner-all').hover(
    function(){
        $(this).addClass('ui-state-hover')
    },
    function(){
        $(this).removeClass('ui-state-hover')
    }
);

$('a.button').hover(
    function(){
        $(this).addClass('ui-state-hover')
    },
    function(){
        $(this).removeClass('ui-state-hover')
    }
);
}