﻿var thickboxL10n = {
    next: "Next &gt;",
    prev: "&lt; Prev",
    image: "Image",
    of: "of",
    close: "Close"
};

jQuery(document).ready(function () {
    jQuery('label.insideTextarea').labelInsideTextarea();
});

jQuery.fn.labelInsideTextarea = function() {
    return this.each(function() {
        var field = jQuery('#' + jQuery(this).attr('for'));
        var label = jQuery(this);
        if (field) {
            if (field.val()) {
                label.hide();
            }
            field.focus(function() {
                label.hide();
            }).blur(function() {
                if (!jQuery(this).val()) label.show();
            });
        }
    });
};
