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 c=(a(window).height()-a(this).outerHeight())/2;var b=(a(window).width()-a(this).outerWidth())/2;a(this).css({position:"absolute",margin:0,top:(c>0?c:0)+"px",left:(b>0?b: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(a){if(this.length===0){return this}a=b.extend({increment:1,selector:"body *"},a);var f=b.topZIndex(a.selector),e=a.increment;return this.each(function(){b(this).css("z-index",f+=e)})}})(jQuery);(function(a){a.extend({QueryString:function(c){function b(){var f={},k,g=/\+/g,i=/([^&=]+)=?([^&]*)/g,j=function(d){return decodeURIComponent(d.replace(g," "))},h=window.location.search.substring(1);while(k=i.exec(h)){f[j(k[1])]=j(k[2])}return f}if(!this.queryStringParams){this.queryStringParams=b()}return this.queryStringParams[c]}})})(jQuery);function setCookie(e,d,b){if(b==null){b=2592000}var a=new Date();var c=new Date();c.setTime(a.getTime()+60000*b);document.cookie=e+"="+escape(d)+";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(c,d,g,b){var a=$("#"+d,c.document);var e=15;if(c.document!=null){e=(GetWindowHeight(c)/2-b/2)}var f=(GetWindowWidth(c)/2-g/2);a.css("top","50px");a.css("position","absolute");a.css("left",f+"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(c,b,d,e){var a=$("#"+b,c.document);if(a==null){alert("Could not find popup for Id: "+b);return}if(d!=null&&d!=-1){a.css("width",d+"px")}if(e!=null&&e!=-1){a.css("height",e+"px")}FadeMainWindow();CenterPopup(c,b,d,e);a.css("display","inline");a.css("visibility","visible");a.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(a){var b=$("#"+a);if(b!=null){if(b.css("visibility")=="visible"){return true}}return false}function LoadIFrame(c,d,b,a){ShowPopup(window,c,d,b);window.document.getElementById(c).src=a}function LoadIFrameOnParent(e,b,c,a,d){var f=window.parent;ShowPopup(f,e,c,a);f.document.getElementById(e).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(g){var k=8;var l=0;function m(s,t){var q=(s&65535)+(t&65535);var r=(s>>16)+(t>>16)+(q>>16);return(r<<16)|(q&65535)}function i(q,r){return(q>>>r)|(q<<(32-r))}function h(q,r){return(q>>>r)}function d(r,s,q){return((r&s)^((~r)&q))}function e(r,s,q){return((r&s)^(r&q)^(s&q))}function c(q){return(i(q,2)^i(q,13)^i(q,22))}function n(q){return(i(q,6)^i(q,11)^i(q,25))}function a(q){return(i(q,7)^i(q,18)^h(q,3))}function b(q){return(i(q,17)^i(q,19)^h(q,10))}function f(x,w){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 q=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225);var r=new Array(64);var A,B,C,D,E,F,G,t,u,v;var y,s;x[w>>5]|=128<<(24-w%32);x[((w+64>>9)<<4)+15]=w;for(var u=0;u<x.length;u+=16){A=q[0];B=q[1];C=q[2];D=q[3];E=q[4];F=q[5];G=q[6];t=q[7];for(var v=0;v<64;v++){if(v<16){r[v]=x[v+u]}else{r[v]=m(m(m(b(r[v-2]),r[v-7]),a(r[v-15])),r[v-16])}y=m(m(m(m(t,n(E)),d(E,F,G)),z[v]),r[v]);s=m(c(A),e(A,B,C));t=G;G=F;F=E;E=m(D,y);D=C;C=B;B=A;A=m(y,s)}q[0]=m(A,q[0]);q[1]=m(B,q[1]);q[2]=m(C,q[2]);q[3]=m(D,q[3]);q[4]=m(E,q[4]);q[5]=m(F,q[5]);q[6]=m(G,q[6]);q[7]=m(t,q[7])}return q}function p(r){var t=Array();var s=(1<<k)-1;for(var q=0;q<r.length*k;q+=k){t[q>>5]|=(r.charCodeAt(q/k)&s)<<(24-q%32)}return t}function o(r){r=r.replace(/\r\n/g,"\n");var s="";for(var t=0;t<r.length;t++){var q=r.charCodeAt(t);if(q<128){s+=String.fromCharCode(q)}else{if((q>127)&&(q<2048)){s+=String.fromCharCode((q>>6)|192);s+=String.fromCharCode((q&63)|128)}else{s+=String.fromCharCode((q>>12)|224);s+=String.fromCharCode(((q>>6)&63)|128);s+=String.fromCharCode((q&63)|128)}}}return s}function j(t){var s=l?"0123456789ABCDEF":"0123456789abcdef";var r="";for(var q=0;q<t.length*4;q++){r+=s.charAt((t[q>>2]>>((3-q%4)*8+4))&15)+s.charAt((t[q>>2]>>((3-q%4)*8))&15)}return r}g=o(g);return j(f(p(g),g.length*k))}function GetManageTicketsPageLink(){return this.RootUrl+"/Users/ManageTicketsPage.aspx"};
