').insertAfter(e(this)).on("click",i);r.trigger(t=e.Event("show.bs.dropdown"));if(t.isDefaultPrevented())return;r.toggleClass("open").trigger("shown.bs.dropdown");n.focus()}return!1};r.prototype.keydown=function(t){if(!/(38|40|27)/.test(t.keyCode))return;var r=e(this);t.preventDefault();t.stopPropagation();if(r.is(".disabled,:disabled"))return;var i=s(r),o=i.hasClass("open");if(!o||o&&t.keyCode==27){t.which==27&&i.find(n).focus();return r.click()}var u=e("[role=menu]li:not(.divider):visible a",i);if(!u.length)return;var a=u.index(u.filter(":focus"));t.keyCode==38&&a>0&&a--;t.keyCode==40&&a').appendTo(document.body);this.$element.on("click.dismiss.modal",e.proxy(function(e){if(e.target!==e.currentTarget)return;this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this));i&&this.$backdrop[0].offsetWidth;this.$backdrop.addClass("in");if(!t)return;i?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()}else t&&t()};var n=e.fn.modal;e.fn.modal=function(n,r){return this.each(function(){var i=e(this),s=i.data("bs.modal"),o=e.extend({},t.DEFAULTS,i.data(),typeof n=="object"&&n);s||i.data("bs.modal",s=new t(this,o));typeof n=="string"?s[n](r):o.show&&s.show(r)})};e.fn.modal.Constructor=t;e.fn.modal.noConflict=function(){e.fn.modal=n;return this};e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());t.preventDefault();i.modal(s,this).one("hide",function(){n.is(":visible")&&n.focus()})});e(document).on("show.bs.modal",".modal",function(){e(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){e(document.body).removeClass("modal-open")})}(window.jQuery);+function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'
'});t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t);e.find(".popover-content")[this.options.html?"html":"text"](n);e.removeClass("fade top bottom left right in");e.find(".popover-title").html()||e.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||(typeof t.content=="function"?t.content.call(e[0]):t.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){this.$tip||(this.$tip=e(this.options.template));return this.$tip};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("bs.popover"),s=typeof n=="object"&&n;i||r.data("bs.popover",i=new t(this,s));typeof n=="string"&&i[n]()})};e.fn.popover.Constructor=t;e.fn.popover.noConflict=function(){e.fn.popover=n;return this}}(window.jQuery);+function(e){"use strict";function t(n,r){var i,s=e.proxy(this.process,this);this.$element=e(n).is("body")?e(window):e(n);this.$body=e("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",s);this.options=e.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(i=e(n).attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li>a";this.offsets=e([]);this.targets=e([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var t=this.$element[0]==window?"offset":"position";this.offsets=e([]);this.targets=e([]);var n=this,r=this.$body.find(this.selector).map(function(){var r=e(this),i=r.data("target")||r.attr("href"),s=/^#\w/.test(i)&&e(i);return s&&s.length&&[[s[t]().top+(!e.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){n.offsets.push(this[0]);n.targets.push(this[1])})};t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])};t.prototype.activate=function(t){this.activeTarget=t;e(this.selector).parents(".active").removeClass("active");var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',r=e(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active"));r.trigger("activate")};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("bs.scrollspy"),s=typeof n=="object"&&n;i||r.data("bs.scrollspy",i=new t(this,s));typeof n=="string"&&i[n]()})};e.fn.scrollspy.Constructor=t;e.fn.scrollspy.noConflict=function(){e.fn.scrollspy=n;return this};e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(window.jQuery);+function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.attr("data-target");if(!r){r=t.attr("href");r=r&&r.replace(/.*(?=#[^\s]*$)/,"")}if(t.parent("li").hasClass("active"))return;var i=n.find(".active:last a")[0],s=e.Event("show.bs.tab",{relatedTarget:i});t.trigger(s);if(s.isDefaultPrevented())return;var o=e(r);this.activate(t.parent("li"),n);this.activate(o,o.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:i})})};t.prototype.activate=function(t,n,r){function o(){i.removeClass("active").find(">.dropdown-menu>.active").removeClass("active");t.addClass("active");if(s){t[0].offsetWidth;t.addClass("in")}else t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var i=n.find(">.active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o).emulateTransitionEnd(150):o();i.removeClass("in")};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new t(this));typeof n=="string"&&i[n]()})};e.fn.tab.Constructor=t;e.fn.tab.noConflict=function(){e.fn.tab=n;return this};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"],[data-toggle="pill"]',function(t){t.preventDefault();e(this).tab("show")})}(window.jQuery);+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(e.style[n]!==undefined)return{end:t[n]}}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this;e(this).one(e.support.transition.end,function(){n=!0});var i=function(){n||e(r).trigger(e.support.transition.end)};setTimeout(i,t);return this};e(function(){e.support.transition=t()})}(window.jQuery);var width,news,newsCount,activeindex=0,inicators={};$(document).ready(function(){$("#wrapper").css("margin-bottom",$("#footer").height());news=$("#landing-news div.content>div");newsCount=news.size();var e=$('');if(newsCount>0){width=$("#landing-news").width();$("#landing-news .newsslider .content").width(width*newsCount).css("left",0);news.each(function(e,t){$(this).css("width",width);var n="";if(e==0){n="active";$("#landing-news .slide-indicators").append('')}else $("#landing-news .slide-indicators").append('')});$(".slide-left").bind("click",function(){slideNewsLeft()});$(".slide-right").bind("click",function(){slideNewsRight()});$(".slide-indicators i").bind("click",function(){slideNewsTo(parseInt($(this).attr("data-index")))})}var t=$("#landing-news .newsslider .content"),n=parseInt(t.css("left"));$(".newsslider").swipe({swipeStatus:function(e,t,r,i,s,o){t=="start"&&(n=parseInt($("#landing-news .newsslider .content").css("left")));if(r=="left"||r=="right"){if(t=="move"&&i>10){r=="up"&&exit;r=="down"&&exit}t=="move"&&i>10&&(r=="left"?$("#landing-news .newsslider .content").css({left:n-i}):$("#landing-news .newsslider .content").css({left:n+i}));t=="end"&&i>10&&(r=="left"?slideNewsRight():slideNewsLeft())}},threshold:100,maxTimeThreshold:2500,allowPageScroll:"vertical",fingers:"all"});$("#scroll_up").click(function(){$("body,html").animate({scrollTop:0},800)});$("#scroll_up").css({bottom:$("#footer").height()+20});$(window).width()>767&&$("#main>.inside").height()>=$("#right>.inside").height()?$("#right>.inside").css("height",$("#main>.inside").height()):$("#right>.inside").css("height","auto");$(".dlh_googlemap").css("width","100%")});var slideNewsLeft=function(){activeindex-=1;slideNewsTo(activeindex)},slideNewsRight=function(){activeindex+=1;slideNewsTo(activeindex)},slideNewsTo=function(e){var t=$("#landing-news .slide-indicators i");activeindex=e;var n=300;if(e==newsCount){n=1200;e=0;activeindex=0}if(e<0){n=1200;e=newsCount-1;activeindex=newsCount-1}t.each(function(t,n){if(t==e){$(this).addClass("icon-circle");$(this).removeClass("icon-circle-blank");$(this).addClass("active")}else{$(this).addClass("icon-circle-blank");$(this).removeClass("icon-circle");$(this).removeClass("active")}});$("#landing-news .newsslider .content").animate({left:-width*e},n)},delay=function(){var e=0;return function(t,n){clearTimeout(e);e=setTimeout(t,n)}}();$(window).load(function(){$(window).width()>767&&$("#main>.inside").height()>=$("#right>.inside").height()?$("#right>.inside").css("height",$("#main>.inside").height()):$("#right>.inside").css("height","auto")});$(window).resize(function(){delay(function(){$("#wrapper").css("margin-bottom",$("#footer").height());$("#scroll_up").animate({bottom:$("#footer").height()+20},300);$(window).width()>767&&$("#main>.inside").height()>=$("#right>.inside").height()?$("#right>.inside").css("height",$("#main>.inside").height()):$("#right>.inside").css("height","auto");if(newsCount>0){width=$(".mod_newslist").width();$("#landing-news .newsslider>div.content").width(width*newsCount);$("#landing-news .newsslider>div.content").css("left",-width*activeindex+"px");$("#landing-news .newsslider>div.content>div").width(width)}},300)});$(window).scroll(function(){delay(function(){$(window).scrollTop()>50?$("#scroll_up").fadeIn():$("#scroll_up").fadeOut()},300)});(function(e){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)})(function(e){"use strict";function N(t){t&&t.allowPageScroll===undefined&&(t.swipe!==undefined||t.swipeStatus!==undefined)&&(t.allowPageScroll=u);t.click!==undefined&&t.tap===undefined&&(t.tap=t.click);t||(t={});t=e.extend({},e.fn.swipe.defaults,t);return this.each(function(){var n=e(this),r=n.data(x);if(!r){r=new C(this,t);n.data(x,r)}})}function C(T,N){function Z(t){if(Pt())return;if(e(t.target).closest(N.excludedElements,R).length>0)return;var n=t.originalEvent?t.originalEvent:t,r,i=S?n.touches[0]:n;U=y;S?z=n.touches.length:t.preventDefault();_=0;D=null;I=null;P=0;H=0;B=0;j=1;F=0;W=It();q=Ut();_t();if(!S||z===N.fingers||N.fingers===m||dt()){Bt(0,i);X=Gt();if(z==2){Bt(1,n.touches[1]);H=B=Xt(W[0].start,W[1].start)}if(N.swipeStatus||N.pinchStatus)r=ot(n,U)}else r=!1;if(r===!1){U=E;ot(n,U);return r}Ht(!0);return null}function et(e){var t=e.originalEvent?e.originalEvent:e;if(U===w||U===E||Dt())return;var n,r=S?t.touches[0]:t,i=jt(r);V=Gt();S&&(z=t.touches.length);U=b;if(z==2){if(H==0){Bt(1,t.touches[1]);H=B=Xt(W[0].start,W[1].start)}else{jt(t.touches[1]);B=Xt(W[0].end,W[1].end);I=$t(W[0].end,W[1].end)}j=Vt(H,B);F=Math.abs(H-B)}if(z===N.fingers||N.fingers===m||!S||dt()){D=Qt(i.start,i.end);ht(e,D);_=Jt(i.start,i.end);P=Wt();qt(D,_);if(N.swipeStatus||N.pinchStatus)n=ot(t,U);if(!N.triggerOnTouchEnd||N.triggerOnTouchLeave){var s=!0;if(N.triggerOnTouchLeave){var o=Yt(this);s=Zt(i.end,o)}!N.triggerOnTouchEnd&&s?U=st(b):N.triggerOnTouchLeave&&!s&&(U=st(w));(U==E||U==w)&&ot(t,U)}}else{U=E;ot(t,U)}if(n===!1){U=E;ot(t,U)}}function tt(e){var t=e.originalEvent;if(S&&t.touches.length>0){Mt();return!0}Dt()&&(z=K);e.preventDefault();V=Gt();P=Wt();if(ft()){U=E;ot(t,U)}else if(N.triggerOnTouchEnd||N.triggerOnTouchEnd==0&&U===b){U=w;ot(t,U)}else if(!N.triggerOnTouchEnd&&Et()){U=w;ut(t,U,c)}else if(U===b){U=E;ot(t,U)}Ht(!1);return null}function nt(){z=0;V=0;X=0;H=0;B=0;j=1;_t();Ht(!1)}function rt(e){var t=e.originalEvent;if(N.triggerOnTouchLeave){U=st(w);ot(t,U)}}function it(){R.unbind(k,Z);R.unbind(M,nt);R.unbind(L,et);R.unbind(A,tt);O&&R.unbind(O,rt);Ht(!1)}function st(e){var t=e,n=ct(),r=at(),i=ft();!n||i?t=E:r&&e==b&&(!N.triggerOnTouchEnd||N.triggerOnTouchLeave)?t=w:!r&&e==w&&N.triggerOnTouchLeave&&(t=E);return t}function ot(e,t){var n=undefined;yt()||gt()?n=ut(e,t,f):(vt()||dt())&&n!==!1&&(n=ut(e,t,l));At()&&n!==!1?n=ut(e,t,h):Ot()&&n!==!1?n=ut(e,t,p):Lt()&&n!==!1&&(n=ut(e,t,c));t===E&&nt(e);t===w&&(S?e.touches.length==0&&nt(e):nt(e));return n}function ut(u,a,d){var v=undefined;if(d==f){R.trigger("swipeStatus",[a,D||null,_||0,P||0,z]);if(N.swipeStatus){v=N.swipeStatus.call(R,u,a,D||null,_||0,P||0,z);if(v===!1)return!1}if(a==w&&mt()){R.trigger("swipe",[D,_,P,z]);if(N.swipe){v=N.swipe.call(R,u,D,_,P,z);if(v===!1)return!1}switch(D){case t:R.trigger("swipeLeft",[D,_,P,z]);N.swipeLeft&&(v=N.swipeLeft.call(R,u,D,_,P,z));break;case n:R.trigger("swipeRight",[D,_,P,z]);N.swipeRight&&(v=N.swipeRight.call(R,u,D,_,P,z));break;case r:R.trigger("swipeUp",[D,_,P,z]);N.swipeUp&&(v=N.swipeUp.call(R,u,D,_,P,z));break;case i:R.trigger("swipeDown",[D,_,P,z]);N.swipeDown&&(v=N.swipeDown.call(R,u,D,_,P,z))}}}if(d==l){R.trigger("pinchStatus",[a,I||null,F||0,P||0,z,j]);if(N.pinchStatus){v=N.pinchStatus.call(R,u,a,I||null,F||0,P||0,z,j);if(v===!1)return!1}if(a==w&&pt())switch(I){case s:R.trigger("pinchIn",[I||null,F||0,P||0,z,j]);N.pinchIn&&(v=N.pinchIn.call(R,u,I||null,F||0,P||0,z,j));break;case o:R.trigger("pinchOut",[I||null,F||0,P||0,z,j]);N.pinchOut&&(v=N.pinchOut.call(R,u,I||null,F||0,P||0,z,j))}}if(d==c){if(a===E||a===w){clearTimeout(G);if(St()&&!Nt()){Q=Gt();G=setTimeout(e.proxy(function(){Q=null;R.trigger("tap",[u.target]);N.tap&&(v=N.tap.call(R,u,u.target))},this),N.doubleTapThreshold)}else{Q=null;R.trigger("tap",[u.target]);N.tap&&(v=N.tap.call(R,u,u.target))}}}else if(d==h){if(a===E||a===w){clearTimeout(G);Q=null;R.trigger("doubletap",[u.target]);N.doubleTap&&(v=N.doubleTap.call(R,u,u.target))}}else if(d==p)if(a===E||a===w){clearTimeout(G);Q=null;R.trigger("longtap",[u.target]);N.longTap&&(v=N.longTap.call(R,u,u.target))}return v}function at(){var e=!0;N.threshold!==null&&(e=_>=N.threshold);return e}function ft(){var e=!1;N.cancelThreshold!==null&&D!==null&&(e=Rt(D)-_>=N.cancelThreshold);return e}function lt(){return N.pinchThreshold!==null?F>=N.pinchThreshold:!0}function ct(){var e;N.maxTimeThreshold?P>=N.maxTimeThreshold?e=!1:e=!0:e=!0;return e}function ht(e,s){if(N.allowPageScroll===u||dt())e.preventDefault();else{var o=N.allowPageScroll===a;switch(s){case t:(N.swipeLeft&&o||!o&&N.allowPageScroll!=d)&&e.preventDefault();break;case n:(N.swipeRight&&o||!o&&N.allowPageScroll!=d)&&e.preventDefault();break;case r:(N.swipeUp&&o||!o&&N.allowPageScroll!=v)&&e.preventDefault();break;case i:(N.swipeDown&&o||!o&&N.allowPageScroll!=v)&&e.preventDefault()}}}function pt(){var e=bt(),t=wt(),n=lt();return e&&t&&n}function dt(){return!!(N.pinchStatus||N.pinchIn||N.pinchOut)}function vt(){return!!pt()&&!!dt()}function mt(){var e=ct(),t=at(),n=bt(),r=wt(),i=ft(),s=!i&&r&&n&&t&&e;return s}function gt(){return!!(N.swipe||N.swipeStatus||N.swipeLeft||N.swipeRight||N.swipeUp||N.swipeDown)}function yt(){return!!mt()&&!!gt()}function bt(){return z===N.fingers||N.fingers===m||!S}function wt(){return W[0].end.x!==0}function Et(){return!!N.tap}function St(){return!!N.doubleTap}function xt(){return!!N.longTap}function Tt(){if(Q==null)return!1;var e=Gt();return St()&&e-Q<=N.doubleTapThreshold}function Nt(){return Tt()}function Ct(){return(z===1||!S)&&(isNaN(_)||_===0)}function kt(){return P>N.longTapThreshold&&_=0?t:o<=360&&o>=315?t:o>=135&&o<=225?n:o>45&&o<135?i:r}function Gt(){var e=new Date;return e.getTime()}function Yt(t){t=e(t);var n=t.offset(),r={left:n.left,right:n.left+t.outerWidth(),top:n.top,bottom:n.top+t.outerHeight()};return r}function Zt(e,t){return e.x>t.left&&e.xt.top&&e.y