jQuery.notifyBar=function(a){(function(c){var b=notifyBarNS={};notifyBarNS.shown=false;if(!a){a={}}notifyBarNS.html=a.html||"Your message here";notifyBarNS.delay=a.delay||2000;notifyBarNS.animationSpeed=a.animationSpeed||200;notifyBarNS.jqObject=a.jqObject;notifyBarNS.cls=a.cls||"";notifyBarNS.close=a.close||false;if(notifyBarNS.jqObject){b=notifyBarNS.jqObject;notifyBarNS.html=b.html()}else{b=jQuery("<div></div>").addClass("jquery-notify-bar").addClass(notifyBarNS.cls).attr("id","__notifyBar")}b.html(notifyBarNS.html).hide();var d=b.attr("id");switch(notifyBarNS.animationSpeed){case"slow":asTime=600;break;case"normal":asTime=400;break;case"fast":asTime=200;break;default:asTime=notifyBarNS.animationSpeed}if(b!="object"){}jQuery("body").prepend(b);if(notifyBarNS.close){b.append(jQuery("<a href='#' class='notify-bar-close'>Close [X]</a>"));jQuery(".notify-bar-close").click(function(){if(b.attr("id")=="__notifyBar"){jQuery("#"+d).slideUp(asTime,function(){jQuery("#"+d).remove()})}else{jQuery("#"+d).slideUp(asTime)}return false})}if(c(".jquery-notify-bar:visible").length>0){c(".jquery-notify-bar:visible").stop().slideUp(asTime,function(){b.stop().slideDown(asTime)})}else{b.slideDown(asTime)}b.click(function(){c(this).slideUp(asTime)});if(b.attr("id")=="__notifyBar"){setTimeout("jQuery('#"+d+"').stop().slideUp("+asTime+", function() {jQuery('#"+d+"').remove()});",notifyBarNS.delay+asTime)}else{setTimeout("jQuery('#"+d+"').stop().slideUp("+asTime+", function() {jQuery('#"+d+"')});",notifyBarNS.delay+asTime)}})(jQuery)};
