", {"class":"ZebraDialog_Buttons"}).appendTo(a.dialog);c.each(b,function(b,c){var e=jQuery("
",{href:"javascript:void(0)","class":"ZebraDialog_Button"+b}).html(c);e.bind("click",function(){a.close(c)});e.appendTo(d)});jQuery("",{style:"clear:both"}).appendTo(d)}a.dialog.appendTo("body");c(window).bind("resize",g);a.settings.keyboard&&c(document).bind("keyup",j);a.isIE6&&c(window).bind("scroll",k);a.settings.auto_close!==!1&&setTimeout(a.close,a.settings.auto_close);g();return a};a.close=function(b){a.settings.keyboard&& c(document).unbind("keyup",j);a.isIE6&&c(window).unbind("scroll",k);c(window).unbind("resize",g);a.settings.modal&&a.overlay.animate({opacity:0},a.settings.animation_speed,function(){a.overlay.remove()});a.dialog.animate({top:0,opacity:0},a.settings.animation_speed,function(){a.dialog.remove()});if(a.settings.onClose&&typeof a.settings.onClose=="function")a.settings.onClose(void 0!=b?b:"")};var g=function(){var b=c(window).width(),d=c(window).height(),f=a.dialog.width(),e=a.dialog.height(),f={left:0, top:0,right:b-f,bottom:d-e,center:(b-f)/2,middle:(d-e)/2};a.dialog_left=void 0;a.dialog_top=void 0;a.settings.modal&&a.overlay.css({width:b,height:d});c.isArray(a.settings.position)&&a.settings.position.length==2&&typeof a.settings.position[0]=="string"&&a.settings.position[0].match(/^(left|right|center)[\s0-9\+\-]*$/)&&typeof a.settings.position[1]=="string"&&a.settings.position[1].match(/^(top|bottom|middle)[\s0-9\+\-]*$/)&&(a.settings.position[0]=a.settings.position[0].toLowerCase(),a.settings.position[1]= a.settings.position[1].toLowerCase(),c.each(f,function(b,c){for(var d=0;d<2;d++){var e=a.settings.position[d].replace(b,c);if(e!=a.settings.position[d])d==0?a.dialog_left=eval(e):a.dialog_top=eval(e)}}));if(void 0==a.dialog_left||void 0==a.dialog_top)a.dialog_left=f.center,a.dialog_top=f.middle;a.settings.vcenter_short_message&&(b=a.message.find("div:first"),d=b.height(),f=a.message.height(),d