/*
 * OpenSocial jQuery Mini Message 1.0.0
 * http://code.google.com/p/opensocial-jquery/
 *
 * Copyright(C) 2009 Nakajiman Software Inc.
 * http://nakajiman.lrlab.to/
 *
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
jQuery.fn.extend({minimessage:function(c,b){if(jQuery.isFunction(c)){b=c;c=null}var a={slow:5,normal:3,fast:1};if(c&&typeof c!=="number"){c=parseInt(c,10)||a[c]||a.normal}return this.pushStack(jQuery.map(this,function(d){if(d.parentNode){d.parentNode.removeChild(d)}var e=c?new gadgets.MiniMessage().createTimerMessage(d,c,function(){return(b||function(){}).apply(e)!==false}):new gadgets.MiniMessage().createDismissibleMessage(d,function(){return(b||function(){}).apply(e)!==false});return e}))}});