/*!
 * iGrowl v0.1
 * http://0100.tv/
 *
 * Copyright 2010, Mark Goddard http://0100.tv/
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://en.wikipedia.org/wiki/MIT_License OR http://en.wikipedia.org/wiki/GNU_General_Public_License
 *
 * iGrowl is a notification plugin based VERY loosely on OS X's Growl Framework
 * It is also VERY loosely based on jGrowl, a more complex jQuery notification plugin http://www.lemonfamily.net/projects/jgrowl.html
 *
 * Date: Sat May 22 23:12:00 2010 +0000
 */

(function($){$.iGrowl=function(stage,message){createBox();switch(stage){case 1:$("#iphone_growl").html(message).fadeIn(200).removeClass("iphone_complete iphone_error iphone_spinner").addClass("iphone_spinner");break;case 2:$("#iphone_growl").html(message).fadeIn(200).removeClass("iphone_complete iphone_error iphone_spinner").addClass("iphone_complete").fadeTo(2000,1).fadeOut(200);break;case 3:$("#iphone_growl").html(message).fadeIn(200).removeClass("iphone_complete iphone_error iphone_spinner").addClass("iphone_error").fadeTo(2000,1).fadeOut(200);break;};};function createBox(){if($("#iphone_growl").length==0){$("body").append("<div id='iphone_growl'></div>");$("#iphone_growl").hide();}};})(jQuery);
