/* Notify Bar - jQuery plugin Copyright (c) 2009 Dmitri Smirnov Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php Version: 1.0.2 Project home: http://www.dmitri.me/blog/notify-bar */
$.notifyBar=function(a){var b={};this.shown=false;if(!a){a={}}this.html=a.html||"Your message here";this.delay=a.delay||2500;this.animationSpeed=a.animationSpeed||"normal";this.jqObject=a.jqObject;if(this.jqObject){b=this.jqObject}else{b=$("<div></div>").attr("id","notifyBar").css("width","100%").css("position","fixed").css("top","0px").css("left","0px").css("z-index","32768").css("background-color","#ffedc5").css("font-size","18px").css("color","#333").css("text-align","center").css("font-family","Arial, Helvetica, serif").css("padding","30px 0px").css("border-bottom","1px solid #bbb")}b.html(this.html).hide();var c=b.attr("id");switch(this.animationSpeed){case"slow":asTime=600;break;case"normal":asTime=400;break;case"fast":asTime=200;break;default:asTime=this.animationSpeed}$("body").prepend(b);b.slideDown(asTime);setTimeout("$('#"+c+"').slideUp("+asTime+");",this.delay+asTime)};