/**
 * jquery.toaster v1.1
 * copyright 2011 Rob Stortelers (Merula Softworks) - www.merulasoft.nl
 */
(function($){$.toaster=function(options){var defaults={showTime:1000,centerX:false,centerY:false};var options=$.extend(defaults,options);var isQue=false;var container=$('<div class="toast-container"></div>').appendTo('body');container.hide();var que=new Array();this.toast=function(text)
{que.push(text);if(!isQue)
NextToast();};
function ShowToast(text)
{container.hide().text(text);CenterContainer();container.fadeIn(function(){setTimeout(HideToast,options.showTime);});}
function CenterContainer()
{if(options.centerX)
{container.css("left","50%");container.css("margin-left","-"+container.outerWidth()/2+"px");}
if(options.centerY)
{container.css("top","110px");container.css("margin-top","0");}}
function HideToast()
{container.fadeOut(function(){que.shift();NextToast();});}
function NextToast()
{isQue=que.length>0;if(isQue)
ShowToast(que[0]);}
return this;};})(jQuery);
