(function(a){var c=["error","notice","info","success"];var b={init:function(d){var e={text:null,type:"error"};if(d){a.extend(e,d)}return this.each(function(){var f=a("<div />");if(e.text){f.text(e.text)}if(e.type){f.addClass(e.type)}a(this).append(f)})},change:function(d){if(!d){return this}return this.each(function(){var f=a(this);var e=f.show().children();if(e.length){var g=e.eq(0);if(d.text){g.text(d.text)}if(d.type){a.each(c,function(h,i){if(g.hasClass(i)){g.removeClass(i)}});g.addClass(d.type)}}else{f.bpNote(d)}})},};a.fn.bpNote=function(d){if(b[d]){return b[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(c.indexOf(d)>=0){return b.change.apply(this,[{text:arguments[1],type:d}])}else{if(typeof d==="object"||!d){return b.init.apply(this,arguments)}else{a.error("Method "+d+" does not exist on jQuery.bpNote")}}}}})(jQuery);(function(a){a.fn.invalidFlash=function(b){return this.effect("highlight",{color:b||"orange"})}})(jQuery);(function(a){a.queryString=(function(c){if(c==""){return{}}var d={};for(var e=0;e<c.length;++e){var f=c[e].split("=");if(f.length!=2){continue}d[f[0]]=decodeURIComponent(f[1].replace(/\+/g," "))}return d})(window.location.search.substr(1).split("&"))})(jQuery);
