/* Copyright 2011, Ben Lin (http://dreamerslab.com/) * Licensed under the MIT License (LICENSE.txt). * * Version: 1.0.2 * * Requires: * jQuery 1.3.0+, * jQuery Center plugin 1.0.0+ https://github.com/dreamerslab/jquery.center */ (function(d,e){var a={},c=0,f,b=[function(){}];d.msg=function(l,h){var k,g,m,j,i;m=d.extend({afterBlock:function(){},autoUnblock:true,center:{topPercentage:0.4},css:{},clickUnblock:true,content:"Please wait...",fadeIn:200,fadeOut:300,bgPath:"",klass:"black-on-white",method:"appendTo",target:"body",timeOut:2400,z:1000},a);d.extend(m,l);j={unblock:function(){g=d("#jquery-msg-overlay").fadeOut(m.fadeOut,function(){b[m.msgID](g);g.remove();});clearTimeout(f);}};i={unblock:function(o,n){var p=o===undefined?0:o;m.msgID=n===undefined?c:n;setTimeout(function(){j.unblock();},p);},replace:function(n){if(n===undefined&&typeof(n)==="string"){throw"$.msg('replace') error: second argument is undefined or is not a string";}d("#jquery-msg-content").empty().html(n).center(m.center);},overwriteGlobal:function(o,n){a[o]=n;}};g=d('