';""!==i.title&&(c+='"),i.closed&&(c+='
'),c+='
'+i.content,(i.footer||"string"==typeof i.footer)&&(c+='"),c+="
",c+='
',c+='
',c+="
",r.append(c);var h=r.find("."+s);h.lockScreen=function(t){return i.lockScreen&&e("html,body").css("overflow",t?"hidden":""),h},h.showMask=function(){return i.mask&&r.find("."+n+"mask").css(i.maskStyle).css("z-index",t.dialogZindex-1).show(),h},h.hideMask=function(){return i.mask&&r.find("."+n+"mask").hide(),h},h.loading=function(e){var t=h.find("."+n+"dialog-mask");return t[e?"show":"hide"](),h},h.lockScreen(!0).showMask(),h.show().css({zIndex:t.dialogZindex,border:t.isIE8?"1px solid #ddd":"",width:"number"==typeof i.width?i.width+"px":i.width,height:"number"==typeof i.height?i.height+"px":i.height});var d=function(){h.css({top:(e(window).height()-h.height())/2+"px",left:(e(window).width()-h.width())/2+"px"})};if(d(),e(window).resize(d),h.children("."+n+"dialog-close").bind(l("click","touchend"),function(){h.hide().lockScreen(!1).hideMask()}),"object"==typeof i.buttons){var u=h.footer=h.find("."+n+"dialog-footer");for(var f in i.buttons){var g=i.buttons[f],p=n+f+"-btn";u.append('