﻿(function($){
    $.fn.hoverSrc=function(hover,out){return this.each(function(){$(this).hover(function(){$(this).attr({src:"/imgs/"+hover})},function(){$(this).attr({src:"/imgs/"+out})});});}
    $.fn.onEnterPress=function(target){return this.each(function(){$(this).keypress(function(e){if(e.which==13&&!(e.srcElement&&(e.srcElement.tagName.toLowerCase()=="textarea"))){var targetBtt=document.getElementById(target);if(typeof(targetBtt.click)!="undefined"){targetBtt.click();e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();return false;}if(typeof(targetBtt.href)!="undefined"){eval(unescape(targetBtt.href.substr(11)));e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();return false;}}return true;});});}
    $.fn.defaultVal=function(){var args=arguments;var c=0;return(this.each(function(){var me=$(this);var dv=args[c++];me.val(dv).focus(function(){if(me.val()==dv){me.val("");}me.blur(function() {if(me.val()==""){me.val(dv);}});});}));}
})(jQuery);