(function(n,t){var i=function(){function i(i){function e(){r.imageOriginalSize=r.image.dimensions(),r.image.addClass("adjusted"),r.adjustLinks()}var r=this,u,f;this.page=i,this.element=this.page.find(".backgroundimage-template"),this.image=this.element.find(".backgroundimage-image"),this.imageOriginalSize=null,this.imageLinks=this.element.find("[data-image-link]").each(function(){n(this).data("dataImageLink",n(this).attrJSON("data-image-link"))}),this.image[0].complete?e():(u=null,f=function(){clearInterval(u)},u=setInterval(function(){r.image[0].complete&&(f(),e())},1e3)),t.resize(function(n){t.equal(n.page,r.page)&&r.adjustLinks()}),t.navigate(function(n){n.type==="start"&&t.equal(n.to,r.page)&&r.adjustLinks()})}return i.prototype.adjustLinks=function(){if(this.imageOriginalSize!==null){var i=this.image.dimensions(),t={height:i.height/this.imageOriginalSize.height,width:i.width/this.imageOriginalSize.width};this.imageLinks.each(function(){var i=n(this).data("dataImageLink");n(this).css({bottom:Math.round(i.bottom*t.height),left:Math.round(i.left*t.width)})})}},i}();t.load(function(n){n.page.find(".backgroundimage-template").length&&new i(n.page)})})(jQuery,Sections),function(n,t){var i=function(){function i(n){this.page=n,this.element=this.page.find(".slide-template:first"),this.items=null,this.imageScroller=null,this.imageItems=0,this.currentItem=null,this.timer=null,this.allowSelection=!0,this.initialize()}return i.prototype.initialize=function(){var i=this,r;this.items=this.element.find(".slide-list .slide-item"),this.imageScroller=this.element.find(".image-scroller"),this.imageItems=this.imageScroller.find(".image-item"),this.items.each(function(){var r=n(this),t=function(n){i.allowSelection&&(i.allowSelection=!1,i.setCurrent(r).then(function(){i.allowSelection=!0})),n.preventDefault()};r.find(".slide-item-icon").click(t).enterpress(t)}),r=0,this.imageScroller.bind("swipeleft",function(t){if(t.timeStamp-r>1e3&&i.allowSelection){var f=i.items.index(i.currentItem),u=n(i.items.get((f+1)%i.items.length));i.allowSelection=!1,i.setCurrent(u).then(function(){i.allowSelection=!0})}r=t.timeStamp,t.stopImmediatePropagation(),t.preventDefault()}),this.imageScroller.bind("swiperight",function(t){if(t.timeStamp-r>1e3&&i.allowSelection){var f=i.items.index(i.currentItem),u=n(i.items.get(f-1));i.allowSelection=!1,i.setCurrent(u).then(function(){i.allowSelection=!0})}r=t.timeStamp,t.stopImmediatePropagation(),t.preventDefault()}),t.resize(function(n){t.equal(i.page,n.page)&&i.slideImage(i.currentItem,!1)}),t.navigate(function(n){n.type!=="end"||t.equal(n.from,n.to)||(t.equal(i.page,n.from)?i.reset():t.equal(i.page,n.to)&&i.timer===null&&i.setCurrent(i.items.first()))}),t.equal(this.page,t.currentPage())&&this.timer===null&&this.setCurrent(this.items.first())},i.prototype.reset=function(){this.currentItem&&(this.currentItem.removeClass("current"),this.currentItem.find(".slide-item-timer").hide(),this.items.find(".slide-item-tooltip.visible").hide(),this.imageScroller.scrollLeft(0),this.stopTimer())},i.prototype.setImagesHeight=function(){var i=this,t=i.imageScroller.height();this.imageItems.each(function(){var i=n(this).find("img");i.height(t)})},i.prototype.setCurrent=function(t){var i=this,r;return this.currentItem&&(this.currentItem.removeClass("current"),this.currentItem.find(".slide-item-timer").hide(),this.stopTimer()),this.currentItem=t,this.currentItem.addClass("current"),r=n.when(i.displayTooltip(),i.slideImage()),this.timer=i.startTimer().done(function(t){var u=i.items.index(t.item),r=n(i.items.get((u+1)%i.items.length));i.allowSelection&&(i.allowSelection=!1,i.setCurrent(r).then(function(){i.allowSelection=!0}))}),r},i.prototype.displayTooltip=function(t){return t===undefined&&(t=this.currentItem),this.items.find(".slide-item-tooltip.visible").removeClass("visible",500,"easeInOutElastic",function(){n(this).hide()}).promise().pipe(function(){return t.find(".slide-item-tooltip:first").show().addClass("visible",500,"easeOutBack").promise()})},i.prototype.slideImage=function(n,t){n===undefined&&(n=this.currentItem),t===undefined&&(t=!0);var f=n.attr("data-item-id"),i=this.imageItems.filterAttr("data-item-id",f),u=Math.abs(this.imageScroller.scrollLeft()-i[0].offsetLeft)/(this.imageScroller.width()*this.imageItems.length),r=t?Math.round(Formulas.easeOutCubic(u)*3e3):0;return this.imageScroller.animate({scrollLeft:i[0].offsetLeft},r,"easeOutCubic").promise()},i.prototype.startTimer=function(t,i){var f;t===undefined&&(t=this.currentItem),i=n.extend({spriteWidth:51,interval:50,duration:11e3},i),f=t.find(".slide-item-timer").show(),f.css("background-position","0 0");var r=n.Deferred(),u=0,o=function(){r.rejectWith({item:t})},e=setInterval(function(){u+=1,u*i.interval<=i.duration&&r.state()==="pending"?(f.css("background-position",-(i.spriteWidth*u)+"px 0"),r.notify({item:t,stop:o})):(clearInterval(e),r.resolve({item:t}))},i.interval);return r.promise()},i.prototype.stopTimer=function(){this.timer&&(this.timer.progress(function(n){n.stop()}),this.timer=null)},i}();n(function(){t.load(function(n){var r=n.page.find(".slide-template:first"),t;r.length&&(t=new i(n.page))})})}(jQuery,Sections),function(n,t){var i=function(){function i(n){this.page=n,this.element=n.find(".map-template:first"),this.frame=this.element.find(".map-frame"),this.slider=this.frame.find(".map-zoom-slider"),this.pan=this.frame.find(".map-pan"),this.area=this.frame.find(".map-dragarea"),this.imageContainer=this.area.find(".map-image-container"),this.image=this.imageContainer.find(".map-image"),this.imageSize=null,this.pins=this.imageContainer.find(".map-pin"),this.currentZoom=null,this.ready=!1}return i.prototype.initialize=function(){var i=this,u,r,f;this.pins.each(function(){var r=n(this);this.dataMapPin=r.attrJSON("data-map-pin");var e=r.find(".map-pin-icon:first"),t=r.find(".map-school:first"),f=r.find(".map-school-content:first"),u=null,s=function(){var e,o;clearTimeout(u),t.is(":visible")||(i.hidePopups(),r.css("z-index",2),t.show(),e=f.height(),t.hide(),e+50>i.frame.dimensions().height-r.offset().top?(t.css("top",-e-55),t.removeClass("map-tooltip-up"),t.addClass("map-tooltip-down"),f.removeClass("popup-down"),f.addClass("popup-up")):(t.css("top",20),t.removeClass("map-tooltip-down"),t.addClass("map-tooltip-up"),f.removeClass("popup-up"),f.addClass("popup-down")),t.show().addClass("visible",750,"easeInOutElastic"),t.attr("data-images-loaded")=="false"&&(o=t.find(".gallery li img"),n.each(o,function(){var t=n(this),i=t.attr("data-image-url");t.attr("src",i)}),t.attr("data-images-loaded",!0)))},o=function(){clearTimeout(u),t.is(":visible")&&(u=setTimeout(function(){t.removeClass("visible",300,"easeOutQuint",function(){n(this).hide(),r.css("z-index",1)})},750))};n.mobile.support.touch?(r.click(function(){e.removeClass("hover",750,"easeOutBounce"),s()}),r.hover(function(){e.addClass("hover",1e3,"easeOutElastic"),clearTimeout(u)},function(){e.removeClass("hover",750,"easeOutBounce"),o()}),i.frame.click(function(){o()})):r.hover(function(){e.addClass("hover",1e3,"easeOutElastic"),clearTimeout(u),s()},function(){e.removeClass("hover",750,"easeOutBounce"),o()}),t.hover(function(n){clearTimeout(u),n.preventDefault()},o)}),u=function(){var f=1,e,r,u;this.imageSize=this.image.dimensions(),this.zoom(f),e=this.frame.width()/this.frame.height()*62,r=(this.area.height()-n(".map-image").height())/2,r=r>0?r+e:0,u=Math.max(0,r),this.imageContainer.css({top:u}),this.imageContainer.draggable({containment:this.area,scroll:!1,start:this.hidePopups.bind(this)}),this.imageContainer.bind("touchmove",function(n){n.stopPropagation(),n.preventDefault()}),this.initializeZoomControls(f),this.initializePan(),t.resize(function(n){t.equal(i.page,n.page)&&i.zoom(i.currentZoom)}),t.navigate(function(n){t.equal(i.page,n.to)&&i.ready&&i.zoom(i.currentZoom)}),i.page.mousewheel(function(n,t){i.zoomStep(t<0?-4:4)}),this.image.removeClass("hidden"),this.ready=!0}.bind(this),this.image[0].complete?u():(r=null,f=function(){clearInterval(r)},r=setInterval(function(){i.image[0].complete&&(f(),u())},1e3))},i.prototype.hidePopups=function(){this.pins.css("z-index",1).find(".map-school").removeClass("visible").hide()},i.prototype.initializeZoomControls=function(t){var r=this,f=function(n,t){this.hidePopups(),this.zoom(t.value)}.bind(this);this.slider.slider({orientation:"vertical",min:1,max:2,value:t,step:.01,slide:f,change:f});var e=null,i=function(){clearInterval(e)},u=function(n){i(),e=setInterval(function(){r.zoomStep(n)},1)};n.mobile.support.touch?(this.element.find(".map-zoom-in:first").click(function(){r.zoomStep(2)}),this.element.find(".map-zoom-out:first").click(function(){r.zoomStep(-2)})):(this.element.find(".map-zoom-in:first").mousedown(function(){u(2)}).mouseup(i).mouseleave(i),this.element.find(".map-zoom-out:first").mousedown(function(){u(-2)}).mouseup(i).mouseleave(i))},i.prototype.initializePan=function(){var i=this,t=200,r=250,n=function(n,t){return function(){var f=i.imageContainer.position(),e=i.imageContainer.dimensions(),o=i.area.dimensions(),u={top:0,left:0};u.left=f.left+t<0?0:f.left+e.width+t>o.width?o.width-e.width:f.left+t,u.top=f.top+n<0?0:f.top+e.height+n>o.height?o.height-e.height:f.top+n,i.imageContainer.animate(u,r)}};this.pan.find(".map-pan-top").click(n(t,0)),this.pan.find(".map-pan-left").click(n(0,t)),this.pan.find(".map-pan-right").click(n(0,-t)),this.pan.find(".map-pan-bottom").click(n(-t,0))},i.prototype.zoom=function(n){var e=this.frame.dimensions("inner"),r=this.image.dimensions(),c=this.image.dimensions(),h=r.height/r.width>e.height/e.width?"width":"height",f,u,i,t;if(this.image[h](Math.round(e[h]*n)),r=this.image.dimensions(),this.area.css({height:r.height*2-e.height,width:r.width*2-e.width}),f=this.area.dimensions(),this.area.css({marginLeft:-Math.round(f.width/2),marginTop:-Math.round(f.height/2)}),u=this.imageContainer.position(),n!=1){var l=Math.round((r.width-c.width)/2),a=Math.round((r.height-c.height)/2),o=(u.top==0?1:u.top)+a,s=(u.left==0?1:u.left)+l;this.imageContainer.css({top:o>0?o:0,left:s>0?s:0})}u=this.imageContainer.position(),i=this.imageContainer.offset(),i.left2=i.left+r.width,i.top2=i.top+r.height,t=this.area.offset(),t.left2=t.left+f.width,t.top2=t.top+f.height,i.left2>t.left2&&this.imageContainer.css({left:u.left-(i.left2-t.left2)}),i.top2>t.top2&&this.imageContainer.css({top:u.top-(i.top2-t.top2)}),this.currentZoom=n,this.adjustPins()},i.prototype.zoomStep=function(n){n===undefined&&(n=1);var t=this.slider.slider("option"),i=t.value+Math.round(t.step*n*100)/100;i>=t.min&&i<=t.max&&this.slider.slider("value",i)},i.prototype.adjustPins=function(){var i=this.image.dimensions(),t={height:i.height/this.imageSize.height,width:i.width/this.imageSize.width};this.pins.each(function(){n(this).css({top:Math.round(this.dataMapPin.top*t.height),left:Math.round(this.dataMapPin.left*t.width)})})},i}();n(function(){t.load(function(n){var r=n.page.find(".map-template:first"),t;r.length&&(t=new i(n.page),t.initialize())})})}(jQuery,Sections),function(n,t,i){var r=function(){function i(n){this.element=n,this.timer=null,this.currentItem=null,this.lastCurrentItem=null,this.dropdAreas=null,this.bulletsContainer=null,this.carousel=null,this.circleContentDraggable=null,this.circleContentTimer=null,this.circleContentInnerImage=null,this.circleWhiteCircle=null,this.firstLiBullet=null,this.firstBulletContent=null,this.lastLiBullet=null,this.lastBulletContent=null,this.circleContentDraggableHtml=null,this.dummy=!0,this.leftArrow=null,this.rightArrow=null,this.initialize()}return i.prototype.initialize=function(){var i=this,u,r;this.dropdAreas=this.element.find(".circle-content"),this.bulletsContainer=this.element.find(".carousel-controller-bullets-ul"),this.carousel=this.element.find(".carousel-controller-carousel"),this.firstBulletContent=this.element.find(".carousel-bullet-item:first .circle .circle-content"),this.lastBulletContent=this.element.find(".carousel-bullet-item:last .circle .circle-content"),this.circleContentDraggableHtml="<div class='circle-content-draggable'><div class='circle-content-timer'></div><div class='circle-content-innerimage'></div><img class='circle-content-white' src='/Content/Static/Images/Template/Carousel/timeline-white-circle.png'/></div>",this.lastBulletContent.parents(".circle").append(this.circleContentDraggableHtml),this.circleContentDraggable=this.element.find(".circle-content-draggable"),this.circleContentTimer=this.element.find(".circle-content-timer"),this.circleContentInnerImage=this.element.find(".circle-content-innerimage"),this.circleWhiteCircle=this.element.find(".circle-content-white"),this.leftArrow=this.element.find(".left"),this.rightArrow=this.element.find(".rigth"),this.circleContentDraggable.draggable({axis:"x",containment:this.bulletsContainer,start:this.startDrag.bind(this),scroll:!1}),this.circleContentDraggable.bind("touchmove",function(n){n.stopPropagation(),n.preventDefault()}),this.dropdAreas.droppable({drop:this.dropBullet.bind(this)}),this.dropdAreas.click(function(t){t.preventDefault(),i.moveTo(n(this))}),u=t(this.carousel[0]).roundabout({responsive:!0,minZ:-1,maxZ:1,minOpacity:1,clickToFocus:!1},function(){i.roundaboutanimateToChildCallback()}),this.element.find(".carousel-controller-carousel-arrow").click(function(t){t.preventDefault(),n(this).hasClass("rigth")?i.moveTo(i.getNextBulletCircle(i.currentItem)):i.moveTo(i.getPreviusBulletCircle(i.currentItem))}),r=0,this.element.find(".carrousel-controller-items").bind("swipeleft",function(n){n.timeStamp-r>1e3&&i.moveTo(i.getNextBulletCircle(i.currentItem)),r=n.timeStamp,n.stopImmediatePropagation(),n.preventDefault()}).bind("swiperight",function(n){n.timeStamp-r>1e3&&i.moveTo(i.getPreviusBulletCircle(i.currentItem)),r=n.timeStamp,n.stopImmediatePropagation(),n.preventDefault()}),this.currentItem=this.firstBulletContent},i.prototype.reset=function(){this.unSelectBullet(this.currentItem),this.circleWhiteCircle.hide(),this.circleContentInnerImage.css("background-image",""),this.element.find(".tooltip.visible").hide()},i.prototype.start=function(){this.startPage()},i.prototype.startDrag=function(){this.unSelectBullet(this.currentItem)},i.prototype.dropBullet=function(t){this.selectBullet(n(t.target))},i.prototype.roundaboutanimateToChildCallback=function(){n(".roundabout-moveable-item").each(function(){var t=n(this);t.next().hasClass("roundabout-in-focus")||t.prev().hasClass("roundabout-in-focus")||t.hasClass("roundabout-in-focus")?t.show():t.hide()})},i.prototype.selectBullet=function(i){var r=this,u,f;this.currentItem=i,this.circleContentDraggable.dequeue(),this.circleContentDraggable.position({my:"center",at:"center",of:this.currentItem}),this.circleContentInnerImage.css("background-image",this.currentItem.css("background-image")),this.circleWhiteCircle.dequeue(),this.circleWhiteCircle.fadeOut("slow"),this.showTooltip(r.currentItem),this.circleContentTimer.css("background-position","0 0"),this.circleContentTimer.show(),this.timer=this.startTimer(r.circleContentTimer,{duration:10750}).done(function(){r.circleWhiteCircle.dequeue(),r.circleWhiteCircle.fadeIn("fast"),r.moveTo(r.getNextBulletCircle(r.currentItem))}),u=this.indexOfBullet(this.currentItem),n(".roundabout-moveable-item").eq(u+1).show(),n(".roundabout-moveable-item").eq(u-1).show(),n(".roundabout-moveable-item").eq(u).show(),t(this.carousel[0]).roundabout("animateToChild",u,this.roundaboutanimateToChildCallback),f=r.currentItem.parent().parent(),f.hasClass("first")?(this.leftArrow.fadeOut(),this.rightArrow.fadeIn()):f.hasClass("last")?(this.rightArrow.fadeOut(),this.leftArrow.fadeIn()):(this.leftArrow.fadeIn(),this.rightArrow.fadeIn()),setTimeout(function(){r.dummy=!0},600)},i.prototype.unSelectBullet=function(n){this.lastCurrentItem=n,this.circleContentTimer.hide(),this.circleWhiteCircle.dequeue(),this.circleWhiteCircle.fadeIn("fast"),this.hideTooltip(),this.stopTimer()},i.prototype.startPage=function(){this.selectBullet(this.firstBulletContent)},i.prototype.startTimer=function(t,i){i=n.extend({spriteWidth:51,interval:50,duration:1100},i);var r=n.Deferred(),u=0,e=function(){r.reject({item:t})},f=setInterval(function(){u+=1,u*i.interval<=i.duration&&r.state()==="pending"?(t.css("background-position",-(i.spriteWidth*u)+"px 0px"),r.notify({item:t,stop:e})):(clearInterval(f),r.resolve({item:t}))},i.interval);return r.promise()},i.prototype.stopTimer=function(){this.timer&&(this.timer.progress(function(n){n.stop()}),this.timer=null)},i.prototype.moveTo=function(n){if(this.dummy){this.dummy=!1;var i=this,t=n.offset().left-this.currentItem.offset().left;this.unSelectBullet(this.currentItem),this.circleContentDraggable.dequeue(),this.circleContentDraggable.delay(400).animate({left:"+="+t+"px"},{duration:800,easing:"easeOutExpo",complete:function(){i.selectBullet(n)}})}},i.prototype.getNextBulletCircle=function(n){var t=this.firstBulletContent,i=n.parents(".carousel-bullet-item").hasClass("last");return i||(t=n.parents(".carousel-bullet-item").next(".carousel-bullet-item").find(".circle-content")),t},i.prototype.getPreviusBulletCircle=function(n){var t=this.lastBulletContent,i=n.parents(".carousel-bullet-item").hasClass("first");return i||(t=n.parents(".carousel-bullet-item").prev(".carousel-bullet-item").find(".circle-content")),t},i.prototype.indexOfBullet=function(n){return n.parents(".carousel-bullet-item").index()},i.prototype.hideTooltip=function(){this.element.find(".tooltip.visible").removeClass("visible",600,"easeInOutElastic",function(){n(this).hide()})},i.prototype.showTooltip=function(n){n.parents(".carousel-bullet-item").find(".tooltip:first").show().addClass("visible",600,"easeOutBack")},i}();n(function(){i.load(function(n){var f=n.page.find(".carousel-template:first"),u,t;f.length&&(u=n.page,t=new r(f),i.navigate(function(n){n.type==="end"&&(i.equal(u,n.from)&&!i.equal(n.from,n.to)?t.reset():Sections.equal(u,n.to)&&!i.equal(n.from,n.to)&&t.start())}),i.resize(function(n){i.equal(u,n.page)&&(t.reset(),t.start())}))})})}(jQuery,jQuery172,Sections),function(n,t){function l(l){var v,y;if(l=l,r=l.find(".faq-template:first"),h=r.find(".faq-category-item"),o=r.find(".faq-category-pointer:first"),e=r.find(".faq-content:first"),i=e.find(".faq-scroll-container:first"),c=i.find(".content:first"),t.resize(function(n){t.equal(l,n.page)&&(s(!1),f(!0))}),e.mousewheel(function(n,t){if(i.is(":visible")){var r=u.slider("option"),f=Math.round((r.value+(t<0?-r.step:r.step)*2)*100)/100;f>=r.min&&f<=r.max&&u.slider("value",f)}}),n.mobile.support.touch){v=0;e.on("swipeleft swiperight",function(n){if(n.timeStamp-v>1e3){var t=h.filter(".ui-state-active");n.type==="swipeleft"?t.next(".faq-category-item").find("a").click():n.type==="swiperight"&&t.prev(".faq-category-item").find("a").click()}v=n.timeStamp,n.stopImmediatePropagation(),n.preventDefault()})}y=r.find(".faq-container").tabs({active:0,activate:function(){f(!1)},beforeActivate:function(n,t){s(!0,t.newTab)},show:{effect:"blind",duration:500}}),y.find(".faq-question-list").accordion({active:!1,beforeActivate:function(){n(this).accordion("disable")},activate:function(t,i){var r=n(this);f(!0),a(i.newHeader),setTimeout(function(){r.accordion("enable")},250)},collapsible:!0,heightStyle:"content"}),u=i.find(".faq-scroll:first").slider({orientation:"vertical",min:0,max:1,value:1,step:.05}),s(!1),f(!1)}function f(n){var o=r.find(".faq-category-item:visible"),y=o.find(".faq-scroll-area:first"),k=o.find(".faq-question-list"),b=o.find(".faq-answer-contact.bottom"),v=y.height(),w=k.innerHeight()+b.outerHeight(!0),p=w-v,a=i.is(":visible"),t,e,h;if(p>0){a||i.show();var s=c.height(),f=Math.round(v/w*s),l=s-f;u.css({height:l,marginTop:-Math.round(l/2)}),t=1,n===!0&&(t=u.slider("value")),e=function(n,t){var i=Math.round(p*(1-t.value));y.scrollTop(i)},u.slider({change:e,slide:e,value:t}),h=u.find(".ui-slider-handle"),h.animate({height:f,marginBottom:-Math.round(f/2)},500),a||i.hide().fadeIn()}else i.fadeOut()}function s(n,t){t||(t=h.filter(".ui-tabs-active"));var i={left:Math.round(t.position().left+t.width()/2-o.width()/2)};n?o.animate(i):o.animate(i,500)}function a(t){if(t.length&&!t[0].dataHit){t[0].dataHit=!0;var u=t.attr("data-question-id"),i=r.attr("data-hitcount-url");n.get(i+"/?questionid="+u)}}var r=null,v=null,h=null,o=null,e=null,i=null,c=null,u=null,y=50;n(function(){t.load(function(n){var t=n.page.find(".faq-template:first");t.length&&l(n.page)})})}(jQuery,Sections),function(n){this.JobVacancy=function(){function t(t){var i=this,r;if(this.element=n(t),this.bullets=this.element.find(".bullets li"),this.pointer=this.element.find(".pointer"),this.items=this.element.find(".vacancies .item"),this.itemsContainer=this.element.find(".graybody"),this.link=this.element.find(".jobvacancy-link").hide(),this.hideDfr=n.Deferred(),this.bullets.first().addClass("selected"),this.bullets.click(function(n){var t=i.bullets.index(this);i.select(t),n.preventDefault(),n.stopPropagation()}),this.element.find(".close").click(function(){i.hide()}),this.link.click(function(n){i.show(),n.preventDefault()}),n.mobile.support.touch){this.element.on("swipeleft swiperight",function(n){n.stopImmediatePropagation(),n.preventDefault()});r=0;this.itemsContainer.on("swipeleft swiperight",function(n){if(n.timeStamp-r>1e3){var t=i.bullets.index(i.bullets.filter(".selected"));n.type==="swipeleft"&&t<i.bullets.length-1?i.select(t+1):n.type==="swiperight"&&t>0&&i.select(t-1)}r=n.timeStamp})}this.items.on("mousewheel",function(t,i){var f=n(this).find(".jobvacancy-scroll:first"),r=f.slider("option"),u=Math.round((r.value+(i<0?-r.step:r.step)*2)*100)/100;u>=r.min&&u<=r.max&&f.slider("value",u)})}return t.prototype.show=function(){var t=this,n=this.bullets.index(this.bullets.filter(".selected"));return this.element.fadeIn("fast").promise().done(function(){t.updatePointer(n,!1),t.updateScroll(n)})},t.prototype.hide=function(n){if(typeof n=="function")this.hideDfr.progress(n);else{var t=this;return this.element.fadeOut("fast").promise().then(function(){t.hideDfr.notifyWith(t)})}},t.prototype.select=function(t){this.bullets.removeClass("selected"),n(this.bullets.get(t)).addClass("selected"),this.updatePointer(t),this.itemsContainer.animate({scrollLeft:t*this.items.first().width()},1e3),this.updateScroll(t,!1)},t.prototype.updatePointer=function(t,i){i===undefined&&(i=!0);var r=n(this.bullets.get(t)),f=Math.round(r.position().left+r.width()/2-this.pointer.width()/2),u=i?1e3:0;return this.pointer.animate({left:f},u).promise()},t.prototype.createLink=function(){return this.link.clone(!0).show()},t.prototype.updateScroll=function(t,i){var h=n(this.items.get(t)),u=h.find(".jobvacancy-scroll-container"),f=u.find(".jobvacancy-scroll:first"),b=u.find(".scroll-content:first"),y=h.find(".vacancy-body"),d=h.find(".vacancy-content"),e,s,l;f.slider({orientation:"vertical",min:0,max:1,value:1,step:.05});var p=y.height(),v=d.innerHeight(),w=v-p,k=u.is(":visible");if(w>0){k||u.show();var c=b.height(),o=Math.round(p/v*c),a=c-o;f.css({height:a,marginTop:-Math.round(a/2)}),e=1,i===!0&&(e=f.slider("value")),s=function(n,t){var i=Math.round(w*(1-t.value));y.scrollTop(i)},f.slider({change:s,slide:s,value:e}),l=f.find(".ui-slider-handle"),l.animate({height:o,marginBottom:-Math.round(o/2)},500),u.show()}else u.hide()},t}()}(jQuery),function(n,t){var i=function(){function i(n){this.page=n,this.element=n.find(".animation-template:first"),this.background=this.element.find(".animation-background:first"),this.objects=this.element.find(".animation-object"),this.jobVacancy=new JobVacancy(this.element.find("#jobvacancy-modal")),this.ready=!1}return i.prototype.initialize=function(){var i=this,h=1+this.objects.length,s=0,r=n.Deferred(),e,f,o,u;r.progress(function(){s+=1,s>=h&&r.resolve()}),e=function(){i.background[0].originalSize=i.background.dimensions(),i.background.addClass("adjusted"),r.notify()},this.background[0].complete||this.background[0].height>0?e():this.background.load(e),f=function(){var t=n(this);this.originalSize=t.dimensions(),this.dataAnimationObject=t.attrJSON("data-animation-object"),t.click(function(){i.hideTooltip(t),i.animateObject(t).done(function(){window.location.href="https://wwwss2.fb.org.br/FBCadastroCurriculo"})});t.on("focusout mouseleave",function(n){n.stopImmediatePropagation()});r.notify()},this.objects.each(function(){this.complete||this.height>0?f.call(this):n(this).load(f)}),r.done(function(){i.updateObjects(),i.element.addClass("visible"),i.ready=!0,t.equal(i.page,t.currentPage())&&i.displayTooltip()}),t.resize(function(n){t.equal(i.page,n.page)&&i.ready&&(i.updateObjects(),i.hideTooltip(),i.displayTooltip())}),this.jobVacancy.element.appendTo(n(".main:first")),this.jobVacancy.items.length&&(o=this.page.find(".page-header .content-item .content-text"),u=this.jobVacancy.createLink(),u.insertAfter(o),u.click(function(){i.hideTooltip()}),this.jobVacancy.hide(function(){i.displayTooltip()}))},i.prototype.getAdjustment=function(){var t=this.background[0].originalSize,n=this.background.dimensions();return{height:n.height/t.height,width:n.width/t.width}},i.prototype.updateObjects=function(){var i=this.background[0].originalSize,t=this.getAdjustment();this.objects.each(function(){var r=this.originalSize,i=this.dataAnimationObject;n(this).css({left:Math.round(i.startLeft*t.width),bottom:Math.round(i.startBottom*t.height),height:Math.round(r.height*t.height),width:Math.round(r.width*t.width)})})},i.prototype.displayTooltip=function(t){t===undefined&&(t=this.objects);try{t.tooltip("widget")}catch(i){t.tooltip({show:{effect:"scale",duration:200},hide:{effect:"scale",duration:150},position:{my:"center bottom",at:"center top-40",using:function(t){n(this).css(t),n("<div>").addClass("top").prependTo(this),n("<div>").addClass("bottom").appendTo(this)}},tooltipClass:"jobvacancy-tooltip"})}this.objects.tooltip("open"),n(".location, a").click(function(){n(this).attr("href","https://wwwss2.fb.org.br/FBCadastroCurriculo")}),n(".jobvacancy-tooltip").click(function(){t.click()})},i.prototype.hideTooltip=function(n){n===undefined&&(n=this.objects),n.tooltip("close")},i.prototype.animateObject=function(n){var r=this.getAdjustment(),t=n[0].dataAnimationObject,i=n.dimensions();return n.animate({height:Math.round(i.height*t.endScale),width:Math.round(i.width*t.endScale),left:Math.round(t.endLeft*r.width),bottom:Math.round(t.endBottom*r.height)},t.duration).promise()},i}();n(function(){t.load(function(n){var u=n.page.find(".animation-template:first"),r;u.length&&(r=new i(n.page),r.initialize(),t.navigate(function(i){i.type==="end"&&t.equal(i.to,n.page)&&r.ready?r.displayTooltip():i.type!=="start"||t.equal(i.to,n.page)||r.hideTooltip()}))})})}(jQuery,Sections),function(n,t){function h(h){var c,l;i=h.find(".download-template:first"),e=i.find(".download-category-pointer:first"),s=i.find(".download-content"),u=i.find(".download-category-item"),f=i.find(".download-content-book"),i.find(".download-file-list").hide(),i.find(".download-file-title").hide(),i.find(".download-file-title:first").hide(),i.find(".download-file-list:first").show(),c=i.find(".download-category-item:first"),r=c,i.find(".download-controller-arrow.left").hide(),c.addClass("download-category-item-active"),o(!0,c),u.click(function(){var t=n(this).attr("data-id");u.removeClass("download-category-item-active"),n(this).addClass("download-category-item-active"),r=n(this),o(!0,n(this)),n(this).is(":first-child")?i.find(".download-controller-arrow.left").hide():i.find(".download-controller-arrow.left").show(),n(this).is(":last-child")?i.find(".download-controller-arrow.rigth").hide():i.find(".download-controller-arrow.rigth").show(),f.animate({bottom:"-290px"},1e3,function(){n(".download-file-list").hide(),n(".download-file-title").hide(),n("#download-file-"+t).show(),n("#download-file-title-"+t).show(),f.animate({bottom:"0"},1e3,function(){})})}),u.find("a").click(function(n){n.preventDefault()}),i.find(".download-controller-arrow.left").click(function(){r.prev().click()}),i.find(".download-controller-arrow.rigth").click(function(){r.next().click()}),l=0;s.on("swipeleft swiperight",function(n){n.timeStamp-l>1e3&&(n.type==="swipeleft"?r.next().click():r.prev().click()),l=n.timeStamp,n.stopImmediatePropagation(),n.preventDefault()});t.resize(function(n){t.equal(h,n.page)&&o(!1)})}function o(n,t){var i,u;i=t?t.position():r.position(),i&&(u={left:i.left}),n?e.animate(u,500):e.css(u)}var i=null,e=null,s=null,u=null,f=null,r=null;t.load(function(n){var t=n.page.find(".download-template:first");t.length&&h(n.page)})}(jQuery,Sections),function(n,t){function w(t){function a(t){var i,u,e;t===undefined&&(t=this.bullets.index(this.bullets.filter(".selected")),t<0&&(t=0)),i=n(this.bullets.get(t)),u=i.attr("data-id"),r=i,h(),s(u),o(!0,i),this.bullets.removeClass("selected"),i.addClass("selected"),e=this.slides.get(t),videocontainer.animate({scrollLeft:e.offsetLeft},500),arrowLeft.show(),arrowRight.show(),u==f.attr("data-id")?arrowLeft.hide():u==l.attr("data-id")&&arrowRight.hide()}var v,e;if(i=t,u=i.find(".video-pagination-pointer"),c=i.find(".video-pagination-item"),u=i.find(".video-pagination-pointer"),f=i.find(".video-pagination-item:first"),l=i.find(".video-content-central:last"),bullets=i.find(".video-pagination > .video-pagination-item"),slides=i.find(".slide-list > .slide-item"),videocontainer=i.find(".video-content"),arrowLeft=i.find(".video-controller-arrow.left"),arrowRight=i.find(".video-controller-arrow.rigth"),v=null,n(window).resize(function(){clearTimeout(v),v=setTimeout(function(){var i=n(this.bullets.get(r.index())),t;o(!0,i),t=this.slides.get(r.index()),videocontainer.animate({scrollLeft:t.offsetLeft},500)},400)}),i.find(".video-content-central").each(function(){var r=n(this).attr("data-id"),u=n(this).attr("data-video-flv"),t=n(this).attr("data-video-url"),i=n(this).attr("data-video-capa");p(r,t,u,i)}),arrowLeft.click(function(){a(0)}),arrowRight.click(function(){a(1)}),this.bullets.click(function(){var n=bullets.index(this);a(n)}),n.mobile.support.touch){e=0;i.find(".video-content").on("swipeleft swiperight",function(t){if(t.timeStamp-e>800){var i=c,r=i.index(i.filter(".selected"));t.type==="swipeleft"&&r<i.length-1?n(i.get(r+1)).click():t.type==="swiperight"&&r>0&&n(i.get(r-1)).click()}e=t.timeStamp,t.stopImmediatePropagation(),t.preventDefault()})}f.click()}function o(n,t){var i,f;i=t?t.position():r.position(),i&&(f={left:i.left}),n?u.animate(f,500):u.css(f)}function y(){if(navigator&&navigator.userAgent&&navigator.userAgent!=null){var t=navigator.userAgent.toLowerCase(),n=t.match(/(iphone|ipod|ipad)/);if(n)return!0}return!1}var i=null,u=null,c=null,f=null,l=null,r=null,u=null,a={},v={},e={},p=function(n,t,i,r){try{n=n.toString(),a["video"+n]=t,v["video"+n]=i,e["video"+n]=r}catch(u){}},s=function(n){var t,r;try{if(n=n.toString(),t=i.find("#demo-video-"+n),y())r=t.find("source"),t.attr("poster",e["video"+n]),r.attr("src",a["video"+n]);else{var o=v["video"+n],s={allowfullscreen:"true",allowscriptaccess:"always"},u={file:o,image:e["video"+n]},f={scale:"noborder",wmode:"direct",bgcolor:"#000000"};swfobject.embedSWF("http://videos3.fb.org.br/player.swf","demo-video-flash-"+n.toString(),"100%","100%","9.0.0","http://videos3.fb.org.br/expressInstall.swf",u,s,f)}}catch(h){}},h=function(){i.find(".video-content-central").each(function(){var t=n(this).attr("data-id"),r=i.find("#demo-video-flash-"+t);r.find("video").trigger("pause"),s(t)})};t.load(function(i){var u=i.page.find(".video-page:first"),r;u.length&&(w(u),r=i.page,t.navigate(function(i){i.type!=="end"||t.equal(i.from,i.to)||(Sections.equal(r,i.from)?(h(),n(".video-element").hide()):Sections.equal(r,i.to)&&n(".video-element").show())}))})}(jQuery,Sections),function(n,t){var i=function(){function t(t){var i=this,r;this.element=n(t),this.indicator=this.element.find(".bullet-indicator:first"),this.bullets=this.element.find(".bullet-list > .bullet-item"),this.slideContainer=this.element.find(".slide-container"),this.slides=this.element.find(".slide-list > .slide-item"),this.popup=this.element.find(".message-popup"),this.tileItems=this.element.find(".tile-list > .tile-item"),this.isCurrentPage=!0,this.bullets.click(function(){var n=i.bullets.index(this);i.setCurrentSlide(n)}),r=0;this.slideContainer.on("swipeleft swiperight",function(n){if(n.timeStamp-r>1e3){var t=i.bullets.index(i.bullets.filter(".selected"));n.type==="swipeleft"&&t<i.bullets.length-1?i.setCurrentSlide(t+1):n.type==="swiperight"&&t>0&&i.setCurrentSlide(t-1)}r=n.timeStamp,n.stopImmediatePropagation(),n.preventDefault()});this.tileItems.click(function(){var t=n(this),u=t.find(".tile-item-middle").text(),r=t.attr("data-description");i.displayPopup(u,r)}),this.popup.find(".close").click(function(){i.popup.fadeOut("fast")})}return t.prototype.setCurrentSlide=function(t){t===undefined&&(t=this.bullets.index(this.bullets.filter(".selected")),t<0&&(t=0));var r=n(this.bullets.get(t)),i=this.slides.get(t);this.bullets.removeClass("selected"),r.addClass("selected"),this.updateIndicator(!0),this.slideContainer.animate({scrollLeft:i.offsetLeft},500)},t.prototype.displayPopup=function(n,t){this.popup.find("h1").text(n),this.popup.find("p").text(t),this.popup.fadeIn("fast");var i=this.popup.find(".content");i.css({marginTop:-Math.floor(i.height()/2)})},t.prototype.updateIndicator=function(n){var i=this.bullets.filter(".selected"),t={left:Math.round(i.position().left+i.width()/2-this.indicator.width()/2)};n?this.indicator.animate(t,500):this.indicator.css(t)},t.prototype.updateScroll=function(n){var t=this.element.find(".tile-scroll-container"),i=t.find(".tile-scroll:first"),y=t.find(".content:first"),l=this.element.find(".tile-container"),p=this.element.find(".tile-list"),r,f,o;i.slider({orientation:"vertical",min:0,max:1,value:1,step:.05});var c=l.height(),v=p.innerHeight(),a=v-c,h=t.is(":visible");if(a>0){h||t.show();var e=y.height(),u=Math.round(c/v*e),s=e-u;i.css({height:s,marginTop:-Math.round(s/2)}),r=1,n===!0&&(r=i.slider("value")),f=function(n,t){var i=Math.round(a*(1-t.value));l.scrollTop(i)},i.slider({change:f,slide:f,value:r}),o=i.find(".ui-slider-handle"),o.animate({height:u,marginBottom:-Math.round(u/2)},500),h||t.hide().fadeIn()}else t.fadeOut()},t}();n(function(){t.load(function(n){var f=n.page.find(".tile-template:first"),u,r;f.length&&(u=n.page,r=new i(f),t.navigate(function(n){t.equal(u,n.to)&&(r.setCurrentSlide(),r.updateScroll(!0))}),t.resize(function(n){t.equal(u,n.page)&&(r.setCurrentSlide(),r.updateScroll(!0))}),r.setCurrentSlide(0),r.updateScroll(!1))})})}(jQuery,Sections)