var app = { loader: '
', loaderBG: '
' } $.widget("ui.styleInput", { _init:function(){ var self = this; var element = this.element; element.addClass("ui-widget"); if( element.is("input[type='text']") || element.is("input[type='file']") || element.is("textarea") || element.is("input[type='password']")) { element.css('padding', '5px'); element.addClass('ui-state-default ui-corner-all app-button').hover(function() { element.addClass('ui-state-hover'); }, function() { if( element != document.activeElement ) { element.removeClass('ui-state-hover'); } }).focus(function() { element.addClass('ui-state-hover'); }).blur(function() { element.removeClass('ui-state-hover'); }); } } }); $(function() { $("#fblikebox").hover( function() { $(this).stop().animate( {right: 0}, 1000 ); }, function() { $(this).stop().animate( {right: -292}, 1000, function() { fbisopened = false; } ); } ); });