function smoothScroll(n){$("html,body").animate({scrollTop:$(n).offset().top},700)}function externalLinks(){var i,t,n,r;if(document.getElementsByTagName)for(i=document.getElementsByTagName("a"),t=0;t<i.length;t++)n=i[t],n.getAttribute("href")&&n.getAttribute("rel")=="external"&&(n.target="_blank",n.getAttribute("onclick")&&(r=n.getAttribute("onclick").toString(),r.search("OffRamp")>-1&&(n.className="interstitial")))}function keyListener(n){n=n||window.event;var t=n.key||n.which||n.keyCode;(t===13||t===32||t===40)&&(console.log("A"),$(this).parent("li").addClass("hover"))}function kr(){console.log("XA")}function emailGuide(){$(".btnemail_guide").css("display","none");$(".emailform").css("display","block");$(".div_btns").addClass("div_btns_recenter");$(".emailform").addClass("emailform_recenter")}function plusSlides(n){showSlides(slideIndex+=n)}function currentSlide(n){showSlides(slideIndex=n)}function showSlides(n){let i,t=document.getElementsByClassName("mySlides");for(n>t.length&&(slideIndex=1),n<1&&(slideIndex=t.length),i=0;i<t.length;i++)t[i].style.display="none";t.length>0&&(t[slideIndex-1].style.display="block",slideIndex-1==0?($(".prev").css("pointer-events","none"),$(".icon_2x_modify_prev").css("background","#eeffff85")):($(".prev").css("pointer-events","auto"),$(".icon_2x_modify_prev").css("background","#fff")),slideIndex-1==11?($(".next").css("pointer-events","none"),$(".icon_2x_modify_next").css("background","#eeffff85")):($(".next").css("pointer-events","auto"),$(".icon_2x_modify_next").css("background","#fff")))}function Calculate_Dosage(){var t,n,i,r;($("#result_wrapper").hide(),resetErrorLabels(),$("#txtvivorecovery").val()==""&&$("#txtvivorecovery").val("2.0"),i=IsNullCheckFields(),i!="1")&&(r=IsValidateFields(),r!="1")&&(t=_isKgSelected==!1?Math.round(document.getElementById("txtbodyWeight").value*.4536):document.getElementById("txtbodyWeight").value,n=Math.round((document.getElementById("txttargetlevel").value-document.getElementById("txtbaseLineLevel").value)*t/document.getElementById("txtvivorecovery").value),n<0&&(n=0),document.getElementById("txtResult1").innerHTML=n,$("#result_wrapper").show(),$("#txtvivorecovery").val()=="2.0"||$("#txtvivorecovery").val()=="2"?$("#IVRdefaultvalue").show():$("#IVRdefaultvalue").hide(),$("#result_wrapper").get(0).scrollIntoView())}function resetCalc(){resetErrorLabels();$("#txtbodyWeight").val("");$("#txtbaseLineLevel").val("");$("#txtvivorecovery").val("2.0");$("#txttargetlevel").val("75");$("#myRange").val("75");$("#surgerytype option:selected").removeAttr("selected");$("#result_wrapper").hide();$("#txtbodyWeight").focus();$("#calLb").addClass("active");$("#calkg").removeClass("active");$("#calkg").css("background","transparent");$("#calkg").css("color","#363636");$("#calLb").css("background","#0e2b8d");$("#calLb").css("color","#fff");_isKgSelected=$("#calkg").hasClass("active")?!0:!1}function resetErrorLabels(){$(".bodyWeighterrorlabel").html("");$(".baseLineLevelerrorlabel").html("");$(".targetLevelerrorlabel").html("");$(".vivoRecoveryerrorlabel").html("");$("#txtbodyWeight").removeClass("inputvalidation");$("#txtbaseLineLevel").removeClass("inputvalidation");$("#txttargetlevel").removeClass("inputvalidation")}function targetlevelautoset(n,t){return t=="1"?n>100&&($("#txttargetlevel").val("99"),n=$("#txttargetlevel").val()):n>100&&($("#txttargetlevel").val("101"),n=$("#txttargetlevel").val()),t=="1"?n<=49&&($("#txttargetlevel").val("49"),n=$("#txttargetlevel").val()):n<=49&&($("#txttargetlevel").val("50"),n=$("#txttargetlevel").val()),$(".targetLevelerrorlabel").removeClass("errorclass"),$(".targetLevelerrorlabel").html(""),$("#txttargetlevel").removeClass("inputvalidation"),n}function IsValidateFields(){return _validateValueCheck=0,$("#txtbodyWeight").val()!=""?isNaN($("#txtbodyWeight").val())==!0&&($(".bodyWeighterrorlabel").html("Body weight must be a numeric value."),$(".bodyWeighterrorlabel").addClass("errorclass"),$("#txtbodyWeight").focus(),_validateValueCheck=1):($(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html("")),$("#txtbaseLineLevel").val()!=""?isNaN($("#txtbaseLineLevel").val())==!0&&($(".baseLineLevelerrorlabel").html("Baseline level must be a numeric value."),$(".baseLineLevelerrorlabel").addClass("errorclass"),document.getElementById("txtbaseLineLevel").focus(),_validateValueCheck=1):($(".baseLineLevelerrorlabel").removeClass("errorclass"),$(".baseLineLevelerrorlabel").html("")),eval(document.getElementById("txtbaseLineLevel").value)<0||eval(document.getElementById("txtbaseLineLevel").value)>100?($(".baseLineLevelerrorlabel").html("This value is not typical for baseline levels of VWF:RCo. Please refer to the PI for full dosing recommendations."),$(".baseLineLevelerrorlabel").addClass("errorclass"),$("#txtbaseLineLevel").focus(),_validateValueCheck=1):($(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html("")),$("#txttargetlevel").val()!=""&&(isNaN($("#txttargetlevel").val())==!0?($(".targetLevelerrorlabel").html("Target level must be a numeric value."),$(".targetLevelerrorlabel").addClass("errorclass"),_validateValueCheck=1):($(".targetLevelerrorlabel").removeClass("errorclass"),$(".targetLevelerrorlabel").html(""))),eval(document.getElementById("txttargetlevel").value)<50||eval(document.getElementById("txttargetlevel").value)>100?($(".targetLevelerrorlabel").html("This value is not typical for target levels of VWF:RCo. Please refer to the PI for full dosing recommendations."),$(".targetLevelerrorlabel").addClass("errorclass"),$("#txttargetlevel").focus(),_validateValueCheck=1):($(".targetLevelerrorlabel").removeClass("errorclass"),$(".targetLevelerrorlabel").html("")),$("#txtvivorecovery").val()!=""&&(isNaN($("#txtvivorecovery").val())==!0?($(".vivoRecoveryerrorlabel").html("In vivo recovery must be a numeric value."),$("#txtvivorecovery").focus(),_validateValueCheck=1):($(".vivoRecoveryerrorlabel").removeClass("errorclass"),$(".vivoRecoveryerrorlabel").html("")),eval(document.getElementById("txtvivorecovery").value)<1||eval(document.getElementById("txtvivorecovery").value)>5?($(".vivoRecoveryerrorlabel").html("This value is not typical for IVR. Please refer to the PI for full dosing recommendations."),$(".vivoRecoveryerrorlabel").addClass("errorclass"),$("#txtvivorecovery").focus(),_validateValueCheck=1):($(".vivoRecoveryerrorlabel").removeClass("errorclass"),$(".vivoRecoveryerrorlabel").html(""))),_isKgSelected==!0&&(eval(document.getElementById("txtbodyWeight").value)<5||eval(document.getElementById("txtbodyWeight").value)>140?($(".bodyWeighterrorlabel").html("This value is not typical for body weight. Please refer to the PI for full dosing recommendations."),$(".bodyWeighterrorlabel").addClass("errorclass"),document.getElementById("txtbodyWeight").focus(),_validateValueCheck=1):($(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html(""))),_isKgSelected==!1&&(eval(document.getElementById("txtbodyWeight").value)<11||eval(document.getElementById("txtbodyWeight").value)>308?($(".bodyWeighterrorlabel").html("This value is not typical for body weight. Please refer to the PI for full dosing recommendations."),$(".bodyWeighterrorlabel").addClass("errorclass"),document.getElementById("txtbodyWeight").focus(),_validateValueCheck=1):($(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html(""))),_validateValueCheck}function IsNullCheckFields(){return _validateStatus=0,$("#txtbodyWeight").val()==""?($("#txtbodyWeight").addClass("inputvalidation"),$(".bodyWeighterrorlabel").html("Please enter the patient's body weight."),$(".bodyWeighterrorlabel").addClass("errorclass"),$("#txtbodyWeight").focus(),_validateStatus=1):($(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html(""),$("#txtbodyWeight").removeClass("inputvalidation")),$("#txtbaseLineLevel").val()==""?($("#txtbaseLineLevel").addClass("inputvalidation"),$(".baseLineLevelerrorlabel").html("Please enter the patient's baseline level."),$(".baseLineLevelerrorlabel").addClass("errorclass"),_validateStatus=="0"&&$("#txtbaseLineLevel").focus(),_validateStatus=1):($(".baseLineLevelerrorlabel").removeClass("errorclass"),$(".baseLineLevelerrorlabel").html(""),$("#txtbaseLineLevel").removeClass("inputvalidation")),$("#txttargetlevel").val()==""?($(".targetLevelerrorlabel").html("Please enter the target level value."),$(".targetLevelerrorlabel").addClass("errorclass"),$("#txttargetlevel").focus(),_validateStatus=1):($(".targetLevelerrorlabel").removeClass("errorclass"),$(".targetLevelerrorlabel").html("")),_validateStatus}var sectionTracking,slider,default_val;!function(){"use strict";function y(n,t,i){var r=new b(t);switch(n){case"open":r.open(i);break;case"close":r.close(i);break;case"toggle":r.toggle(i);break;default:k.error("Method "+n+" does not exist on jQuery.sidr")}}function l(t){return"status"===t?n:s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"function"!=typeof t&&"string"!=typeof t&&t?void d.error("Method "+t+" does not exist on jQuery.sidr"):s.toggle.apply(this,arguments)}function p(n,r){var e,u,o,f;return"function"==typeof r.source?(e=r.source(name),n.html(e)):"string"==typeof r.source&&i.isUrl(r.source)?t.get(r.source,function(t){n.html(t)}):"string"==typeof r.source?(u="",o=r.source.split(","),(t.each(o,function(n,i){u+='<div class="sidr-inner">'+t(i).html()+"<\/div>"}),r.renaming)&&(f=t("<div />").html(u),f.find("*").each(function(n,r){var u=t(r);i.addPrefixes(u)}),u=f.html()),n.html(u)):null!==r.source&&t.error("Invalid Sidr Source"),n}function w(r){var o=i.transitions,u=t.extend({name:"sidr",speed:200,side:"left",source:null,renaming:!0,body:"body",displace:!0,timing:"ease",method:"toggle",bind:"touchstart click",onOpen:function(){},onClose:function(){},onOpenEnd:function(){},onCloseEnd:function(){}},r),e=u.name,f=t("#"+e);return 0===f.length&&(f=t("<div />").attr("id",e).appendTo(t("body"))),o.supported&&f.css(o.property,u.side+" "+u.speed/1e3+"s "+u.timing),f.addClass("sidr").addClass(u.side).data({speed:u.speed,side:u.side,body:u.body,displace:u.displace,timing:u.timing,method:u.method,onOpen:u.onOpen,onClose:u.onClose,onOpenEnd:u.onOpenEnd,onCloseEnd:u.onCloseEnd}),f=p(f,u),this.each(function(){var i=t(this),f=i.data("sidr"),r=!1;f||(n.moving=!1,n.opened=!1,i.data("sidr",e),i.bind(u.bind,function(n){n.preventDefault();r||(r=!0,l(u.method,e),setTimeout(function(){r=!1},100))}))})}var u={},t;u.classCallCheck=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");};u.createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();for(var h,n={moving:!1,opened:!1},i={isUrl:function(n){var t=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return t.test(n)?!0:!1},addPrefixes:function(n){this.addPrefix(n,"id");this.addPrefix(n,"class");n.removeAttr("style")},addPrefix:function(n,t){var i=n.attr(t);"string"==typeof i&&""!==i&&"sidr-inner"!==i&&n.attr(t,i.replace(/([A-Za-z0-9_.\-]+)/g,"sidr-"+t+"-$1"))},transitions:function(){var r=document.body||document.documentElement,i=r.style,t=!1,n="transition";return n in i?t=!0:!function(){var f=["moz","webkit","o","ms"],u=void 0,r=void 0;n=n.charAt(0).toUpperCase()+n.substr(1);t=function(){for(r=0;r<f.length;r++)if(u=f[r],u+n in i)return!0;return!1}();n=t?"-"+u.toLowerCase()+"-"+n.toLowerCase():null}(),{supported:t,property:n}}()},e=jQuery,c="sidr-animating",o="open",a="close",r="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",b=function(){function t(n){u.classCallCheck(this,t);this.name=n;this.item=e("#"+n);this.openClass="sidr"===n?"sidr-open":"sidr-open "+n+"-open";this.menuWidth=this.item.outerWidth(!0);this.speed=this.item.data("speed");this.side=this.item.data("side");this.displace=this.item.data("displace");this.timing=this.item.data("timing");this.method=this.item.data("method");this.onOpenCallback=this.item.data("onOpen");this.onCloseCallback=this.item.data("onClose");this.onOpenEndCallback=this.item.data("onOpenEnd");this.onCloseEndCallback=this.item.data("onCloseEnd");this.body=e(this.item.data("body"))}return u.createClass(t,[{key:"getAnimation",value:function(n,t){var i={},r=this.side;return i[r]="open"===n&&"body"===t?this.menuWidth+"px":"close"===n&&"menu"===t?"-"+this.menuWidth+"px":0,i}},{key:"prepareBody",value:function(n){var r="open"===n?"hidden":"",t,i;this.body.is("body")&&(t=e("html"),i=t.scrollTop(),t.css("overflow-x",r).scrollTop(i))}},{key:"openBody",value:function(){var t,n,r;this.displace&&(t=i.transitions,n=this.body,t.supported?(n.css(t.property,this.side+" "+this.speed/1e3+"s "+this.timing).css(this.side,0).css({width:n.width(),position:"absolute"}),n.css(this.side,this.menuWidth+"px")):(r=this.getAnimation(o,"body"),n.css({width:n.width(),position:"absolute"}).animate(r,{queue:!1,duration:this.speed})))}},{key:"onCloseBody",value:function(){var n=i.transitions,t={width:"",position:"",right:"",left:""};n.supported&&(t[n.property]="");this.body.css(t).unbind(r)}},{key:"closeBody",value:function(){var n=this,t;if(this.displace)if(i.transitions.supported)this.body.css(this.side,0).one(r,function(){n.onCloseBody()});else t=this.getAnimation(a,"body"),this.body.animate(t,{queue:!1,duration:this.speed,complete:function(){n.onCloseBody()}})}},{key:"moveBody",value:function(n){n===o?this.openBody():this.closeBody()}},{key:"onOpenMenu",value:function(t){var i=this.name;n.moving=!1;n.opened=i;this.item.unbind(r);this.body.removeClass(c).addClass(this.openClass);this.onOpenEndCallback();"function"==typeof t&&t(i)}},{key:"openMenu",value:function(n){var t=this,u=this.item,f;if(i.transitions.supported)u.css(this.side,0).one(r,function(){t.onOpenMenu(n)});else f=this.getAnimation(o,"menu"),u.css("display","block").animate(f,{queue:!1,duration:this.speed,complete:function(){t.onOpenMenu(n)}})}},{key:"onCloseMenu",value:function(t){this.item.css({left:"",right:""}).unbind(r);e("html").css("overflow-x","");n.moving=!1;n.opened=!1;this.body.removeClass(c).removeClass(this.openClass);this.onCloseEndCallback();"function"==typeof t&&t(name)}},{key:"closeMenu",value:function(n){var t=this,u=this.item,f;if(i.transitions.supported)u.css(this.side,"").one(r,function(){t.onCloseMenu(n)});else f=this.getAnimation(a,"menu"),u.animate(f,{queue:!1,duration:this.speed,complete:function(){t.onCloseMenu()}})}},{key:"moveMenu",value:function(n,t){this.body.addClass(c);n===o?this.openMenu(t):this.closeMenu(t)}},{key:"move",value:function(t,i){n.moving=!0;this.prepareBody(t);this.moveBody(t);this.moveMenu(t,i)}},{key:"open",value:function(i){var u=this,r;if(n.opened!==this.name&&!n.moving){if(n.opened!==!1)return r=new t(n.opened),void r.close(function(){u.open(i)});this.move("open",i);this.onOpenCallback()}}},{key:"close",value:function(t){n.opened!==this.name||n.moving||(this.move("close",t),this.onCloseCallback())}},{key:"toggle",value:function(t){n.opened===this.name?this.close(t):this.open(t)}}]),t}(),k=jQuery,d=jQuery,v=["open","close","toggle"],s={},g=function(n){return function(t,i){"function"==typeof t?(i=t,t="sidr"):t||(t="sidr");y(n,t,i)}},f=0;f<v.length;f++)h=v[f],s[h]=g(h);t=jQuery;jQuery.sidr=l;jQuery.fn.sidr=w}();!function(){"use strict";function n(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+i;this.options=n.Adapter.extend({},n.defaults,r);this.element=this.options.element;this.adapter=new n.Adapter(this.element);this.callback=r.handler;this.axis=this.options.horizontal?"horizontal":"vertical";this.enabled=this.options.enabled;this.triggerPoint=null;this.group=n.Group.findOrCreate({name:this.options.group,axis:this.axis});this.context=n.Context.findOrCreateByElement(this.options.context);n.offsetAliases[this.options.offset]&&(this.options.offset=n.offsetAliases[this.options.offset]);this.group.add(this);this.context.add(this);t[this.key]=this;i+=1}var i=0,t={};n.prototype.queueTrigger=function(n){this.group.queueTrigger(this,n)};n.prototype.trigger=function(n){this.enabled&&this.callback&&this.callback.apply(this,n)};n.prototype.destroy=function(){this.context.remove(this);this.group.remove(this);delete t[this.key]};n.prototype.disable=function(){return this.enabled=!1,this};n.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this};n.prototype.next=function(){return this.group.next(this)};n.prototype.previous=function(){return this.group.previous(this)};n.invokeAll=function(n){var r=[],u,i,f;for(u in t)r.push(t[u]);for(i=0,f=r.length;f>i;i++)r[i][n]()};n.destroyAll=function(){n.invokeAll("destroy")};n.disableAll=function(){n.invokeAll("disable")};n.enableAll=function(){n.invokeAll("enable")};n.refreshAll=function(){n.Context.refreshAll()};n.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight};n.viewportWidth=function(){return document.documentElement.clientWidth};n.adapters=[];n.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0};n.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}};window.Waypoint=n}(),function(){"use strict";function f(n){window.setTimeout(n,1e3/60)}function n(n){this.element=n;this.Adapter=t.Adapter;this.adapter=new this.Adapter(n);this.key="waypoint-context-"+r;this.didScroll=!1;this.didResize=!1;this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()};this.waypoints={vertical:{},horizontal:{}};n.waypointContextKey=this.key;i[n.waypointContextKey]=this;r+=1;this.createThrottledScrollHandler();this.createThrottledResizeHandler()}var r=0,i={},t=window.Waypoint,u=window.onload;n.prototype.add=function(n){var t=n.options.horizontal?"horizontal":"vertical";this.waypoints[t][n.key]=n;this.refresh()};n.prototype.checkEmpty=function(){var n=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical);n&&t&&(this.adapter.off(".waypoints"),delete i[this.key])};n.prototype.createThrottledResizeHandler=function(){function i(){n.handleResize();n.didResize=!1}var n=this;this.adapter.on("resize.waypoints",function(){n.didResize||(n.didResize=!0,t.requestAnimationFrame(i))})};n.prototype.createThrottledScrollHandler=function(){function i(){n.handleScroll();n.didScroll=!1}var n=this;this.adapter.on("scroll.waypoints",function(){(!n.didScroll||t.isTouch)&&(n.didScroll=!0,t.requestAnimationFrame(i))})};n.prototype.handleResize=function(){t.Context.refreshAll()};n.prototype.handleScroll=function(){var u={},i={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},r,f,s;for(r in i){var n=i[r],h=n.newScroll>n.oldScroll,c=h?n.forward:n.backward;for(f in this.waypoints[r]){var t=this.waypoints[r][f],e=n.oldScroll<t.triggerPoint,o=n.newScroll>=t.triggerPoint,l=e&&o,a=!e&&!o;(l||a)&&(t.queueTrigger(c),u[t.group.id]=t.group)}}for(s in u)u[s].flushTriggers();this.oldScroll={x:i.horizontal.newScroll,y:i.vertical.newScroll}};n.prototype.innerHeight=function(){return this.element==this.element.window?t.viewportHeight():this.adapter.innerHeight()};n.prototype.remove=function(n){delete this.waypoints[n.axis][n.key];this.checkEmpty()};n.prototype.innerWidth=function(){return this.element==this.element.window?t.viewportWidth():this.adapter.innerWidth()};n.prototype.destroy=function(){var t=[],i,r,n,u;for(i in this.waypoints)for(r in this.waypoints[i])t.push(this.waypoints[i][r]);for(n=0,u=t.length;u>n;n++)t[n].destroy()};n.prototype.refresh=function(){var o,u=this.element==this.element.window,l=u?void 0:this.adapter.offset(),f={},e,i,a;this.handleScroll();o={horizontal:{contextOffset:u?0:l.left,contextScroll:u?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:u?0:l.top,contextScroll:u?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(e in o){i=o[e];for(a in this.waypoints[e]){var v,s,h,y,p,n=this.waypoints[e][a],r=n.options.offset,w=n.triggerPoint,b=0,c=null==w;n.element!==n.element.window&&(b=n.adapter.offset()[i.offsetProp]);"function"==typeof r?r=r.apply(n):"string"==typeof r&&(r=parseFloat(r),n.options.offset.indexOf("%")>-1&&(r=Math.ceil(i.contextDimension*r/100)));v=i.contextScroll-i.contextOffset;n.triggerPoint=b+v-r;s=w<i.oldScroll;h=n.triggerPoint>=i.oldScroll;y=s&&h;p=!s&&!h;!c&&y?(n.queueTrigger(i.backward),f[n.group.id]=n.group):!c&&p?(n.queueTrigger(i.forward),f[n.group.id]=n.group):c&&i.oldScroll>=n.triggerPoint&&(n.queueTrigger(i.forward),f[n.group.id]=n.group)}}return t.requestAnimationFrame(function(){for(var n in f)f[n].flushTriggers()}),this};n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)};n.refreshAll=function(){for(var n in i)i[n].refresh()};n.findByElement=function(n){return i[n.waypointContextKey]};window.onload=function(){u&&u();n.refreshAll()};t.requestAnimationFrame=function(n){var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||f;t.call(window,n)};t.Context=n}(),function(){"use strict";function i(n,t){return n.triggerPoint-t.triggerPoint}function u(n,t){return t.triggerPoint-n.triggerPoint}function n(n){this.name=n.name;this.axis=n.axis;this.id=this.name+"-"+this.axis;this.waypoints=[];this.clearTriggerQueues();r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},t=window.Waypoint;n.prototype.add=function(n){this.waypoints.push(n)};n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}};n.prototype.flushTriggers=function(){var n,t,e,r,o,f;for(n in this.triggerQueues)for(t=this.triggerQueues[n],e="up"===n||"left"===n,t.sort(e?u:i),r=0,o=t.length;o>r;r+=1)f=t[r],(f.options.continuous||r===t.length-1)&&f.trigger([n]);this.clearTriggerQueues()};n.prototype.next=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints),u=r===this.waypoints.length-1;return u?null:this.waypoints[r+1]};n.prototype.previous=function(n){this.waypoints.sort(i);var r=t.Adapter.inArray(n,this.waypoints);return r?this.waypoints[r-1]:null};n.prototype.queueTrigger=function(n,t){this.triggerQueues[t].push(n)};n.prototype.remove=function(n){var i=t.Adapter.inArray(n,this.waypoints);i>-1&&this.waypoints.splice(i,1)};n.prototype.first=function(){return this.waypoints[0]};n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]};n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)};t.Group=n}(),function(){"use strict";function n(n){this.$element=t(n)}var t=window.jQuery,i=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,i){n.prototype[i]=function(){var n=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,n)}});t.each(["extend","inArray","isEmptyObject"],function(i,r){n[r]=t[r]});i.adapters.push({name:"jquery",Adapter:n});i.Adapter=n}(),function(){"use strict";function n(n){return function(){var r=[],i=arguments[0];return n.isFunction(arguments[0])&&(i=n.extend({},arguments[1]),i.handler=arguments[0]),this.each(function(){var u=n.extend({},i,{element:this});"string"==typeof u.context&&(u.context=n(this).closest(u.context)[0]);r.push(new t(u))}),r}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=n(window.jQuery));window.Zepto&&(window.Zepto.fn.waypoint=n(window.Zepto))}();jQuery.cookie=function(n,t,i){var f,r,e,o,u,s;if(typeof t!="undefined"){i=i||{};t===null&&(t="",i.expires=-1);f="";i.expires&&(typeof i.expires=="number"||i.expires.toUTCString)&&(typeof i.expires=="number"?(r=new Date,r.setTime(r.getTime()+i.expires*864e5)):r=i.expires,f="; expires="+r.toUTCString());var h=i.path?"; path="+i.path:"",c=i.domain?"; domain="+i.domain:"",l=i.secure?"; secure":"";document.cookie=[n,"=",encodeURIComponent(t),f,h,c,l].join("")}else{if(e=null,document.cookie&&document.cookie!="")for(o=document.cookie.split(";"),u=0;u<o.length;u++)if(s=jQuery.trim(o[u]),s.substring(0,n.length+1)==n+"="){e=decodeURIComponent(s.substring(n.length+1));break}return e}};sectionTracking=!0;$(document).ready(function(){var n,t,i;$(".pure-menu-children").children().each(function(){$(this).hasClass("active")&&$(this).parentsUntil(".pure-menu-list").addClass("active")});$("#search-toggle").click(function(){$("#search-container-desktop").slideToggle()});$(".dismiss-cookie-notification").click(function(){document.cookie="cookie_notification=true; path=/";$("#cookie-notification").stop().slideUp()});document.cookie.indexOf("cookie_notification")>-1?(n=document.cookie.substring(document.cookie.indexOf("cookie_notification")),t=n.indexOf(";")>-1?n.substring(n.indexOf("=")+1,n.indexOf(";")):t=n.substring(n.indexOf("=")+1),t!=="true"&&$("#cookie-notification").css("display","block")):$("#cookie-notification").css("display","block");$("#spanISIWidgetControl").click(function(){smoothScroll("#top-jump");ga("send","event","Interactive Feature","ISI Widget","Scroll to full ISI",1)});i=new Waypoint({element:document.getElementById("main-body"),handler:function(n){n=="down"?$("#divISIWidget").removeClass("divISIWidget"):$("#divISIWidget").addClass("divISIWidget")},offset:"bottom-in-view"});externalLinks();$(".interstital, .interstitial").click(function(){return $("#interstitialMessage").html("The site you are accessing is maintained by a third party over whom CSL Behring has no control. CSL Behring does not review, approve, or necessarily endorse viewpoints, inferences, or conclusions stated in or implied by the content of this site. CSL Behring is not responsible for third-party content or the consequences of your use thereof."),$("#interstitialYes").attr("href",$(this).attr("href")),$("#interstitialYes").attr("title",$(this).attr("title")),$(this).text()!=null&&$(this).text()!=""&&$("#interstitialYes").data("interstitial-text",$(this).text()),$("#interstitialNo").data("interstitial-target-url",$(this).attr("href")),$("#interstitialContainer").addClass("active"),$("#interstitial").parent().addClass("interstitialParent"),$("#interstitialContainer #interstitial").data("modal-type","interstitial"),!1});$(".intrastital, .intrastitial").click(function(){return $("#interstitialMessage").html("The site you are accessing includes general information about a disease state and its treatment. We remind you that CSL Behring recommends use of its products only as defined in the approved product labeling."),$("#interstitialYes").attr("href",$(this).attr("href")),$("#interstitialContainer").addClass("active"),$("#interstitial").parent().addClass("interstitialParent"),$("#interstitialContainer #interstitial").data("modal-type","intrastitial"),!1});$("a#interstitialYes").click(function(){var n=$("#interstitialContainer #interstitial").data("modal-type");try{ga("send","event","Interactive Feature",n,"Yes - "+$(this).attr("href"));$(this).attr("title")?ga("send","event","Link","Outbound Link Click",$(this).attr("title")):$(this).data("interstitial-text")!=undefined?ga("send","event","Link","Outbound Link Click",$(this).data("interstitial-text")):ga("send","event","Link","Outbound Link Click",$(this).attr("href"))}catch(t){}});$("a#interstitialNo").click(function(){var n=$("#interstitialContainer #interstitial").data("modal-type");try{ga("send","event","Interactive Feature",n,"No - "+$(this).data("interstitial-target-url"))}catch(t){}});$("#nav-mobile-toggle").sidr({name:"nav-mobile",side:"right"});$(window).on("resize",function(){var n=navigator.userAgent.toLowerCase(),t=n.indexOf("android")>-1;t||$.sidr("close","side-nav")});$("#nav-mobile .nav-parent").click(function(){$(this).siblings("ul").toggle();$(this).toggleClass("expanded")});$(".accordion-header").click(function(){$(this).parents(".accordion").hasClass("active")?$(this).next(".accordion-body").stop().slideUp("fast",function(){$(this).parents(".accordion").removeClass("active")}):($(this).parents(".accordion").addClass("active"),$(this).next(".accordion-body").stop().slideDown("fast"))});$(window).width()>767&&$(window).width()<1024&&(console.log($(window).width()),$("a.tablet-nav").click(function(){return console.log("test"),$(this).hasClass("tablet-nav-active")?console.log("already open"):$(this).addClass("tablet-nav-active"),!1}));$("#nav-links li").delegate("*","focus blur",function(){var n=$(this);$(n).hasClass("nav-parent")&&$(n).addClass("focused");$("#nav-links ul li:last-child a").on("focusout",function(){$("a.nav-parent.focused").removeClass("focused")})})});let slideIndex=1;showSlides(slideIndex);var _isKgSelected=!1,_validateStatus=0,_validateValueCheck=0;$("#result_wrapper").hide();$(document).ready(function(){$(".numberOnly").keydown(function(n){var t=n.which||n.keyCode;return!n.shiftKey&&!n.altKey&&!n.ctrlKey&&t>=48&&t<=57||t>=96&&t<=105||t==8||t==9||t==13||t==35||t==36||t==37||t==39||t==46||t==45?!0:!1});$(".numberWithDecimal").keydown(function(n){var t=n.which||n.keyCode;return!n.shiftKey&&!n.altKey&&!n.ctrlKey&&t>=48&&t<=57||t>=96&&t<=105||t==190||t==188||t==109||t==110||t==8||t==9||t==13||t==35||t==36||t==37||t==39||t==46||t==45?!0:!1})});$("#txtbodyWeight").blur(function(){$("#result_wrapper").hide();$.trim($(this).val())==""?($("#txtbodyWeight").addClass("inputvalidation"),$(".bodyWeighterrorlabel").addClass("errorclass"),$(".bodyWeighterrorlabel").html("Please enter the patient's body weight")):($("#txtbodyWeight").removeClass("inputvalidation"),$(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html(""));$("#calkg").hasClass("active")&&(_isKgSelected=!0);$("#txtbodyWeight").val()!=""&&_isKgSelected==!0&&(eval(document.getElementById("txtbodyWeight").value)<5||eval(document.getElementById("txtbodyWeight").value)>140?($(".bodyWeighterrorlabel").html("This value is not typical for body weight. Please refer to the PI for full dosing recommendations."),$(".bodyWeighterrorlabel").addClass("errorclass"),document.getElementById("txtbodyWeight").focus()):($(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html("")));$("#calLb").hasClass("active")&&(_isKgSelected=!1);$("#txtbodyWeight").val()!=""&&_isKgSelected==!1&&(eval(document.getElementById("txtbodyWeight").value)<11||eval(document.getElementById("txtbodyWeight").value)>308?($(".bodyWeighterrorlabel").html("This value is not typical for body weight. Please refer to the PI for full dosing recommendations."),$(".bodyWeighterrorlabel").addClass("errorclass"),document.getElementById("txtbodyWeight").focus()):($(".bodyWeighterrorlabel").removeClass("errorclass"),$(".bodyWeighterrorlabel").html("")))});$("#txtvivorecovery").blur(function(){$("#result_wrapper").hide();$("#txtvivorecovery").val()!=""?eval(document.getElementById("txtvivorecovery").value)<1||eval(document.getElementById("txtvivorecovery").value)>5?($(".vivoRecoveryerrorlabel").html("This value is not typical for IVR. Please refer to the PI for full dosing recommendations."),$(".vivoRecoveryerrorlabel").addClass("errorclass")):($(".vivoRecoveryerrorlabel").removeClass("errorclass"),$(".vivoRecoveryerrorlabel").html("")):($("#txtvivorecovery").val("2.0"),$(".vivoRecoveryerrorlabel").removeClass("errorclass"),$(".vivoRecoveryerrorlabel").html(""))});$("#txtbodyWeight, #txtbaseLineLevel,#txtvivorecovery").keypress(function(n){(n.which!=46||$(this).val().indexOf(".")!=-1)&&(n.which<48||n.which>57)&&n.preventDefault()});$("#txtbaseLineLevel").blur(function(){$("#result_wrapper").hide();$.trim($(this).val())==""?($("#txtbaseLineLevel").addClass("inputvalidation"),$(".baseLineLevelerrorlabel").addClass("errorclass"),$(".baseLineLevelerrorlabel").html("Please enter the patient's baseline level.")):($("#txtbaseLineLevel").removeClass("inputvalidation"),$(".baseLineLevelerrorlabel").removeClass("errorclass"),$(".baseLineLevelerrorlabel").html(""));$("#txtbaseLineLevel").val()!=""&&(eval(document.getElementById("txtbaseLineLevel").value)<0||eval(document.getElementById("txtbaseLineLevel").value)>100?($(".baseLineLevelerrorlabel").html("This value is not typical for baseline levels of VWF:RCo. Please refer to the PI for full dosing recommendations."),$(".baseLineLevelerrorlabel").addClass("errorclass"),$("#txtbaseLineLevel").focus()):($(".baseLineLevelerrorlabel").removeClass("errorclass"),$(".baseLineLevelerrorlabel").html("")))});$("#calkg").click(function(){if($(this).css({background:"#0e2b8d",color:"#FFFFFF","border-radius":"0 7px 7px 0"}),$("#calkg").addClass("active"),$("#calLb").removeClass("active"),$("#calLb").css("background","transparent"),$("#calLb").css("color","#363636"),$("#calkg").hasClass("active")&&(_isKgSelected=!0),$("#txtbodyWeight").val()!=""&&_isKgSelected==!0){if(eval(document.getElementById("txtbodyWeight").value)<5||eval(document.getElementById("txtbodyWeight").value)>140){$(".bodyWeighterrorlabel").html("This value is not typical for body weight. Please refer to the PI for full dosing recommendations.");$(".bodyWeighterrorlabel").addClass("errorclass");document.getElementById("txtbodyWeight").focus();return}$(".bodyWeighterrorlabel").removeClass("errorclass");$(".bodyWeighterrorlabel").html("")}});$("#calLb").click(function(){if($(this).css({background:"#0e2b8d",color:"#FFFFFF"}),$("#calLb").addClass("active"),$("#calkg").removeClass("active"),$("#calkg").css("background","transparent"),$("#calkg").css("color","#363636"),$("#calLb").hasClass("active")&&(_isKgSelected=!1),$("#txtbodyWeight").val()!=""&&_isKgSelected==!1){if(eval(document.getElementById("txtbodyWeight").value)<11||eval(document.getElementById("txtbodyWeight").value)>308){$(".bodyWeighterrorlabel").html("This value is not typical for body weight. Please refer to the PI for full dosing recommendations.");$(".bodyWeighterrorlabel").addClass("errorclass");document.getElementById("txtbodyWeight").focus();return}$(".bodyWeighterrorlabel").removeClass("errorclass");$(".bodyWeighterrorlabel").html("")}});slider=document.getElementById("myRange");default_val=$("#txttargetlevel").val();$("#myRange").val(default_val);slider!=null&&(slider.oninput=function(){$("#txttargetlevel").val(this.value);$("#txttargetlevel").removeClass("input-validation-error");$(".targetLevelerrorlabel").removeClass("errorclass");$(".targetLevelerrorlabel").html("");$("#txttargetlevel").removeClass("inputvalidation")});$("#txttargetlevel").keyup(function(){let n=document.getElementById("txttargetlevel");n.value<100&&n.value>=50&&$("#myRange").val(n.value)});$("#txttargetlevel").blur(function(){if($("#result_wrapper").hide(),$("#txttargetlevel").val()<50||$("#txttargetlevel").val()>100){$(".targetLevelerrorlabel").html("This value is not typical for target levels of VWF:RCo. Please refer to the PI for full dosing recommendation");$(".targetLevelerrorlabel").addClass("errorclass");$("#txttargetlevel").addClass("inputvalidation");return}$(".targetLevelerrorlabel").removeClass("errorclass");$(".targetLevelerrorlabel").html("");$("#txttargetlevel").removeClass("inputvalidation")});$("#minus").click(function(){var n,t;$(this).css({background:"#0e2b8d",color:"#FFFFFF","border-radius":"7px 0 0 7px"});$("#plus").css("background","transparent");$("#plus").css("color","#363636");n=$("#txttargetlevel").val();n=targetlevelautoset(n,0);t=n;t=n>50.99?n.includes(".")?(parseFloat(n)-1).toFixed(2):parseInt(n)-1:50;$("#txttargetlevel").val(t);$("#myRange").val(t)});$("#plus").click(function(){var n,t;$(this).css({background:"#0e2b8d",color:"#FFFFFF","border-radius":"0 7px 7px 0"});$("#minus").css("background","transparent");$("#minus").css("color","#363636");n=$("#txttargetlevel").val();n=targetlevelautoset(n,1);t=n;t<100&&(t=n.includes(".")?(parseFloat(n)+1).toFixed(2):parseInt(n)+1);t>100&&(t=100);$("#txttargetlevel").val(t);$("#myRange").val(t)});$("#surgerytype").change(function(){var n=this.value;n=="0"&&($("#txttargetlevel").val("75"),$("#myRange").val("75"));n=="1"&&($("#txttargetlevel").val("100"),$("#myRange").val("100"));n=="2"&&($("#txttargetlevel").val("55"),$("#myRange").val("55"))})