var Messenger = 
{
	timeout: 5000,autohide: null,divid:'#SAMsg',
	gotonotice:function(){location.href="#top";},
	notice: function(message, mt){d  = $(Messenger.divid);mto = parseInt(mt);if(isNaN(mto) || mto == 0){mto = Messenger.timeout;}if( d != null ){d.html("<li>" + message + "</li>").fadeIn("slow");if (this.autohide != null) {clearTimeout(this.autohide);}this.autohide = setTimeout(Messenger.fadeNotice, mto);}},
	noticeindev: function(message, mt, target){d  = $("#"+target);mto = parseInt(mt);if( isNaN(mto) || mto == 0){mto = Messenger.timeout;}if( d != null ){d.html("<li>" + message + "</li>").fadeIn("slow");var ah = setTimeout(function(){d  = $("#"+target);d.fadeOut("slow");}, mto);}},
	noticewithoutfade: function(message){d  = $(Messenger.divid);if( d != null ){d.html("<li>" + message + "</li>").fadeIn("slow");if (this.autohide != null) {clearTimeout(this.autohide);}this.gotonotice();}},
	fadeNotice: function(){d  = $(Messenger.divid).fadeOut("slow");},
	fadeNoticeInDiv: function(target){d  = $("#"+target).fadeOut("slow");}
}
