/* Placeholders.js v4.0.1 */
/*!
 * The MIT License
 *
 * Copyright (c) 2012 James Allardice
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */
!function(a){"use strict";function b(){}function c(){try{return document.activeElement}catch(a){}}function d(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return!0;return!1}function e(a,b,c){return a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):void 0}function f(a,b){var c;a.createTextRange?(c=a.createTextRange(),c.move("character",b),c.select()):a.selectionStart&&(a.focus(),a.setSelectionRange(b,b))}function g(a,b){try{return a.type=b,!0}catch(c){return!1}}function h(a,b){if(a&&a.getAttribute(B))b(a);else for(var c,d=a?a.getElementsByTagName("input"):N,e=a?a.getElementsByTagName("textarea"):O,f=d?d.length:0,g=e?e.length:0,h=f+g,i=0;h>i;i++)c=f>i?d[i]:e[i-f],b(c)}function i(a){h(a,k)}function j(a){h(a,l)}function k(a,b){var c=!!b&&a.value!==b,d=a.value===a.getAttribute(B);if((c||d)&&"true"===a.getAttribute(C)){a.removeAttribute(C),a.value=a.value.replace(a.getAttribute(B),""),a.className=a.className.replace(A,"");var e=a.getAttribute(I);parseInt(e,10)>=0&&(a.setAttribute("maxLength",e),a.removeAttribute(I));var f=a.getAttribute(D);return f&&(a.type=f),!0}return!1}function l(a){var b=a.getAttribute(B);if(""===a.value&&b){a.setAttribute(C,"true"),a.value=b,a.className+=" "+z;var c=a.getAttribute(I);c||(a.setAttribute(I,a.maxLength),a.removeAttribute("maxLength"));var d=a.getAttribute(D);return d?a.type="text":"password"===a.type&&g(a,"text")&&a.setAttribute(D,"password"),!0}return!1}function m(a){return function(){P&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)?f(a,0):k(a)}}function n(a){return function(){l(a)}}function o(a){return function(){i(a)}}function p(a){return function(b){return v=a.value,"true"===a.getAttribute(C)&&v===a.getAttribute(B)&&d(x,b.keyCode)?(b.preventDefault&&b.preventDefault(),!1):void 0}}function q(a){return function(){k(a,v),""===a.value&&(a.blur(),f(a,0))}}function r(a){return function(){a===c()&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)&&f(a,0)}}function s(a){var b=a.form;b&&"string"==typeof b&&(b=document.getElementById(b),b.getAttribute(E)||(e(b,"submit",o(b)),b.setAttribute(E,"true"))),e(a,"focus",m(a)),e(a,"blur",n(a)),P&&(e(a,"keydown",p(a)),e(a,"keyup",q(a)),e(a,"click",r(a))),a.setAttribute(F,"true"),a.setAttribute(B,T),(P||a!==c())&&l(a)}var t=document.createElement("input"),u=void 0!==t.placeholder;if(a.Placeholders={nativeSupport:u,disable:u?b:i,enable:u?b:j},!u){var v,w=["text","search","url","tel","email","password","number","textarea"],x=[27,33,34,35,36,37,38,39,40,8,46],y="#ccc",z="placeholdersjs",A=new RegExp("(?:^|\\s)"+z+"(?!\\S)"),B="data-placeholder-value",C="data-placeholder-active",D="data-placeholder-type",E="data-placeholder-submit",F="data-placeholder-bound",G="data-placeholder-focus",H="data-placeholder-live",I="data-placeholder-maxlength",J=100,K=document.getElementsByTagName("head")[0],L=document.documentElement,M=a.Placeholders,N=document.getElementsByTagName("input"),O=document.getElementsByTagName("textarea"),P="false"===L.getAttribute(G),Q="false"!==L.getAttribute(H),R=document.createElement("style");R.type="text/css";var S=document.createTextNode("."+z+" {color:"+y+";}");R.styleSheet?R.styleSheet.cssText=S.nodeValue:R.appendChild(S),K.insertBefore(R,K.firstChild);for(var T,U,V=0,W=N.length+O.length;W>V;V++)U=V<N.length?N[V]:O[V-N.length],T=U.attributes.placeholder,T&&(T=T.nodeValue,T&&d(w,U.type)&&s(U));var X=setInterval(function(){for(var a=0,b=N.length+O.length;b>a;a++)U=a<N.length?N[a]:O[a-N.length],T=U.attributes.placeholder,T?(T=T.nodeValue,T&&d(w,U.type)&&(U.getAttribute(F)||s(U),(T!==U.getAttribute(B)||"password"===U.type&&!U.getAttribute(D))&&("password"===U.type&&!U.getAttribute(D)&&g(U,"text")&&U.setAttribute(D,"password"),U.value===U.getAttribute(B)&&(U.value=T),U.setAttribute(B,T)))):U.getAttribute(C)&&(k(U),U.removeAttribute(B));Q||clearInterval(X)},J);e(a,"beforeunload",function(){M.disable()})}}(this);

/*!
 * hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+
 * http://cherne.net/brian/resources/jquery.hoverIntent.html
 *
 * You may use hoverIntent under the terms of the MIT license. Basically that
 * means you are free to use hoverIntent as long as this header is left intact.
 * Copyright 2007, 2014 Brian Cherne
 */
(function($){$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var cfg={interval:100,sensitivity:6,timeout:0};if(typeof handlerIn==="object"){cfg=$.extend(cfg,handlerIn)}else{if($.isFunction(handlerOut)){cfg=$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector})}else{cfg=$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut})}}var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(Math.sqrt((pX-cX)*(pX-cX)+(pY-cY)*(pY-cY))<cfg.sensitivity){$(ob).off("mousemove.hoverIntent",track);ob.hoverIntent_s=true;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=false;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=$.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type==="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).on("mousemove.hoverIntent",track);if(!ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).off("mousemove.hoverIntent",track);if(ob.hoverIntent_s){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}})(jQuery),
function(n, t, i) {
    "use strict";
    function o() {
        var n = t
          , r = "inner";
        return "innerWidth"in t || (r = "client",
        n = i.documentElement || i.body),
        {
            width: n[r + "Width"],
            height: n[r + "Height"]
        }
    }
function oi() {
        n("a.search-site").on("click", function(t) {
            if (n(".close-main-search").show(),
            t.preventDefault(),
            t.stopImmediatePropagation(),
            n(this).hasClass("opened"))
                console.log("closing search"),
                n(".main-search").hide(),
                n(this).removeClass("opened"),
                e = !1;
            else {
                n(".navbar .mobile-menu").css({
                    height: "100%",
                    transform: "translate3d(468px, 0px, 0px)"
                });
                setTimeout(function() {
                    n("html").removeAttr("style");
                    n(".navbar .mobile-menu,.navbar .mobile-menu .submenu").removeAttr("style");
                    n("button.navbar-toggle").removeClass("opened")
                }, 750);
                ii = !1;
                n(".main-search").fadeIn();
                /*d(n("#main-search__find-lawyer"));
                n("#main-search__find-lawyer").on("focus", function() {
                    ei(n(this))
                });
                n("#main-search__find-lawyer").on("blur", function() {
                    d(n(this))
                });*/
                n(".main-search").show();
                n(this).addClass("opened");
                //n("#main-search__find-lawyer").focus();
                e = !0
            }
        });
        n(".main-search a.main-search__close").on("click", function(t) {
            t.preventDefault();
            n(".main-search").fadeOut();
            n("a.search-site").removeClass("opened");
            //n("#main-search__find-lawyer").val("");
            e = !1
        })
    }
    function si() {
        var t, i;
        if (o().width < 992) {
            n(".mobile-menu__inner ul.main-nav").length <= 0 && (t = n(".navbar ul.main-nav").clone(),
            t.removeClass("hidden-xs").removeClass("hidden-sm"),
            n(".mobile-menu__inner").prepend(t),
            n(".mobile-menu .submenu").append('<div class="navbar-link"><\/div>'),
            n(".mobile-menu .submenu").append(n(".mobile-menu__inner .module-share").clone()),
            n(".navbar .navbar-link .container a").each(function() {
                n(".mobile-menu .navbar-link").prepend(n(this).clone())
            }),
            n(".mobile-menu .worldwide-mobile .submenu .navbar-link, .mobile-menu .worldwide-mobile .submenu .module-share, .mobile-menu .worldwide-mobile.submenu .navbar-link, .mobile-menu .worldwide-mobile.submenu .module-share").remove(),
            i = n(".mobile-menu .main-nav li > a"),
            i.each(function() {
                var t = n(this)
                  , i = t.text()
                  , r = '<span class="mm-hover">' + i + "<\/span><i><\/i>";
                t.html(r)
            }));
            n("button.navbar-toggle").on("click", function(t) {
                var i, r;
                t.stopImmediatePropagation();
                n(this).hasClass("opened") ? (i = n(this),
                n(".navbar .mobile-menu").css({
                    height: "100%",
                    transform: "translate3d(468px, 0px, 0px)"
                }),
                setTimeout(function() {
                    n("html").removeAttr("style");
                    n(".navbar .mobile-menu,.navbar .mobile-menu .submenu").removeAttr("style")
                }, 750),
                i.removeClass("opened")) : (e && (n(".main-search").hide(),
                n("a.search-site").removeClass("opened"),
                e = !1),
                r = n("html").height() - n(".navbar").height(),
                n(".navbar .mobile-menu").css({
                    height: r,
                    transform: "translate3d(0px, 0px, 0px)"
                }),
                n(this).addClass("opened"))
            });
            n(".mobile-menu ul li.with-submenu span.arrow").on("click", function(t) {
                t.preventDefault();
                var i = n(this).siblings(".submenu");
                i.css({
                    height: "100%",
                    transform: "translate3d(0px, 0px, 0px)"
                })
            });
            n(".mobile-menu .worldwide-mobile ul > li.with-submenu > a:first-child").on("click", function(t) {
                t.preventDefault();
                var i = n(this).siblings(".submenu");
                i.toggleClass("js-submenu-visible");
                i.css({
                    height: "100%",
                    transform: "translate3d(0px, 0px, 0px)"
                })
            });
            n(".mobile-menu .submenu a.close-submenu").on("click", function(t) {
                t.preventDefault();
                var i;
                i = n(this).parent(".submenu");
                n(this).parent().toggleClass("js-submenu-visible");
                i.css({
                    transform: "translate3d(468px, 0px, 0px)"
                });
                setTimeout(function() {
                    i.removeAttr("style")
                }, 750)
            });
            n(".mobile-menu a.navbar-worldwide").on("click", function(t) {
                t.preventDefault();
                n(this).siblings(".worldwide-mobile").find("ul > li.with-submenu > a:first-child").toggleClass("js-submenu-visible");
                var i = n("html").height() - n(".navbar").height();
                n(".worldwide-mobile").css({
                    height: i,
                    transform: "translate3d(0px, 0px, 0px)"
                })
            })
        } else {
            var f = n(".main-nav li.with-submenu.active a").height()
              , r = n(".main-nav li.with-submenu.active a").width()
              , u = n(".main-nav").offset().left + 15;
            n("nav.navbar").append('<span class="hover-state" style="width: ' + r + "px; left: " + u + 'px;"><\/span>');
            n(".navbar ul.main-nav").hover(function() {
                !n(".menu-row:hover").length > 0 && h()
            });
            n(".menu-row").on("mouseleave", function() {
                h()
            });
            n("nav > div.row:not(.menu-row)").hover(function() {
                h()
            });
            n(".navbar ul.main-nav > li > a").hoverIntent(function() {
                tt(n(this));
                n(this).parent().hasClass("with-submenu") && (n(".js-submenu-visible").length > 0 && !n(this).parent().find(".js-submenu-visible").length > 0 ? v(n(this)) : n(".js-submenu-visible").length > 0 ? ci(n(this)) : a(n(this)))
            }, function() {
                n(this).parent().hasClass("with-submenu") && (n(".js-submenu-visible:hover").length > 0 || n(".navbar ul.main-nav > li > a:hover").length > 0 || n(".menu-row:hover").length > 0 || (nt(),
                n(".submenu.js-submenu-visible").slideUp()))
            });
            !n(".submenu").length > 0 && h()
        }
    }
    function h() {
        nt();
        n(".submenu").slideUp().removeClass("js-submenu-visible")
    }
    function nt() {
        var t = n(".hover-state");
        t.length && n(".hover-state").css("height", "0px")
    }
    function tt(t) {
        var u = n(".hover-state"), i, r;
        u.length && (i = t.offset().left + 13,
        r = t.width(),
        n(".hover-state").css({
            height: "6px",
            width: r,
            left: i + "px"
        }))
    }
    function a(n) {
        n.siblings(".submenu").slideDown().addClass("js-submenu-visible")
    }
    function v(t) {
        n(".submenu").slideUp().removeClass("js-submenu-visible");
        t.siblings(".submenu").slideDown().addClass("js-submenu-visible");
        n("#main-content").on("focus", function() {
            v()
        })
    }
    function ci(t) {
        n(".submenu").hide().removeClass("js-submenu-visible");
        t.siblings(".submenu").show().addClass("js-submenu-visible")
    }
    function it() {
        oi();
        n("a.navbar-worldwide").on("click", function(t) {
            t.preventDefault();
            t.stopImmediatePropagation();
            o().width >= 992 && (n(this).hasClass("opened") ? (n(".worldwide").fadeOut(),
            n(this).removeClass("opened"),
            n(this).attr("aria-expanded", "false"),
            n(this).attr("aria-haspopup", "true")) : (n(".worldwide").css({
                height: n("body").height()
            }),
            n(".worldwide").fadeIn(),
            n(this).addClass("opened"),
            n(this).attr("aria-expanded", "true"),
            n(this).attr("aria-haspopup", "")))
        });
        n("#navbar-news").on("focus", function() {
            n(".worldwide").fadeOut();
            n(this).removeClass("opened")
        });
        n(".with-submenu > a").on("mouseover", function() {
            n(this).attr("aria-expanded", "true");
            n(this).attr("aria-haspopup", "")
        });
        n(".with-submenu > a").on("mouseout", function() {
            n(this).attr("aria-expanded", "false");
            n(this).attr("aria-haspopup", "true")
        });
        si()
    }
	////////
	var f, ii = !1, e = !1, rt, c, ft, l, pt, s, wt;
	////////
	var wi = n(".navbar")
      , g = n(".navbar .with-submenu > a")
      , hi = n(".main-nav > li > a");
    hi.on("focus", function() {
        tt(n(this));
        n(this).parent().hasClass("with-submenu") || v(n(this))
    });
    g.on("focus", function() {
        a(n(this))
    });
    g.on("touchstart", function(t) {
        n(".js-submenu-visible").length || (t.preventDefault(),
        a(n(this)))
    });
	/////////
	n(function() {
        function ut(t) {
            if (!t.id)
                return t.text;
            var r = t.element
              , i = n(r).context.className;
            return i != "" && i === "level-1-service" ? n('<span class="level-1-service">' + t.text + "<\/span>") : t.text
        }
        var f, e, r;
        it();
        n(t).on("resize", function() {
            clearTimeout(rt);
            rt = setTimeout(function() {
                it()
            }, 250)
        });
	});
}(jQuery, window, document)

$('.tag-title').click(function() {
  var thisMenu = $(this).closest('.tag-menu');
  $('.tag-menu').not(thisMenu).removeClass('open');
  thisMenu.toggleClass('open');
});

$(document).click(function(e) {
  if (!$(e.target).parents('.tag-menu').length) {
    $('.tag-menu').removeClass('open');
  }
});

var d = new Date().getFullYear();
$('span.year').text(d);