/*
 * JSMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://www.smallsharptools.com/
*/

(function($){$.fn.titleWatermark=function(options){var opts=$.extend({},$.fn.titleWatermark.defaults,options);return this.each(function(){var elem=$(this);var title=$(this).attr('title');if(title!==''){$(this).attr('title','');var elemWidth=$(this).width();var html='<span class="'+opts.watermark_class+'"><span>'+title+'</span></span>';$(this).after(html);var spanWidth=$(this).next('span.'+opts.watermark_class).width();$(this).next('span.'+opts.watermark_class).css('display','inline-block').css('width',elemWidth+'px').css('margin-left',(elemWidth*-1)+'px').find('span').hide();$(this).next('span.'+opts.watermark_class).click(function(){$(elem).focus();});var hideWatermark=function(){$(this).next('span.'+opts.watermark_class).find('span').hide();};var showWatermark=function(){if($(this).val()===''){$(this).next('span.'+opts.watermark_class).find('span').show();}};$(this).focus(hideWatermark).blur(showWatermark);showWatermark.apply(this,[],[]);}});};$.fn.titleWatermark.defaults={watermark_class:'Watermark'};})(jQuery);

