// Textareas

function setPictureAtCursorPosition(target , picture) {
	$('#' + target).wysiwyg('insertImage', picture);
}

var $j = jQuery;
$j.fn.extend({
	toggleValue : function (defaultText) {
		return this.each(function() {
			$j(this).focus(function() {
				if ($j(this).val() == defaultText) {
					$j(this).val('');
				}
				$j(this).blur(function () {
					if ($j.trim($j(this).val()) == '') {
						$j(this).val(defaultText);
					}
				});
			});
		});
	}
});
