// source --> https://pavlogradmrada.dp.gov.ua/wp-content/plugins/jquery-vertical-accordion-menu/js/jquery.hoverIntent.minified.js?ver=6.8.5 
/**
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
* 
* @param  f  onMouseOver function || An object with configuration options
* @param  g  onMouseOut function  || Nothing (use configuration options object)
* @author    Brian Cherne <brian@cherne.net>
*/
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);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.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;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=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
// source --> https://pavlogradmrada.dp.gov.ua/wp-content/plugins/jquery-vertical-accordion-menu/js/jquery.cookie.js?ver=6.8.5 
/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        var path = options.path ? '; path=' + (options.path) : '';
        var domain = options.domain ? '; domain=' + (options.domain) : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};
// source --> https://pavlogradmrada.dp.gov.ua/wp-content/plugins/jquery-vertical-accordion-menu/js/jquery.dcjqaccordion.2.9.js?ver=6.8.5 
/*
 * DC jQuery Vertical Accordion Menu - jQuery vertical accordion menu plugin
 * Copyright (c) 2011 Design Chemical
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 */
(function($){
	$.fn.dcAccordion = function(options) {
		//set default options 
		var defaults = {
			classParent	 : 'dcjq-parent',
			classActive	 : 'active',			classArrow	 : 'dcjq-icon',			classCount	 : 'dcjq-count',
			classExpand	 : 'dcjq-current-parent',
			classDisable : '',
			eventType	 : 'click',
			hoverDelay	 : 300,
			menuClose     : true,
			autoClose    : true,
			autoExpand	 : false,
			speed        : 'slow',
			saveState	 : true,
			disableLink	 : true,			showCount : false,
			cookie	: 'dcjq-accordion'
		};
		//call in the default otions
		var options = $.extend(defaults, options);
		this.each(function(options){
			var obj = this;
			$objLinks = $('li > a',obj);
			$objSub = $('li > ul',obj);
			if(defaults.classDisable){
				$objLinks = $('li:not(.'+defaults.classDisable+') > a',obj);
				$objSub = $('li:not(.'+defaults.classDisable+') > ul',obj);
			}
			
			classActive = defaults.classActive;
			
			setUpAccordion();
			if(defaults.saveState == true){
				checkCookie(defaults.cookie, obj, classActive);
			}
			if(defaults.autoExpand == true){
				$('li.'+defaults.classExpand+' > a').addClass(classActive);
			}
			resetAccordion();
			if(defaults.eventType == 'hover'){
				var config = {
					sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
					interval: defaults.hoverDelay, // number = milliseconds for onMouseOver polling interval
					over: linkOver, // function = onMouseOver callback (REQUIRED)
					timeout: defaults.hoverDelay, // number = milliseconds delay before onMouseOut
					out: linkOut // function = onMouseOut callback (REQUIRED)
				};
				$objLinks.hoverIntent(config);
				var configMenu = {
					sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)
					interval: 1000, // number = milliseconds for onMouseOver polling interval
					over: menuOver, // function = onMouseOver callback (REQUIRED)
					timeout: 1000, // number = milliseconds delay before onMouseOut
					out: menuOut // function = onMouseOut callback (REQUIRED)
				};
				$(obj).hoverIntent(configMenu);
				// Disable parent links
				if(defaults.disableLink == true){
					$objLinks.click(function(e){
						if($(this).siblings('ul').length >0){
							e.preventDefault();
						}
					});
				}
			} else {			
				$objLinks.click(function(e){
					$activeLi = $(this).parent('li');
					$parentsLi = $activeLi.parents('li');
					$parentsUl = $activeLi.parents('ul');
					// Prevent browsing to link if has child links
					if(defaults.disableLink == true){
						if($(this).siblings('ul').length >0){
							e.preventDefault();
						}
					}
					// Auto close sibling menus
					if(defaults.autoClose == true){
						autoCloseAccordion($parentsLi, $parentsUl);
					}
					if ($('> ul',$activeLi).is(':visible')){
						$('ul',$activeLi).slideUp(defaults.speed);
						$('a',$activeLi).removeClass(classActive);
					} else {
						$(this).siblings('ul').slideToggle(defaults.speed);
						$('> a',$activeLi).addClass(classActive);
					}					
					// Write cookie if save state is on
					if(defaults.saveState == true){
						createCookie(defaults.cookie, obj, classActive);
					}
				});
			}
			// Set up accordion
			function setUpAccordion(){
				$arrow = '<span class="'+defaults.classArrow+'"></span>';
				var classParentLi = defaults.classParent+'-li';
				$objSub.show();
				$('li',obj).each(function(){
					if($('> ul',this).length > 0){						$(this).addClass(classParentLi);
						$('> a',this).addClass(defaults.classParent).append($arrow);
					}
				});
				$objSub.hide();
				if(defaults.classDisable){
					$('li.'+defaults.classDisable+' > ul').show();
				}
				if(defaults.showCount == true){
					$('li.'+classParentLi,obj).each(function(){
						if(defaults.disableLink == true){
							var getCount = parseInt($('ul a:not(.'+defaults.classParent+')',this).length);
						} else {
							var getCount = parseInt($('ul a',this).length);
						}
						$('> a',this).append(' <span class="'+defaults.classCount+'">('+getCount+')</span>');
					});
				}
			}
			
			function linkOver(){

			$activeLi = $(this).parent('li');
			$parentsLi = $activeLi.parents('li');
			$parentsUl = $activeLi.parents('ul');

			// Auto close sibling menus
			if(defaults.autoClose == true){
				autoCloseAccordion($parentsLi, $parentsUl);

			}

			if ($('> ul',$activeLi).is(':visible')){
				$('ul',$activeLi).slideUp(defaults.speed);
				$('a',$activeLi).removeClass(classActive);
			} else {
				$(this).siblings('ul').slideToggle(defaults.speed);
				$('> a',$activeLi).addClass(classActive);
			}

			// Write cookie if save state is on
			if(defaults.saveState == true){
				createCookie(defaults.cookie, obj, classActive);
			}
		}

		function linkOut(){
		}

		function menuOver(){
		}

		function menuOut(){

			if(defaults.menuClose == true){
				$objSub.slideUp(defaults.speed);
				// Reset active links
				$('a',obj).removeClass(classActive);
				createCookie(defaults.cookie, obj, classActive);
			}
		}

		// Auto-Close Open Menu Items
		function autoCloseAccordion($parentsLi, $parentsUl){
			$('ul',obj).not($parentsUl).slideUp(defaults.speed);
			// Reset active links
			$('a',obj).removeClass(classActive);
			$('> a',$parentsLi).addClass(classActive);
		}
		// Reset accordion using active links
		function resetAccordion(){
			$objSub.hide();
			var $parentsLi = $('a.'+classActive,obj).parents('li');
			$('> a',$parentsLi).addClass(classActive);
			$allActiveLi = $('a.'+classActive,obj);
			$($allActiveLi).siblings('ul').show();
		}
		});
		// Retrieve cookie value and set active items
		function checkCookie(cookieId, obj, classActive){
			var cookieVal = $.cookie(cookieId);
			if(cookieVal != null){
				// create array from cookie string
				var activeArray = cookieVal.split(',');
				$.each(activeArray, function(index,value){
					var $cookieLi = $('li:eq('+value+')',obj);
					$('> a',$cookieLi).addClass(classActive);
					var $parentsLi = $cookieLi.parents('li');
					$('> a',$parentsLi).addClass(classActive);
				});
			}
		}
		// Write cookie
		function createCookie(cookieId, obj, classActive){
			var activeIndex = [];
			// Create array of active items index value
			$('li a.'+classActive,obj).each(function(i){
				var $arrayItem = $(this).parent('li');
				var itemIndex = $('li',obj).index($arrayItem);
					activeIndex.push(itemIndex);
				});
			// Store in cookie
			$.cookie(cookieId, activeIndex, { path: '/' });
		}
	};
})(jQuery);
// source --> https://pavlogradmrada.dp.gov.ua/wp-content/plugins/download-manager/assets/js/wpdm.min.js?ver=6.8.5 
(function($){$.fn.modal=function(option){var modal=this;var modalId=modal.attr("id");var $backdrop=null;if(option==="hide"){modal.removeClass("in show");$backdrop=$('.wpdm-modal-backdrop[data-modal="'+modalId+'"]');$backdrop.removeClass("in");setTimeout(function(){modal.css("display","none");$backdrop.remove();$("body").removeClass("modal-open").css("overflow","");modal.trigger("hidden.bs.modal")},250);$(document).off("keydown.wpdmModal");return modal}if(option==="show"||option===undefined){$("body").addClass("modal-open").css("overflow","hidden");$backdrop=$('<div class="modal-backdrop fade wpdm-modal-backdrop" data-modal="'+modalId+'"></div>');$("body").append($backdrop);modal.css({display:"block","z-index":1050});modal[0].offsetHeight;setTimeout(function(){$backdrop.addClass("in");modal.addClass("in show");modal.trigger("shown.bs.modal")},10);modal.find('[data-dismiss="modal"]').off("click.wpdmModal").on("click.wpdmModal",function(e){e.preventDefault();modal.modal("hide")});$backdrop.on("click",function(){if(!modal.data("backdrop")||modal.data("backdrop")!=="static"){modal.modal("hide")}});$(document).off("keydown.wpdmModal").on("keydown.wpdmModal",function(e){if(e.key==="Escape"&&modal.hasClass("in")){if(!modal.data("keyboard")||modal.data("keyboard")!==false){modal.modal("hide")}}})}if(option==="toggle"){if(modal.hasClass("in")){modal.modal("hide")}else{modal.modal("show")}}return modal};$.fn.tooltip=function(options){var settings=$.extend({background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"4px",fontSize:"12px"},options);var $tooltip=$("<div class='simple-tooltip'></div>").css({position:"absolute",maxWidth:"200px",display:"none",zIndex:9999,background:settings.background,color:settings.color,padding:settings.padding,borderRadius:settings.borderRadius,fontSize:settings.fontSize,pointerEvents:"none"}).appendTo("body");return this.each(function(){var $elem=$(this);var title=$elem.attr("title");$elem.on("mouseenter",function(e){if(!title)return;$elem.data("tip-title",title).removeAttr("title");$tooltip.text(title).fadeIn(150);$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mousemove",function(e){$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mouseleave",function(){$tooltip.hide();$elem.attr("title",$elem.data("tip-title"))})})}})(jQuery);jQuery(function($){var $body=$("body");$body.on("click",'.w3eden [data-toggle="collapse"]',function(e){e.preventDefault();var target=$(this).attr("href")||$(this).data("target");$(target).slideToggle(200)});$body.on("click",'.w3eden [data-toggle="modal"], .w3eden[data-toggle="modal"]',function(e){e.preventDefault();var target=$(this).data("target");$(target).modal("show")});$body.on("click",'.w3eden [data-toggle="tab"]',function(e){e.preventDefault();var $this=$(this);var $container=$this.closest(".nav-tabs, .nav-pills");var target=$this.attr("href");$container.find('[data-toggle="tab"]').each(function(){var $tab=$(this);$tab.removeClass("active");$tab.parent("li").removeClass("active");var pane=$tab.attr("href");if(pane){$(pane).removeClass("active in")}});$this.addClass("active");$this.parent("li").addClass("active");if(target){$(target).addClass("active in")}$this.trigger("shown.bs.tab")});$body.on("click",'.w3eden [data-toggle="dropdown"]',function(e){e.preventDefault();e.stopPropagation();var $dropdown=$(this).closest(".dropdown, .btn-group");var isOpen=$dropdown.hasClass("open");$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open");if(!isOpen){$dropdown.addClass("open")}});$(document).on("click",function(e){if(!$(e.target).closest(".dropdown, .btn-group").length){$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open")}})});