// source --> https://eshkol.co.il/wp-content/plugins/responsive-menu/v4.0.0/assets/js/rmp-menu.js?ver=4.3.0 
/**
 * This file contain the scrips for menu frontend.
 * @author ExpressTech System
 *
 * @since 4.0.0
 */

jQuery( document ).ready( function( jQuery ) {

	/**
	 * RmpMenu Class
	 * This RMP class is handling the frontend events and action on menu elements.
	 * @since      4.0.0
	 * @access     public
	 *
	 * @class      RmpMenu
	 */
	class RmpMenu {

		/**
		 * This is constructor function which is initialize the elements and options.
		 * @access public
		 * @since 4.0.0
		 * @param {Array} options List of options.
		 */
		constructor( options ) {
			RmpMenu.activeToggleClass        = 'is-active';
			RmpMenu.openContainerClass       = 'rmp-menu-open';
			RmpMenu.activeSubMenuArrowClass  = 'rmp-menu-subarrow-active';
			RmpMenu.subMenuClass             = '.rmp-submenu';

			this.options = options;
			this.menuId  = this.options['menu_id'];
			this.trigger = '#rmp_menu_trigger-' + this.menuId;

			this.isOpen  = false;

			this.container    =  '#rmp-container-' + this.menuId;
			this.headerBar    =  '#rmp-header-bar-' + this.menuId;
			this.menuWrap     =  'ul#rmp-menu-'+ this.menuId;
			this.subMenuArrow = '.rmp-menu-subarrow';
			this.wrapper      = '.rmp-container';
			this.linkElement  = '.rmp-menu-item-link';
			this.pageWrapper  = this.options['page_wrapper'];
			this.use_desktop_menu = this.options['use_desktop_menu'];
			this.originalHeight = '',
			this.animationSpeed        =  this.options['animation_speed'] * 1000;
			this.hamburgerBreakpoint   =  this.options['tablet_breakpoint'];
			this.subMenuTransitionTime =  this.options['sub_menu_speed'] * 1000;

			if ( this.options['button_click_trigger'].length > 0 ) {
				this.trigger = this.trigger +' , '+ this.options['button_click_trigger'];
			}

			//Append hamburger icon inside an element
			if ( this.options['button_position_type'] == 'inside-element' ) {
				var destination = jQuery(this.trigger).attr('data-destination');
				jQuery(this.trigger).appendTo(jQuery(destination).parent());
			}

			this.init();
		}

		/**
		 * This function register the events and initiate the menu settings.
		 */
		init() {
			const self = this;

			/**
			 * Register click event of trigger.
			 * @fires click
			 */
			jQuery( this.trigger ).on( 'click', function( e ) {
				e.stopPropagation();
				self.triggerMenu();
			} );

			// Show/Hide sub menu item when click on item toggle.
			jQuery( self.menuWrap ).find( self.subMenuArrow ).on( 'click', function( e ) {
				e.preventDefault();
				e.stopPropagation();
				self.triggerSubArrow( this );
			});

			if ( 'on' == self.options['menu_close_on_body_click'] ) {
				jQuery( document ).on( 'click', 'body', function ( e ) {
					if ( jQuery( window ).width() < self.hamburgerBreakpoint ) {
						if ( self.isOpen ) {
							if ( jQuery( e.target ).closest( self.container ).length || jQuery( e.target ).closest( self.target ).length ) {
								return;
							}
						}
						self.closeMenu();
					}
				});
			}

			/**
			 * Close the menu when click on menu item link before load.
			 */
			if ( self.options['menu_close_on_link_click'] == 'on') {

				jQuery(  this.menuWrap +' '+ self.linkElement ).on( 'click', function(e) {

					if( jQuery(window).width() < self.hamburgerBreakpoint ) {
						e.preventDefault();

						// When close menu on parent clicks is on.
						if ( self.options['menu_item_click_to_trigger_submenu'] == 'on' ) {
							if( jQuery(this).is( '.rmp-menu-item-has-children > ' + self.linkElement ) ) {
								return;
							}
						}

						let _href = jQuery(this).attr('href');
						let _target = ( typeof jQuery(this).attr('target') ) == 'undefined' ? '_self' : jQuery(this).attr('target');

						if( self.isOpen ) {
							if( jQuery(e.target).closest(this.subMenuArrow).length) {
								return;
							}
							if( typeof _href != 'undefined' ) {
								self.closeMenu();
								setTimeout(function() {
									window.open( _href, _target);
								}, self.animationSpeed);
							}
						}
					}
				});
			}

			// Expand Sub items on Parent Item Click.
			if ( 'on' == self.options['menu_item_click_to_trigger_submenu']  ) {
				jQuery( this.menuWrap +' .rmp-menu-item-has-children > ' + self.linkElement ).on( 'click', function(e) {
					if ( jQuery(window).width() < self.hamburgerBreakpoint ) {
						e.preventDefault();
						self.triggerSubArrow(
							jQuery(this).children( '.rmp-menu-subarrow' ).first()
						);
					}
				});
			}
		}
		/**
		 * Set push translate for toggle and page wrapper.
		 */
		setWrapperTranslate() {
			let translate,translateContainer;
			switch( this.options['menu_appear_from'] ) {
				case 'left':
					translate = 'translateX(' + this.menuWidth() + 'px)';
					translateContainer = 'translateX(-' + this.menuWidth() + 'px)';
					break;
				case 'right':
					translate = 'translateX(-' + this.menuWidth() + 'px)';
					translateContainer = 'translateX(' + this.menuWidth() + 'px)';
					break;
				case 'top':
					translate = 'translateY(' + this.wrapperHeight() + 'px)';
					translateContainer = 'translateY(-' + this.menuHeight() + 'px)';
					break;
				case 'bottom':
					translate = 'translateY(-' + this.menuHeight() + 'px)';
					translateContainer = 'translateY(' + this.menuHeight() + 'px)';
					break;
			}

			if ( this.options['animation_type'] == 'push' ) {
				jQuery(this.pageWrapper).css( { 'transform':translate } );

				//If push Wrapper has body element then handle menu position.
				if	( 'body' == this.pageWrapper ) {
					jQuery( this.container ).css( { 'transform' : translateContainer } );
				}

			}

			if ( this.options['button_push_with_animation'] == 'on' ) {
				jQuery( this.trigger ).css( { 'transform' : translate } );
			}

		}

		/**
		 * Clear push translate on button and page wrapper.
		 */
		clearWrapperTranslate() {

			if ( this.options['animation_type'] == 'push' ) {
				jQuery(this.pageWrapper).css( { 'transform' : '' } );
			}

			if ( this.options['button_push_with_animation'] == 'on' ) {
				jQuery( this.trigger ).css( { 'transform' : '' } );
			}
		}

		/**
		 * Function to fadeIn the hamburger menu container.
		 */
		fadeMenuIn() {
			jQuery(this.container).fadeIn(this.animationSpeed);
		}

		/**
		 * Function to fadeOut the hamburger menu container.
		 */
		fadeMenuOut() {
			jQuery(this.container)
				.fadeOut(this.animationSpeed, function() {
					jQuery(this).css('display', '');
				});
		}

		/**
		 * Function is use to open the hamburger menu.
		 *
		 * @since 4.0.0
		 */
		openMenu() {
			var self = this;
			jQuery(this.trigger).addClass(RmpMenu.activeToggleClass);
			jQuery(this.container).addClass(RmpMenu.openContainerClass);

			//this.pushMenuTrigger();

			if ( this.options['animation_type'] == 'fade'){
				this.fadeMenuIn();
			} else {
				this.setWrapperTranslate();
			}

			this.isOpen = true;
		}

		/**
		 * Function is use to close the hamburger menu.
		 *
		 * @since 4.0.0
		 */
		closeMenu() {
			jQuery(this.trigger).removeClass(RmpMenu.activeToggleClass);
			jQuery(this.container).removeClass(RmpMenu.openContainerClass);

			if ( this.options['animation_type'] == 'fade') {
				this.fadeMenuOut();
			} else {
				this.clearWrapperTranslate();
			}

			this.isOpen = false;
		}

		/**
		 * Function is responsible for checking the menu is open or close.
		 *
		 * @since 4.0.0
		 * @param {Event} e
		 */
		triggerMenu() {
			this.isOpen ? this.closeMenu() : this.openMenu();
		}

		triggerSubArrow( subArrow ) {
			var self = this;
			var sub_menu = jQuery( subArrow ).parent().siblings( RmpMenu.subMenuClass );

			//Accordion animation.
			if ( self.options['accordion_animation'] == 'on' ) {
				// Get Top Most Parent and the siblings.
				var top_siblings   = sub_menu.parents('.rmp-menu-item-has-children').last().siblings('.rmp-menu-item-has-children');
				var first_siblings = sub_menu.parents('.rmp-menu-item-has-children').first().siblings('.rmp-menu-item-has-children');

				// Close up just the top level parents to key the rest as it was.
				top_siblings.children('.rmp-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('rmp-submenu-open');

				// Set each parent arrow to inactive.
				top_siblings.each(function() {
					jQuery(this).find(self.subMenuArrow).first().html(self.options['inactive_toggle_contents']);
					jQuery(this).find(self.subMenuArrow).first().removeClass(RmpMenu.activeSubMenuArrowClass);
				});

				// Now Repeat for the current item siblings.
				first_siblings.children('.rmp-submenu').slideUp(self.subMenuTransitionTime, 'linear').removeClass('rmp-submenu-open');
				first_siblings.each(function() {
					jQuery(this).find(self.subMenuArrow).first().html(self.options['inactive_toggle_contents']);
					jQuery(this).find(self.subMenuArrow).first().removeClass(RmpMenu.activeSubMenuArrowClass);
				});
			}

			// Active sub menu as default behavior.
			if( sub_menu.hasClass('rmp-submenu-open') ) {
				sub_menu.slideUp(self.subMenuTransitionTime, 'linear',function() {
					jQuery(this).css( 'display', '' );
				} ).removeClass('rmp-submenu-open');
				jQuery( subArrow ).html( self.options['inactive_toggle_contents'] );
				jQuery( subArrow ).removeClass(RmpMenu.activeSubMenuArrowClass);
			} else {
				sub_menu.slideDown(self.subMenuTransitionTime, 'linear').addClass( 'rmp-submenu-open' );
				jQuery( subArrow ).html(self.options['active_toggle_contents'] );
				jQuery( subArrow ).addClass(RmpMenu.activeSubMenuArrowClass);
			}

		}

		/**
		 * Function to add tranform style on trigger.
		 *
		 * @version 4.0.0
		 *
		 * @param {Event} e Event object.
		 */
		pushMenuTrigger( e ) {
			if ( 'on' == this.options['button_push_with_animation'] ) {
				jQuery( this.trigger ).css( { 'transform' : this.menuWidth() } );
			}
		}

		/**
		 * Returns the height of container.
		 *
		 * @version 4.0.0
		 *
		 * @return Number
		 */
		menuHeight() {
			return jQuery( this.container ).height();
		}

		/**
		 * Returns the width of the container.
		 *
		 * @version 4.0.0
		 *
		 * @return Number
		 */
		menuWidth() {
			return jQuery( this.container ).width();
		}

		wrapperHeight() {
			return jQuery( this.wrapper ).height();
		}

		backUpSlide( backButton ) {
			let translateTo = parseInt( jQuery( this.menuWrap )[0].style.transform.replace( /^\D+/g, '' ) ) - 100;
			jQuery( this.menuWrap ).css( { 'transform': 'translateX(-' + translateTo + '%)' } );
			let previousSubmenuHeight = jQuery( backButton ).parent( 'ul' ).parent( 'li' ).parent( '.rmp-submenu' ).height();
			if ( ! previousSubmenuHeight ) {
				jQuery( this.menuWrap ).css( { 'height': this.originalHeight } );
			} else {
				jQuery( this.menuWrap + this.menuId ).css( { 'height': previousSubmenuHeight + 'px' } );
			}
		}
	}

	/**
	 * Create multiple instance of menu and pass the options.
	 *
	 * @version 4.0.0
	 */
	for ( let index = 0; index < rmp_menu.menu.length; index++ ) {
		let rmp = new RmpMenu( rmp_menu.menu[index] );
	}

} );
// source --> https://eshkol.co.il/wp-content/themes/nastunish/libs/animate/wow.min.js?ver=5.3.21 
/*! WOW - v1.1.3 - 2016-05-06
* Copyright (c) 2016 Matthieu Aussaguel;*/(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a,b){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(b){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);
// source --> https://eshkol.co.il/wp-content/themes/nastunish/js/myJs.js 
jQuery(document).ready(function($) {
	// WIDTH of DEVICE
	var widthGad = (window.innerWidth > 0) ? window.innerWidth : screen.width;


	// SCROLL EFFECT
	if (widthGad > 991) {
		$(window).bind('scroll', function() {
			var speed_02 = ($(window).scrollTop() * 0.02);
			var speed_03 = ($(window).scrollTop() * 0.3);
			var speed_08 = ($(window).scrollTop() * 0.8);
			var $sec_sdd = $('.sec-sdd');
			// var $title_content = $('.title-content');
			$sec_sdd.css({
				'transform': 'translateY(' + speed_03 + 'px)'
			});
			// $title_content.css({'transform': 'translateY(' + speed_08 + 'px)'});



			if ($(window).scrollTop() > 50) {
				$('#masthead').addClass('fixed-menu');
			} else {
				$('#masthead').removeClass('fixed-menu');
			}
			// page About
			var $car_phot = $('.car-phot');
			if ($car_phot.length) {
				var a = ($(window).scrollTop() - $car_phot.offset().top + $car_phot.height()) * (-1);
				if (a < 80) {
					$car_phot.css('background', '#e2e2e2');
				} else {
					$car_phot.css('background', '#fff');
				}

				var $bul = $('.bullets_all_ab>.row');
				if(!$bul.length) {
					return false;
				}
				var $bul_div = $bul.find('div');
				var aa = ($(window).scrollTop() - $bul.offset().top + $bul.height()) * (-2);
				$bul_div.css({
					'transform': 'translateY(' + speed_02 + 'px)'
				});
			}
		});
	}

	$(function() {
		$('a[href*="#"]:not([href="#"])').click(function() {
			if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
				var target = $(this.hash);
				target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
				if (target.length) {
					$('html, body').animate({
						scrollTop: target.offset().top - 100
					}, 1000);
					return false;
				}
			}
		});
	});


	// POSITION SCROLL DOWN

	if ($('#section-video').length) {
		var win = $(window);
		setTimeout(function() {
			height_scr(win);
		}, 100);
	}
	$(window).on('resize', function() {
		var win = $(this); //this = window
		height_scr(win);
	});

	function height_scr(win) {
		var win = win;
		var h_b = $('.sec-video-wrap iframe').height();
		var $scr_d = $('#scroll-down');
		if (win.outerHeight() > h_b) {
			$scr_d.css('top', (h_b - $scr_d.height()));
		} else {
			$scr_d.css('top', win - 90);

		}
	}


	// ANIMATION LINKS Scroll Down
	$("a#scroll-down").click(function() {
		$("html, body").animate({
			scrollTop: $($(this).attr("href")).offset().top - 50 + "px"
		}, {
			duration: 800,
			easing: "swing"
		});
		return false;
	});

	// Add class for HOVER EFFECT in mobile Scroll
	if (widthGad <= 991) {
		$(window).scroll(function() {
			$(".item-prod-cat-li").each(function(index) {
				var dist_top = ($(window).scrollTop() - $(this).offset().top) * (-1);
				// console.log(index , dist_top);
				if ((dist_top < 200) && (dist_top > 0)) {
					$(this).addClass('mob-scroll');
				} else {
					$(this).removeClass('mob-scroll');
				}
			});
		})
	}


	// Slidegallery for All categories homepage
	$('.arr_prod_home').on('initialized.owl.carousel change.owl.carousel changed.owl.carousel', function(e) {
		if (!e.namespace || e.type != 'initialized' && e.property.name != 'position') return;

		var current = e.relatedTarget.current()
		var items = $(this).find('.owl-stage').children()
		var add = e.type == 'changed' || e.type == 'initialized'

		items.eq(e.relatedTarget.normalize(current)).toggleClass('current animated', add)
	}).owlCarousel({
		rtl: true,
		items: 3,
		margin: 0,
		dots: false,
		dotsData: false,
		nav: true,
		navText: [' <i class="right-icon" aria-hidden="true">&nbsp;</i> ', '  <i class="left-icon" aria-hidden="true">&nbsp;</i> '],
		lazyLoad: false,
		loop: true,
		autoplay: true,
		smartSpeed: 1000,
		autoplayTimeout: 4500,
		autoplayHoverPause: true,
		// onChange: function(){
		//add your animate.css classes
		// console.log($(this));
		//     $(this).find('item-prod').css(
		// 'animation', 'fadeOut  2s infinite ease-in-out'
		//     )
		// },
		responsive: {
			0: {
				items: 1
			},
			767: {
				items: 3
			},
			1200: {
				items: 3
			}
		}
	});
	// SlideShow on hover on the carousel HOmepage
	$('.img-hov-video-slid>div').hide();
	$('.item-prod-home').hover(function() {
		$parent = $(this).find('.img-hov-video-slid');
		$sliders = $parent.find('.img-hov-vs-item');
		$carous_img = $(this).find('.attachment-post-thumbnail');
		if ($parent.length && $sliders.length > 1) {
			$carous_img.stop().fadeOut();
			$parent.find('.img-hov-vs-item:first').stop().fadeIn(100);
			$par_he = $(this).outerHeight();

			// Change Height of IMG if height < Parent block
			$all_img = $parent.find('img');
			$all_img.each(function(index, el) {
				if (typeof el.naturalHeight == "undefined") {
					// IE 6/7/8
					var i = new Image();
					i.src = el.src;
					var nat_he = i.height;
					var nat_wi = i.width;
					if (nat_he < $par_he) {
						$(this).css('height', $par_he);
					}
				} else {
					$nat_he = el.naturalHeight;
					$nat_wi = el.naturalWidth;
					if (($nat_he < $par_he)) {
						$(this).css('height', $par_he);
					}
				}
			});

			// Start slideshow
			timer = setInterval(function() {
				$parent.find('div:first')
					.fadeOut(1000)
					.next()
					.fadeIn(1000)
					.end()
					.appendTo($parent);
			}, 2000);
			// end SlideShow
		}

	}, function() {
		if ($parent.length && $sliders.length > 1) {
			// var $slider = $('.img-hov-video-slid>div');
			clearInterval(timer);
			$sliders
				.fadeOut('fast');
			$carous_img.stop().fadeIn('slow');
		}
	});



	// Page About carousel photo   OFF
	// $('.carousel-about').owlCarousel({
	//     rtl: true,
	//     items: 3,
	//     margin: 40,
	//     dots: false,
	//     dotsData: false,
	//     nav: true,
	//     navText: [' <i class="right-icon" aria-hidden="true">&nbsp;</i> ', '  <i class="left-icon" aria-hidden="true">&nbsp;</i> '],
	//     lazyLoad: false,
	//     loop: true,
	//     autoplay: false,
	//     smartSpeed: 700,
	//     autoplayTimeout: 2000,
	//     autoplayHoverPause: true,
	//     // onChange: function(){
	//     //add your animate.css classes
	//     // console.log($(this));
	//     //     $(this).find('item-prod').css(
	//             // 'animation', 'fadeOut  2s infinite ease-in-out'
	//     //     )
	//     // },
	//     responsive: {
	//         0: {
	//             items: 1
	//         },
	//         767: {
	//             items:3
	//         },
	//         1200: {
	//             items: 3
	//         }
	//     }
	// });



	/* SECTION IMAGES-TEXT BLOCKS плитка HOmepage */

	$('.video-loop-bl').find('.img-change:first').addClass('show');
	var update;

	function theRotator(index) {
		$('.video-loop-bl' + index + ' .img-change').css({
			opacity: 0.0
		});
		$('.video-loop-bl' + index + ' .img-change:first').css({
			opacity: 1.0
		});
		setTimeout(function() {
			update = Math.floor(Math.random() * (8000 - 4000 + 1)) + 4000;
			rotate(index);
		}, update);
	}

	function rotate(index) {
		var current = ($('.video-loop-bl' + index + ' .img-change.show') ? $('.video-loop-bl' + index + ' .img-change.show') : $('.video-loop-bl' + index + ' .img-change:first'));
		var next = ((current.next().length) ? ((current.next().hasClass('show')) ? $('.video-loop-bl' + index + ' .img-change:first') : current.next()) : $('.video-loop-bl' + index + ' .img-change:first'));
		// Расскомментируйте, чтобы показвать картинки в случайном порядке
		// var sibs = current.siblings();
		// var rndNum = Math.floor(Math.random() * sibs.length );
		// var next = $( sibs[ rndNum ] );

		next.css({
				opacity: 0.0
			})
			.addClass('show')
			.animate({
				opacity: 1.0
			}, 1000);

		current.animate({
				opacity: 0.0
			}, 1000)
			.removeClass('show');

		update = Math.floor(Math.random() * (8000 - 4000 + 1)) + 4000;
		setTimeout(function() {
			rotate(index);
		}, update);
	};

	// Start theRotator
	$('.video-loop-bl').each(function(index, el) {
		theRotator(index);
	});



	//*****Animate******
	var wow = new WOW({
		boxClass: 'wow',
		animateClass: 'animated',
		offset: 0,
		mobile: true,
		live: true,

		// callback: function(box) {
		//     // функция срабатывает каждый раз при старте анимации
		//     // аргумент box — элемент, для которого была запущена анимация
		// },
		// scrollContainer: null // селектор прокручивающегося контейнера (опционально, по умолчанию, window)
	});
	wow.init();



	//Animate bullets
	$(document).ready(function() {
		// var dynamicDelay = [
		//     50,
		//     700,
		//     400,
		//     150,
		// ];
		var fallbackValue = "100ms";

		$(".video-loop>.row div, .bullets_all_ab>.row>div").each(function(index) {
			update = Math.floor(Math.random() * (900 - 50 + 1)) + 50;
			$(this).attr("data-wow-delay", typeof update === 'undefined' ? fallbackValue : update + "ms");
		});
	});

	// Change Value SEARCH in Plugin Responsive MENU
	$('#responsive-menu-container input[type=search].responsive-menu-search-box').attr('placeholder', 'חיפוש');



	// Эффект вращения рпи Скроле
	// $(function() {
	// var rotation = 0,
	//     scrollLoc = $(document).scrollTop();
	// $(window).scroll(function() {
	//     var newLoc = $(document).scrollTop();
	//     var diff = scrollLoc - newLoc;
	//     rotation += diff, scrollLoc = newLoc;
	//     // console.log((0 - (scrollLoc * .05)));
	//
	//     // var rotationStr = rotate(" + rotation + "deg)";
	//     // $(".category-7 .page-cat2").css({
	//     //     "-webkit-transform": rotationStr,
	//     //     "-moz-transform": rotationStr,
	//     //     "transform": rotationStr
	//     // });
	// });
	// })


	// Parallax Effect
	// $(window).bind('scroll', function(e) {
	//     parallaxScroll();
	// });
	//
	// function parallaxScroll() {
	//     var scrolled = $(window).scrollTop();
	//     $('.paral3').css('top', '' + (300 - (scrolled * .2)) + 'px');
	//     $('.paral2').css('top', (200 - (scrolled * .3)) + 'px');
	//     $('.paral1').css('top', (300 - (scrolled * .7)) + 'px');
	// }


	// **** height width or height square*********

	// start
	// Action
	function width_height(el_width, el_height) {
		var it_width_h = el_width.width();
		el_height.height(it_width_h);
		// el_height.animate({'opacity': '1'}, 'slow');
	}

	if ($('#video-loop')) {
		setTimeout(function() {
			width_height($('.video-loop-bl'), $('.video-loop-bl'));
			width_height($('.video-loop-bl'), $('.text-loop-bl'));
		}, 20);
	}
	// width_height($('.category-projects .item-prod-cat-li'), $('.category-projects .item-prod-cat-li'));
	width_height($('.category-projects .item-prod-cat'), $('.category-projects .item-prod-cat'));
	// width_height($('.item-prod-cat-li-all'), $('.item-prod-cat-li-all'));
	width_height($('.item-prod-cat-li-all'), $('.item-prod-cat-all'));

	width_height($('.gal-sing>div>div'), $('.gal-sing>div'));
	width_height($('.gal-sing>div>div'), $('.plan-sing>div>div'));

	// width_height($('.ab-car-item'), $('.ab-car-item'));

	width_height($('.arr_prod_home .owl-item'), $('.arr_prod_home .owl-item'));



	// start on resize
	$(window).on('resize', function() {
		var win = $(this); //this = window
		if (win.width() > 991) {
			if ($('.singl-text').length) {
				single_page_top();
			}
		}
		if ($('#video-loop').length) {
			width_height($('.video-loop-bl'), $('.video-loop-bl'));
			width_height($('.video-loop-bl'), $('.text-loop-bl'));
		}
		width_height($('.category-projects .item-prod-cat-li'), $('.category-projects .item-prod-cat-li'));
		// width_height($('.category-projects .item-prod-cat-li'), $('.item-prod-cat'));
		width_height($('.item-prod-cat-li-all'), $('.item-prod-cat-li-all'));
		width_height($('.item-prod-cat-li-all'), $('.item-prod-cat-all'));

		width_height($('.gal-sing>div>div'), $('.gal-sing>div'));
		width_height($('.gal-sing>div>div'), $('.plan-sing>div>div'));

		// width_height($('.ab-car-item'), $('.ab-car-item'));

		width_height($('.arr_prod_home .owl-item'), $('.arr_prod_home .owl-item'));

		// }
	});
	$("body").on('DOMSubtreeModified', ".arr_prod_cat-all", function() { //if ajax load more
		width_height($('.item-prod-cat-li'), $('.item-prod-cat-li'));
		width_height($('.item-prod-cat-li'), $('.item-prod-cat'));
	});
	// end

	// Change size images чтоб вписались по высоте или ширине
	var $single_text = $('.singl-text');
	var $single_page_t = $('.singl-img');

	var $single_cont = $('.single-content').width();

	function single_page_top() {
		var $single_page_t_img = $single_page_t.find('img');

		$single_page_t.animate({
			'opacity': '1'
		}, 'fast');
		// console.log($single_page_t.width());
		var single_img_h = $single_page_t.height();

		if (widthGad > 1200) {
			$single_page_t_img.css({
				'width': 'auto',
				'height': '100%'
			});
			var single_img_w = $single_cont - $single_page_t.width();
			$single_text.width(single_img_w).height(single_img_h);
		}

		$single_text.stop().animate({
			'opacity': '1'
		}, 'slow');
	}

	if ($single_text.length && widthGad > 1300) {
		setTimeout(function() {
			single_page_top();
		}, 500);
	} else if ($single_text.length && widthGad <= 1300) {
		$single_page_t.animate({
			'opacity': '1'
		}, 'fast');
		$single_text.animate({
			'opacity': '1'
		}, 'slow');
	}

	// Width and height images in Single Page - 100% or auto
	var $gal_img = $('.gal-sing>div>div a img');

	$gal_img.each(function(index, el) {
		var gal_img_h = $(this).attr('height');
		var gal_img_w = $(this).attr('width');
		if (gal_img_h >= gal_img_w) {
			$(this).css({
				'width': '100%',
				'height': 'auto'
			}).fadeTo(100, '1');
		} else if (gal_img_h < gal_img_w) {
			$(this).css({
				'width': 'auto',
				'height': '100%'
			}).fadeTo(100, '1');
		} else {
			$(this).css({
				'width': 'auto',
				'height': 'auto'
			}).fadeTo(100, '1');
		}
	});


	// HEIGHT
	$('.arr_prod li, .sec-blockcont>.row>div, .cur-proj>div, ab-car-item img, .abbl>.row>div').matchHeight({
		byRow: true,
		property: 'height',
		target: null,
		remove: false
	});


	// <!-- VIMEO DEFER-->
	// var vidDeferEl = document.querySelectorAll('.sec-video-wrap iframe');
	// console.log(vidDeferEl);
	// for (var i = 0; i < vidDeferEl.length; i++) {
	// 	if (vidDeferEl[i].getAttribute('data-src')) {
	// 		vidDeferEl[i].setAttribute('src', vidDeferEl[i].getAttribute('data-src'));
	// 	}
	// }

});
// source --> https://eshkol.co.il/wp-content/plugins/elementor/assets/lib/font-awesome/js/v4-shims.min.js?ver=3.4.4 
/*!
 * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 */
var l,a;l=this,a=function(){"use strict";var l={},a={};try{"undefined"!=typeof window&&(l=window),"undefined"!=typeof document&&(a=document)}catch(l){}var e=(l.navigator||{}).userAgent,r=void 0===e?"":e,n=l,o=a,u=(n.document,!!o.documentElement&&!!o.head&&"function"==typeof o.addEventListener&&o.createElement,~r.indexOf("MSIE")||r.indexOf("Trident/"),"___FONT_AWESOME___"),t=function(){try{return"production"===process.env.NODE_ENV}catch(l){return!1}}();var f=n||{};f[u]||(f[u]={}),f[u].styles||(f[u].styles={}),f[u].hooks||(f[u].hooks={}),f[u].shims||(f[u].shims=[]);var i=f[u],s=[["glass",null,"glass-martini"],["meetup","fab",null],["star-o","far","star"],["remove",null,"times"],["close",null,"times"],["gear",null,"cog"],["trash-o","far","trash-alt"],["file-o","far","file"],["clock-o","far","clock"],["arrow-circle-o-down","far","arrow-alt-circle-down"],["arrow-circle-o-up","far","arrow-alt-circle-up"],["play-circle-o","far","play-circle"],["repeat",null,"redo"],["rotate-right",null,"redo"],["refresh",null,"sync"],["list-alt","far",null],["dedent",null,"outdent"],["video-camera",null,"video"],["picture-o","far","image"],["photo","far","image"],["image","far","image"],["pencil",null,"pencil-alt"],["map-marker",null,"map-marker-alt"],["pencil-square-o","far","edit"],["share-square-o","far","share-square"],["check-square-o","far","check-square"],["arrows",null,"arrows-alt"],["times-circle-o","far","times-circle"],["check-circle-o","far","check-circle"],["mail-forward",null,"share"],["expand",null,"expand-alt"],["compress",null,"compress-alt"],["eye","far",null],["eye-slash","far",null],["warning",null,"exclamation-triangle"],["calendar",null,"calendar-alt"],["arrows-v",null,"arrows-alt-v"],["arrows-h",null,"arrows-alt-h"],["bar-chart","far","chart-bar"],["bar-chart-o","far","chart-bar"],["twitter-square","fab",null],["facebook-square","fab",null],["gears",null,"cogs"],["thumbs-o-up","far","thumbs-up"],["thumbs-o-down","far","thumbs-down"],["heart-o","far","heart"],["sign-out",null,"sign-out-alt"],["linkedin-square","fab","linkedin"],["thumb-tack",null,"thumbtack"],["external-link",null,"external-link-alt"],["sign-in",null,"sign-in-alt"],["github-square","fab",null],["lemon-o","far","lemon"],["square-o","far","square"],["bookmark-o","far","bookmark"],["twitter","fab",null],["facebook","fab","facebook-f"],["facebook-f","fab","facebook-f"],["github","fab",null],["credit-card","far",null],["feed",null,"rss"],["hdd-o","far","hdd"],["hand-o-right","far","hand-point-right"],["hand-o-left","far","hand-point-left"],["hand-o-up","far","hand-point-up"],["hand-o-down","far","hand-point-down"],["arrows-alt",null,"expand-arrows-alt"],["group",null,"users"],["chain",null,"link"],["scissors",null,"cut"],["files-o","far","copy"],["floppy-o","far","save"],["navicon",null,"bars"],["reorder",null,"bars"],["pinterest","fab",null],["pinterest-square","fab",null],["google-plus-square","fab",null],["google-plus","fab","google-plus-g"],["money","far","money-bill-alt"],["unsorted",null,"sort"],["sort-desc",null,"sort-down"],["sort-asc",null,"sort-up"],["linkedin","fab","linkedin-in"],["rotate-left",null,"undo"],["legal",null,"gavel"],["tachometer",null,"tachometer-alt"],["dashboard",null,"tachometer-alt"],["comment-o","far","comment"],["comments-o","far","comments"],["flash",null,"bolt"],["clipboard","far",null],["paste","far","clipboard"],["lightbulb-o","far","lightbulb"],["exchange",null,"exchange-alt"],["cloud-download",null,"cloud-download-alt"],["cloud-upload",null,"cloud-upload-alt"],["bell-o","far","bell"],["cutlery",null,"utensils"],["file-text-o","far","file-alt"],["building-o","far","building"],["hospital-o","far","hospital"],["tablet",null,"tablet-alt"],["mobile",null,"mobile-alt"],["mobile-phone",null,"mobile-alt"],["circle-o","far","circle"],["mail-reply",null,"reply"],["github-alt","fab",null],["folder-o","far","folder"],["folder-open-o","far","folder-open"],["smile-o","far","smile"],["frown-o","far","frown"],["meh-o","far","meh"],["keyboard-o","far","keyboard"],["flag-o","far","flag"],["mail-reply-all",null,"reply-all"],["star-half-o","far","star-half"],["star-half-empty","far","star-half"],["star-half-full","far","star-half"],["code-fork",null,"code-branch"],["chain-broken",null,"unlink"],["shield",null,"shield-alt"],["calendar-o","far","calendar"],["maxcdn","fab",null],["html5","fab",null],["css3","fab",null],["ticket",null,"ticket-alt"],["minus-square-o","far","minus-square"],["level-up",null,"level-up-alt"],["level-down",null,"level-down-alt"],["pencil-square",null,"pen-square"],["external-link-square",null,"external-link-square-alt"],["compass","far",null],["caret-square-o-down","far","caret-square-down"],["toggle-down","far","caret-square-down"],["caret-square-o-up","far","caret-square-up"],["toggle-up","far","caret-square-up"],["caret-square-o-right","far","caret-square-right"],["toggle-right","far","caret-square-right"],["eur",null,"euro-sign"],["euro",null,"euro-sign"],["gbp",null,"pound-sign"],["usd",null,"dollar-sign"],["dollar",null,"dollar-sign"],["inr",null,"rupee-sign"],["rupee",null,"rupee-sign"],["jpy",null,"yen-sign"],["cny",null,"yen-sign"],["rmb",null,"yen-sign"],["yen",null,"yen-sign"],["rub",null,"ruble-sign"],["ruble",null,"ruble-sign"],["rouble",null,"ruble-sign"],["krw",null,"won-sign"],["won",null,"won-sign"],["btc","fab",null],["bitcoin","fab","btc"],["file-text",null,"file-alt"],["sort-alpha-asc",null,"sort-alpha-down"],["sort-alpha-desc",null,"sort-alpha-down-alt"],["sort-amount-asc",null,"sort-amount-down"],["sort-amount-desc",null,"sort-amount-down-alt"],["sort-numeric-asc",null,"sort-numeric-down"],["sort-numeric-desc",null,"sort-numeric-down-alt"],["youtube-square","fab",null],["youtube","fab",null],["xing","fab",null],["xing-square","fab",null],["youtube-play","fab","youtube"],["dropbox","fab",null],["stack-overflow","fab",null],["instagram","fab",null],["flickr","fab",null],["adn","fab",null],["bitbucket","fab",null],["bitbucket-square","fab","bitbucket"],["tumblr","fab",null],["tumblr-square","fab",null],["long-arrow-down",null,"long-arrow-alt-down"],["long-arrow-up",null,"long-arrow-alt-up"],["long-arrow-left",null,"long-arrow-alt-left"],["long-arrow-right",null,"long-arrow-alt-right"],["apple","fab",null],["windows","fab",null],["android","fab",null],["linux","fab",null],["dribbble","fab",null],["skype","fab",null],["foursquare","fab",null],["trello","fab",null],["gratipay","fab",null],["gittip","fab","gratipay"],["sun-o","far","sun"],["moon-o","far","moon"],["vk","fab",null],["weibo","fab",null],["renren","fab",null],["pagelines","fab",null],["stack-exchange","fab",null],["arrow-circle-o-right","far","arrow-alt-circle-right"],["arrow-circle-o-left","far","arrow-alt-circle-left"],["caret-square-o-left","far","caret-square-left"],["toggle-left","far","caret-square-left"],["dot-circle-o","far","dot-circle"],["vimeo-square","fab",null],["try",null,"lira-sign"],["turkish-lira",null,"lira-sign"],["plus-square-o","far","plus-square"],["slack","fab",null],["wordpress","fab",null],["openid","fab",null],["institution",null,"university"],["bank",null,"university"],["mortar-board",null,"graduation-cap"],["yahoo","fab",null],["google","fab",null],["reddit","fab",null],["reddit-square","fab",null],["stumbleupon-circle","fab",null],["stumbleupon","fab",null],["delicious","fab",null],["digg","fab",null],["pied-piper-pp","fab",null],["pied-piper-alt","fab",null],["drupal","fab",null],["joomla","fab",null],["spoon",null,"utensil-spoon"],["behance","fab",null],["behance-square","fab",null],["steam","fab",null],["steam-square","fab",null],["automobile",null,"car"],["envelope-o","far","envelope"],["spotify","fab",null],["deviantart","fab",null],["soundcloud","fab",null],["file-pdf-o","far","file-pdf"],["file-word-o","far","file-word"],["file-excel-o","far","file-excel"],["file-powerpoint-o","far","file-powerpoint"],["file-image-o","far","file-image"],["file-photo-o","far","file-image"],["file-picture-o","far","file-image"],["file-archive-o","far","file-archive"],["file-zip-o","far","file-archive"],["file-audio-o","far","file-audio"],["file-sound-o","far","file-audio"],["file-video-o","far","file-video"],["file-movie-o","far","file-video"],["file-code-o","far","file-code"],["vine","fab",null],["codepen","fab",null],["jsfiddle","fab",null],["life-ring","far",null],["life-bouy","far","life-ring"],["life-buoy","far","life-ring"],["life-saver","far","life-ring"],["support","far","life-ring"],["circle-o-notch",null,"circle-notch"],["rebel","fab",null],["ra","fab","rebel"],["resistance","fab","rebel"],["empire","fab",null],["ge","fab","empire"],["git-square","fab",null],["git","fab",null],["hacker-news","fab",null],["y-combinator-square","fab","hacker-news"],["yc-square","fab","hacker-news"],["tencent-weibo","fab",null],["qq","fab",null],["weixin","fab",null],["wechat","fab","weixin"],["send",null,"paper-plane"],["paper-plane-o","far","paper-plane"],["send-o","far","paper-plane"],["circle-thin","far","circle"],["header",null,"heading"],["sliders",null,"sliders-h"],["futbol-o","far","futbol"],["soccer-ball-o","far","futbol"],["slideshare","fab",null],["twitch","fab",null],["yelp","fab",null],["newspaper-o","far","newspaper"],["paypal","fab",null],["google-wallet","fab",null],["cc-visa","fab",null],["cc-mastercard","fab",null],["cc-discover","fab",null],["cc-amex","fab",null],["cc-paypal","fab",null],["cc-stripe","fab",null],["bell-slash-o","far","bell-slash"],["trash",null,"trash-alt"],["copyright","far",null],["eyedropper",null,"eye-dropper"],["area-chart",null,"chart-area"],["pie-chart",null,"chart-pie"],["line-chart",null,"chart-line"],["lastfm","fab",null],["lastfm-square","fab",null],["ioxhost","fab",null],["angellist","fab",null],["cc","far","closed-captioning"],["ils",null,"shekel-sign"],["shekel",null,"shekel-sign"],["sheqel",null,"shekel-sign"],["meanpath","fab","font-awesome"],["buysellads","fab",null],["connectdevelop","fab",null],["dashcube","fab",null],["forumbee","fab",null],["leanpub","fab",null],["sellsy","fab",null],["shirtsinbulk","fab",null],["simplybuilt","fab",null],["skyatlas","fab",null],["diamond","far","gem"],["intersex",null,"transgender"],["facebook-official","fab","facebook"],["pinterest-p","fab",null],["whatsapp","fab",null],["hotel",null,"bed"],["viacoin","fab",null],["medium","fab",null],["y-combinator","fab",null],["yc","fab","y-combinator"],["optin-monster","fab",null],["opencart","fab",null],["expeditedssl","fab",null],["battery-4",null,"battery-full"],["battery",null,"battery-full"],["battery-3",null,"battery-three-quarters"],["battery-2",null,"battery-half"],["battery-1",null,"battery-quarter"],["battery-0",null,"battery-empty"],["object-group","far",null],["object-ungroup","far",null],["sticky-note-o","far","sticky-note"],["cc-jcb","fab",null],["cc-diners-club","fab",null],["clone","far",null],["hourglass-o","far","hourglass"],["hourglass-1",null,"hourglass-start"],["hourglass-2",null,"hourglass-half"],["hourglass-3",null,"hourglass-end"],["hand-rock-o","far","hand-rock"],["hand-grab-o","far","hand-rock"],["hand-paper-o","far","hand-paper"],["hand-stop-o","far","hand-paper"],["hand-scissors-o","far","hand-scissors"],["hand-lizard-o","far","hand-lizard"],["hand-spock-o","far","hand-spock"],["hand-pointer-o","far","hand-pointer"],["hand-peace-o","far","hand-peace"],["registered","far",null],["creative-commons","fab",null],["gg","fab",null],["gg-circle","fab",null],["tripadvisor","fab",null],["odnoklassniki","fab",null],["odnoklassniki-square","fab",null],["get-pocket","fab",null],["wikipedia-w","fab",null],["safari","fab",null],["chrome","fab",null],["firefox","fab",null],["opera","fab",null],["internet-explorer","fab",null],["television",null,"tv"],["contao","fab",null],["500px","fab",null],["amazon","fab",null],["calendar-plus-o","far","calendar-plus"],["calendar-minus-o","far","calendar-minus"],["calendar-times-o","far","calendar-times"],["calendar-check-o","far","calendar-check"],["map-o","far","map"],["commenting",null,"comment-dots"],["commenting-o","far","comment-dots"],["houzz","fab",null],["vimeo","fab","vimeo-v"],["black-tie","fab",null],["fonticons","fab",null],["reddit-alien","fab",null],["edge","fab",null],["credit-card-alt",null,"credit-card"],["codiepie","fab",null],["modx","fab",null],["fort-awesome","fab",null],["usb","fab",null],["product-hunt","fab",null],["mixcloud","fab",null],["scribd","fab",null],["pause-circle-o","far","pause-circle"],["stop-circle-o","far","stop-circle"],["bluetooth","fab",null],["bluetooth-b","fab",null],["gitlab","fab",null],["wpbeginner","fab",null],["wpforms","fab",null],["envira","fab",null],["wheelchair-alt","fab","accessible-icon"],["question-circle-o","far","question-circle"],["volume-control-phone",null,"phone-volume"],["asl-interpreting",null,"american-sign-language-interpreting"],["deafness",null,"deaf"],["hard-of-hearing",null,"deaf"],["glide","fab",null],["glide-g","fab",null],["signing",null,"sign-language"],["viadeo","fab",null],["viadeo-square","fab",null],["snapchat","fab",null],["snapchat-ghost","fab",null],["snapchat-square","fab",null],["pied-piper","fab",null],["first-order","fab",null],["yoast","fab",null],["themeisle","fab",null],["google-plus-official","fab","google-plus"],["google-plus-circle","fab","google-plus"],["font-awesome","fab",null],["fa","fab","font-awesome"],["handshake-o","far","handshake"],["envelope-open-o","far","envelope-open"],["linode","fab",null],["address-book-o","far","address-book"],["vcard",null,"address-card"],["address-card-o","far","address-card"],["vcard-o","far","address-card"],["user-circle-o","far","user-circle"],["user-o","far","user"],["id-badge","far",null],["drivers-license",null,"id-card"],["id-card-o","far","id-card"],["drivers-license-o","far","id-card"],["quora","fab",null],["free-code-camp","fab",null],["telegram","fab",null],["thermometer-4",null,"thermometer-full"],["thermometer",null,"thermometer-full"],["thermometer-3",null,"thermometer-three-quarters"],["thermometer-2",null,"thermometer-half"],["thermometer-1",null,"thermometer-quarter"],["thermometer-0",null,"thermometer-empty"],["bathtub",null,"bath"],["s15",null,"bath"],["window-maximize","far",null],["window-restore","far",null],["times-rectangle",null,"window-close"],["window-close-o","far","window-close"],["times-rectangle-o","far","window-close"],["bandcamp","fab",null],["grav","fab",null],["etsy","fab",null],["imdb","fab",null],["ravelry","fab",null],["eercast","fab","sellcast"],["snowflake-o","far","snowflake"],["superpowers","fab",null],["wpexplorer","fab",null],["cab",null,"taxi"]];return function(l){try{l()}catch(l){if(!t)throw l}}(function(){var l;"function"==typeof i.hooks.addShims?i.hooks.addShims(s):(l=i.shims).push.apply(l,s)}),s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):l["fontawesome-free-shims"]=a();
// source --> https://eshkol.co.il/wp-content/plugins/AccessibilityIWC/js/a11y.js 
if (typeof jQuery == 'undefined') {
  document.write('<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"><\/script>');        
  } 
  else{
jQuery(document).ready(function(){var b=document.createElement("link");b.href="https://fonts.googleapis.com/css?family=Open+Sans";b.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(b)});setTimeout(nagish(),3E3);

function nagish() {
    jQuery(function() {
        var elem = document.getElementById('acc-toolbarWrap');
        if (elem) {
            //console.log('123' + elem);
            elem.parentNode.removeChild(elem)
        }
        if (getCookie('originalSize')) {
            //console.log(getCookie('originalSize'));
            jQuery('body').css("font-size", getCookie('newSize'))
        }
        if (getCookie('underLine')) {
            jQuery('a').css("text-decoration", getCookie('underLine'))
        }
        if (getCookie('negative')) {
            if (getCookie('negative') == '1') {
                jQuery('html').css("background-color", "#000000");
                jQuery('html').css("filter", "contrast(200%) brightness(150%)");
                jQuery('html').css("-webkit-filter", "contrast(200%) brightness(150%)");
                jQuery('html').css("-moz-filter", "contrast(200%) brightness(150%)")
            } else {
                jQuery('html').css("background-color", "#000000");
                jQuery('html').css("filter", "invert(0%)");
                jQuery('html').css("-webkit-filter", "invert(0%)");
                jQuery('html').css("-moz-filter", "invert(0%)")
            }
        }
		
		
        if (getCookie('negativewhite')) {
            if (getCookie('negativewhite') == '1') {
                jQuery('html, body *:not(img)').addClass("negativewhite");
				//jQuery('html, body *:not(img)').css("color", "#000000");
				console.log('1');
                //setCookie('negativewhite', '0', 1)
            } else {
                jQuery('html, body *:not(img)').removeClass("negativewhite");
				//jQuery('html, body *:not(img)').css("color", "#FFFFFF");
				console.log('2');
                //setCookie('negativewhite', '1', 1) 
            }
        }
        if (getCookie('gray')) {
            if (getCookie('gray') == '1') {
                jQuery('html').css("-webkit-filter", "grayscale(1)");
                jQuery('html').css("-webkit-filter", "grayscale(100%)");
                jQuery('html').css("filter", "gray");
                jQuery('html').css("filter", "grayscale(100%)")
            } else {
                jQuery('html').css("-webkit-filter", "grayscale(1)");
                jQuery('html').css("-webkit-filter", "grayscale(0%)");
                jQuery('html').css("filter", "");
                jQuery('html').css("filter", "grayscale(0%)")
            }
        }
        jQuery("#resetFont").bind("click", function() {
            //console.log('resetFont');
            jQuery('body').css("zoom", getCookie('originalSize'));
            jQuery('a').css("textDecoration", '');
            setCookie('originalSize', getCookie('originalSize'), -1);
            setCookie('underLine', getCookie('underLine'), -1)
        });
        jQuery("#resetColor").bind("click", function() {
            //console.log('resetColor');
            jQuery('html').css("background-color", "#ffffff");
            jQuery('html').css("filter", "invert(0%)");
            jQuery('html').css("-webkit-filter", "invert(0%)");
            jQuery('html').css("-moz-filter", "invert(0%)");
            jQuery('html').css("-webkit-filter", "grayscale(1)");
            jQuery('html').css("-webkit-filter", "grayscale(0%)");
            jQuery('html').css("filter", "");
            jQuery('html').css("filter", "grayscale(0%)");
            setCookie('negative', getCookie('negative'), -1);
            setCookie('gray', getCookie('gray'), -1)
        });
        jQuery("#reset").bind("click", function() {
            //console.log('reset');
            jQuery('html').css("background-color", "#ffffff");
            jQuery('html').css("filter", "invert(0%)");
            jQuery('html').css("-webkit-filter", "invert(0%)");
            jQuery('html').css("-moz-filter", "invert(0%)");
			jQuery('html, body *:not(img)').removeClass("negativewhite");
            jQuery('html').css("-webkit-filter", "grayscale(1)");
            jQuery('html').css("-webkit-filter", "grayscale(0%)");
            jQuery('html').css("filter", "");
            jQuery('html').css("filter", "grayscale(0%)");
            jQuery('body').css("zoom", getCookie('originalSize'));
            jQuery('a').css("text-decoration", '');
            setCookie('originalSize', getCookie('originalSize'), -1);
            setCookie('underLine', getCookie('underLine'), -1);
            setCookie('negative', getCookie('negative'), -1);
            setCookie('gray', getCookie('gray'), -1);
            setCookie('negativeclasswhite', getCookie('negativeclasswhite'), -1);
			//console.log('asd');
        });
        jQuery("#plus").bind("click", function() {
            var size = parseFloat(jQuery('body').css("zoom"));
            if (!getCookie('originalSize')) {
                setCookie('originalSize', size, 1)
            }
            var sizere = getCookie('originalSize');
            var maxsize = (sizere / 100) * 300;
            if (jQuery(this)) {
                if (size < maxsize) {
                    size = size + 0.1
                }
            }
            jQuery('body').css("zoom", size);
            setCookie('newSize', size, 1);
            //console.log(sizere);
            //console.log(size)
        });
        jQuery("#minus").bind("click", function() {
            var size = parseFloat(jQuery('body').css("zoom"));
            if (!getCookie('originalSize')) {
                setCookie('originalSize', size, 1)
            }
            var sizere = getCookie('originalSize');
            var maxsize = (sizere / 100) * 300;
            if (jQuery(this)) {
                if (size < maxsize) {
                    size = size - 0.1
                }
            }
            jQuery('body').css("zoom", size);
            setCookie('newSize', size, 1);
            //console.log(sizere);
            //console.log(size)
        });
        jQuery("#underline").click(function() {
            var trea = jQuery('#underline');
            if (jQuery(trea).css('text-decoration-line') === 'underline') {
                jQuery('a').css('text-decoration', 'none');
                setCookie('underLine', 'none', 1)
            } else {
                jQuery('a').css('text-decoration', 'underline');
                setCookie('underLine', 'underline', 1)
            }
        });
        jQuery('#negativeclass').bind("click", function() {
            var back = jQuery('html').css("background-color");
            if (back === 'rgba(0, 0, 0, 0)' || back === 'rgb(255, 255, 255)') {
                jQuery('html').css("-webkit-filter", "grayscale(1)");
                jQuery('html').css("-webkit-filter", "grayscale(0%)");
                jQuery('html').css("filter", "");
                jQuery('html').css("filter", "grayscale(0%)");
                jQuery('html').css("background-color", "#000000");
                jQuery('html').css("filter", "invert(100%)");
                jQuery('html').css("-webkit-filter", "invert(100%)");
                jQuery('html').css("-moz-filter", "invert(100%)");
                setCookie('negative', '1', 1)
            } else {
                jQuery('html').css("background-color", "#ffffff");
                jQuery('html').css("filter", "invert(0%)");
                jQuery('html').css("-webkit-filter", "invert(0%)");
                jQuery('html').css("-moz-filter", "invert(0%)");
                setCookie('negative', '0', 1)
            }
        });
		jQuery('#negativeclasswhite').bind("click", function() {
			//console.log('123');
			
			
            var back = jQuery('html').hasClass("negativewhite");
			console.log(back);
            if (back == false) {
                
				jQuery('html, body *:not(img)').addClass("negativewhite");
				//jQuery('html, body *:not(img)').css("color", "#000000");
				console.log('3');
                setCookie('negativewhite', '1', 1)
				
            } else if (back == true) { 
                
				jQuery('html, body *:not(img)').removeClass("negativewhite");
				//jQuery('html, body *:not(img)').css("color", "");
				console.log('4');
                setCookie('negativewhite', '0', 1)
            }
        });
        jQuery('#grayclass').bind("click", function() {
            var back = jQuery('html').css("filter");
            //console.log(back);
            if (back === 'none' || back === 'grayscale(0)' || back === 'invert(1)') {
                jQuery('html').css("background-color", "#ffffff");
                jQuery('html').css("filter", "invert(0%)");
                jQuery('html').css("-webkit-filter", "invert(0%)");
                jQuery('html').css("-moz-filter", "invert(0%)");
                jQuery('html').css("-webkit-filter", "grayscale(1)");
                jQuery('html').css("-webkit-filter", "grayscale(100%)");
                jQuery('html').css("filter", "gray");
                jQuery('html').css("filter", "grayscale(100%)");
                setCookie('gray', '1', 1)
            } else {
                jQuery('html').css("-webkit-filter", "grayscale(1)");
                jQuery('html').css("-webkit-filter", "grayscale(0%)");
                jQuery('html').css("filter", "");
                jQuery('html').css("filter", "grayscale(0%)");
                setCookie('gray', '0', 1)
            }
        })
    }) 
}
 
function setCookie(cname, cvalue, exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
    var expires = "expires=" + d.toGMTString();
    document.cookie = cname + "=" + cvalue + "; " + expires
}

function getCookie(cname) {
    var name = cname + "=";
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1);
        if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length)
        }
    }
    return ""
}
//document.write('<button class="accordion"></button><div class="panelShay"><div class="nagishrow"><div class="nagishrow3"><span>לינקים</span><ul class="ullinagish"><li class="und8"><a id="underline" href="javascript:void(0)">קו מתחת ללינקים</a></li><li class="und9"><a id="reset" href="javascript:void(0)">שחזר הכל</a></li></ul></div><div class="nagishrow3"><span>צבעוניות</span>	<ul class="ullinagish"><li class="und6"><a id="negativeclass" href="javascript:void(0)">הפוך צבעים</a></li><li class="und5"><a id="grayclass" href="javascript:void(0)">שחור לבן</a></li><li class="und9"><a id="resetColor" href="javascript:void(0)">שחזר צבעים</a></li></ul></div>	<div class="nagishrow3"><span>גודל הגופן</span><ul class="ullinagish"><li class="und2"><a id="plus" href="javascript:void(0)">הגדל טקסט</a></li><li class="und1"><a id="minus" href="javascript:void(0)">הקטן טקסט</a></li><li class="und9"><a id="resetFont" href="javascript:void(0)">שחזר את גודל הגופן</a></li></ul></div></div><a href="javascript:void(0)" style="float:right;" onclick="f1()">X סגור</a></div>');
//document.writeln('<script> function f1() { var crl = document.getElementsByClassName("active"); jQuery(".panelShay").css("max-height","0px"); } var acc = document.getElementsByClassName("accordion"); var i; acc[0].onclick = function() { 	this.classList.toggle("active"); var panelShay = this.nextElementSibling; if (panelShay.style.maxHeight){ panelShay.style.maxHeight = null; acc[0].style.marginRight = null; } else { panelShay.style.maxHeight = panelShay.scrollHeight + "px";   acc[0].style.marginRight  = panelShay.scrollHeight  + "px"; } }  </script>');
  };