+function(a){var b=function(e,f){this.options=a.extend({},b.DEFAULTS,f);this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this));this.$element=a(e);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition();};b.VERSION="3.3.7";b.RESET="affix affix-top affix-bottom";b.DEFAULTS={offset:0,target:window};b.prototype.getState=function(l,g,j,i){var m=this.$target.scrollTop();var k=this.$element.offset();var n=this.$target.height();if(j!=null&&this.affixed=="top"){return m<j?"top":false;}if(this.affixed=="bottom"){if(j!=null){return(m+this.unpin<=k.top)?false:"bottom";}return(m+n<=l-i)?false:"bottom";}var h=this.affixed==null;var f=h?m:k.top;var e=h?n:g;if(j!=null&&m<=j){return"top";}if(i!=null&&(f+e>=l-i)){return"bottom";}return false;};b.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset;}this.$element.removeClass(b.RESET).addClass("affix");var f=this.$target.scrollTop();var e=this.$element.offset();return(this.pinnedOffset=e.top-f);};b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1);};b.prototype.checkPosition=function(){if(!this.$element.is(":visible")){return;}var i=this.$element.height();var j=this.options.offset;var l=j.top;var k=j.bottom;var m=Math.max(a(document).height(),a(document.body).height());if(typeof j!="object"){k=l=j;}if(typeof l=="function"){l=j.top(this.$element);}if(typeof k=="function"){k=j.bottom(this.$element);}var f=this.getState(m,i,l,k);if(this.affixed!=f){if(this.unpin!=null){this.$element.css("top","");}var g="affix"+(f?"-"+f:"");var h=a.Event(g+".bs.affix");this.$element.trigger(h);if(h.isDefaultPrevented()){return;}this.affixed=f;this.unpin=f=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(b.RESET).addClass(g).trigger(g.replace("affix","affixed")+".bs.affix");}if(f=="bottom"){this.$element.offset({top:m-i-k});}};function d(e){return this.each(function(){var f=a(this);var g=f.data("bs.affix");var h=typeof e=="object"&&e;if(!g){f.data("bs.affix",(g=new b(this,h)));}if(typeof e=="string"){g[e]();}});}var c=a.fn.affix;a.fn.affix=d;a.fn.affix.Constructor=b;a.fn.affix.noConflict=function(){a.fn.affix=c;return this;};}(jQuery);function sentraStickyBar(){var j=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var a=$(".sb-affix");var b=$(document).height();var d=parseInt($(".CbC").css("padding-bottom"))+parseInt($(".CbC").css("padding-top"));var e=parseInt($(".CbC").parent().css("padding-bottom"))+parseInt($(".CbC").parent().css("padding-top"));d=d+e;var c=$(".CbC").height();c=b-c;if(a.length&&j>=1200&&(a.outerHeight(true)<$(".contentbar").outerHeight(true))){var i=0;$(".sticky-wrapper").each(function(){i+=$(this).height();});var g=i;var h=a.offset().top-g;var f=c-a.offset().top;a.affix({offset:{top:h,bottom:f}});a.on("affix.bs.affix",function(k){a.css({top:g});a.css({width:a.parent().width()+"px"});});a.css({top:g});a.css({width:a.parent().width()+"px"});$(this).on("scroll",function(){if($(this).scrollTop()=="0"){a.removeClass("affix").css({top:"0"});}});}else{$(window).off(".affix");a.css({width:"100%"});a.removeData("bs.affix").removeClass("affix affix-top affix-bottom sb-affix");}}$(document).ready(function(){$(window).resize(function(){sentraStickyBar();});});setTimeout(function(){sentraStickyBar();},1000);