var isSchedule=(window.location.toString().indexOf("schedule")!=-1);var x,y,popupX,popupY=0;var dragging=false;var popupService;var popupServiceShower;var loginService;function setCookie(D,F,H,B,E,G){if(!B){var A=new Date();A.setTime(A.getTime()+(3600000*24*365));B=A.toGMTString()}var C=D+"="+escape(F)+((B)?"; expires="+B:"")+((H)?"; path="+H:"")+((E)?"; domain="+E:"")+((G)?"; secure":"");document.cookie=C}function getCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}if(typeof (CC)=="undefined"){CC={}}function __click(){return }if(Prototype.Browser.Webkit){var m=navigator.userAgent.match(/AppleWebKit\/([^\s]*)/);if(m&&m[1]){Prototype.Browser.WebkitVersion=parseFloat(m[1])}}Object.extend(Event,{_domReady:function(){if(arguments.callee.done){return }arguments.callee.done=true;if(this._timer){clearInterval(this._timer)}CC.isDomReady=true;if(this._readyCallbacks){this._readyCallbacks.each(function(A){A()})}this._readyCallbacks=false},onDOMReady:function(B){if(CC.isDomReady){B()}else{if(typeof this._readyCallbacks=="undefined"){this._readyCallbacks=[]}this._readyCallbacks.push(B);if(Prototype.Browser.IE){var A=this._domReady.bind(this);var C=location.protocol=="https:"?"https://javascript:void(0)":"javascript:void(0)";document.write("<script id=__ie_onload defer src='"+C+"'><\/script>");document.getElementById("__ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){A()}};this.observe(window,"load",A)}else{if(Prototype.Browser.Webkit&&Prototype.Browser.WebkitVersion<525){CC.domReadyTimer=setInterval(function(){var D=document.readyState;if(D=="loaded"||D=="complete"){clearInterval(CC.domReadyTimer);CC.domReadyTimer=null;this._domReady()}}.bind(this),10)}else{document.addEventListener("DOMContentLoaded",function(){this._domReady()}.bind(this),false)}}}}});var removeChildren=function(D,A,E){var C=D.getElementsByTagName(A);if(C.length){for(var B=C.length-1;B>=(E?E:0);B--){D.removeChild(C[B])}}};Event.observe(document,"mousemove",getCoords);if(!Prototype.Browser.IE&&!((navigator.userAgent.indexOf("Firefox/2")>0))){document.observe("dom:loaded",function(){var B=$$("a.hestia");for(var C=0;C<B.length;C++){var D=B[C].firstChild.src;var E=new Image();if($(B[C]).hasClassName("highlight")){E.src=D.replace("-highlight","-over")}else{E.src=D.replace("-out","-over")}var A=new Image();A.src=D.replace("-out","-down");B[C].observe("mouseover",hestiaOver);B[C].observe("mouseout",hestiaOut);B[C].observe("mousedown",hestiaDown)}})}var ScheduleMenu=Class.create({initialize:function(){this.type=0;this.menu=$("scheduleSelector");this.tabs=this.menu.getElementsByTagName("td");if(window.location.toString().indexOf("schedule")>0){this.type=0}else{if(window.location.toString().indexOf("browser")>0){this.type=1}}var A=$("content");if(this.type==1){A.setStyle({height:"690px"})}for(var B=0;B<this.tabs.length;B++){if(B==this.type){$(this.tabs[B]).addClassName("on")}if(Prototype.Browser.Firefox2Mac){$(this.tabs[B]).setStyle({paddingTop:"2px"});$(this.tabs[B].parentNode.parentNode).setStyle({height:"18px"})}$(this.tabs[B]).observe("click",new Function("scheduleMenu.setType("+B+");"))}},setType:function(B){setCookie("schedule",B);for(var A=0;A<this.tabs.length;A++){if(A==B){$(this.tabs[A]).addClassName("on")}else{$(this.tabs[A]).removeClassName("on")}}if(this.type!=B){this.type=B;window.location=this.tabs[B].firstChild.href}}});var TrackMenu=Class.create({initialize:function(C){this.track=0;this.menu=$("trackMenu");this.tabs=this.menu.getElementsByTagName("li");var B=getCookie("track");if(B){this.track=B}for(var A=0;A<this.tabs.length;A++){if(A==this.track){$(this.tabs[A]).addClassName("on")}if(Prototype.Browser.Firefox2Mac){$(this.tabs[A]).setStyle({paddingTop:"1px",height:"26px"})}$(this.tabs[A]).observe("click",new Function("trackMenu.setTrack("+A+")"));if(C){$(this.tabs[A]).observe("click",C)}}},setTrack:function(A){setCookie("track",A);this.track=parseInt(A);for(var C=0;C<this.tabs.length;C++){if(C==A){$(this.tabs[C]).addClassName("on")}else{$(this.tabs[C]).removeClassName("on")}}var B=false;switch(this.track){case 0:B="session";break;case 1:B="envision";break;case 2:B="design";break;case 3:B="develop";break}if(B){if(typeof dayviewScheduler!="undefined"){dayviewScheduler.setTrack(B)}}},getTrack:function(){return this.track}});var FancyLoader=Class.create({initialize:function(){this.loading=$("loading");this.loading.setOpacity(0);this.loaderDark=false;this.show()},show:function(){var A=Math.floor((document.documentElement.clientWidth-400)/2);if(A<320){A=320}this.loading.setStyle({top:"240px",left:A+"px"});this.active=true;this.loading.setOpacity(1);this.loaderTimer=setInterval(this.pulse.bind(this),800)},pulse:function(){if(this.loaderDark){new Effect.Morph("loading",{style:{backgroundColor:"#222426"},duration:0.6,transition:Effect.Transitions.sinoidal})}else{new Effect.Morph("loading",{style:{backgroundColor:"#111213"},duration:0.6,transition:Effect.Transitions.sinoidal})}this.loaderDark=!this.loaderDark},hide:function(){if(this.active){this.active=false;this.loading.setOpacity(0);this.loading.setStyle({top:"-420px"});clearInterval(this.loaderTimer);this.loaderTimer=false}}});var LoginService=Class.create({initialize:function(){this.dialog=$("login");this.dialog.setOpacity(0);this.visible=false;this.loggedIn=false;this.loggingIn=false;this.loginButtonHandler=this.showLogin.bind(this);var B=$$("a.button");for(var A=0;A<B.length;A++){if(!Prototype.Browser.IE){$(B[A]).observe("mouseover",buttonMouseOver);$(B[A]).observe("mouseout",buttonMouseOut);$($(B[A]).firstChild).setOpacity(0.5)}if(Prototype.Browser.IE6){$(B[A]).setStyle({position:"relative"})}}$("loginButton").observe("click",this.loginButtonHandler);$("logout").hide();$("logout").observe("click",this.logout.bind(this));$("save").hide();$("export-pdf").hide();$("export-vcal").hide();$("loginForm").observe("submit",function(D){this.login();Event.stop(D)}.bind(this));var C=function(E){var D=E.keyCode||E.which;if(D==13){this.login()}}.bind(this);$("email").observe("keyup",C);$("password").observe("keyup",C);$("loginError").hide();this.initializeCallback()},initializeCallback:function(){},checkLogin:function(){new Ajax.Request("/"+urlPrefix+"/register/check_login/",{method:"get",evalJSON:"force",onSuccess:function(B,A){if(!loginService._login(B,A)){new Ajax.Request("/"+urlPrefix+"/json/check_login/",{method:"get",evalJSON:"force",onSuccess:loginService._login.bind(loginService),onComplete:function(){if(getCookie("oatmeal-raisin")==null){$("loginButton").setOpacity(0.25);$("loginButton").stopObserving("click",loginService.loginButtonHandler);popupService.manualShow(Math.floor((document.documentElement.clientWidth-popupService.getWidth())/2),Math.floor(document.documentElement.clientHeight/2)+50,"Cookies Disabled?","It looks like your browser or security software (eg. Norton, AVG, etc.) is blocking cookies. You will not be able to login until you enable cookies. Once you have re-enabled cookies, refresh this page to access the login button.",true);if(loginService.isLoggedIn()){loginService.logout()}}loginService._checkLogin()}})}else{loginService._checkLogin()}},onFailure:function(A){}})},_checkLogin:function(){},showLogin:function(){var A=$("darkener");A.setOpacity(0);A.setStyle({width:document.documentElement.clientWidth+"px",height:document.documentElement.clientHeight+"px",top:"0",left:"0"});if(Prototype.Browser.IE6){A.setOpacity(1)}else{A.appear({duration:0.5})}if(Prototype.Browser.IE6){var B=$($("loginBody").parentNode);if(B.getDimensions().height){B.setStyle({height:B.getDimensions().height+"px"})}}var D=(document.documentElement.clientWidth-this.dialog.getDimensions().width)/2;var C=(document.documentElement.clientHeight-this.dialog.getDimensions().height)/2;$("loginError").hide();this.dialog.setStyle({left:D+"px",top:C+"px"});this.dialog.appear({duration:0.2,afterFinish:function(){$("email").focus()}})},hideLogin:function(C,B){if(!B){var A=$("darkener");if(Prototype.Browser.IE6){A.setOpacity(0);A.setStyle({width:"1px",height:"1px",top:"-2000px",left:"-2000px"})}else{A.fade({duration:0.5,afterFinish:function(){A.setStyle({width:"1px",height:"1px",top:"-2000px",left:"-2000px"})}})}}if(C){new Effect.DropOut(this.dialog,{duration:0.2,afterFinish:C})}else{new Effect.DropOut(this.dialog,{duration:0.2})}},logout:function(){this.loggedIn=false;this.user=false;$("logout").hide();$("save").hide();$("export-pdf").hide();$("export-vcal").hide();$("loginButton").show();$("hello").innerHTML="";$("email").setValue("");$("password").setValue("");setCookie("em","",false,0);popupService.manualShow(Math.floor((document.documentElement.clientWidth-popupService.getWidth())/2),Math.floor(document.documentElement.clientHeight/2)+50,"Logging out","Please wait while you are logged out of the system...",true);new Ajax.Request("/"+urlPrefix+"/json/logout/");this.logoutCallback()},logoutCallback:function(){},login:function(){if(this.loggingIn){return }else{this.loggingIn=true}$("loginError").hide();$("email").setValue($("email").getValue().toLowerCase());setCookie("em",hex_md5($("email").getValue()),"/"+urlPrefix+"/");new Ajax.Request("/"+urlPrefix+"/json/preauth/",{method:"get",evalJSON:"force",onSuccess:function(C,B){if(C.responseJSON==null){$("loginError").innerHTML="Login failed due to a system error. Try again shortly.";$("loginError").show();Effect.Shake(this.dialog);this.loggingIn=false;return }var A=C.responseText.evalJSON();if(A.error){$("loginError").innerHTML="Login failed.";$("loginError").show();Effect.Shake(this.dialog);this.loggingIn=false}else{if(hex_hmac_md5($("email").getValue(),hex_md5($("password").getValue()))==A.challenge){new Ajax.Request("/"+urlPrefix+"/json/authenticate/?"+A.sn+"="+A.si+"&e="+hex_md5($("email").getValue())+"&p="+hex_md5($("password").getValue())+"&s="+hex_hmac_md5(A.setecAstronomy,hex_md5($("password").getValue())),{method:"get",evalJSON:"force",onSuccess:this._login.bind(this)})}else{$("loginError").innerHTML="Login failed.";$("loginError").show();Effect.Shake(this.dialog);this.loggingIn=false}}}.bind(this)})},_login:function(C,B){if(C.responseJSON==null){$("loginError").innerHTML="Login failed due to a system error. Try again shortly.";$("loginError").show();Effect.Shake(this.dialog);this.loggingIn=false;return }var A=C.responseText.evalJSON();if(A.error){if(!A.suppress){$("loginError").innerHTML=A.message;$("loginError").show();Effect.Shake(this.dialog);this.loggingIn=false}}else{if(getCookie("oatmeal-raisin")==null){if(!A.suppress){$("loginError").innerHTML="You need to enable cookies in order to proceed.";$("loginError").show();Effect.Shake(this.dialog);this.loggingIn=false}}else{this.loggedIn=true;this.loggingIn=false;this.user={id:A.id,name:A.firstName+" "+A.lastName,dates:A.attendanceDates,dayEnabled:function(D){return this.dates[D]}};$("hello").innerHTML="Hello, "+A.firstName+"!";if(A.exp&&A.ipa4p){new Ajax.Request("/"+urlPrefix+"/json/foo/?id="+encodeURIComponent(A.id)+"&e="+encodeURIComponent(A.exp)+"&i="+encodeURIComponent(A.ipa4p),{evalJSON:"force",onSuccess:this._handleFoo.bind(this)})}$("export-pdf").firstChild.href="/"+urlPrefix+"/sessions/schedule/download.pdf/"+this.getUserId()+"/schedule.pdf";$("export-pdf").show();$("export-vcal").firstChild.href="/"+urlPrefix+"/sessions/schedule/download.vcs/"+this.getUserId()+"/schedule.vcs";$("export-vcal").show();$("logout").show();$("save").show();$("loginButton").hide();$("loginError").hide();this._loginCallback(A)}}return this.loggedIn},_loginCallback:function(){},isLoggedIn:function(){return this.loggedIn},getUserId:function(){return this.user.id},_handleFoo:function(B,A){}});var PopupService=Class.create({initialize:function(A){this.popup=$(A);this.prefix=A;this.popup.setOpacity(0);this.visible=false;this.modal=false;this.manualCallback=false;this.hideCallback=function(){this.popup.setStyle({left:"-1978px",top:"-1978px"})}.bind(this);Event.observe(window,"keyup",this.processKey.bind(this));Event.observe($(this.prefix+"Close"),"click",this.hide.bind(this));if($("portal")){Event.observe($("portal"),"scroll",this.hide.bind(this))}else{if($("sessions")){Event.observe($("sessions"),"scroll",this.hide.bind(this))}}if(Prototype.Browser.IE){Event.observe(this.popup,"click",this.hide.bind(this))}},setTitle:function(A){$(this.prefix+"Title").innerHTML=A},setBody:function(A){$(this.prefix+"Body").innerHTML=A},setSpeaker:function(A){if($(this.prefix+"Speaker").childNodes.length>0){$(this.prefix+"Speaker").removeChild($(this.prefix+"Speaker").childNodes[1]);$(this.prefix+"Speaker").removeChild($(this.prefix+"Speaker").childNodes[0])}if(A!=null){$(this.prefix+"Speaker").appendChild(new Element("span").update("Speaker(s):"));$(this.prefix+"Speaker").appendChild(document.createTextNode(A))}else{$(this.prefix+"Speaker").innerHTML=""}},setSkill:function(A){var B;switch(A){case"1":B="Beginner";break;case"2":B="Intermediate";break;case"3":B="Advanced";break;case"4":B="General Audience";break}if($(this.prefix+"Skill").childNodes.length>0){$(this.prefix+"Skill").removeChild($(this.prefix+"Skill").childNodes[1]);$(this.prefix+"Skill").removeChild($(this.prefix+"Skill").childNodes[0])}if(A!=null){$(this.prefix+"Skill").appendChild(new Element("span").update("Skill:"));$(this.prefix+"Skill").appendChild(document.createTextNode(B))}else{$(this.prefix+"Skill").innerHTML=""}},setAltTimes:function(A){if($(this.prefix+"AltTimes").childNodes.length>0){$(this.prefix+"AltTimes").removeChild($(this.prefix+"AltTimes").childNodes[1]);$(this.prefix+"AltTimes").removeChild($(this.prefix+"AltTimes").childNodes[0])}if(A!=null&&A.childNodes.length>0){$(this.prefix+"AltTimes").setStyle({display:"block"});$(this.prefix+"AltTimes").appendChild(new Element("h2").update("Alternate time(s):"));$(this.prefix+"AltTimes").appendChild(A)}else{$(this.prefix+"AltTimes").setStyle({display:"none"});$(this.prefix+"AltTimes").innerHTML=""}},show:function(K){if(!dragging){this.visible=true;var H=Prototype.Browser.IE?K.element():K.element().parentNode;if($(H).hasClassName("info")){H=K.element().parentNode}if(H.getAttribute("sessionId")==null){return }this.setTitle(SessionData[sessionIdHash.get(H.getAttribute("sessionId"))][1]);this.setBody(SessionData[sessionIdHash.get(H.getAttribute("sessionId"))][2]);this.setSpeaker(SessionData[sessionIdHash.get(H.getAttribute("sessionId"))][5].join(", "));this.setSkill(SessionData[sessionIdHash.get(H.getAttribute("sessionId"))][7]);var D=SessionData[sessionIdHash.get(H.getAttribute("sessionId"))][6];var J=new Element("ul");for(var I=0;I<D.length;I++){if(D[I].id!=H.getAttribute("instance_id")){var F=new Element("li").update(D[I].date+" at "+D[I].times);J.appendChild(F)}}this.setAltTimes(J);if(Prototype.Browser.IE6){var G=$($(this.prefix+"Body").parentNode);if(G.getDimensions().height){G.setStyle({height:G.getDimensions().height+"px"})}}var C=Event.pointerX(K)-this.popup.getDimensions().width/2-20;var B=Event.pointerY(K)-this.popup.getDimensions().height;if(B<0){B=10}if(C<0){C=10}var E=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;var A=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;if(C+this.popup.getDimensions().width>E-10){C-=C+this.popup.getDimensions().width-E+20}if(!dragging){this.popup.setStyle({left:C+"px",top:B+"px"});this.popup.appear({duration:0.2})}}},manualShow:function(C,B,H,F,I,J){this.visible=true;this.setTitle(H);this.setBody(F);this.setSpeaker(null);this.setAltTimes(null);if(J){this.manualCallback=J}if(I){this.modal=true;var G=$("darkener");G.setOpacity(0);G.setStyle({width:document.documentElement.clientWidth+"px",height:document.documentElement.clientHeight+"px",top:"0",left:"0"});if(Prototype.Browser.IE6){G.setOpacity(1)}else{G.appear({duration:0.5})}}if(Prototype.Browser.IE6){var E=$($(this.prefix+"Body").parentNode);if(E.getDimensions().height){E.setStyle({height:E.getDimensions().height+"px"})}}var D=window.innerWidth?window.innerWidth:document.documentElement.clientWidth;var A=window.innerHeight?window.innerHeight:document.documentElement.clientHeight;if(C+this.popup.getDimensions().width>D){C-=(C+this.popup.getDimensions().width-D)}B-=(this.popup.getDimensions().height+4);this.popup.setStyle({left:C+"px",top:B+"px"});this.popup.appear({duration:0.2})},getWidth:function(){return this.popup.getDimensions().width},hide:function(B){if(this.visible||B){var A=$("darkener");if(B&&typeof B!="object"){this.popup.setOpacity(0);this.hideCallback();if(this.modal){A.setOpacity(0);A.setStyle({width:"1px",height:"1px",top:"-2000px",left:"-2000px"});this.modal=false}}else{if(Prototype.Browser.IE6){A.setOpacity(0);A.setStyle({width:"1px",height:"1px",top:"-2000px",left:"-2000px"})}else{A.fade({duration:0.5,afterFinish:function(){A.setStyle({width:"1px",height:"1px",top:"-2000px",left:"-2000px"})}})}new Effect.DropOut(this.popup,{afterFinish:function(){this.hideCallback();if(this.manualCallback){setTimeout(function(){this.manualCallback();this.manualCallback=false}.bind(this),2000)}}.bind(this)})}this.visible=false}},isVisible:function(){return this.visible},processKey:function(B){var A=B.keyCode||B.which;if(A==Event.KEY_ESC){this.hide()}else{if(A==80&&B.shiftKey){this.alt()}}},alt:function(){this.popup.toggleClassName("alt")}});function log(A){if(window.console){window.console.log(A)}}function appendToSelect(A,E,D,C){var B;B=document.createElement("option");B.value=E;if(C){B.selected=true}if(!D){D=E}B.appendChild(document.createTextNode(D));A.appendChild(B)}function buttonMouseOver(B){var A=B.element();if(A.tagName.toLowerCase()=="a"){A=A.firstChild}$(A).setOpacity(1)}function buttonMouseOut(B){var A=B.element();if(A.tagName.toLowerCase()=="a"){A=A.firstChild}$(A).setOpacity(0.5)}function hestiaOver(B){var A=Event.element(B);if(A.src!=A.src.replace(/-[a-z]+\./,"-over.")){A.src=A.src.replace(/-[a-z]+\./,"-over.")}}function hestiaOut(B){var A=Event.element(B);A.src=A.src.replace(/-[a-z]+\./,A.parentNode.hasClassName("highlight")?"-highlight.":"-off.")}function hestiaDown(B){var A=Event.element(B);A.src=A.src.replace(/-[a-z]+\./,"-down.")}function getCoords(A){x=Event.pointer(A).x;y=Event.pointer(A).y}var hexcase=0;var b64pad="";var chrsz=8;function hex_md5(A){return binl2hex(core_md5(str2binl(A),A.length*chrsz))}function b64_md5(A){return binl2b64(core_md5(str2binl(A),A.length*chrsz))}function str_md5(A){return binl2str(core_md5(str2binl(A),A.length*chrsz))}function hex_hmac_md5(A,B){return binl2hex(core_hmac_md5(A,B))}function b64_hmac_md5(A,B){return binl2b64(core_hmac_md5(A,B))}function str_hmac_md5(A,B){return binl2str(core_hmac_md5(A,B))}function md5_vm_test(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function core_md5(K,F){K[F>>5]|=128<<((F)%32);K[(((F+64)>>>9)<<4)+14]=F;var J=1732584193;var I=-271733879;var H=-1732584194;var G=271733878;for(var C=0;C<K.length;C+=16){var E=J;var D=I;var B=H;var A=G;J=md5_ff(J,I,H,G,K[C+0],7,-680876936);G=md5_ff(G,J,I,H,K[C+1],12,-389564586);H=md5_ff(H,G,J,I,K[C+2],17,606105819);I=md5_ff(I,H,G,J,K[C+3],22,-1044525330);J=md5_ff(J,I,H,G,K[C+4],7,-176418897);G=md5_ff(G,J,I,H,K[C+5],12,1200080426);H=md5_ff(H,G,J,I,K[C+6],17,-1473231341);I=md5_ff(I,H,G,J,K[C+7],22,-45705983);J=md5_ff(J,I,H,G,K[C+8],7,1770035416);G=md5_ff(G,J,I,H,K[C+9],12,-1958414417);H=md5_ff(H,G,J,I,K[C+10],17,-42063);I=md5_ff(I,H,G,J,K[C+11],22,-1990404162);J=md5_ff(J,I,H,G,K[C+12],7,1804603682);G=md5_ff(G,J,I,H,K[C+13],12,-40341101);H=md5_ff(H,G,J,I,K[C+14],17,-1502002290);I=md5_ff(I,H,G,J,K[C+15],22,1236535329);J=md5_gg(J,I,H,G,K[C+1],5,-165796510);G=md5_gg(G,J,I,H,K[C+6],9,-1069501632);H=md5_gg(H,G,J,I,K[C+11],14,643717713);I=md5_gg(I,H,G,J,K[C+0],20,-373897302);J=md5_gg(J,I,H,G,K[C+5],5,-701558691);G=md5_gg(G,J,I,H,K[C+10],9,38016083);H=md5_gg(H,G,J,I,K[C+15],14,-660478335);I=md5_gg(I,H,G,J,K[C+4],20,-405537848);J=md5_gg(J,I,H,G,K[C+9],5,568446438);G=md5_gg(G,J,I,H,K[C+14],9,-1019803690);H=md5_gg(H,G,J,I,K[C+3],14,-187363961);I=md5_gg(I,H,G,J,K[C+8],20,1163531501);J=md5_gg(J,I,H,G,K[C+13],5,-1444681467);G=md5_gg(G,J,I,H,K[C+2],9,-51403784);H=md5_gg(H,G,J,I,K[C+7],14,1735328473);I=md5_gg(I,H,G,J,K[C+12],20,-1926607734);J=md5_hh(J,I,H,G,K[C+5],4,-378558);G=md5_hh(G,J,I,H,K[C+8],11,-2022574463);H=md5_hh(H,G,J,I,K[C+11],16,1839030562);I=md5_hh(I,H,G,J,K[C+14],23,-35309556);J=md5_hh(J,I,H,G,K[C+1],4,-1530992060);G=md5_hh(G,J,I,H,K[C+4],11,1272893353);H=md5_hh(H,G,J,I,K[C+7],16,-155497632);I=md5_hh(I,H,G,J,K[C+10],23,-1094730640);J=md5_hh(J,I,H,G,K[C+13],4,681279174);G=md5_hh(G,J,I,H,K[C+0],11,-358537222);H=md5_hh(H,G,J,I,K[C+3],16,-722521979);I=md5_hh(I,H,G,J,K[C+6],23,76029189);J=md5_hh(J,I,H,G,K[C+9],4,-640364487);G=md5_hh(G,J,I,H,K[C+12],11,-421815835);H=md5_hh(H,G,J,I,K[C+15],16,530742520);I=md5_hh(I,H,G,J,K[C+2],23,-995338651);J=md5_ii(J,I,H,G,K[C+0],6,-198630844);G=md5_ii(G,J,I,H,K[C+7],10,1126891415);H=md5_ii(H,G,J,I,K[C+14],15,-1416354905);I=md5_ii(I,H,G,J,K[C+5],21,-57434055);J=md5_ii(J,I,H,G,K[C+12],6,1700485571);G=md5_ii(G,J,I,H,K[C+3],10,-1894986606);H=md5_ii(H,G,J,I,K[C+10],15,-1051523);I=md5_ii(I,H,G,J,K[C+1],21,-2054922799);J=md5_ii(J,I,H,G,K[C+8],6,1873313359);G=md5_ii(G,J,I,H,K[C+15],10,-30611744);H=md5_ii(H,G,J,I,K[C+6],15,-1560198380);I=md5_ii(I,H,G,J,K[C+13],21,1309151649);J=md5_ii(J,I,H,G,K[C+4],6,-145523070);G=md5_ii(G,J,I,H,K[C+11],10,-1120210379);H=md5_ii(H,G,J,I,K[C+2],15,718787259);I=md5_ii(I,H,G,J,K[C+9],21,-343485551);J=safe_add(J,E);I=safe_add(I,D);H=safe_add(H,B);G=safe_add(G,A)}return Array(J,I,H,G)}function md5_cmn(F,C,B,A,E,D){return safe_add(bit_rol(safe_add(safe_add(C,F),safe_add(A,D)),E),B)}function md5_ff(C,B,G,F,A,E,D){return md5_cmn((B&G)|((~B)&F),C,B,A,E,D)}function md5_gg(C,B,G,F,A,E,D){return md5_cmn((B&F)|(G&(~F)),C,B,A,E,D)}function md5_hh(C,B,G,F,A,E,D){return md5_cmn(B^G^F,C,B,A,E,D)}function md5_ii(C,B,G,F,A,E,D){return md5_cmn(G^(B|(~F)),C,B,A,E,D)}function core_hmac_md5(C,F){var E=str2binl(C);if(E.length>16){E=core_md5(E,C.length*chrsz)}var A=Array(16),D=Array(16);for(var B=0;B<16;B++){A[B]=E[B]^909522486;D[B]=E[B]^1549556828}var G=core_md5(A.concat(str2binl(F)),512+F.length*chrsz);return core_md5(D.concat(G),512+128)}function safe_add(A,D){var C=(A&65535)+(D&65535);var B=(A>>16)+(D>>16)+(C>>16);return(B<<16)|(C&65535)}function bit_rol(A,B){return(A<<B)|(A>>>(32-B))}function str2binl(D){var C=Array();var A=(1<<chrsz)-1;for(var B=0;B<D.length*chrsz;B+=chrsz){C[B>>5]|=(D.charCodeAt(B/chrsz)&A)<<(B%32)}return C}function binl2str(C){var D="";var A=(1<<chrsz)-1;for(var B=0;B<C.length*32;B+=chrsz){D+=String.fromCharCode((C[B>>5]>>>(B%32))&A)}return D}function binl2hex(C){var B=hexcase?"0123456789ABCDEF":"0123456789abcdef";var D="";for(var A=0;A<C.length*4;A++){D+=B.charAt((C[A>>2]>>((A%4)*8+4))&15)+B.charAt((C[A>>2]>>((A%4)*8))&15)}return D}function binl2b64(D){var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var F="";for(var B=0;B<D.length*4;B+=3){var E=(((D[B>>2]>>8*(B%4))&255)<<16)|(((D[B+1>>2]>>8*((B+1)%4))&255)<<8)|((D[B+2>>2]>>8*((B+2)%4))&255);for(var A=0;A<4;A++){if(B*8+A*6>D.length*32){F+=b64pad}else{F+=C.charAt((E>>6*(3-A))&63)}}}return F};