function GlobalObjectControl(){Init=InitializeGlobalObjectControl}function InitializeGlobalObjectControl(a){document.GlobalObjectControl=this;document.GlobalObjectControl.Args=a}(function(a){a.fn.extend({center:function(){return this.each(function(){var b=(a(window).height()-a(this).outerHeight())/2;var c=(a(window).width()-a(this).outerWidth())/2;a(this).css({position:"absolute",margin:0,top:(b>0?b:0)+"px",left:(c>0?c:0)+"px"})})}})})(jQuery);(function(b){b.topZIndex=function(a){return Math.max(0,Math.max.apply(null,b.map(b(a||"body *"),function(c){return parseInt(b(c).css("z-index"))||null})))};b.fn.topZIndex=function(e){if(this.length===0){return this}e=b.extend({increment:1,selector:"body *"},e);var a=b.topZIndex(e.selector),f=e.increment;return this.each(function(){b(this).css("z-index",a+=f)})}})(jQuery);(function(a){a.extend({QueryString:function(b){function c(){var k={},j,g=/\+/g,f=/([^&=]+)=?([^&]*)/g,i=function(d){return decodeURIComponent(d.replace(g," "))},h=window.location.search.substring(1);while(j=f.exec(h)){k[i(j[1])]=i(j[2])}return k}if(!this.queryStringParams){this.queryStringParams=c()}return this.queryStringParams[b]}})})(jQuery);function setCookie(d,a,b){if(b==null){b=2592000}var e=new Date();var c=new Date();c.setTime(e.getTime()+60000*b);document.cookie=d+"="+escape(a)+";expires="+c.toGMTString()+";path=/"}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return null}function ClosePopupAndRedirect(a){if(window.parent!=null&&window.parent==self){window.location.href=a;return}window.parent.location.href=a;window.setTimeout("window.close()",10)}function CenterPopup(d,a,f,b){var g=$("#"+a,d.document);var e=15;if(d.document!=null){e=(GetWindowHeight(d)/2-b/2)}var c=(GetWindowWidth(d)/2-f/2);g.css("top","50px");g.css("position","absolute");g.css("left",c+"px")}function GetWindowHeight(a){if(a.document.body&&a.document.body.clientHeight){return a.document.body.clientHeight}return a.document.documentElement.clientHeight}function GetWindowWidth(a){if(a.document.body&&a.document.body.clientWidth){return a.document.body.clientWidth}return a.document.documentElement.clientWidth}function ShowPopup(d,b,c,a){var e=$("#"+b,d.document);if(e==null){alert("Could not find popup for Id: "+b);return}if(c!=null&&c!=-1){e.css("width",c+"px")}if(a!=null&&a!=-1){e.css("height",a+"px")}FadeMainWindow();CenterPopup(d,b,c,a);e.css("display","inline");e.css("visibility","visible");e.attr("DialogResult","None")}function HideParentPopup(b){try{if(parent==null){return}if(parent.document==null){return}}catch(a){return}$("#"+b,parent.document).fadeTo("fast",1);$("#"+b,parent.document).hide();$("#"+b,parent.document).attr("DialogResult","None")}function FadeMainWindow(){}function UnFadeMainWindow(){}function IsPopupVisible(b){var a=$("#"+b);if(a!=null){if(a.css("visibility")=="visible"){return true}}return false}function LoadIFrame(b,d,a,c){ShowPopup(window,b,d,a);window.document.getElementById(b).src=c}function LoadIFrameOnParent(a,f,e,b,d){var c=window.parent;ShowPopup(c,a,e,b);c.document.getElementById(a).src=d}function CenterDiv(a){a.css("marginLeft","auto");a.css("marginRight","auto");a.css("text-align","center")}function LinkHelper(){this.GetManageTicketsPageLink=GetManageTicketsPageLink;this.RootUrl=document.GlobalObjectControl.Args.RootUrl}function SHA256(i){var g=8;var o=0;function d(q,r){var s=(q&65535)+(r&65535);var t=(q>>16)+(r>>16)+(s>>16);return(t<<16)|(s&65535)}function l(r,q){return(r>>>q)|(r<<(32-q))}function k(r,q){return(r>>>q)}function e(q,r,s){return((q&r)^((~q)&s))}function p(q,r,s){return((q&r)^(q&s)^(r&s))}function a(q){return(l(q,2)^l(q,13)^l(q,22))}function h(q){return(l(q,6)^l(q,11)^l(q,25))}function f(q){return(l(q,7)^l(q,18)^k(q,3))}function m(q){return(l(q,17)^l(q,19)^k(q,10))}function b(F,E){var z=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298);var x=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225);var C=new Array(64);var r,G,q,u,v,s,t,y,D,B;var A,w;F[E>>5]|=128<<(24-E%32);F[((E+64>>9)<<4)+15]=E;for(var D=0;D<F.length;D+=16){r=x[0];G=x[1];q=x[2];u=x[3];v=x[4];s=x[5];t=x[6];y=x[7];for(var B=0;B<64;B++){if(B<16){C[B]=F[B+D]}else{C[B]=d(d(d(m(C[B-2]),C[B-7]),f(C[B-15])),C[B-16])}A=d(d(d(d(y,h(v)),e(v,s,t)),z[B]),C[B]);w=d(a(r),p(r,G,q));y=t;t=s;s=v;v=d(u,A);u=q;q=G;G=r;r=d(A,w)}x[0]=d(r,x[0]);x[1]=d(G,x[1]);x[2]=d(q,x[2]);x[3]=d(u,x[3]);x[4]=d(v,x[4]);x[5]=d(s,x[5]);x[6]=d(t,x[6]);x[7]=d(y,x[7])}return x}function c(s){var q=Array();var t=(1<<g)-1;for(var r=0;r<s.length*g;r+=g){q[r>>5]|=(s.charCodeAt(r/g)&t)<<(24-r%32)}return q}function j(t){t=t.replace(/\r\n/g,"\n");var s="";for(var q=0;q<t.length;q++){var r=t.charCodeAt(q);if(r<128){s+=String.fromCharCode(r)}else{if((r>127)&&(r<2048)){s+=String.fromCharCode((r>>6)|192);s+=String.fromCharCode((r&63)|128)}else{s+=String.fromCharCode((r>>12)|224);s+=String.fromCharCode(((r>>6)&63)|128);s+=String.fromCharCode((r&63)|128)}}}return s}function n(q){var s=o?"0123456789ABCDEF":"0123456789abcdef";var r="";for(var t=0;t<q.length*4;t++){r+=s.charAt((q[t>>2]>>((3-t%4)*8+4))&15)+s.charAt((q[t>>2]>>((3-t%4)*8))&15)}return r}i=j(i);return n(b(c(i),i.length*g))}function GetManageTicketsPageLink(){return this.RootUrl+"/Users/ManageTicketsPage.aspx"};
