/* 
    Show and hide default field 
    value when mouse over and 
    mouse out
    by Yuriy Ovcharenko 
    <angerme@gmail.com>
    http://anger.net.ua
*/

(function($){
     $.fn.extend({
            lurk: function(value){
	            $(this).val(value);

                $(this).mouseup(function(){
                    console.log('up');
                    if(this.value == value) { this.value = ''; }
                }); 

                $(this).blur(function(){
	                if(this.value.length == 0) { this.value = value; }
                });

                $(this).focus(function(){
	                if(this.value == value) { this.value = ''; }
                });

            }
    });
})(jQuery);


