(function(G){if(/1\.(0|1|2)\.(0|1|2)/.test(G.fn.jquery)||/^1.1/.test(G.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+G.fn.jquery);return}G.fn._fadeIn=G.fn.fadeIn;var I=document.documentMode||0;var D=G.browser.msie&&((G.browser.version<8&&!I)||I<8);var E=G.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!I;G.blockUI=function(O){C(window,O)};G.unblockUI=function(O){H(window,O)};G.growlUI=function(S,Q,R,O){var P=G('<div class="growlUI"></div>');if(S){P.append("<h1>"+S+"</h1>")}if(Q){P.append("<h2>"+Q+"</h2>")}if(R==undefined){R=3000}G.blockUI({message:P,fadeIn:700,fadeOut:1000,centerY:false,timeout:R,showOverlay:false,onUnblock:O,css:G.blockUI.defaults.growlCSS})};G.fn.block=function(O){return this.unblock({fadeOut:0}).each(function(){if(G.css(this,"position")=="static"){this.style.position="relative"}if(G.browser.msie){this.style.zoom=1}C(this,O)})};G.fn.unblock=function(O){return this.each(function(){H(this,O)})};G.blockUI.version=2.23;G.blockUI.defaults={message:"<h1>Please wait...</h1>",css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,cursor:null,color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onUnblock:null,quirksmodeOffsetHack:4};var B=null;var F=[];function C(Q,O){var Z=(Q==window);var R=O&&O.message!==undefined?O.message:undefined;O=G.extend({},G.blockUI.defaults,O||{});O.overlayCSS=G.extend({},G.blockUI.defaults.overlayCSS,O.overlayCSS||{});var Y=G.extend({},G.blockUI.defaults.css,O.css||{});R=R===undefined?O.message:R;if(Z&&B){H(window,{fadeOut:0})}if(R&&typeof R!="string"&&(R.parentNode||R.jquery)){var T=R.jquery?R[0]:R;var X={};G(Q).data("blockUI.history",X);X.el=T;X.parent=T.parentNode;X.display=T.style.display;X.position=T.style.position;if(X.parent){X.parent.removeChild(T)}}var a=O.baseZ;var W=(G.browser.msie||O.forceIframe)?G('<iframe class="blockUI" style="z-index:'+(a++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+O.iframeSrc+'"></iframe>'):G('<div class="blockUI" style="display:none"></div>');var V=G('<div class="blockUI blockOverlay" style="z-index:'+(a++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var S=Z?G('<div class="blockUI blockMsg blockPage" style="z-index:'+a+';display:none;position:fixed"></div>'):G('<div class="blockUI blockMsg blockElement" style="z-index:'+a+';display:none;position:absolute"></div>');if(R){S.css(Y)}if(!O.applyPlatformOpacityRules||!(G.browser.mozilla&&/Linux/.test(navigator.platform))){V.css(O.overlayCSS)}V.css("position",Z?"fixed":"absolute");if(G.browser.msie||O.forceIframe){W.css("opacity",0)}G([W[0],V[0],S[0]]).appendTo(Z?"body":Q);var d=D&&(!G.boxModel||G("object,embed",Z?null:Q).length>0);if(E||d){if(Z&&O.allowBodyStretch&&G.boxModel){G("html,body").css("height","100%")}if((E||!G.boxModel)&&!Z){var e=L(Q,"borderTopWidth"),U=L(Q,"borderLeftWidth");var c=e?"(0 - "+e+")":0;var P=U?"(0 - "+U+")":0}G.each([W,V,S],function(f,k){var g=k[0].style;g.position="absolute";if(f<2){Z?g.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+O.quirksmodeOffsetHack+') + "px"'):g.setExpression("height",'this.parentNode.offsetHeight + "px"');Z?g.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):g.setExpression("width",'this.parentNode.offsetWidth + "px"');if(P){g.setExpression("left",P)}if(c){g.setExpression("top",c)}}else{if(O.centerY){if(Z){g.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}g.marginTop=0}else{if(!O.centerY&&Z){var h=(O.css&&O.css.top)?parseInt(O.css.top):0;var j="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+h+') + "px"';g.setExpression("top",j)}}}})}if(R){S.append(R);if(R.jquery||R.nodeType){G(R).show()}}if((G.browser.msie||O.forceIframe)&&O.showOverlay){W.show()}if(O.fadeIn){if(O.showOverlay){V._fadeIn(O.fadeIn)}if(R){S.fadeIn(O.fadeIn)}}else{if(O.showOverlay){V.show()}if(R){S.show()}}K(1,Q,O);if(Z){B=S[0];F=G(":input:enabled:visible",B);if(O.focusInput){setTimeout(N,20)}}else{A(S[0],O.centerX,O.centerY)}if(O.timeout){var b=setTimeout(function(){Z?G.unblockUI(O):G(Q).unblock(O)},O.timeout);G(Q).data("blockUI.timeout",b)}}function H(R,S){var Q=R==window;var P=G(R);var T=P.data("blockUI.history");var U=P.data("blockUI.timeout");if(U){clearTimeout(U);P.removeData("blockUI.timeout")}S=G.extend({},G.blockUI.defaults,S||{});K(0,R,S);var O=Q?G("body").children().filter(".blockUI"):G(".blockUI",R);if(Q){B=F=null}if(S.fadeOut){O.fadeOut(S.fadeOut);setTimeout(function(){J(O,T,S,R)},S.fadeOut)}else{J(O,T,S,R)}}function J(O,R,Q,P){O.each(function(S,T){if(this.parentNode){this.parentNode.removeChild(this)}});if(R&&R.el){R.el.style.display=R.display;R.el.style.position=R.position;if(R.parent){R.parent.appendChild(R.el)}G(R.el).removeData("blockUI.history")}if(typeof Q.onUnblock=="function"){Q.onUnblock(P,Q)}}function K(O,S,T){var R=S==window,Q=G(S);if(!O&&(R&&!B||!R&&!Q.data("blockUI.isBlocked"))){return}if(!R){Q.data("blockUI.isBlocked",O)}if(!T.bindEvents||(O&&!T.showOverlay)){return}var P="mousedown mouseup keydown keypress";O?G(document).bind(P,T,M):G(document).unbind(P,M)}function M(R){if(R.keyCode&&R.keyCode==9){if(B&&R.data.constrainTabKey){var Q=F;var P=!R.shiftKey&&R.target==Q[Q.length-1];var O=R.shiftKey&&R.target==Q[0];if(P||O){setTimeout(function(){N(O)},10);return false}}}if(G(R.target).parents("div.blockMsg").length>0){return true}return G(R.target).parents().children().filter("div.blockUI").length==0}function N(O){if(!F){return}var P=F[O===true?F.length-1:0];if(P){P.focus()}}function A(S,O,U){var T=S.parentNode,R=S.style;var P=((T.offsetWidth-S.offsetWidth)/2)-L(T,"borderLeftWidth");var Q=((T.offsetHeight-S.offsetHeight)/2)-L(T,"borderTopWidth");if(O){R.left=P>0?(P+"px"):"0"}if(U){R.top=Q>0?(Q+"px"):"0"}}function L(O,P){return parseInt(G.css(O,P))||0}})(jQuery);