/*jslint eqeqeq: true, browser: true */
/*global $, jQuery */

(function() {

$('.watermark').each(function() {
if ($(this).is('textarea') || $(this).is(':text')) {
if ($(this).val() === '') {
$(this).val($(this).attr('rel')).css('color', '#CCC');
}

$(this).bind('focus', function() {
if ($(this).val() === $(this).attr('rel')) {
$(this).val('').css('color', '#000');
}
}).
bind('blur', function() {
if ($(this).val() === '') {
$(this).val($(this).attr('rel')).css('color', '#CCC');
}
});
}
});

})();