(function($) {

    $.fn.dsDefaultValue = function() {
        this.each(function() {
            var $this = $(this);

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

                if (this.value == this.dsDefaultValue) {
                    this.value = '';
                }
            });

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

})(jQuery);
