/**
*	@name							Defaultvalue
*	@descripton						Gives value to empty inputs
*	@version						1.3.1
*	@requires						Jquery 1.3.2
*
*	@author							Jan Jarfalk
*	@author-email					jan.jarfalk@unwrongest.com
*	@author-website					http://www.unwrongest.com
*
*	@licens							MIT License - http://www.opensource.org/licenses/mit-license.php
*
*	@param {String} str				The default value
*	@param {Function} callback		Callback function
*/
(function(l){l.fn.extend({defaultValue:function(o,i){var j=o||{};var k=l.extend({value:j.value||null},j);return this.each(function(b,c){var d=$(this);var e=k.value||d.attr('rel');var f={'input':d};var g=createClone();f.clone=g;g.insertAfter(d);var h=function(){if(d.val().length<=0){g.show();d.hide()}else{g.hide();d.show()}};d.bind('blur',h);function createClone(){var a;if(d.context.nodeName.toLowerCase()=='input'){a=l("<input />").attr({'type':'text'})}else if(d.context.nodeName.toLowerCase()=='textarea'){a=l("<textarea />")}a.attr({'value':e,'class':d.attr('class')+' empty','size':d.attr('size'),'style':d.attr('style'),'tabindex':d.attr('tabindex'),'name':'defaultvalue-clone-'+(((1+Math.random())*0x10000)|0).toString(16).substring(1)});a.focus(function(){a.hide();d.show();setTimeout(function(){d.focus()},1)});return a}h();if(i){i(f)}})}})})(jQuery);