function InitializeRequest(n,t){document.body.style.cursor="wait",$get("boxprogress")&&($get("boxprogress").className="progress progressactive"),t!=null&&$get(t._postBackElement.id)&&($get(t._postBackElement.id).disabled=!0,$("#"+t._postBackElement.id).addClass("disabled"))}function EndRequest(n){document.body.style.cursor="auto",$get("boxprogress")&&($get("boxprogress").className=""),n!=null&&n._postBackSettings.sourceElement&&$get(n._postBackSettings.sourceElement.id)&&($get(n._postBackSettings.sourceElement.id).disabled=!1,$("#"+n._postBackSettings.sourceElement.id).removeClass("disabled"))}function Zone(n,t,i,r,u,f){var e=null;this.zoneElement=n,this.zoneIndex=t,this.webParts=[],this.uniqueID=i,this.isVertical=r,this.allowLayoutChange=u,this.allowDrop=!1,this.webPartTable=e,this.highlightColor=f,this.savedBorderColor=e!=null?e.style.borderColor:null,this.dropCueElements=[],this.AddWebPart=Zone_AddWebPart,this.GetWebPartIndex=Zone_GetWebPartIndex,this.ToggleDropCues=Zone_ToggleDropCues,this.UpdatePosition=Zone_UpdatePosition,this.Dispose=Zone_Dispose}function Zone_Dispose(){for(var n in this.webParts)this.webParts[n].Dispose()}function GetWindowWidth(){var n=0;return typeof window.innerWidth=="number"?n=window.innerWidth:document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?n=document.documentElement.clientWidth:document.body&&(document.body.clientWidth||document.body.clientHeight)&&(n=document.body.clientWidth),n}function GetWindowHeight(){return typeof window.innerWidth=="number"?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body&&document.body.clientHeight?document.body.clientHeight:0}function ResizeW(n){n==null&&(n=25);var t=GetWindowWidth();typeof maxwidth!="undefined"&&t>maxwidth||(control&&(control.width=t-n),typeof control2!="undefined"&&control2&&(control2.width=t-n))}function ResizeH(){var n=GetWindowHeight();typeof maxheight!="undefined"&&n>maxheight||(control&&(control.height=n-20),typeof control2!="undefined"&&control2&&(control2.height=n-20))}function KeyDownHandler(n,t){n.keyCode==13&&(n.returnValue=!1,n.cancel=!0,__doPostBack(t,""))}function createCookie(n,t,i){var u="",r;i&&(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()),document.cookie=n+"="+t+u+"; path=/"}function readCookie(n){for(var u=n+"=",r=document.cookie.split(";"),t,i=0;i<r.length;i++){for(t=r[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(u)==0)return t.substring(u.length,t.length)}return null}function eraseCookie(n){createCookie(n,"",-1)}function shiftOpacity(n,t){document.getElementById(n).style.opacity==0?opacity(n,0,100,t):(opacity(n,100,0,0),opacity(n,0,100,t))}function opacity(n,t,r,u){var e=Math.round(u/100),f=0;if(t>r)for(i=t;i>=r;i--)setTimeout("changeOpac("+i+",'"+n+"')",f*e),f++;else if(t<r)for(i=t;i<=r;i++)setTimeout("changeOpac("+i+",'"+n+"')",f*e),f++}function changeOpac(n,t){var i=document.getElementById(t).style;i.opacity=n/100,i.MozOpacity=n/100,i.KhtmlOpacity=n/100,i.filter="alpha(opacity="+n+")"}function HidePanel(n,t){n.style.visibility="Hidden",createCookie(t,!0,1)}function ShowPanel(n,t){n.style.visibility="Visible",createCookie(t,!0,1)}function PositionPanel(n){if(n){var r=document.all?document.body.scrollTop:pageYOffset,i=document.all?document.body.scrollLeft:pageXOffset,t=document.all?document.body.clientWidth:window.innerWidth;document.all||document.getElementById?(n.style.left=(parseInt(i)+parseInt(t)-parseInt(n.style.width))/2,n.style.top=r+405):document.layers&&(n.left=i+t-parseInt(n.width)-5,n.top=r+305)}}function SetObjectMaxHeight(n,t){n.style.height="100%",t.style.visibility="Hidden"}function SetObjectHeight(n,t){n.style.height=t}function RefreshParent(n){window.parent.location.href=n}function textCounter(n,t,i){var u=document.getElementById(t),f=document.getElementById(i);u&&(f&&u.value.length<=n?f.value="Posledni "+String(n-u.value.length)+" znak(y).":u.value=u.value.substring(0,n))}function setFooter(){var r,t,i,n,u;document.getElementById&&(r=GetWindowHeight(),r>0&&(t=document.getElementById("ctl00_ewpz1_mainTemplateCtrl"),i=t.offsetHeight,t.offsetHeight?i=t.offsetHeight:t.style.pixelHeight&&(i=t.style.pixelHeight),n=document.getElementById("footer"),n&&(u=n.offsetHeight,r-(i+u)>=0?(n.style.position="relative",n.style.top=r-(i+u)+"px"):n.style.position="static")))}function getElement(n){return document.getElementById?document.getElementById(n):document.all[n]}function getIFrameDocument(n){var t=null,i=getElement(n);return t=i.contentDocument?i.contentDocument:document.frames[n].document}function adjustFrameHeight(n){var i=getElement(n),t=getIFrameDocument(n);i.height=t.body.scrollHeight}function AutoComplete_PopulatedUrl(n){for(var r=n.get_completionList().childNodes,i=0;i<r.length;i++)r[i]._value!=""&&(r[i].innerHTML="<a href='"+r[i]._value+"'>"+r[i].innerHTML+"</a>")}function AutoComplete_ItemSelectedUrl(n){var i=n._selectIndex,r=n.get_completionList().childNodes;i>=0&&r[i]!=null&&r[i]._value!=""&&(window.location="/"+r[i]._value)}+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",n,t)},i;t.VERSION="3.3.4",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,i,r){var e,f,u,s,o;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(e=this.options.trigger.split(" "),f=e.length;f--;)if(u=e[f],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){s=u=="hover"?"mouseenter":"focusin",o=u=="hover"?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i&&i.$tip&&i.$tip.is(":visible")){i.hoverState="in";return}if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)},t.prototype.show=function(){var l=n.Event("show.bs."+this.type),y,c,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(l),y=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),l.isDefaultPrevented()||!y)return;var u=this,r=this.tip(),v=this.getUID(this.type);this.setContent(),r.attr("id",v),this.$element.attr("aria-describedby",v),this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,p=a.test(i);p&&(i=i.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),h=r[0].offsetWidth,o=r[0].offsetHeight;if(p){var b=i,w=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(w);i=i=="bottom"&&f.bottom+o>e.bottom?"top":i=="top"&&f.top-o<e.top?"bottom":i=="right"&&f.right+h>e.width?"left":i=="left"&&f.left-h<e.left?"right":i,r.removeClass(b).addClass(i)}c=this.getCalculatedOffset(i,f,h,o),this.applyPlacement(c,i),s=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type),u.hoverState=null,n=="out"&&u.leave(u)},n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s()}},t.prototype.applyPlacement=function(t,i){var r=this.tip(),v=r[0].offsetWidth,s=r[0].offsetHeight,h=parseInt(r.css("margin-top"),10),c=parseInt(r.css("margin-left"),10),e,f,u;isNaN(h)&&(h=0),isNaN(c)&&(c=0),t.top=t.top+h,t.left=t.left+c,n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0),r.addClass("in"),e=r[0].offsetWidth,f=r[0].offsetHeight,i=="top"&&f!=s&&(t.top=t.top+s-f),u=this.getViewportAdjustedDelta(i,t,e,f),u.left?t.left+=u.left:t.top+=u.top;var o=/top|bottom/.test(i),a=o?u.left*2-v+e:u.top*2-s+f,l=o?"offsetWidth":"offsetHeight";r.offset(t),this.replaceArrow(a,r[0][l],o)},t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")},t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t),n.removeClass("fade in top bottom left right")},t.prototype.hide=function(i){function f(){u.hoverState!="in"&&r.detach(),u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type),i&&i()}var u=this,r=n(this.$tip),e=n.Event("hide.bs."+this.type);if(this.$element.trigger(e),!e.isDefaultPrevented())return r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this},t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},f=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,f,o)},t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,h,c,o,s;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(h=t.top-e-u.scroll,c=t.top+e-u.scroll+r,h<u.top?f.top=u.top-h:c>u.top+u.height&&(f.top=u.top+u.height-c)):(o=t.left-e,s=t.left+e+i,o<u.left?f.left=u.left-o:s>u.width&&(f.left=u.left+u.width-s)),f):f},t.prototype.getTitle=function(){var t,i=this.$element,n=this.options;return t=i.attr("data-original-title")||(typeof n.title=="function"?n.title.call(i[0]):n.title)},t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n},t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout),this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})},i=n.fn.tooltip,n.fn.tooltip=r,n.fn.tooltip.Constructor=t,n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f)),typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r),this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this)),this.$element=n(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()},i;t.VERSION="3.3.4",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),o=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=o.top?!1:"bottom":u+e<=n-r?!1:"bottom";var f=this.affixed==null,h=f?u:o.top,s=f?e:t;return i!=null&&u<=i?"top":r!=null&&h+s>=n-r?"bottom":!1},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var i=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-i},t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n(document.body).height();if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i,this.unpin=i=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}},i=n.fn.affix,n.fn.affix=r,n.fn.affix.Constructor=t,n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{},t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom),t.offsetTop!=null&&(t.offset.top=t.offsetTop),r.call(i,t)})})}(jQuery),+function(n){"use strict";function u(i){return this.each(function(){var u=n(this),r=u.data("bs.alert");r||u.data("bs.alert",r=new t(this)),typeof i=="string"&&r[i].call(u)})}var r='[data-dismiss="alert"]',t=function(t){n(t).on("click",r,this.close)},i;t.VERSION="3.3.4",t.TRANSITION_DURATION=150,t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())},i=n.fn.alert,n.fn.alert=u,n.fn.alert.Constructor=t,n.fn.alert.noConflict=function(){return n.fn.alert=i,this};n(document).on("click.bs.alert.data-api",r,t.prototype.close)}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f)),i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.isLoading=!1},i;t.VERSION="3.3.4",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t=t+"Text",u.resetText==null&&i.data("resetText",i[f]()),setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]),t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)},t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active")),t&&this.$element.toggleClass("active")},i=n.fn.button,n.fn.button=r,n.fn.button.Constructor=t,n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn")),r.call(i,"toggle"),t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.carousel"),u=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i),e=typeof i=="string"?i:u.slide;r||f.data("bs.carousel",r=new t(this,u)),typeof i=="number"?r.to(i):e?r[e]():u.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this)),this.options.pause=="hover"&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,i;t.VERSION="3.3.4",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)},t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,u,r;return f&&!this.options.wrap?t:(u=n=="prev"?-1:1,r=(i+u)%this.$items.length,this.$items.eq(r))},t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,c,o,s,h;return u.hasClass("active")?this.sliding=!1:(c=u[0],o=n.Event("slide.bs.carousel",{relatedTarget:c,direction:f}),this.$element.trigger(o),o.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),s=n(this.$indicators.children()[this.getItemIndex(u)]),s&&s.addClass("active")),h=n.Event("slid.bs.carousel",{relatedTarget:c,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active"),e.removeClass(["active",f].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(h)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(h)),l&&this.cycle(),this)},u=n.fn.carousel,n.fn.carousel=r,n.fn.carousel.Constructor=t,n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this},i=function(t){var o,f=n(this),i=n(f.attr("data-target")||(o=f.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,u;i.hasClass("carousel")&&(e=n.extend({},i.data(),f.data()),u=f.attr("data-slide-to"),u&&(e.interval=!1),r.call(i,e),u&&i.data("bs.carousel").to(u),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);r.call(t,t.data())})})}(jQuery),+function(n){"use strict";function u(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var f=n(this),r=f.data("bs.collapse"),u=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);!r&&u.toggle&&/show|hide/.test(i)&&(u.toggle=!1),r||f.data("bs.collapse",r=new t(this,u)),typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()},r;t.VERSION="3.3.4",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"},t.prototype.show=function(){var f,r,o,u,e,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(o=n.Event("show.bs.collapse"),this.$element.trigger(o),!o.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,e=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")},!n.support.transition)return e.call(this);s=n.camelCase(["scroll",u].join("-")),this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}},t.prototype.hide=function(){var u,i,r;if(!this.transitioning&&this.$element.hasClass("in")&&(u=n.Event("hide.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(r,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var r=n(i);this.addAriaAndCollapsedClass(u(r),r)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)},r=n.fn.collapse,n.fn.collapse=i,n.fn.collapse.Constructor=t,n.fn.collapse.noConflict=function(){return n.fn.collapse=r,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var r=n(this);r.attr("data-target")||t.preventDefault();var f=u(r),o=f.data("bs.collapse"),e=o?"toggle":r.data();i.call(f,e)})}(jQuery),+function(n){"use strict";function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var f=n(this),i=r(f),u={relatedTarget:this};i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown",u)),t.isDefaultPrevented())||(f.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",u)))}))}function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function o(i){return this.each(function(){var u=n(this),r=u.data("bs.dropdown");r||u.data("bs.dropdown",r=new t(this)),typeof i=="string"&&r[i].call(u)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.4",t.prototype.toggle=function(t){var e=n(this),i,o,f;if(!e.is(".disabled, :disabled")){if(i=r(e),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",u);if(f={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",f)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger("shown.bs.dropdown",f)}return!1}},t.prototype.keydown=function(t){var o,e,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(o=n(this),t.preventDefault(),t.stopPropagation(),!o.is(".disabled, :disabled"))){if(e=r(o),s=e.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&e.find(i).trigger("focus"),o.trigger("click");(h=" li:not(.disabled):visible a",f=e.find('[role="menu"]'+h+', [role="listbox"]'+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}},f=n.fn.dropdown,n.fn.dropdown=o,n.fn.dropdown.Constructor=t,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery),$(document).ready(function(){$(window).height()+100<$(document).height()&&$("#top-link-block").length&&$("#top-link-block").removeClass("hidden").affix({offset:{top:100}})});var EasyAutocomplete=function(n){return n.Configuration=function(n){function e(){var f,r,e,i,u;if(n.dataType==="xml"&&(n.getValue||(n.getValue=function(n){return $(n).text()}),n.list||(n.list={}),n.list.sort||(n.list.sort={}),n.list.sort.method=function(t,i){return(t=n.getValue(t),i=n.getValue(i),t<i)?-1:t>i?1:0},n.list.match||(n.list.match={}),n.list.match.method=function(n,t){return n.search(t)>-1?!0:!1}),n.categories!==undefined&&n.categories instanceof Array){for(f=[],r=0,e=n.categories.length;r<e;r+=1){i=n.categories[r];for(u in t.categories[0])i[u]===undefined&&(i[u]=t.categories[0][u]);f.push(i)}n.categories=f}}function f(){function i(n,t){var u=n||{},r;for(r in n)t[r]!==undefined&&t[r]!==null&&(typeof t[r]!="object"||t[r]instanceof Array?u[r]=t[r]:i(n[r],t[r]));return t.data!==undefined&&t.data!==null&&typeof t.data=="object"&&(u.data=t.data),u}t=i(t,n)}function s(){var i,r,u;t.url!=="list-required"&&typeof t.url!="function"&&(i=t.url,t.url=function(){return i}),t.ajaxSettings.url!==undefined&&typeof t.ajaxSettings.url!="function"&&(i=t.ajaxSettings.url,t.ajaxSettings.url=function(){return i}),typeof t.listLocation=="string"&&(r=t.listLocation,t.listLocation=t.dataType.toUpperCase()==="XML"?function(n){return $(n).find(r)}:function(n){return n[r]}),typeof t.getValue=="string"&&(u=t.getValue,t.getValue=function(n){return n[u]}),n.categories!==undefined&&(t.categoriesAssigned=!0)}function r(){t.ajaxSettings=n.ajaxSettings!==undefined&&typeof n.ajaxSettings=="object"?n.ajaxSettings:{}}function u(n){return t[n]!==undefined&&t[n]!==null?!0:!1}function i(n,i){function r(t,i){for(var u in i)t[u]===undefined&&n.log("Property '"+u+"' does not exist in EasyAutocomplete options API."),typeof t[u]=="object"&&$.inArray(u,o)===-1&&r(t[u],i[u])}r(t,i)}var t={data:"list-required",url:"list-required",dataType:"json",listLocation:function(n){return n},xmlElementName:"",getValue:function(n){return n},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(n,i){return(n=t.getValue(n),i=t.getValue(i),n<i)?-1:n>i?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(n,t){return n.search(t)>-1?!0:!1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!0,ajaxSettings:{},preparePostData:function(n){return n},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},o=["ajaxSettings","template"];this.get=function(n){return t[n]},this.equals=function(n,i){return u(n)&&t[n]===i?!0:!1},this.checkDataUrlProperties=function(){return t.url==="list-required"&&t.data==="list-required"?!1:!0},this.checkRequiredProperties=function(){for(var n in t)if(t[n]==="required")return logger.error("Option "+n+" must be defined"),!1;return!0},this.printPropertiesThatDoesntExist=function(n,t){i(n,t)},e(),f(),t.loggerEnabled===!0&&i(console,n),r(),s()},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.Logger=function(){this.error=function(n){console.log("ERROR: "+n)},this.warning=function(n){console.log("WARNING: "+n)}},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.Constans=function(){var n={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(t){return n[t]}},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.ListBuilderService=function(n,t){function r(t,i){function e(){var u={},r;return t.xmlElementName!==undefined&&(u.xmlElementName=t.xmlElementName),t.listLocation!==undefined?r=t.listLocation:n.get("listLocation")!==undefined&&(r=n.get("listLocation")),r!==undefined?typeof r=="string"?u.data=$(i).find(r):typeof r=="function"&&(u.data=r(i)):u.data=i,u}function f(){var n={};return t.listLocation!==undefined?typeof t.listLocation=="string"?n.data=i[t.listLocation]:typeof t.listLocation=="function"&&(n.data=t.listLocation(i)):n.data=i,n}var r={},u;return r=n.get("dataType").toUpperCase()==="XML"?e():f(),t.header!==undefined&&(r.header=t.header),t.maxNumberOfElements!==undefined&&(r.maxNumberOfElements=t.maxNumberOfElements),n.get("list").maxNumberOfElements!==undefined&&(r.maxListSize=n.get("list").maxNumberOfElements),t.getValue!==undefined?typeof t.getValue=="string"?(u=t.getValue,r.getValue=function(n){return n[u]}):typeof t.getValue=="function"&&(r.getValue=t.getValue):r.getValue=n.get("getValue"),r}function i(t){var i=[];return t.xmlElementName===undefined&&(t.xmlElementName=n.get("xmlElementName")),$(t.data).find(t.xmlElementName).each(function(){i.push(this)}),i}this.init=function(t){var r=[],i={};return i.data=n.get("listLocation")(t),i.getValue=n.get("getValue"),i.maxListSize=n.get("list").maxNumberOfElements,r.push(i),r},this.updateCategories=function(t,i){var u,f;if(n.get("categoriesAssigned"))for(t=[],u=0;u<n.get("categories").length;u+=1)f=r(n.get("categories")[u],i),t.push(f);return t},this.convertXml=function(t){if(n.get("dataType").toUpperCase()==="XML")for(var r=0;r<t.length;r+=1)t[r].data=i(t[r]);return t},this.processData=function(i,r){for(var u=0,f=i.length;u<f;u+=1)i[u].data=t(n,i[u],r);return i},this.checkIfDataExists=function(n){for(var t=0,i=n.length;t<i;t+=1)if(n[t].data!==undefined&&n[t].data instanceof Array&&n[t].data.length>0)return!0;return!1}},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.proccess=function(t,i,r){function h(n,i){var u=[],o="",r,e;if(t.get("list").match.enabled)for(r=0,e=n.length;r<e;r+=1)o=t.get("getValue")(n[r]),f(o,i)&&u.push(n[r]);else u=n;return u}function f(n,i){return t.get("list").match.caseSensitive||(typeof n=="string"&&(n=n.toLowerCase()),i=i.toLowerCase()),t.get("list").match.method(n,i)?!0:!1}function o(n){return i.maxNumberOfElements!==undefined&&n.length>i.maxNumberOfElements&&(n=n.slice(0,i.maxNumberOfElements)),n}function e(n){return t.get("list").sort.enabled&&n.sort(t.get("list").sort.method),n}n.proccess.match=f;var u=i.data,s=r;return u=h(u,s),u=o(u),u=e(u)},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.Template=function(n){var t={basic:{type:"basic",method:function(n){return n},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(n){return n+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(n){return n},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(n){return n},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(n){return n},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}},u=function(n){var i=n.fields,r;return n.type==="description"?(r=t.description.method,typeof i.description=="string"?r=function(n,t){return n+" - <span>"+t[i.description]+"</span>"}:typeof i.description=="function"&&(r=function(n,t){return n+" - <span>"+i.description(t)+"</span>"}),r):n.type==="iconRight"?(typeof i.iconSrc=="string"?r=function(n,t){return n+"<img class='eac-icon' src='"+t[i.iconSrc]+"' />"}:typeof i.iconSrc=="function"&&(r=function(n,t){return n+"<img class='eac-icon' src='"+i.iconSrc(t)+"' />"}),r):n.type==="iconLeft"?(typeof i.iconSrc=="string"?r=function(n,t){return"<img class='eac-icon' src='"+t[i.iconSrc]+"' />"+n}:typeof i.iconSrc=="function"&&(r=function(n,t){return"<img class='eac-icon' src='"+i.iconSrc(t)+"' />"+n}),r):n.type==="links"?(typeof i.link=="string"?r=function(n,t){return"<a href='"+t[i.link]+"' >"+n+"</a>"}:typeof i.link=="function"&&(r=function(n,t){return"<a href='"+i.link(t)+"' >"+n+"</a>"}),r):n.type==="custom"?n.method:t.basic.method},r=function(n){return!n||!n.type?t.basic.method:n.type&&t[n.type]?u(n):t.basic.method},i=function(n){var i=function(){return""};return!n||!n.type?i:n.type&&t[n.type]?function(){var i=t[n.type].cssClass;return function(){return i}}():i};this.getTemplateClass=i(n),this.build=r(n)},n}(EasyAutocomplete||{}),EasyAutocomplete=function(n){return n.main=function(t,i){function nt(){if(u.length===0){a.error("Input field doesn't exist.");return}if(!r.checkDataUrlProperties()){a.error("One of options variables 'data' or 'url' must be defined.");return}if(!r.checkRequiredProperties()){a.error("Will not work without mentioned properties.");return}k(),tt()}function k(){function a(){var t=$("<div>"),n=s.getValue("WRAPPER_CSS_CLASS");r.get("theme")&&r.get("theme")!==""&&(n+=" eac-"+r.get("theme")),r.get("cssClasses")&&r.get("cssClasses")!==""&&(n+=" "+r.get("cssClasses")),y.getTemplateClass()!==""&&(n+=" "+y.getTemplateClass()),t.addClass(n),u.wrap(t),r.get("adjustWidth")===!0&&c()}function c(){var n=u.outerWidth();u.parent().css("width",n)}function p(){u.unwrap()}function v(){var t=$("<div>").addClass(s.getValue("CONTAINER_CLASS"));t.attr("id",b()).prepend($("<ul>")),function(){t.on("show.eac",function(){var i,n;switch(r.get("list").showAnimation.type){case"slide":i=r.get("list").showAnimation.time,n=r.get("list").showAnimation.callback,t.find("ul").slideDown(i,n);break;case"fade":i=r.get("list").showAnimation.time,n=r.get("list").showAnimation.callback,t.find("ul").fadeIn(i),n;break;default:t.find("ul").show()}r.get("list").onShowListEvent()}).on("hide.eac",function(){var i,n;switch(r.get("list").hideAnimation.type){case"slide":i=r.get("list").hideAnimation.time,n=r.get("list").hideAnimation.callback,t.find("ul").slideUp(i,n);break;case"fade":i=r.get("list").hideAnimation.time,n=r.get("list").hideAnimation.callback,t.find("ul").fadeOut(i,n);break;default:t.find("ul").hide()}r.get("list").onHideListEvent()}).on("selectElement.eac",function(){t.find("ul li").removeClass("selected"),t.find("ul li").eq(f).addClass("selected"),r.get("list").onSelectItemEvent()}).on("loadElements.eac",function(i,o,s){var w="",v=t.find("ul"),p,h,k,c,a,b;for(v.empty().detach(),e=[],p=0,h=0,k=o.length;h<k;h+=1)if(c=o[h].data,c.length!==0)for(o[h].header!==undefined&&o[h].header.length>0&&v.append("<div class='eac-category' >"+o[h].header+"</div>"),a=0,b=c.length;a<b&&p<o[h].maxListSize;a+=1)w=$("<li><div class='eac-item'></div></li>"),function(){var e=a,t=p,i=o[h].getValue(c[e]);w.find(" > div").on("click",function(){u.val(i).trigger("change"),f=t,l(t),r.get("list").onClickEvent(),r.get("list").onChooseEvent()}).mouseover(function(){f=t,l(t),r.get("list").onMouseOverEvent()}).mouseout(function(){r.get("list").onMouseOutEvent()}).html(y.build(n(i,s),c[e]))}(),v.append(w),e.push(c[a]),p+=1;t.append(v),r.get("list").onLoadEvent()})}(),u.after(t)}function t(){u.next("."+s.getValue("CONTAINER_CLASS")).remove()}function n(n,t){return r.get("highlightPhrase")&&t!==""?i(n,t):n}function o(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function i(n,t){var i=o(t);return(n+"").replace(new RegExp("("+i+")","gi"),"<b>$1</b>")}u.parent().hasClass(s.getValue("WRAPPER_CSS_CLASS"))&&(t(),p()),a(),v(),h=$("#"+b()),r.get("placeholder")&&u.attr("placeholder",r.get("placeholder"))}function b(){var n=u.attr("id");return n=s.getValue("CONTAINER_ID")+n}function tt(){function y(){g("autocompleteOff",!0)&&i(),h(),k(),b(),t(),n(),s()}function h(){u.focusout(function(){var i=u.val(),t,n,o;for(r.get("list").match.caseSensitive||(i=i.toLowerCase()),n=0,o=e.length;n<o;n+=1)if(t=r.get("getValue")(e[n]),r.get("list").match.caseSensitive||(t=t.toLowerCase()),t===i){f=n,l(f);return}})}function k(){u.off("keyup").keyup(function(n){function i(n){function s(){var t={},i=r.get("ajaxSettings")||{},n;for(n in i)t[n]=i[n];return t}function e(n,t){return r.get("matchResponseProperty")!==!1?typeof r.get("matchResponseProperty")=="string"?t[r.get("matchResponseProperty")]===n:typeof r.get("matchResponseProperty")=="function"?r.get("matchResponseProperty")(t)===n:!0:!0}var f,i,t;n.length<r.get("minCharNumber")||(r.get("data")!=="list-required"&&(f=r.get("data"),i=o.init(f),i=o.updateCategories(i,f),i=o.processData(i,n),w(i,n),u.parent().find("li").length>0?p():c()),t=s(),(t.url===undefined||t.url==="")&&(t.url=r.get("url")),(t.dataType===undefined||t.dataType==="")&&(t.dataType=r.get("dataType")),t.url!==undefined&&t.url!=="list-required"&&(t.url=t.url(n),t.data=r.get("preparePostData")(t.data,n),$.ajax(t).done(function(t){var i=o.init(t);i=o.updateCategories(i,t),i=o.convertXml(i),e(n,t)&&(i=o.processData(i,n),w(i,n)),o.checkIfDataExists(i)&&u.parent().find("li").length>0?p():c(),r.get("ajaxCallback")()}).fail(function(){a.warning("Fail to load response data")}).always(function(){})))}switch(n.keyCode){case 27:c(),d();break;case 38:n.preventDefault(),e.length>0&&f>0&&(f-=1,u.val(r.get("getValue")(e[f])),l(f));break;case 40:n.preventDefault(),e.length>0&&f<e.length-1&&(f+=1,u.val(r.get("getValue")(e[f])),l(f));break;default:if(n.keyCode>40||n.keyCode===8){var t=u.val();r.get("list").hideOnEmptyPhrase===!0&&n.keyCode===8&&t===""?c():r.get("requestDelay")>0?(v!==undefined&&clearTimeout(v),v=setTimeout(function(){i(t)},r.get("requestDelay"))):i(t)}}})}function b(){u.on("keydown",function(n){n=n||window.event;var t=n.keyCode;if(t===38)return suppressKeypress=!0,!1}).keydown(function(n){n.keyCode===13&&f>-1&&(u.val(r.get("getValue")(e[f])),r.get("list").onKeyEnterEvent(),r.get("list").onChooseEvent(),f=-1,c(),n.preventDefault())})}function t(){u.off("keypress")}function n(){u.focus(function(){u.val()!==""&&e.length>0&&(f=-1,p())})}function s(){u.blur(function(){setTimeout(function(){f=-1,c()},250)})}function i(){u.attr("autocomplete","off")}y()}function p(){h.trigger("show.eac")}function c(){h.trigger("hide.eac")}function l(n){h.trigger("selectElement.eac",n)}function w(n,t){h.trigger("loadElements.eac",[n,t])}function d(){u.trigger("blur")}var it={name:"EasyAutocomplete",shortcut:"eac"},s=new n.Constans,r=new n.Configuration(i),a=new n.Logger,y=new n.Template(i.template),o=new n.ListBuilderService(r,n.proccess),g=r.equals,u=t,h="",e=[],f=-1,v;n.consts=s,this.getConstants=function(){return s},this.getConfiguration=function(){return r},this.getContainer=function(){return h},this.getSelectedItemIndex=function(){return f},this.getItems=function(){return e},this.getItemData=function(n){return e.length<n||e[n]===undefined?-1:e[n]},this.getSelectedItemData=function(){return this.getItemData(f)},this.build=function(){k()},this.init=function(){nt()}},n.eacHandles=[],n.getHandle=function(t){return n.eacHandles[t]},n.inputHasId=function(n){return $(n).attr("id")!==undefined&&$(n).attr("id").length>0?!0:!1},n.assignRandomId=function(t){var i="";do i="eac-"+Math.floor(Math.random()*1e4);while($("#"+i).length!==0);elementId=n.consts.getValue("CONTAINER_ID")+i,$(t).attr("id",i)},n.setHandle=function(t,i){n.eacHandles[i]=t},n}(EasyAutocomplete||{});(function(n){n.fn.easyAutocomplete=function(t){return this.each(function(){var i=n(this),r=new EasyAutocomplete.main(i,t);EasyAutocomplete.inputHasId(i)||EasyAutocomplete.assignRandomId(i),r.init(),EasyAutocomplete.setHandle(r,i.attr("id"))})},n.fn.getSelectedItemIndex=function(){var t=n(this).attr("id");return t!==undefined?EasyAutocomplete.getHandle(t).getSelectedItemIndex():-1},n.fn.getItems=function(){var t=n(this).attr("id");return t!==undefined?EasyAutocomplete.getHandle(t).getItems():-1},n.fn.getItemData=function(t){var i=n(this).attr("id");return i!==undefined&&t>-1?EasyAutocomplete.getHandle(i).getItemData(t):-1},n.fn.getSelectedItemData=function(){var t=n(this).attr("id");return t!==undefined?EasyAutocomplete.getHandle(t).getSelectedItemData():-1}})(jQuery),function(n){var t=function(t,i){var u=n.extend({},n.fn.nivoSlider.defaults,i),r={currentSlide:0,currentImage:"",totalSlides:0,running:!1,paused:!1,stop:!1,controlNavEl:!1},e=n(t),f,s,v,o,c,a;if(e.data("nivo:vars",r).addClass("nivoSlider"),f=e.children(),f.each(function(){var t=n(this),i="",f,u;t.is("img")||(t.is("a")&&(t.addClass("nivo-imageLink"),i=t),t=t.find("img:first")),f=f===0?t.attr("width"):t.width(),u=u===0?t.attr("height"):t.height(),i!==""&&i.css("display","none"),t.css("display","none"),r.totalSlides++}),u.randomStart&&(u.startSlide=Math.floor(Math.random()*r.totalSlides)),u.startSlide>0&&(u.startSlide>=r.totalSlides&&(u.startSlide=r.totalSlides-1),r.currentSlide=u.startSlide),r.currentImage=n(f[r.currentSlide]).is("img")?n(f[r.currentSlide]):n(f[r.currentSlide]).find("img:first"),n(f[r.currentSlide]).is("a")&&n(f[r.currentSlide]).css("display","block"),s=n("<img/>").addClass("nivo-main-image"),s.attr("src",r.currentImage.attr("src")).show(),e.append(s),n(window).resize(function(){e.children("img").width(e.width()),s.attr("src",r.currentImage.attr("src")),s.stop().height("auto"),n(".nivo-slice").remove(),n(".nivo-box").remove()}),e.append(n('<div class="nivo-caption"></div>')),v=function(t){var u=n(".nivo-caption",e),i;r.currentImage.attr("title")!=""&&r.currentImage.attr("title")!=undefined?(i=r.currentImage.attr("title"),i.substr(0,1)=="#"&&(i=n(i).html()),u.css("display")=="block"?setTimeout(function(){u.html(i)},t.animSpeed):(u.html(i),u.stop().fadeIn(t.animSpeed))):u.stop().fadeOut(t.animSpeed)},v(u),o=0,!u.manualAdvance&&f.length>1&&(o=setInterval(function(){l(e,f,u,!1)},u.pauseTime)),u.directionNav){e.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+u.prevText+'</a><a class="nivo-nextNav">'+u.nextText+"</a></div>");n(e).on("click","a.nivo-prevNav",function(){if(r.running)return!1;clearInterval(o),o="",r.currentSlide-=2,l(e,f,u,"prev")});n(e).on("click","a.nivo-nextNav",function(){if(r.running)return!1;clearInterval(o),o="",l(e,f,u,"next")})}if(u.controlNav){for(r.controlNavEl=n('<div class="nivo-controlNav"></div>'),e.after(r.controlNavEl),c=0;c<f.length;c++)u.controlNavThumbs?(r.controlNavEl.addClass("nivo-thumbs-enabled"),a=f.eq(c),a.is("img")||(a=a.find("img:first")),a.attr("data-thumb")&&r.controlNavEl.append('<a class="nivo-control" rel="'+c+'"><img src="'+a.attr("data-thumb")+'" alt="" /></a>')):r.controlNavEl.append('<a class="nivo-control" rel="'+c+'">'+(c+1)+"</a>");n("a:eq("+r.currentSlide+")",r.controlNavEl).addClass("active"),n("a",r.controlNavEl).bind("click",function(){if(r.running||n(this).hasClass("active"))return!1;clearInterval(o),o="",s.attr("src",r.currentImage.attr("src")),r.currentSlide=n(this).attr("rel")-1,l(e,f,u,"control")})}u.pauseOnHover&&e.hover(function(){r.paused=!0,clearInterval(o),o=""},function(){r.paused=!1,o!==""||u.manualAdvance||(o=setInterval(function(){l(e,f,u,!1)},u.pauseTime))}),e.bind("nivo:animFinished",function(){s.attr("src",r.currentImage.attr("src")),r.running=!1,n(f).each(function(){n(this).is("a")&&n(this).css("display","none")}),n(f[r.currentSlide]).is("a")&&n(f[r.currentSlide]).css("display","block"),o!==""||r.paused||u.manualAdvance||(o=setInterval(function(){l(e,f,u,!1)},u.pauseTime)),u.afterChange.call(this)});var h=function(t,i,r){var e,f,u;for(n(r.currentImage).parent().is("a")&&n(r.currentImage).parent().css("display","block"),n('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show(),e=n('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?n('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():n('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height(),f=0;f<i.slices;f++)u=Math.round(t.width()/i.slices),f===i.slices-1?t.append(n('<div class="nivo-slice" name="'+f+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(u+f*u-u)+'px;" /></div>').css({left:u*f+"px",width:t.width()-u*f+"px",height:e+"px",opacity:"0",overflow:"hidden"})):t.append(n('<div class="nivo-slice" name="'+f+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(u+f*u-u)+'px;" /></div>').css({left:u*f+"px",width:u+"px",height:e+"px",opacity:"0",overflow:"hidden"}));n(".nivo-slice",t).height(e),s.stop().animate({height:n(r.currentImage).height()},i.animSpeed)},p=function(t,i,r){var e,o,f,u;for(n(r.currentImage).parent().is("a")&&n(r.currentImage).parent().css("display","block"),n('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show(),e=Math.round(t.width()/i.boxCols),o=Math.round(n('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/i.boxRows),f=0;f<i.boxRows;f++)for(u=0;u<i.boxCols;u++)u===i.boxCols-1?(t.append(n('<div class="nivo-box" name="'+u+'" rel="'+f+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+o*f+"px; left:-"+e*u+'px;" /></div>').css({opacity:0,left:e*u+"px",top:o*f+"px",width:t.width()-e*u+"px"})),n('.nivo-box[name="'+u+'"]',t).height(n('.nivo-box[name="'+u+'"] img',t).height()+"px")):(t.append(n('<div class="nivo-box" name="'+u+'" rel="'+f+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+o*f+"px; left:-"+e*u+'px;" /></div>').css({opacity:0,left:e*u+"px",top:o*f+"px",width:e+"px"})),n('.nivo-box[name="'+u+'"]',t).height(n('.nivo-box[name="'+u+'"] img',t).height()+"px"));s.stop().animate({height:n(r.currentImage).height()},i.animSpeed)},l=function(t,i,r,u){var f=t.data("nivo:vars"),e,y,ut,g,b,nt;if(f&&f.currentSlide===f.totalSlides-1&&r.lastSlide.call(this),(!f||f.stop)&&!u)return!1;r.beforeChange.call(this),u?(u==="prev"&&s.attr("src",f.currentImage.attr("src")),u==="next"&&s.attr("src",f.currentImage.attr("src"))):s.attr("src",f.currentImage.attr("src")),f.currentSlide++,f.currentSlide===f.totalSlides&&(f.currentSlide=0,r.slideshowEnd.call(this)),f.currentSlide<0&&(f.currentSlide=f.totalSlides-1),f.currentImage=n(i[f.currentSlide]).is("img")?n(i[f.currentSlide]):n(i[f.currentSlide]).find("img:first"),r.controlNav&&(n("a",f.controlNavEl).removeClass("active"),n("a:eq("+f.currentSlide+")",f.controlNavEl).addClass("active")),v(r),n(".nivo-slice",t).remove(),n(".nivo-box",t).remove(),e=r.effect,y="",r.effect==="random"&&(y=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"],e=y[Math.floor(Math.random()*(y.length+1))],e===undefined&&(e="fade")),r.effect.indexOf(",")!==-1&&(y=r.effect.split(","),e=y[Math.floor(Math.random()*y.length)],e===undefined&&(e="fade")),f.currentImage.attr("data-transition")&&(e=f.currentImage.attr("data-transition")),f.running=!0;var o=0,c=0,a="",l="",tt="",k="";if(e==="sliceDown"||e==="sliceDownRight"||e==="sliceDownLeft")h(t,r,f),o=0,c=0,a=n(".nivo-slice",t),e==="sliceDownLeft"&&(a=n(".nivo-slice",t)._reverse()),a.each(function(){var i=n(this);i.css({top:"0px"}),c===r.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({opacity:"1.0"},r.animSpeed)},100+o),o+=50,c++});else if(e==="sliceUp"||e==="sliceUpRight"||e==="sliceUpLeft")h(t,r,f),o=0,c=0,a=n(".nivo-slice",t),e==="sliceUpLeft"&&(a=n(".nivo-slice",t)._reverse()),a.each(function(){var i=n(this);i.css({bottom:"0px"}),c===r.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({opacity:"1.0"},r.animSpeed)},100+o),o+=50,c++});else if(e==="sliceUpDown"||e==="sliceUpDownRight"||e==="sliceUpDownLeft")h(t,r,f),o=0,c=0,ut=0,a=n(".nivo-slice",t),e==="sliceUpDownLeft"&&(a=n(".nivo-slice",t)._reverse()),a.each(function(){var i=n(this);c===0?(i.css("top","0px"),c++):(i.css("bottom","0px"),c=0),ut===r.slices-1?setTimeout(function(){i.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({opacity:"1.0"},r.animSpeed)},100+o),o+=50,ut++});else if(e==="fold")h(t,r,f),o=0,c=0,n(".nivo-slice",t).each(function(){var i=n(this),u=i.width();i.css({top:"0px",width:"0px"}),c===r.slices-1?setTimeout(function(){i.animate({width:u,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({width:u,opacity:"1.0"},r.animSpeed)},100+o),o+=50,c++});else if(e==="fade")h(t,r,f),l=n(".nivo-slice:first",t),l.css({width:t.width()+"px"}),l.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")});else if(e==="slideInRight")h(t,r,f),l=n(".nivo-slice:first",t),l.css({width:"0px",opacity:"1"}),l.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")});else if(e==="slideInLeft")h(t,r,f),l=n(".nivo-slice:first",t),l.css({width:"0px",opacity:"1",left:"",right:"0px"}),l.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){l.css({left:"0px",right:""}),t.trigger("nivo:animFinished")});else if(e==="boxRandom")p(t,r,f),tt=r.boxCols*r.boxRows,c=0,o=0,k=w(n(".nivo-box",t)),k.each(function(){var i=n(this);c===tt-1?setTimeout(function(){i.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+o):setTimeout(function(){i.animate({opacity:"1"},r.animSpeed)},100+o),o+=20,c++});else if(e==="boxRain"||e==="boxRainReverse"||e==="boxRainGrow"||e==="boxRainGrowReverse"){p(t,r,f),tt=r.boxCols*r.boxRows,c=0,o=0;var it=0,rt=0,d=[];for(d[it]=[],k=n(".nivo-box",t),(e==="boxRainReverse"||e==="boxRainGrowReverse")&&(k=n(".nivo-box",t)._reverse()),k.each(function(){d[it][rt]=n(this),rt++,rt===r.boxCols&&(it++,rt=0,d[it]=[])}),g=0;g<r.boxCols*2;g++){for(b=g,nt=0;nt<r.boxRows;nt++)b>=0&&b<r.boxCols&&(function(i,u,f,o,s){var h=n(d[i][u]),l=h.width(),c=h.height();(e==="boxRainGrow"||e==="boxRainGrowReverse")&&h.width(0).height(0),o===s-1?setTimeout(function(){h.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+f):setTimeout(function(){h.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3)},100+f)}(nt,b,o,c,tt),c++),b--;o+=100}}},w=function(n){for(var i,r,t=n.length;t;i=parseInt(Math.random()*t,10),r=n[--t],n[t]=n[i],n[i]=r);return n},y=function(n){this.console&&typeof console.log!="undefined"&&console.log(n)};return this.stop=function(){n(t).data("nivo:vars").stop||(n(t).data("nivo:vars").stop=!0,y("Stop Slider"))},this.start=function(){n(t).data("nivo:vars").stop&&(n(t).data("nivo:vars").stop=!1,y("Start Slider"))},u.afterLoad.call(this),this};n.fn.nivoSlider=function(i){return this.each(function(){var f=n(this),e;if(f.data("nivoslider"))return f.data("nivoslider");e=new t(this,i),f.data("nivoslider",e)})},n.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:!0,controlNav:!0,controlNavThumbs:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next",randomStart:!1,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}},n.fn._reverse=[].reverse}(jQuery),+function(n){"use strict";function r(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e)),typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i,this.$body=n(document.body),this.$element=n(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},i;t.VERSION="3.3.4",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)},t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),f&&r.$element[0].offsetWidth,r.$element.addClass("in").attr("aria-hidden",!1),r.enforceFocus(),u=n.Event("shown.bs.modal",{relatedTarget:i}),f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}},t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var n=this;this.$element.hide(),this.backdrop(function(){n.$body.removeClass("modal-open"),n.resetAdjustments(),n.resetScrollbar(),n.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop(),i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var t=window.innerWidth,n;t||(n=document.documentElement.getBoundingClientRect(),t=n.right-Math.abs(n.left)),this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t},i=n.fn.modal,n.fn.modal=r,n.fn.modal.Constructor=t,n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),f=i.attr("href"),u=n(i.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),i.data());i.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})});r.call(u,e,this)})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.4",t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i),n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t),n.removeClass("fade top bottom left right in"),n.find(".popover-title").html()||n.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i=n.fn.popover,n.fn.popover=r,n.fn.popover.Constructor=t,n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery),+function(n){"use strict";function t(i,r){this.$body=n(document.body),this.$scrollElement=n(i).is(document.body)?n(window):n(i),this.options=n.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh(),this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f)),typeof i=="string"&&r[i]()})}t.VERSION="3.3.4",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var r=this,i="offset",t=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",t=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),r=/^#./.test(u)&&n(u);return r&&r.length&&r.is(":visible")&&[[r[i]().top+t,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){r.offsets.push(this[0]),r.targets.push(this[1])})},t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i,n.fn.scrollspy.Constructor=t,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this)),typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.4",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),o=n.Event("hide.bs.tab",{relatedTarget:t[0]}),e=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(o),t.trigger(e),e.isDefaultPrevented()||o.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}},t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),f.removeClass("in")},u=n.fn.tab,n.fn.tab=r,n.fn.tab.Constructor=t,n.fn.tab.noConflict=function(){return n.fn.tab=u,this},i=function(t){t.preventDefault(),r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var r=!1,u=this,i;n(this).one("bsTransitionEnd",function(){r=!0});return i=function(){r||n(u).trigger(n.support.transition.end)},setTimeout(i,t),this},n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery)