PageSourceSearch

https://www.medicon.co.il/

html medicon.co.il collected 2026-09-29 20:25:48 UTC 318,961 bytes, 7,221 lines download raw bytes

1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="he-IL">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1255" />
5<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE; chrome=1" />
6<meta http-equiv="imagetoolbar" content="no"/>
7<title></title>
8<meta name="Keywords" content=""/>
9
10<meta name="Description" content=""/>
11<meta name="Monitor" content="medicon.co.il"/>
12
13<script>
14 
15
16    var collectAnalytic = "1"; 
17    var cookieconsent = false;
18    var cookieconsentapproved = document.cookie
19    .split('; ')
20    .find(function(row) {
21        return row.startsWith('cookieconsentapproved=');
22    });
23
24    if (cookieconsentapproved) {
25        cookieconsentapproved = cookieconsentapproved.split('=')[1];
26    }
27
28    if((cookieconsentapproved && cookieconsentapproved !== "declined") || collectAnalytic == "1" ) {
29        cookieconsent = true;
30    }
31   
32   
33
34// stash the true landing URL + referrer once per tab (consent-independent, sessionStorage only) -
35// used to restore the session's campaign source when gtag starts late (after consent) on a later page
36try {
37    if (!sessionStorage.getItem('eshop_landing')) {
38        sessionStorage.setItem('eshop_landing', JSON.stringify({
39            u: String(location.href).substring(0, 2000),
40            r: String(document.referrer).substring(0, 500),
41            t: Date.now()
42        }));
43    }
44} catch (e) {}
45
46</script>
46
47
48<link rel="canonical" href="https://www.medicon.co.il" />
49<link rel="icon" href="/itemfiles/favicon.ico" type="image/x-icon"/>
50
51 
52    <link rel="stylesheet" href="/base.css?v=4.7.13"/>
53 
54
55        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1">
56
57
58 
59    
59<script language="javascript" src="/scripts/jquery/jquery-1.7.2.min.js" type="text/javascript"></script>
59
60    
60<script src="/scripts/head.js?v=4.7.13" type="text/javascript"></script>
60
61    
61<script defer="defer" src="/scripts/jquery/scripts.js?v=4.7.13" type="text/javascript"></script>
61
62    <link rel="stylesheet" type="text/css" href="/scripts/jquery/fancybox/jquery.fancybox.css?v=2.1.4" media="screen" />
63    
63<script defer="defer" type="text/javascript" src="/scripts/jquery/fancybox/jquery.fancybox.pack.js?v=2.1.4"></script>
63
64    <link rel="stylesheet" type="text/css" href="/scripts/jquery/revolution/fonts/font-awesome/css/font-awesome.min.css?v=5.18">
65 
66
67
68
69    
70
71<script type="text/javascript">
72	var langdir='rtl';
73    var AjaxAddToCart_Msg = "äîåöø ðåñó ìòâìä áäöìçä";
74    var RenderAllCartsFlag = "";
75</script>
75
76
77 
78    
78<script src="/scripts/ajax.js" type="text/javascript"></script>
78
79 
80
81
82
83 
84        <link rel="stylesheet" href="/inc/FloatingCart/FloatingCart.min.css?v=4.7.13"/>
85        
85<script type="text/javascript" src="/inc/FloatingCart/Scripts/floatingcart.js?v=4.7.13"></script>
85
86 
87
88    
89
90        <meta property="og:locale" content="he_IL" />
91        <meta property="og:title" content = ""/>
92        <meta property="og:type" content="website" />
93        <meta property="og:url" content = "https://www.medicon.co.il"/>
94        <meta property="og:site_name"   content = "www.medicon.co.il"/>
95        <meta property="og:description" content = ""/>
96        <meta property="og:image" itemprop = "image" content = "https://www.medicon.co.il/itemfiles/logo.png?v=5"/>
97        <meta property="og:image:type" content="image/png" />
98        <meta property="og:image:alt" content="" />
99        <meta property="og:image:width"  content = "300" />
100        <meta property="og:image:height" content = "300" />
101        
102       
102<script type="application/ld+json">
103        {
104            "@context": "http://schema.org",
105            "@type": "Store",
106            "name": "",
107            "openingHours": "à-ä î10-00 òã 19-00, å åòøá çâ î9-00 òã 13-00 öøéê ìäú÷ùø ìôðé ääâòä",
108            "description": "",
109            "priceRange":"$$$$",
110            "image": "https://www.medicon.co.il/itemfiles/logo.png?v=2",
111            
112                "email": "mailto:[email protected]",
113            
114             "url": "https://www.medicon.co.il"
115        }
116     </script>
116
117
118    
119        
119<script>
120                var currentCurrencySign     = "¤";
121                var currentCurrency         = "0";
122                var currentSiteLang         = "HE";
123                var CartAjaxQuantityName    = "ôøéèéí áòâìä";
124                var CartAjaxTotalName       = "ñä&quot;ë";
125                var CurrencyMinimumOrder    = "0";
126                var CartAjaxContinueTxt     = "äîùê ì÷ðåú";
127                var CartAjaxBuyingTxt       = "ì÷åôä";
128                var CartAjaxAddTxt          = "äîåöø ðåñó ìòâìä áäöìçä" ;
129                var stats_si_org            = "0";
130                
131                var js_cartid = '';
132                
133        </script>
133
134
135    
136        <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/jqueryplugins.css?v=4.7.13" />
137        <link rel="stylesheet" href="https://www.medicon.co.il/scripts/jquery/JqueryUI/css/ui-lightness/jquery-ui-1.8.21.custom.css" />
138        
138<script src="https://www.medicon.co.il/scripts/jquery/JqueryUI/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
138
139    
140
141                <link rel="stylesheet" type="text/css" href="/scripts/bootstrap/css/bootstrap.min.css">
142                
142<script type="text/javascript" defer="defer" src="/scripts/bootstrap/js/bootstrap.min.js"></script>
142    
143            
144            <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/esh-templates.css?v=4.7.13" />
145            
145<script type="text/javascript" defer="defer" src="/template_inc/eshopstoresframework/js/esh-templates.js?v=4.7.13"></script>
145
146 
147 
148    
149        <link rel="stylesheet" href="/template_inc/eshopstoresframework/css/Open_Sans_Hebrew/opensans.css" />
150 
151
152
153   
154        <!--[if lt IE 8]>
155            <link rel="stylesheet" type="text/css" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/ie.css" />
156        <![endif]-->
157        <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/css/main.css?v=4.7.13" />                                                                   
158        
159                    <link rel="stylesheet" href="https://www.medicon.co.il/template_inc/eshopstoresframework/templates/VD/css/custom.css?v=4.7.13" />
160                    
161                     <!--[if IE 7]>
162                         <link rel="stylesheet" type="text/css" href="https://www.medicon.co.il/template_inc/eshopstoresframework/templates/VD/css/Ie7.css" />
163                     <![endif]-->
164                
165         
165<script src="https://www.medicon.co.il/scripts/jquery/jquery.carouFredSel-6.2.1-packed.js" type="text/javascript"></script>
165
166        
167                 <style>
168                          
169                            #sidebar .categories .content a ,  #secondsideBar .categories .content a
170                            {
171                                background: none repeat scroll 0 0  inherit !important ;
172                              
173                             }
174                            #sidebar .categories .content a:hover , #sidebar .categories li.current > a
175                            , #secondsideBar .categories .content a:hover , #secondsideBar .categories li.current > a
176                            {
177                                 background: none repeat scroll 0 0  inherit !important  ;
178                                  
179
180                            }
181                        
182                           body
183                           {background-color: rgb(255,255,255);}
184                       
185                           #pl_web_page
186                           {
187                                background-image:url("/template_inc/eshopstoresframework/DesignRoller/images/bgs/bg_t_0.png");
188                                background-attachment:fixed;
189                                background-position:top left;
190                                background-repeat:repeat;
191                           }
192                       
193                        #header .header_wrap
194                            {
195
196                              
197                                background: none repeat scroll 0% 0% rgb(0);
198                               
199                                background: none repeat scroll 0% 0% rgba(0, 0);
200                            }
201                     
202                      
203                     #footer
204                     {
205                       background-color: ;
206                     }
207                       
208                        #footer .footer_wrap
209                            {
210                              
211                                background: none repeat scroll 0% 0% rgb(0);
212                               
213                                background: none repeat scroll 0% 0% rgba(0, 0);
214                            }
215                     
216                        a.add-to-cart , .special-box a.add-to-cart,.product-prices a.add-to-cart
217                            {
218                                background-color: #139c13;
219                                color: #000000;
220                            }
221                     
222                         div.maindivCenter-wrap
223                            {
224
225                               
226                                    background:none;
227                                    -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFCFC,endColorstr=#FFFFFCFC);
228                                    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFCFC,endColorstr=#FFFFFCFC);
229                                    zoom: 1;
230                               
231
232                                background:  rgba(255,252,252 , 1 );
233                            }
234                     
235                        #sidebar
236                            {
237                               
238                                 background:none;
239                                 -ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#66829CA3,endColorstr=#66829CA3);
240                                filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#66829CA3,endColorstr=#66829CA3);
241                                zoom: 1;
242                               
243                             background:  rgba(130,156,163 , 0.4 );
244                           }
245                     
246                         .products-box-titles ,.block.homepage .title,.block .title
247                         {
248                            background:none repeat scroll 0 0 rgb(35,125,30);
249
250                               
251                                color:  #000000 !important;
252                              
253                         }
254                     
255                </style>
256               
257<!--[if IE 9]>
258<style>
259     #header .menu ,#header .smallcart ,#sidebar .block .content  , #secondsideBar .block .content,#header .categories,ul.productBoxes .boxItem
260    ,.homepage.block.spacial-items .jcarousel-container , #defProductboxesTbl .jcarousel-container ,#slider-700-nav a
261    ,#slider-700-nav a.activeSlide ,.maindivCenter  ,#sidebar ,#secondsideBar,#header .menu li:h
261over a, #header .menu li.sfHover a, #header .menu li.sfHover li:hover a
262    ,#header .breadcrumb,#header .spaciel-items-wide .content, .spaciel-items-wide .content,#footer .menu ul,.products-page .block.miscfileds
263    ,.articles-thumnails ,.articles-single ,#header .userbar     ,div.maindivCenter-wrap
264    {
265        filter: none;
266    }
267</style>
268<![endif]-->
269 
270
271
272  
272<script type="text/javascript">
273
274  function encodeEmojis(str) {
275      var result = '';
276      for (var i = 0; i < str.length; i++) {
277          var code = str.charCodeAt(i);
278          if (code >= 0xD800 && code <= 0xDBFF && i + 1 < str.length) {
279              var low = str.charCodeAt(i + 1);
280              if (low >= 0xDC00 && low <= 0xDFFF) {
281                  var fullCode = ((code - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;
282                  result += '&#x' + fullCode.toString(16).toUpperCase() + ';';
283                  i++;
284                  continue;
285              }
286          }
287          if (code > 0xFF && (code < 0x590 || code > 0x5FF)) {
288              result += '&#x' + code.toString(16).toUpperCase() + ';';
289          } else {
290              result += str.charAt(i);
291          }
292      }
293      return result;
294  }
295
296  function ga_viewItemList(){
297                                            $(".ee_list").each(function()
298                                            {
299                                                var ee_list_name = $(this).attr("ee_list_name") ;
300                                                var sanitized_list_name = ee_list_name.replace(/[\s,]/g, '_'); // Remove spaces and commas
301
302                                                var itemsArray = [];
303                                               
304                                               
305                                                $(this).find(".ee_list_item").each(function()
306                                                {
307
308                                                   var ee_list_counter = $(this).attr("ee_list_item_position");
309                                                   // console.log( $(this).find("[ee_list_itemid]").text() + '  = '  + $(this).find("[ee_list_itemname]").text() + ' = ' + ee_list_category + ' = ' +ee_list_counter);
310                                                   if (ee_list_counter<16)
311                                                   {
312                                                   
313                                                         
314
315                                                    }
316                                                    
317
318                                                        var priceholder = $(this).find(".priceholder");
319                                                        if (priceholder.length > 0) {
320                                                            var item_price = priceholder.attr("price");
321                                                        } else {
322                                                            var item_price = 0 ;
323                                                        }
324
325
326                                                       var item = {
327                                                        item_id: $(this).find(".item-name a").attr("ee_list_itemid"),
328                                                        item_name: $(this).find(".item-name a").attr("ee_list_itemname"),
329                                                        item_brand: $(this).find(".item-name a").attr("ee_list_itembrand"),
330                                                        item_category: $(this).find(".item-name a").attr("ee_list_category"),
331                                                        price: item_price,
332                                                        quantity:1,
333                                                        index: ee_list_counter,
334                                                        item_list_id: ee_list_name,
335                                                        item_list_name: ee_list_name
336                                                    };
337
338                                                    itemsArray.push(item);
339 
340                                                });
341                                            
342                                                 
343
344                                            });
345}                      
346function ga4_viewItemList(){
347                                            $(".ee_list").each(function()
348                                            {
349                                                var ee_list_name = $(this).attr("ee_list_name") ;
350                                                var sanitized_list_name = ee_list_name.replace(/[\s,]/g, '_'); // Remove spaces and commas
351
352                                                var itemsArray = [];
353                                               
354                                               
355                                                $(this).find(".ee_list_item").each(function()
356                                                {
357
358                                                   var ee_list_counter = $(this).attr("ee_list_item_position");
359                                                   
360                                                    
361
362                                                        var priceholder = $(this).find(".priceholder");
363                                                        if (priceholder.length > 0) {
364                                                            var item_price = priceholder.attr("price");
365                                                        } else {
366                                                            var item_price = 0 ;
367                                                        }
368
369
370                                                       var item = {
371                                                        item_id: $(this).find(".item-name a").attr("ee_list_itemid"),
372                                                        item_name: $(this).find(".item-name a").attr("ee_list_itemname"),
373                                                        item_brand: $(this).find(".item-name a").attr("ee_list_itembrand"),
374                                                        item_category: $(this).find(".item-name a").attr("ee_list_category"),
375                                                        price: item_price,
376                                                        quantity:1,
377                                                        index: ee_list_counter,
378                                                        item_list_id: ee_list_name,
379                                                        item_list_name: ee_list_name
380                                                    };
381
382                                                    itemsArray.push(item);
383 
384                                                });
385                                            
386                                                
387
388                                            });
389}    
390var google_analytics_loaded = false;
391     function loadGoogleAnalytics() {
392
393       }
394
395            if (cookieconsent == true) {
396                   $(document).ready(function() {
397                loadGoogleAnalytics();
398            });
399            }
400      </script>
400
401
402 
402<script>
403 var google_tag_loaded = false;
404   
405                function loadGoogleTag() {
406                     
407 
408
409         }
410                    // Consent Mode v2: gtag always loads; consent state (granted/denied) is set
411                    // inside loadGoogleTag before the script is appended
412                    $(document).ready(function() {
413                            loadGoogleTag();
414                        });
415                    </script>
415
416
417    
418     
419     
419<script>
420     var load_tiktok_pixel = false;
421        function loadTiktokPixel() {
422            
423        }
424
425        if (cookieconsent == true) {
426              $(document).ready(function() {
427            loadTiktokPixel();
428              });
429        }
430    </script>
430
431    
432
433
434<script>
435var load_facebook_pixel = false;
436function loadFacebookPixel() {
437    
438       
439    }
440    if (cookieconsent == true) {
441           $(document).ready(function() {
442                loadFacebookPixel();
443           });
444    }
445</script>
445
446
447
448
449<script type="text/javascript">
450   var cart_opened = false;
451   var cart_add_to_cart = false;
452   var cart_remove_from_cart = false;
453
454   function datecountdown(){
455 
456                      $('.datecountdown').each(function()
457                      {
458                          var tempdate   = $(this).attr("date");
459                          var tempitemid = $(this).attr("itemid");
460                          var isRule     = $(".rule").length;
461                          $(this).countdown(
462                              {
463                                  date: tempdate,
464                                  render: function (date)
465                                  {
466                                    var daysHundred = Math.floor(date.days / 100);
467                                            var daysTens = Math.floor((date.days % 100) / 10);
468                                            var daysOnes = date.days % 10;
469                                            var hourTens = Math.floor(date.hours / 10);
470                                            var hourOnes = date.hours % 10;
471                                            var minTens = Math.floor(date.min / 10);
472                                            var minOnes = date.min % 10;
473                                            var secTens = Math.floor(date.sec / 10);
474                                            var secOnes = date.sec % 10;
475                                            var totalHours = date.days * 24 + date.hours;
476                                            var totalHourTens = Math.floor(totalHours / 10);
477                                            var totalHourOnes = totalHours % 10;                                           
478                                      if (totalHours > 80)
479                                      {
480                                          
481                                              this.el.innerHTML = "<span class='days'>"+date.days+"</span><em>:</em><span class='hours'>"+this.leadingZeros(date.hours)+"</span><em>:</em><span class='min'>"+this.leadingZeros(date.min)+"</span><em>:</em><span class='sec'>"+this.leadingZeros(date.sec)+"</span>";
482                                          
483                                            
484                                            // Check if any of the days variables is truthy
485
486                                            if (daysHundred) {
487                                                this.el.innerHTML = '<div><span class="days"><div>' + daysHundred + '</div><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>';
488                                            } else if (daysHundred == 0 && daysTens > 0 && daysOnes > 0) {
489                                                this.el.innerHTML = '<div><span class="days"><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>';
490                                             } else if (daysHundred == 0 && daysTens > 0 && daysOnes == 0) {
491                                                this.el.innerHTML = '<div><span class="days"><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>';
492                                            } else if (daysHundred == 0 && daysTens == 0 && daysOnes > 0) {
493                                                this.el.innerHTML = '<div><span class="days"><div>' + daysOnes + '</div><span>éîéí</span></span></div><em>:</em><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>';
494                                            } else if (daysHundred == 0 && daysTens == 0 && daysOnes == 0) { 
495                                                // Display the days element
496                                                this.el.innerHTML = '<div style="display:none;"><span class="days" ><div>' + daysHundred + '</div><div>' + daysTens + '</div><div>' + daysOnes + '</div><span>éîéí</span></span><em>:</em></div><div><span class="hours"><div>' + hourTens + '</div><div>' + hourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>';                                                  
497                                            }
498                                            
499                                      }
500                                      else
501                                      {
502                                          
503                                              this.el.innerHTML = "<span class='days'>"+date.days+"<b>éîéí</b></span><em>:</em><span class='hours'>"+this.leadingZeros(date.hours)+"</span><em>:</em><span class='min'>"+this.leadingZeros(date.min)+"</span><em>:</em><span class='sec'>"+this.leadingZeros(date.sec)+"</span>";
504                                           
505                                                if(totalHours > 0){                                          
506                                                this.el.innerHTML = '<div><span class="hours"><div>' + totalHourTens + '</div><div>' + totalHourOnes + '</div><span>ùòåú</span></span></div><em>:</em><div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>';
507                                                }
508                                                else{
509                                                this.el.innerHTML = '<div><span class="minutes"><div>' + minTens + '</div><div>' + minOnes + '</div><span>ã÷åú</span></span></div><em>:</em><div><span class="seconds"><div>' + secTens + '</div><div>' + secOnes + '</div><span>ùðéåú</span></span></div>';    
510                                                }
511                                          
512                                          }
513
514                                  },
515                                  onEnd: function() 
516                                  {
517                                      
518                                      setTimeout(
519                                          function() 
520                                          {
521                                              $.get("/siteservices.asp?service=deals_end&params="+ tempitemid + "&rule_id=" , function(data)
522                                              {
523                                                  if(data == "1" )
524                                                  {
525                                                      window.location.reload();
526                                                  }
527                                              });
528                                          }, 3000);
529                                  }
530                              });
531                      });
532    }
533    
534function preloadAdjacentImages(carousel, count) {
535    let visibleItems = $(carousel).find('.owl-item.active').map(function() { return this; }).get();
536    visibleItems.forEach(function(item, index) {
537        $(item).nextAll().addBack().slice(0, count).find('img[loading="lazy"]').each(function() {
538            this.setAttribute('src', this.getAttribute('data-src') || this.getAttribute('src'));
539            this.removeAttribute('loading'); // Remove the lazy loading attribute once the image is loaded
540        });
541    });
542}
543
544
545        var mobile_breadcrumb_flag = false;
546          function get_factory_url(element_id) {
547 
548            var url = "/factory.asp?id=" + element_id ;
549
550            // Function to check if ASP Classic parameter is empty or not
551            function checkParamEmpty(paramValue) {
552                return paramValue !== "" && paramValue !== undefined && paramValue !== null;
553            }
554
555            // Append parameters to the URL only if they are not empty
556            var params = {
557                "cat": "",
558                "cat1": "",
559                "cat2": "",
560                "SV_SCRIPT_NAME": "/default.asp",
561                "FriendlyReq": "",
562                "itemident": "",
563                "PageHead": "",
564                "pageid": "",
565                "Qsearch": "",
566                "MiscFieldsNames": "",
567                "IN_Name": "",
568                "OrderID": "",
569                "qmanufact" : "",
570            };
571
572            for (var key in params) {
573                if (checkParamEmpty(params[key])) {
574                    url += "&" + key + "=" + params[key];
575                }
576            }
577
578            return url;
579        }
580        function mobile_breadcrumb() {
581
582            
583            return;
584            
585            
586                if ($(window).width() < 801) {
587                       if ($(".header_breadcrumb_mobile").length == 0 ) {
588                            $(".mobile_header").after($(".header_breadcrumb").html());
589                            $(".breadcrumb").wrap("<div class='header_breadcrumb_mobile'> </div>");
590                       }
591                }
592
593            
594
595        }
596
597  
598    function account_verification_success ( param ){
599        //if ( $("#lightpopup.user_connect").is(":visible") ){
600            location.reload();                      
601        //}
602    }
603  
604    function show_sms_code_validation_form( param )
605    {
606        $(".user_phone_login_div").hide();
607        $(".account_verification_div").show();
608    }
609
610    function dynamicform() {
611        $("form.dynamic").each(function () {
612         
613            $(this).validate({
614                submitHandler: function (form) {
615                    
616                    var data        = $(form).serialize();
617                    var action      = $(form).attr("action");
618                    var messagediv  = $(form).find(".messagediv");
619                    var reload      = $(form).attr("reload");
620                    var onsuccess   = $(form).attr("onsuccess");
621                    $.post(
622                            action,
623                            data,
624                            function (data) {
625                                if (data != '') {
626                                    array = data.split("|")
627                                    if (array[0] == "0") {
628                                        $(messagediv).html("<div class='error'>" + array[1] + "</div>");
629                                    }
630                                    if (array[0] == "1") {
631                                        if (reload == "1")
632                                            { 
633                                                location.reload(); 
634                                            }
635                                        else
636                                        { 
637                                           if ( typeof onsuccess == 'undefined' ){
638                                                $(messagediv).html("<div class='success'>" + array[1] + "</div>"); 
639                                           } 
640                                           else 
641                                           {
642                                               
643                                             //   console.log(" call function " + onsuccess );    
644                                                
645                                                window[onsuccess]("");
646                                           }
647                                        }
648                                    }
649                                }
650                            }
651                            );
652                }
653            });
654
655        });
656    }
657         
658
659    $.fn.isInViewport = function() {
660                var elementTop = $(this).offset().top;
661                var elementBottom = elementTop + $(this).outerHeight();
662                var viewportTop = $(window).scrollTop() ; 
663                var viewportBottom = viewportTop + $(window).height() + 200 ;
664                return elementBottom > viewportTop && elementTop < viewportBottom;
665            };
666
667    $.fn.isInViewportScroll = function() {
668                var elementTop = $(this).offset().top;
669                var elementBottom = elementTop + $(this).outerHeight();
670                var viewportTop = $(window).scrollTop() + 200 ;
671                var viewportBottom = viewportTop + $(window).height() ;
672                return elementBottom > viewportTop && elementTop < viewportBottom;
673            };                    
674
675    $.fn.imageLoad = function(fn){
676                this.load(fn);
677                this.each( function() {
678                    if ( this.complete && this.naturalWidth !== 0 ) {
679                        $(this).trigger('load');
680                    }
681                });
682            }
683
684
685    $(document).ready(function ()
686    {
687  
688        $("body").on("click",".login_with_username_password",function(){
689            $(".user_phone_login_container").hide();
690            $(".user_login_container").show();
691            localStorage.setItem('lastLoginForm', 'username'); // Save the choice
692         
693            return false;
694        });
695
696        $("body").on("click",".login_with_phone_number",function(){
697            $(".user_phone_login_container").show();
698            $(".user_login_container").hide();
699            localStorage.setItem('lastLoginForm', 'phone'); // Save the choice
700            return false;
701        });
702
703        //add order by to category if cookie exist
704        var ProdsOrderBy = $.cookie('ProdsOrderBy');
705        if ( ProdsOrderBy != "" ){ 
706                $(".breadcrumb-item a").each( function(){
707                    var breadcrumb_url = $(this).attr("href");
708                    if ( breadcrumb_url.indexOf("/category/") > 0 && breadcrumb_url.indexOf("?") == -1 ) {
709                        $(this).attr("href" , breadcrumb_url + "?orderby=" + ProdsOrderBy );
710                    }
711                });
712        }
713
714        $("img[data-src]").each(function()
715        {
716            if ( $(this).isInViewport() )
717            { 
718                $(this).attr("src" , $(this).attr("data-src") );
719                $(this).removeAttr("data-src") ;
720                calculate_icons_position();
721            }
722        });
723
724        $("#sticky_header img[data-src]").each(function() {
725            $(this).attr("src" , $(this).attr("data-src") );
726            $(this).removeAttr("data-src") ;
727        });
728
729        
730                 
731    });
732
733
734
735    $(document).ready(function ()
736        {
737        var $container = $('.itembox-style-4 .productBoxes');
738        // initialize
739        $container.masonry({
740        columnWidth: 0,
741        itemSelector: '.boxItem'
742    });
743    $container.imagesLoaded(function () {
744        $container.masonry();
745    });
746});
747
748                    function isValidPhoneNumber(phoneNumber) {
749                        const length = phoneNumber.length;
750                        if (phoneNumber[0] !== '0') {
751                            return false;
752                        }
753                        if (length === 9 && /^0((2|3|4|8|9)[0-9]{7}|(2|3|4|8|9)[0-9]{6})$/.test(phoneNumber)) {
754                            return true;
755                        }
756                        if (length === 10 && /^0((5[0-8]|7[1-9])[0-9]{7}|(2|3|4|8|9))$/.test(phoneNumber)) {
757                            return true;
758                        }
759                        return false;
760                    }
761
762                    function widget_form(){  
763                        $(".widget_form").each(function(){
764                            var $form = $(this);
765                            $form.validate({
766                                submitHandler: function(form) {
767                                    var phoneNumber = $(form).find("[name='Phone']").val(); // assuming the input field name for phone number is 'Phone'
768                                    if( phoneNumber !== ""){
769                                    if(!isValidPhoneNumber(phoneNumber)) {
770                                        alert('äëðñ îñôø èìôåï ú÷éï');
771                                        return;
772                                    }
773                                    }
774
775                                    var data       = $(form).serialize();
776                                    var action     = $(form).attr("action");
777                                    var messagediv = $(form).next(".messagediv");
778
779                                    $.post(
780                                        action,
781                                        data,
782                                        function(data) {
783
784                                            if (typeof CaptchaReCall === 'function') {
785                                                CaptchaReCall();
786                                            }
787
788                                            if (data != "") {
789                                                var array = data.split("|")
790                                                if (array[0] == "0") {
791                                                    $(messagediv).html("<div class='error'>" + array[1] + "</div>");
792                                                  
793                                                }
794                                                if (array[0] == "1") {
795                                                    $(messagediv).html("<div class='success'>" + array[1] + "</div>");
796                                                    $(form).hide();
797                                                    
798                                                    if (cookieconsent == true) {
799                                                        
800                                                    }
801                                            }
802                                        }
803                                        }
804                                    );
805                                }
806                            });
807                        });
808}
809
810                            function miniuserbar_login()
811                                {
812
813
814
815                                    $(document).on({
816                                        mouseenter: function(){
817                                          
818                                    if ($("#miniuserbar .toggle-hover i").length)
819                                    {
820                                        var icon_obj    = $("#miniuserbar .toggle-hover i");
821                                        var icon_position = $(icon_obj).position();
822                                        var icon_width  = $(icon_obj).width();
823                                        var icon_height = $(icon_obj).height();
824                                        var caluclate_top  = ((icon_position.top) * 1) + (icon_height*1) * 1 ;
825      
826                                        if ($("#miniuserbar").hasClass("open-right"))
827                                        {
828                                            $("#miniuserbarholder.loginh
828older").css({
829                                                "top"  : caluclate_top + 8 +"px",
830                                                "left" :(icon_position.left*1) + (icon_width) - (icon_width/2)  - 20 + "px" ,
831                                                "right": "auto"
832                                            });
833                                        }
834                                        else{
835          
836                                            $("#miniuserbarholder.loginholder").css({
837                                                "top"  : caluclate_top + 8 +"px",
838                                                "left" : (icon_position.left*1) + (icon_width/2*1) - 325 + "px" ,
839                                                "right": "auto"
840                                            });
841                                        }
842                                    }
843                                    else
844                                    {
845                                        var icon_obj    = $("#miniuserbar.dynamic_view .login_block .userlogin_link");
846                                        var icon_position = $(icon_obj).position();
847                                        var icon_width  = $(icon_obj).width();
848                                        var icon_height = $(icon_obj).height();
849                                        var caluclate_top  = ((icon_position.top) * 1) + (icon_height*1) * 1 ;
850
851                                        if ($("#miniuserbar").hasClass("open-right"))
852                                        {
853                                            $("#miniuserbarholder.loginholder").css({
854                                                "top"  : caluclate_top + 8 +"px",
855                                                "left" :(icon_position.left*1) + (icon_width) - (icon_width/2)  - 20 + "px" ,
856                                                "right": "auto"
857                                            });
858                                        }
859                                        else
860                                        {
861                                            $("#miniuserbarholder.loginholder").css({
862                                                "top"  : caluclate_top + 8 +"px",
863                                               /* "right" :  18 + "px" ,*/
864                                                "left": "auto"
865                                            });
866                                        }
867                                    }
868                                    $("#miniuserbarholder.loginholder").show();
869                                    return false;
870                                        },
871                                        mouseleave: function(){
872                                             $("#miniuserbarholder.loginholder").hide();
873                                    return false;
874                                        }
875                                    },"div#miniuserbar.dynamic_view .login_block");
876 
877
878                            }
879
880                        function mini_userbar_element(){
881                        if ($("#miniuserbar.dynamic_view").length)  
882                        {
883                            
884                            if ($("#miniuserbar.dynamic_view .login_block.open_window").length) 
885                            {   
886                                miniuserbar_login();
887                            }
888                            if ($("#miniuserbar.dynamic_view .registration_block.open_window").length) 
889                            {
890                               
891                               
892                               
893                               $("body").on({
894                                    mouseenter: function(){
895                                            var icon_obj    = $("#miniuserbar.dynamic_view .registration_block .register_link");
896                                            var icon_position = $(icon_obj).position();
897                                            var icon_width  = $(icon_obj).width();
898                                            var icon_height = $(icon_obj).height();
899                                            var caluclate_top  = ((icon_position.top) * 1) + (icon_height*1) * 1 ;
900
901                                            if ($("#miniuserbar").hasClass("open-right"))
902                                            {
903                                                $("#miniuserbarholder.registerholder").css({
904                                                    "top"  : caluclate_top + 8 +"px",
905                                                    "left" :(icon_position.left*1) + (icon_width) - (icon_width/2)  - 20 + "px" ,
906                                                    "right": "auto"
907                                                });
908                                            }
909                                            else
910                                            {
911                                                $("#miniuserbarholder.registerholder").css({
912                                                    "top"  : caluclate_top + 8 +"px",
913                                                    // "right" : (icon_position.left*1) + (icon_width/2*1) - 55 + "px" ,
914                                                    "right" : 0,
915                                                    "left": "auto"
916                                                });
917                                            }
918                                    
919                                            $("#miniuserbarholder.registerholder").show();
920                                            return false;
921                                    },
922                                    mouseleave: function(){
923                                        $("#miniuserbarholder.registerholder").hide();
924                                        return false;
925                                    }
926                                }, "div#miniuserbar.dynamic_view .registration_block");
927                               
928                            
929                                 
930                            }
931                        }
932
933                        else{
934 
935                            $("body").on({
936                                mouseenter: function(){
937                                    if ($("#miniuserbar .toggle-hover i").length)
938                                {
939                                    var icon_obj    = $("#miniuserbar .toggle-hover i");
940                                    var icon_position = $(icon_obj).position();
941                                    var icon_width  = $(icon_obj).width();
942                                    var icon_height = $(icon_obj).height();
943                                    var caluclate_top  = ((icon_position.top) * 1) + (icon_height*1) * 1 ;
944      
945                                    if ($("#miniuserbar").hasClass("open-right"))
946                                    {
947                                        $("#miniuserbarholder").css({
948                                            "top"  : caluclate_top + 7 +"px",
949                                            "left" :(icon_position.left*1) + (icon_width) - (icon_width/2)  - 20 + "px" ,
950                                            "right": "auto"
951                                        });
952                                    }
953                                    else{
954          
955                                        $("#miniuserbarholder").css({
956                                            "top"  : caluclate_top + 7 +"px",
957                                            "left" : (icon_position.left*1) + (icon_width/2*1) - 325 + "px" ,
958                                            "right": "auto"
959                                        });
960                                    }
961                                }
962     
963                                $("#miniuserbarholder").show();
964                                return false;
965                                },
966                                mouseleave: function(e){
967                                  if(e.relatedTarget != null){
968                                       cartpopuptimer = setTimeout(function (){
969                                    $("#miniuserbarholder").hide();
970                                     }, 6000 );
971                                    return false;
972                                }
973                                }
974                            }, "#miniuserbar");
975 
976                        }
977                    }
978
979
980
981                   cartpopuptimer = setTimeout(function ()
982                   {
983                        
984                        
985                   }, 6000 );
986
987
988
989
990 function resize_menu_items ()
991{
992var menu_maxHeight = 0;
993$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").css("height", "");
994$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").each(function () {
995   if ($(this).outerHeight(true) > menu_maxHeight ) { menu_maxHeight  = $(this).outerHeight(true); }
996});
997 
998
999
1000
1001$(".header_menus:not(.minimize) .menu.menu-horizontal>li>a").css("height", menu_maxHeight + "px");
1002
1003}
1004        function dynamicStickyCart(){
1005            // disable dyanmic sticky small screen            
1006            if ( $(window).width() > 800 ) 
1007                {
1008
1009                    $(".dynamic-sticky").dynamic_sticky(); 
1010                        if ($("#header").find(".fixed-top").length )
1011                        {
1012                            var campainHeight=0;
1013                            if($(".campain.slidefromtop").length){
1014                                campainHeight=$("#header").offset().top;
1015                            }
1016                            var header_height = $("#header").find(".fixed-top").height() + 10 + campainHeight ;
1017                            $('<style>.dynamic-sticky.is_stuck{margin-top:' + header_height + 'px}</style>').appendTo( document.head );
1018                        }
1019
1020                        if ($("#sticky_header").length )
1021                        {
1022                            var campainHeight=0;
1023                            if($(".campain.slidefromtop").length){
1024                                campainHeight=$("#sticky_header").offset().top;
1025                            }
1026                            var header_height = $("#sticky_header").height() + 10 + campainHeight;
1027                            $('<style>.dynamic-sticky.is_stuck{margin-top:' + header_height + 'px}</style>').appendTo( document.head );
1028                        }
1029
1030                }
1031        }
1032
1033             
1034
1035           function OpenSmallCart()
1036           {
1037               
1038
1039                 clearTimeout(cartmobilepopuptimer);   
1040                if ( !$("#mobile_minicart").is(':visible') )
1041                    {
1042                        //$("#mobile_header .header_smallcart").trigger("click");
1043                       mobile_minicart_toggle("2");
1044                    }
1045                    cartmobilepopuptimer = setTimeout(function() 
1046                    {
1047                        //$("#mobile_header .header_smallcart").trigger("click");
1048                        mobile_minicart_toggle("3");
1049                    }, 6000 );
1050
1051
1052           }
1053
1054
1055        function OpenSmallWishCart()
1056            {
1057                
1058            }
1059
1060       function submitsearchform(obj)
1061           {
1062               if (cookieconsent == true) {
1063                    
1064               }
1065                if (typeof ( obj ) != 'undefined')
1066                {
1067                    $(obj).submit();
1068
1069                    search_form_submited = true;
1070
1071                    // Find the submit button within the form
1072                    var submitButton = $(obj).find("button[type='submit']");
1073                      
1074                    // Disable the submit button
1075                    submitButton.prop("disabled", true);
1076 
1077                }
1078           else
1079                {
1080                    $('form[name="SearchFrm"]').submit();
1081
1082                    search_form_submited = true;
1083                     
1084                    // Find the submit button within the form
1085                    var submitButton = $('form[name="SearchFrm"]').find("button[type='submit']");
1086            
1087                    // Disable the submit button
1088                    submitButton.prop("disabled", true);
1089
1090                }
1091               
1092                    return false;
1093           }
1094
1095 let search_form_submited = false;
1096
1097 // Attach the function to the window's load event
1098     function enableSubmitButton() {
1099       try {  
1100	 
1101            if ( $("#Button1").length  ){
1102                document.getElementById("Button1").disabled = false;
1103            }
1104
1105            if ( $("#right_srch_str").length  ){
1106                document.getElementById("right_srch_str").disabled = false;
1107            }
1108            
1109            var searchForms = $("form[name='SearchFrm']");
1110            searchForms.each(function(index) {
1111                // Find the submit button within each form
1112                var submitButton = $(this).find("button[type='submit']");
1113                // Disable the submit button
1114                submitButton.prop("disabled", true);
1115            });
1116
1117        } catch (e) {}
1118    }
1119 window.addEventListener("unload", enableSubmitButton);
1120
1121	   function change_product_box_total(id)
1122                    {
1123                        var Num_After_dot = "2";
1124                        var temp_dropDecimals = 0;
1125                        if (Num_After_dot == "1" || Num_After_dot == "2" )
1126                        {
1127                            temp_dropDecimals = 2;
1128                        }
1129
1130                        var quan      = $(id).parents("li").find("input[name=quantity]").val();
1131                        var quan_base = $(id).parents("li").attr("quan_base");
1132                        if(!$.isNumeric(quan_base)){quan_base = 1;}
1133                        if(!$.isNumeric(quan)){quan = 1;}
1134
1135                        var newtotal = $(id).attr("price")*quan/quan_base;
1136                        $(id).html(newtotal.toFixed(Num_After_dot)).formatCurrency({
1137                             groupDigits: true , symbol: '',
1138                                 roundToDecimalPlace: temp_dropDecimals
1139                            });
1140	                }
1141
1142      
1143           $(window).on("load",function()
1144           {
1145                     $(".slider-auto").css( 'height' , $(".slider-auto img:first").height()+'px');
1146                     $(".slider-auto").css( 'width' , $(".slider-auto img:first").width()+'px');
1147                     $(".slider-700").css( 'height' , $(".slider-700 img:first").height()+'px');
1148                     $(".slider-940").css( 'height' , $(".slider-940 img:first").height()+'px');
1149                    
1150                    
1151
1152    resize_menu_items ();
1153                  
1154}
1155
1156                   
1157             );
1158
1159            
1160
1161              
1162 
1163          function user_connect()
1164          {
1165                $.get("/siteservices.asp?service=user_connect", function(data)
1166                    {
1167                        lightpopup (data,'user_connect') ;
1168                        
1169                        dynamicform();
1170                        
1171                    });
1172           }
1173
1174function es_tooltip () 
1175             {
1176                        $(".es_tooltip").qtip({
1177                        overwrite: false,
1178                        position: {
1179                            
1180                            my: "top center",
1181                            at: "bottom center",
1182                            viewport: $(document.body)
1183
1184                    
1185                        },
1186                        style: {
1187                            classes: "qtip-light qtip-rounded" 
1188                        },
1189                        content: {
1190                            
1191                            text: function (event, api) { return $(this).find("span.content").html(); }
1192                        },
1193                        show: {
1194                            ready: false  
1195                        }
1196
1197                        
1198                    });
1199            }
1200        
1201var resizeTimer;
1202
1203 
1204
1205 if( $(window).width() <= 800 )
1206 {
1207    if ( $("#mobile_header").length )
1208        {}
1209        else
1210        {
1211            clearTimeout(resizeTimer);
1212            resizeTimer = setTimeout(function() {
1213                    
1214            $.ajax({
1215                url: get_factory_url( "mobile_header" ) ,
1216                }).done(function (data)
1217                {
1218                    $("#mobile_header_holder").html(data)
1219                    dynamicform();
1220                 
1221                });
1222    
1223            }, 250);
1224        }
1225 }
1226
1227 $(window).on('resize', function ()
1228           {
1229              if ( $("#mobile_header").length )
1230                {}
1231                else
1232                {
1233                    clearTimeout(resizeTimer);
1234                    resizeTimer = setTimeout(function() {
1235                            
1236                    $.ajax({
1237                        url:get_factory_url( "mobile_header" ),
1238                        }).done(function (data)
1239                        {
1240                            $("#mobile_header_holder").html(data)
1241                              dynamicform();
1242                        });
1243            
1244                    }, 250);
1245                }
1246              
1247              })
1248 
1249
1250
1251
1252           $(window).on('resize scroll', function ()
1253           {
1254              
1255            $(document).ready (function()
1256            {
1257            
1258                
1259
1260
1261               $("img[data-src]").each(function()
1262                {
1263                    if ( $(this).isInViewportScroll() )
1264                    { 
1265                        $(this).attr("src" , $(this).attr("data-src") );
1266                        $(this).removeAttr("data-src") ;
1267                        calculate_icons_position();
1268                    }
1269                });
1270              
1271              
1272              if ( $("div.lazyscroll").length)
1273                {
1274                    $("div.lazyscroll").each(function ()
1275                        {
1276                            var element = $(this);
1277                            //console.log ($(this).attr("id"));
1278                            if ( $(element).isInViewport()  )
1279                            {   $(element).removeClass("lazyscroll");
1280                                $.ajax({
1281                                url: get_factory_url ( $(this).attr("id") ) ,
1282                                }).done(function (data)
1283                                {
1284                                    
1285                                    $(element).html(data);
1286                                    $(element).show();
1287                                      dynamicform();
1288                                      mobile_breadcrumb();
1289                                });
1290                            }
1291                        }); 
1292                }
1293                resize_menu_items ();
1294            });     
1295           });
1296           
1297            $(document).ready (function()
1298            {
1299
1300                $("img[data-src]").each(function()
1301                {
1302                        if ( $(this).isInViewport() )
1303                        { 
1304                        $(this).attr("src" , $(this).attr("data-src") );
1305                        $(this).removeAttr("data-src") ;
1306                          
1307                        }
1308                });
1309
1310                $(".sectionitems .owl-carousel img[data-src]").each(function(){
1311                    $(this).attr("src" , $(this).attr("data-src") );
1312                    $(this).removeAttr("data-src") ;
1313                });
1314
1315                $(".megamenu img[data-src]").each(function()
1316                {
1317                        $(this).attr("src" , $(this).attr("data-src") );
1318                        $(this).removeAttr("data-src") ;
1319                });
1320                
1321                $(".MiscFieldsIcons img[data-src]").each(function()
1322                {
1323                        $(this).attr("src" , $(this).attr("data-src") );
1324                        $(this).removeAttr("data-src") ;
1325                });
1326                
1327                 
1328                $("#item-relativeitems-popup  img[data-src]").each(function()
1329                {
1330                        $(this).attr("src" , $(this).attr("data-src") );
1331                        $(this).removeAttr("data-src") ;
1332                });
1333  
1334                if ( $("div.lazyload").length)
1335                {
1336                $("div.lazyload").each(function ()
1337                {    
1338                    var element = $(this);
1339                    var element_id = $(this).attr("id");
1340                    $.ajax({
1341                    url: get_factory_url( element_id ),
1342                    }).done(function (data)
1343                    {
1344                       
1345                        $(element).html(data);
1346                            dynamicform();
1347                            mobile_breadcrumb();
1348                            datecountdown();
1349                         
1350                        $(element).find("img[data-src]").each(function()
1351                        {
1352                            $(this).attr( "src" , $(this).attr("data-src") );
1353                            $(this).removeAttr("data-src") ;
1354                        });
1355
1356                    });
1357                }); 
1358                }
1359            
1360         
1361             
1362            es_tooltip();
1363
1364
1365
1366                
1367                //currencies
1368                $("body").on( "click" , ".currencies_switch a, .currencies_switch input[type='radio']" , function () {
1369                    var current_currancy = $(this);
1370                    if (current_currancy.hasClass("active")) { return false; }
1371                    var currency_value = current_currancy.attr("data");
1372                    if (current_currancy.is("input[type='radio']")) {
1373                        currency_value = current_currancy.val();
1374                    }
1375                    if (!currency_value || currency_value == "") {
1376                        return false;
1377                    }
1378                    $.ajax({
1379                        url: "/siteservices.asp?service=currencies_switch&params="+ currency_value ,
1380                        async:false,
1381                    }).done(function(data) 
1382                    {
1383                        if (data == "1")
1384                        {
1385                            location.reload();
1386                        }
1387                    });
1388                    return false;
1389                });
1390
1391                $("body").on( "change" , ".currencies_switch select" , function () {
1392                    var currency_value = $(this).val();
1393                    if (!currency_value || currency_value == "") {
1394                        return false;
1395                    }
1396                    $.ajax({
1397                        url: "/siteservices.asp?service=currencies_switch&params="+ currency_value ,
1398                        async:false,
1399                    }).done(function(data) 
1400                    {
1401                        if (data == "1")
1402                        {
1403                            location.reload();
1404                        }
1405                    });
1406                });
1407
1408
1409                //prevent from contact header close when autocomplete is chosen
1410                
1411                setTimeout(function(){
1412                        $(".header_contactform .contactform form.widget_form input.form-control[type='text']").on('focus', function() {
1413                        $('.header_contactform .block.contactform').addClass('hovered');
1414                    }).on('blur', function() {
1415                setTimeout(function(){
1416                    $('.header_contactform .block.contactform').removeClass('hovered');
1417                    },3000);
1418                });    
1419
1420                        $(".header_contactform .contactform form input[type='text']").on('focus', function() {
1421                        $('.header_contactform .block.contactform').addClass('hovered');
1422                    }).on('blur', function() {
1423                setTimeout(function(){
1424                        $('.header_contactform .block.contactform').removeClass('hovered');
1425                    },3000);
1426                });  
1427                }, 1000);
1428
1429                
1430
1431                
1432                $("body").on({
1433                    mouseenter: function(){
1434                        $(this).find(".image_1").hide();
1435                        $(this).find(".image_2").show();
1436                    },
1437                    mouseleave: function(){
1438                       $(this).find(".image_2").hide();
1439                        $(this).find(".image_1").show();
1440                    }
1441                }, '.icon_switch');
1442
1443
1444
1445
1446
1447
1448
1449 
1450                
1451
1452                //numbering
1453                $(".es_numbering_element").each(function()
1454                {
1455                   
1456                    
1457                         $(this).find(".ProperyName").addClass("es_number_title");
1458                    $(this).find(".ProperyLinkName").addClass("es_number_title");
1459                    $(this).find(".product-deliverydate > p").addClass("es_number_title");
1460                    
1461                   
1462               });
1463
1464                $(".es_numbering_container").each(function()
1465                {
1466                    var numbering = 1;
1467                    var titlecounter = $(".es_number_title").length  ;
1468                    $(".es_number_title").each(function(){
1469
1470                        if ( titlecounter > 1 )
1471                        {
1472                            $(this).prepend("<span class='es_number'>"+ numbering +"</span>");
1473                        }
1474                        else
1475                        {
1476                            $(this).addClass("nonumber");
1477                        }
1478                        numbering = numbering + 1 ;
1479                    });
1480                    $(".es_numbering_layout_4 .es_number_title").each(function(){
1481                        $(this).append("<span class='border-line'></span>");
1482                    });
1483                      
1484                });
1485
1486
1487                
1488
1489                $("body").on({
1490                    mouseenter: function(){
1491                      $(this).parent().find(".ItemBoxPromotionInfo").show();
1492                    },
1493                    mouseleave: function(){
1494                      $(this).parent().find(".ItemBoxPromotionInfo").hide();
1495                    }
1496                }, ".ProductBox_promotion .promotion_image");
1497
1498
1499
1500
1501                 
1502                $("body").on("click",".button_open_id", function()
1503                {
1504                    var widget_open_id = $( this ).attr("openonwidgetid");
1505                   
1506                        if ($(widget_open_id).is(":visible" ))
1507                        {
1508                            $(widget_open_id).hide();
1509                        }
1510                        else
1511                        {
1512                            $(widget_open_id).show();
1513                      
1514                        }
1515                       
1516                    return false;
1517
1518                });      
1519          
1520               //menu images switch
1521                $("body").on({
1522                    mouseenter: function(){
1523                        $(this).find("img").eq(0).attr("src",$(this).find("img").eq(0).attr("image-hover"))
1524                    },
1525                    mouseleave: function(){
1526                          $(this).find("img").eq(0).attr("src",$(this).find("img").eq(0).attr("image-source"))
1527                    }
1528                }, ".switch_image");
1529
1530
1531 
1532               // quickview start
1533               $("body").on("click",".quickview_lightpopup .image" , function() {
1534                   var temp_src = $(this).find("img").attr("src");
1535                   $(".boxItem  .image img").each( function() {
1536                       if ( $(this).attr("src") == temp_src )
1537                       {
1538                           $(this).parents(".boxItem").find(".product_quickview").trigger("click");
1539                       }
1540                   });
1541                   return false;
1542               });
1543
1544               $("body").on("click",".boxItem .product_quickview",function(){
1545                  
1546                   var next_item     = '';
1547                   var previous_item = '';
1548
1549                   if ( $(this).parents(".boxItem").next().is('li') )
1550                   {
1551                       tempobj   = $(this).parents(".boxItem").next().find(".boxPicture");
1552                       next_item = tempobj.html();
1553                   }
1554
1555                   if ( $(this).parents(".boxItem").prev().is('li') )
1556                   {
1557                       tempobj = $(this).parents(".boxItem").prev().find(".boxPicture");
1558                       previous_item = tempobj.html();
1559                   }
1560
1561                   
1562                       data = "<div class='product'><a href='"+$(this).parents(".boxItem").find(".image").attr("href")+"' id='quickview_product_link' class='hide'>ìîòáø ìãó îåöø</a><div class='loader'></div><iframe id='quickview_iframe' scrolling='no' frameborder='0' width='100%' src='"+$(this).attr("href")+"'></iframe></div><div class='nav'><div class='navImage'><span class='imgnavSpan'>äáà</span>" +  previous_item +" </div><div class='navImage'><span class='imgnavSpan'>
1562ä÷åãí</span> "+ next_item +"</div></div>";
1563                   
1564                   
1565
1566
1567                   lightpopup (data,"quickview_lightpopup");
1568                   $("#quickview_iframe").hide();
1569                   $("#quickview_iframe").on("load" ,function(){
1570                       $("#quickview_iframe").show();
1571                       $(".loader").hide();
1572                   });
1573                  
1574                   $('.navImage').each(function () {
1575                       var navspan = "";
1576                       navspan = $(this).find(".imgnavSpan");
1577                       $(this).find(".image").append(navspan);
1578                   });
1579                   return false;
1580               });
1581               // quickview end
1582
1583               /*whatsapp start*/
1584
1585                $("body").on("click",".wame_whatsapp",function(){
1586                    if (cookieconsent == true) {
1587                        
1588                    }
1589                });
1590
1591               $("body").on("click",".whatsapp_share,.header_whatsapp,a.fa-whatsapp,#stickey_whatsapp,.whatsapp.btn",function(){
1592                  
1593                   var whatsapp = $(this);
1594                   var whatsapp_product_image = $('meta[property="og:image"]').attr('content');
1595                   var whatsapp_product_url   = window.location.href;
1596                   var whatsapp_product_title = $(document).find("title").text();
1597                    
1598                   if ( $(this).hasClass("linktopage") )
1599                   {
1600                       var whatsapp_product_image = $(this).attr('data-image');
1601                       var whatsapp_product_url   = $(this).attr('data-href');
1602                       var whatsapp_product_title = $(this).attr('data-title');
1603                   }
1604                
1605                 if (cookieconsent == true) {
1606                    
1607               }
1608
1609                   $.ajax({
1610                       url: "/siteservices.asp?service=whatsapp_save&title="+whatsapp_product_title+"&image="+ whatsapp_product_image +"&url="+ whatsapp_product_url ,
1611                       async:false,
1612                   }).done(function(data) 
1613                   {
1614                       var redirect_url = $(whatsapp).attr("href") + "https://www.medicon.co.il/whatsapp.asp?id=" + data ;
1615                       //window.location.href = redirect_url;
1616                       window.open(redirect_url);
1617                   });
1618                  
1619                   return false;
1620               });  
1621               /*whatsapp end*/
1622
1623      
1624
1625
1626                  $("li.parent:last-child").addClass("last");
1627 
1628                    $("body").on("click",".filter_link",function(){
1629                        // $(this).parent().parent().find(".misc_chk").prop("checked", true);
1630                        
1631                        if ( $(this).parent().parent().find(".misc_chk").is(":checked") == true ){
1632                            $(this).parent().parent().find(".misc_chk").prop("checked", false);
1633                        }
1634
1635                        $(this).parent().parent().find(".misc_chk").trigger("click");
1636                        return false;
1637                    });
1638
1639                    $("body").on("click",".miscfileds .misc_chk",function(){
1640
1641                        var checkedCount = $(".miscfileds .misc_chk:checked").length;
1642                        var sameFieldCheckedCount = $(this).closest(".misc_section").find(".misc_chk:checked").not(this).length;
1643
1644                        if (sameFieldCheckedCount >= 2) {
1645                            alert("You can only select up to 2 options per field");
1646                            $(this).prop("checked", false);
1647                        } else if (checkedCount > 4 && sameFieldCheckedCount == 0) {
1648                            alert("ðéúï ìáçåø òã 4 îàôééðéí");
1649                            $(this).prop("checked", false);
1650                        } else {
1651                            location.href = $(this).val();
1652                        }
1653
1654                        
1655                    });
1656
1657                 dependonwidget();
1658          
1659                
1660        dynamicStickyCart();
1661        $("body").on( "submit" , ".NewsLatterFrm", function()
1662        {
1663            var form = $(this) ;
1664            if ( $(this).find("input[name='FirstName']").length )
1665            {
1666                if ( $(this).find("input[name='FirstName']").val() == "" )
1667                    {
1668                        alert("äëðñ ùí îìà");
1669                        $(this).find("input[name='FirstName']").focus();
1670                        return false;
1671                    }
1672            }
1673         
1674        var emailInput = $(this).find("input[name='Email']");
1675        var email = $.trim(emailInput.val());
1676        var emailPlaceholder = emailInput.attr("placeholder") || "";
1677        if (email === emailPlaceholder) email = "";
1678        if (email != "")
1679        {
1680            var i=email.indexOf("@");
1681            var i2=email.indexOf("@",i+1);
1682            var j=email.indexOf(".",i);
1683            var k=email.indexOf(",");
1684            var kk=email.indexOf(" ");
1685            var jj=email.lastIndexOf(".") + 1;
1686            var leng = email.length;
1687            if ((i>0)&&(j>(i+1))&&(k==-1)&&(kk==-1)&&(leng-jj >= 2)&&(leng-jj <= 3)&&(i2==-1))
1688            {
1689
1690            }
1691            else
1692            {
1693                alert("ëúåáú äîééì ùâåéä");
1694                emailInput.focus();
1695                return false;
1696            }
1697        }
1698        else
1699        {
1700            alert("ëúåáú äîééì ùâåéä");
1701            emailInput.focus();
1702            return false;
1703        }
1704        
1705        if ( $(this).find("input[name='agreetoterms']").length )
1706        {
1707            if ( $(this).find("input[name='agreetoterms']").is(":checked") == false )
1708            {
1709                $(this).find("input[name='agreetoterms']").focus();
1710                alert("àðà äñëí ìú÷ðåï äàúø");
1711                return false;
1712            }
1713        }
1714
1715        
1716            if ( $(this).find("input[name='privacy']").is(":checked") == false )
1717            {
1718                $(this).find("input[name='privacy']").focus();
1719                alert("éù ìñîï àú äúéáä ëãé ìàùø àú äúðàéí åäîãéðéåú.");
1720                return false;
1721            }
1722        
1723
1724        $.post('/siteservices.asp?service=addtonewsletter', $(form).serialize(), function(data)
1725        {
1726          
1727            data = data + '|||';
1728            data = data.split("|");
1729        if (data[0]=="1")
1730        {
1731            $(form).parent().html('<div class=\'success alert alert-success\'>'+data[1]+'</div>');
1732            $(form).html("");
1733        }
1734        else
1735        {
1736            $(form).find(".status").addClass("error alert alert-danger");
1737            $(form).find(".status").html(data[1]);
1738        }
1739        return false;
1740        } );
1741
1742        return false
1743        });
1744
1745              
1746                   
1747                    $.extend($.validator.messages,
1748                           {
1749                               required: "ùãä æä äéðå çåáä",
1750                               remote: "àðà ú÷ï ùãä æä.",
1751                               email: "àðà äëðñ ëúåáú îééì ú÷éðä.",
1752                               url: "àðà äëðñ ëúåáú URL ú÷éðä.",
1753                               date: "àðà äëðñ úàøéê ðëåï.",
1754                                dateISO: "äëðñ îéãò ðëåï.",
1755                                number: "àðà äëðñ îñôø ú÷éï.",
1756                               digits: "àðà äëðñ ø÷ ñôøåú.",
1757                               creditcard: "äëðñ îñôø ëøèéñ àùøàé ú÷éï.",
1758                      equalTo: "äëðñ ùåá àú àåúå äòøê.",
1759                               maxlength: $.validator.format("ìà ðéúï ìäëðéñ éåúø î {0} úååéí."),
1760                        minlength: $.validator.format("àðà äëðñ ìôçåú {0} úååéí."),
1761                        rangelength: $.validator.format("àðà äëðñ òøê áéï {0} ì {1} úååéí."),
1762                        range: $.validator.format("àðà äëðñ òøê áéï {0} ì {1} úååéí."),
1763                        max: $.validator.format("{àðà äëðñ òøê ôçåú àå ùååä ì {0"),
1764                        min: $.validator.format("{àðà äëðñ òøê âãåì àå ùååä ì {0")
1765                        });
1766
1767                      dynamicform();
1768                 
1769
1770                      
1771
1772                    widget_form();
1773                   
1774                   $("body").on("click",".lightpopup.html",function()
1775                   { 
1776                        var lightpopup_id    = $(this).attr("lightpopup_id") ;
1777                        var lightpopup_class = $(this).attr("lightpopup_class") ;
1778                        var lightpopup_html  = $('#'+lightpopup_id).html();
1779                        lightpopup(lightpopup_html , lightpopup_class);
1780                        return false;
1781                   });
1782
1783                   $("body").on("click","#image_mobile_enlarge",function()
1784                   { 
1785                       
1786                       if  ( $("#enlargeIcon a").length )
1787                       {
1788                           $("#enlargeIcon a").trigger("click");
1789                       }
1790                       else
1791                       {
1792                           var lightpopup_id    = $(this).attr("lightpopup_id") ;
1793                           var lightpopup_class = $(this).attr("lightpopup_class") ;
1794                           var lightpopup_html  = $('#'+lightpopup_id).html();
1795                           lightpopup(lightpopup_html , lightpopup_class);
1796                           var image_src = $('.'+lightpopup_class).find("img").attr("src");
1797                           var image_src = image_src.replace("_large", "");
1798                           $('.'+lightpopup_class).find("img").attr("src",image_src);
1799                       }
1800
1801                       return false;
1802                       
1803                   });
1804
1805                    $("body").on("click",".lightpopup.iframe",function(){
1806                       lightpopup("<iframe scrolling='no' frameborder='0' width='100%' src="+$(this).attr("href")+">" , $(this).attr("lightpopup_class") );
1807                       return false;
1808                    });
1809
1810                    $("body").on("click",".user_connect .switchregister",function(){
1811                        $(".user_connect #user_login_div").hide();
1812                        $(".user_connect #user_account_recovery").hide();
1813                        $(".user_connect .user_account_recovery").hide();
1814                        $(".user_connect #user_account_register").show();
1815                    });
1816
1817
1818                    $("body").on("click",".account_verification_new_number",function(){
1819                            var $section = $(this).parents(".user_phone_login_container");
1820                            $section.find(".user_phone_login_div").show();
1821                            $section.find(".account_verification_div").hide();
1822                    });
1823
1824                    $("body").on("click",".user_connect .switchpassword",function(){
1825                        $(".user_connect #user_login_div").hide();
1826                        $(".user_connect #user_account_recovery").show();
1827                        $(".user_connect .user_account_recovery").show();
1828                    });
1829
1830                    $("body").on("click",".account_verification_resend_number",function(){
1831                        var $section = $(this).parents(".user_phone_login_container");
1832                        $section.find(".messagediv").html("");
1833                        $section.find(".user_phone_login_form").submit();
1834                    });
1835 
1836                    $("body").on("click",".switchlogin",function(){
1837                        $(".user_connect #user_login_div").show();
1838                        $(".user_connect #user_account_recovery").hide();
1839                        $(".user_connect .user_account_recovery").hide();
1840
1841                        $(".user_account_recovery").hide();
1842                        $(".user_phone_login_container").show();
1843                    });
1844 
1845                    $("body").on("click",".user_phone_login_switchpassword",function(){
1846                          
1847                            var $section = $(this).parents(".user_phone_login_container").parent();
1848                            $section.find(".user_phone_login_container").hide();
1849                            $section.find(".user_account_recovery").show();
1850                        });
1851 
1852                    $('form[name="SearchFrm"]').submit(function( event )
1853                        {
1854                                if (cookieconsent == true) {
1855                            
1856                            }
1857                        });
1858 
1859                    $('.jcarousel-skin-tango').jcarousel({ });
1860$('#sidebar .accordion ul').dcAccordion({eventType: 'click',hoverDelay: 0,menuClose: true,autoClose: true,saveState: false,autoExpand: true,classExpand: 'current',classDisable: '',showCount: false,disableLink: true,cookie: 'categories-accordion',speed: 'slow'});
1861$jScroller.add('.jcroller ','.jcroller .spaciels-wrap','up',1,true);$jScroller.start();
1862$('#footer .manufactores ul').jcarousel({ });
1863
1864
1865                      if( $(window).width() < 1100 )
1866                          {
1867                              $("#scroll-all").hide();
1868                              $("#floating-icons .icons-box").hide();
1869                              $("#floating-icons .icons-box.accessibility").show();
1870                          }
1871                          else
1872                          {
1873                            $("#scroll-all").show();
1874                            $("#floating-icons .icons-box").show();
1875                          }
1876
1877            
1878
1879                      $(window).resize(function()
1880                        {
1881                          
1882                          if( $(window).width() < 1100 )
1883            	            {
1884                                  $("#scroll-all").hide();
1885                                  $("#floating-icons .icons-box").hide();
1886                                  $("#floating-icons .icons-box.accessibility").show();
1887                            }
1888                            else
1889                            {
1890                                 $("#scroll-all").show();
1891                                 $("#floating-icons .icons-box").show();
1892                            }
1893                        });
1894
1895                        scrollerrows()
1896                        $("#scroll-full").click(function(){
1897                        $("html,body").animate({ scrollTop:0});
1898                        });
1899                        $("#scroll-bottom").click(function(){
1900                        $("html,body").animate({ scrollTop:20000});
1901                        });
1902
1903                     
1904                    
1905                     
1906                        $("body").on("change",".productbox_sons_select select",function()
1907                        {
1908                           $(this).parents("li").find(".product-box-prices .priceholder").html($('option:selected', this).attr('price'));
1909                                                                                                          
1910                             if ( $('option:selected', this).attr('regprice') != "0" )
1911                             {
1912                                $(this).parents("li").find(".product-box-prices .reg-price .value span").html($('option:selected', this).attr('regprice'));
1913                             }
1914                         });
1915
1916                         $("body").on("change",".productbox_product_son .prs_radio select",function()
1917                         {
1918                              
1919
1920                             if ( $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html() != $(this).parent("p").text()  )
1921                             {
1922                                 $(this).parents(".productbox_product_son").find("input[name=quantity]").val("0");
1923                             }
1924                                
1925                        
1926                             $(this).parents(".productbox_product_son").find(".prs_prices .price .value").html( $('option:selected', this).attr('price')  ) ;
1927
1928                             if ($('option:selected', this).attr('regprice') != "0")
1929                             {
1930                                $(this).parents(".productbox_product_son").find(".prs_prices .regprice .value").html($('option:selected', this).attr('regprice'));
1931                             }
1932
1933                             $(this).parents(".productbox_product_son").find(".price_unit_line .quantity_base").html( $('option:selected', this).attr("quan_base") );
1934                             $(this).parents(".productbox_product_son").find(".price_unit_line .dimension").html( $('option:selected', this).attr("dimensionname") );
1935                             $(this).parents(".productbox_product_son").find(".price_unit_line .unit_price .value").html( $('option:selected', this).attr("price") );
1936                             $(this).parents(".productbox_product_son").find(".size").html( $('option:selected', this).attr("dimensionname") );
1937
1938
1939
1940
1941                             if ( $('option:selected', this).attr('regprice') != '0' )
1942                             {
1943                                 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").show();
1944                             }
1945                             else
1946                             {
1947                                 $(this).parents(".productbox_product_son").find(".prs_prices .regprice").hide();
1948                             }
1949                             $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html( $(this).parent("p").text())
1950
1951                         });
1952
1953                           $("body").on("click",".productbox_product_son .prs_radio .product_son",function()
1954                           {
1955                               
1956                               
1957                               $(this).parents(".boxItem ").find(".sale-pr
1957ice .priceholder").html( $(this).attr("price") );
1958
1959                               if ( $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html() != $(this).parent("p").text()  )
1960                               {
1961                                   $(this).parents(".productbox_product_son").find("input[name=quantity]").val("0");
1962                               }
1963                                
1964                               $(this).parents(".productbox_product_son").find(".prs_prices .price .value").html( $(this).attr("price"));
1965                               $(this).parents(".productbox_product_son").find(".prs_prices .regprice .value").html( $(this).attr("regprice"));
1966                               $(this).parents(".productbox_product_son").find(".price_unit_line .quantity_base").html( $(this).attr("quan_base") );
1967                               $(this).parents(".productbox_product_son").find(".price_unit_line .dimension").html( $(this).attr("dimensionname") );
1968                               $(this).parents(".productbox_product_son").find(".price_unit_line .unit_price .value").html( $(this).attr("price") );
1969                               $(this).parents(".productbox_product_son").find(".size").html( $(this).attr("dimensionname") );
1970                                
1971                               if ( $(this).attr("regprice") != '0' && $(this).attr("regprice") != $(this).attr("price") )
1972                                   {
1973                                        $(this).parents(".productbox_product_son").find(".prs_prices .regprice").show();
1974                                   }
1975                               else
1976                                   {
1977                                        $(this).parents(".productbox_product_son").find(".prs_prices .regprice").hide();
1978                                   }
1979
1980                            
1981                                $(this).parents(".productbox_product_son").find(".prs_prices .text .value").html( $(this).parent("p").text() )
1982                            
1983                   });
1984
1985                       
1986                       
1987                       
1988                       let debounceTimer;
1989
1990                        $("body").on("keyup", ".productbox_product_son .prs_buttons input", function (e) {
1991                            // Allow only numeric input by removing any non-numeric characters
1992                            const inputVal = $(this).val();
1993                            if (!/^\d*$/.test(inputVal)) {
1994                                $(this).val(inputVal.replace(/\D/g, "")); // Replace non-numeric characters
1995                                return;
1996                            }
1997 
1998                            // Debounce to reduce the frequency of AJAX requests on typing
1999                            clearTimeout(debounceTimer);
2000                            debounceTimer = setTimeout(() => {
2001                                const $parent = $(this).parents(".productbox_product_son");
2002                                const itemident = $parent.attr("itemident");
2003
2004                                let objid;
2005                                if ($parent.find("select").length) {
2006                                    objid = $parent.find("select").val();
2007                                } else {
2008                                    objid = $parent.find("input:checked").val();
2009                                    if (typeof objid === "undefined") {
2010                                        $parent.find("input").prop("checked", true);
2011                                        objid = $parent.find("input:checked").val();
2012                                    }
2013                                }
2014
2015                                // Make AJAX request
2016                                $.get('/siteservices.asp?service=productbox_addproductson&params=' + objid + '|' + $(this).val() + '|' + itemident, function (data) {
2017                                    const [status, message] = data.split("|");
2018
2019                                    if (status === "1") {
2020                                        Ajax_updateCartInfo();
2021                                    } else if (message) {
2022                                        alert(message);
2023                                    }
2024                                });
2025                            }, 300); // Wait 300ms after the last keyup
2026                        });
2027                       
2028                       
2029                       
2030                       
2031                       /*
2032                       $("body").on("keyup",".productbox_product_son .prs_buttons input",function(e){
2033                        if(e.keyCode == 13)
2034                            {
2035                                var itemident = $(this).parents(".productbox_product_son").attr("itemident") ;
2036                                
2037                                if ( $(this).parents(".productbox_product_son").find("select").length )
2038                                {
2039                                    var objid = $(this).parents(".productbox_product_son").find("select").val();
2040                                }
2041                                else
2042                                {
2043                                    var objid = $(this).parents(".productbox_product_son").find("input:checked").val();
2044                                    if ( typeof objid == "undefined" )
2045                                    {
2046                                        $(this).parents(".productbox_product_son").find("input").prop("checked", true);
2047                                        var objid = $(this).parents(".productbox_product_son").find("input:checked").val();
2048                                    }
2049                                }    
2050
2051                                $.get('/siteservices.asp?service=productbox_addproductson&params='+objid+'|'+$(this).val()+'|'+itemident, function(data)
2052                                {
2053                                        var answer_array = data.split("|");
2054                                        var status  = answer_array[0];
2055                                        var message = answer_array[1];
2056
2057                                        if (status == "1")
2058                                        {
2059                                            Ajax_updateCartInfo();
2060                                        }
2061                                        else
2062                                        {
2063                                            if ( message != "" )
2064                                            {
2065                                                alert ( message ) ;
2066                                            }
2067                                        }
2068                                })
2069
2070                            }
2071                        });
2072                    */
2073
2074                        $("body").on("click",".productbox_product_son_links .product_son_link",function(){
2075                        if ( $(this).hasClass("switch_image") )
2076                        { 
2077                            var bigimage = $(this).attr("bigimage");
2078                           
2079                            $(this).parents(".boxItem").find(".image img").attr("src", bigimage )  ;
2080                            }
2081
2082                         $(this).parent().find(".product_son_link").each(function(){
2083                            $(this).removeClass("current");
2084                         });
2085                         $(this).addClass("current");
2086                   
2087                        if (cookieconsent == true) {
2088
2089                            
2090                        }
2091                           
2092
2093
2094                          var Num_After_dot = "2";
2095                          var temp_dropDecimals = 0;
2096                          if (Num_After_dot == "1" || Num_After_dot == "2" )
2097                          {
2098                            temp_dropDecimals = 2;
2099                          }
2100
2101                          var pricespanid =  $(this).parents("li").find(".priceholder");
2102                          var newtotal = $(this).attr("price")*1;
2103                          $("#"+pricespanid).attr("price",newtotal.toFixed(Num_After_dot)).formatCurrency(
2104                            {
2105                             groupDigits: true , symbol: '',
2106                             roundToDecimalPlace: temp_dropDecimals
2107                            });
2108                            change_product_box_total(pricespanid);
2109                        return false;
2110                    });
2111                    // product son dynamic start
2112                    $(".productbox_product_son_dynamic .dinamicitemsons .its_add_btn").click(function()
2113                    {
2114
2115                        var obj = $(this).parents(".its_information");
2116                        if ( obj.find(".its_itemid span").length > 0 )
2117                        {
2118                            
2119                            return addme_cart( obj.find(".its_itemid span").html(), 0, obj.find(".its_quantity").val() );
2120                            return false;
2121                            
2122                        }
2123                        else
2124                        {
2125                           /*
2126                                $(".productbox_product_son_dynamic .dinamicitemsons .box").each(function()
2127                                {
2128                                    if ( $(this).find(".misc.image.current").length == 0 )
2129                                    {
2130                                        var dinamicitemsons_label = $(this).find("h3").text();
2131                                        alert(dinamicitemsons_label );         
2132                                        return false;
2133                                    }
2134                                    if ( $(this).find("select").val() == "" )
2135                                    {
2136                                        var dinamicitemsons_label = $(this).find("h3").text();
2137                                        alert(dinamicitemsons_label );         
2138                                        return false;
2139                                    }
2140                                });
2141                            */
2142                            
2143                            alert("áçø îàôééï");
2144                            return false;
2145                        }
2146                    });
2147
2148
2149                    $("body").on("click",".productbox_product_son_dynamic .dinamicitemsons a.misc",function()
2150                    {
2151                         
2152                        $(this).parent('.box').find('.currentselect').html($(this).attr("miscOptionValue"));
2153                        $(this).parent('.box').find('.misc').removeClass('current');
2154                        $(this).addClass('current');
2155                        var miscOptionId = '';
2156
2157                        $(this).parents(".dinamicitemsons").find('a.misc.current').each(function()
2158                        {
2159                            miscOptionId = miscOptionId + $(this).attr("miscOptionId") + '~';
2160                        });
2161
2162                        $(this).parents(".dinamicitemsons").find('select.misc.current').each(function()
2163                        {
2164                            var tempoptionid = $('option:selected', this).attr('miscOptionId');
2165                            miscOptionId = miscOptionId + tempoptionid + '~';
2166                        });
2167                        var obj = $(this).parents(".dinamicitemsons").find(".its_information");
2168                        dynamicproductscall  (obj,miscOptionId);
2169                        return false;
2170                    });
2171
2172                    $("body").on("change",".productbox_product_son_dynamic .dinamicitemsons select.misc",function()
2173                    {
2174
2175                        $(this).parent('.box').find('.currentselect').html( $(this).val() );
2176                        $(this).parent('.box').find('.misc').removeClass('current');
2177
2178                        if ( $(this).val() != "" )
2179                        {
2180                            $(this).addClass('current');
2181
2182                        }
2183                        var miscOptionId = '';
2184                        $(this).parents(".dinamicitemsons").find('a.misc.current').each(function()
2185                        { miscOptionId = miscOptionId + $(this).attr("miscOptionId") + '~';
2186                        });
2187
2188
2189                        $(this).parents(".dinamicitemsons").find('select.misc.current').each(function()
2190                        {
2191                            var tempoptionid = $('option:selected', this).attr('miscOptionId');
2192                            miscOptionId = miscOptionId + tempoptionid + '~';
2193                        });
2194
2195                        var obj = $(this).parents(".dinamicitemsons").find(".its_information");
2196                        dynamicproductscall (obj,miscOptionId);
2197                        return false;
2198                    });
2199           // product son dynamic end
2200
2201
2202
2203
2204
2205                   
2206
2207
2208                    $("body").on("click",".productbox_product_son_links .add-to-cart",function()
2209                    {
2210                        if ($(this).parent().find(".product_son_link.current").length > 0 )
2211                        {
2212                            var pid   = $(this).parent().find(".product_son_link.current").attr("itemid");
2213                            var allow = $(this).parent().find(".product_son_link.current").attr("allow");
2214                            if (allow == "0")
2215                             {
2216
2217                                    if (cookieconsent == true) {
2218                                  
2219
2220                                
2221                            }
2222
2223                                 alert("äîåöø àéðå áîìàé")
2224                                 return false;
2225                             }
2226                            var quan = $(this).parents("li").find("input[name=quantity]").val();
2227                            if(!$.isNumeric(quan)){quan = 1;}
2228                            addme_cart(pid, quan , '', '', '', '', '',$(this));
2229
2230                        }
2231                        else
2232                        {
2233                            alert("áçø îéãä åäåñó ìñì");
2234                            return false;
2235                        }
2236                        return false;
2237
2238                    });
2239
2240                    $("body").on("click",".product_box_quantity a",function()
2241                    {
2242                        var obj = this;
2243
2244                        $(this).parent("div").find("input").each(function()
2245                            {
2246
2247                            var quan_multiply = 1;
2248                            if ( $(this).parents(".boxItem").attr("quan_multiply") != "" )
2249                            {
2250                                quan_multiply = $(this).parents(".boxItem").attr("quan_multiply");
2251                            }
2252                            var quan_base = 1;
2253                            if ( $(this).parents(".boxItem").attr("quan_base") != "" )
2254                            {
2255                                quan_base = $(this).parents(".boxItem").attr("quan_base");
2256                            }
2257                              
2258
2259                                if ( $(obj).hasClass("minus") )
2260                                    {
2261                                         if ($(this).val() > 1)
2262                                         {
2263                                             
2264                                             var newquantity =  ( $(this).val() - quan_multiply * 1)*1 ;
2265                                             if( newquantity % 1 != 0 )
2266                                             {
2267                                                    
2268                                                        $(this).val( newquantity );
2269                                                    
2270                                                 
2271                                             }
2272                                             else
2273                                             {
2274                                                if ( newquantity < 0 ) { newquantity = 0; }
2275                                                 $(this).val( newquantity );
2276                                             }
2277                                              
2278                                         }
2279                                         else
2280                                         {
2281                                             $(this).val(quan_base);
2282                                         }
2283                                    }
2284                                else
2285                                    {
2286                                        var newquantity = ($(this).val()*1) + (quan_multiply*1) ;   
2287
2288                                          if ( $(this).val() == 1 && quan_multiply > 1 ) {
2289                                                newquantity = $(this).val() * 1 + (quan_multiply * 1) - 1;
2290                                            }
2291                                    
2292                                        if( newquantity % 1 != 0 )
2293                                        {
2294                                            
2295                                                 $(this).val( newquantity );
2296                                            
2297                                        }
2298                                        else
2299                                        {
2300                                            $(this).val( newquantity );
2301                                        }
2302                                    
2303                                    }
2304                            });
2305                         
2306                           var pricespanid =  $(this).parents("li").find(".priceholder");
2307                           change_product_box_total(pricespanid);
2308                   return false;
2309                   });
2310
2311
2312
2313                    var clickTimeout;
2314                                $("body").on("click",".productbox_product_son .prs_buttons a",function()
2315                   { 
2316                        clearTimeout(clickTimeout);
2317 
2318                        var obj = this ;
2319                        var quan_multiply = 1;
2320                        var quan_base = 1;
2321                        var quan_min = 1;
2322                        
2323                        // Find the current boxItem and productbox_product_son to scope all operations
2324                        var currentBoxItem = $(this).closest(".boxItem");
2325                        var currentProductBox = $(this).closest(".productbox_product_son");
2326                        
2327                        var obj_itemident = currentBoxItem.attr("itemident"); 
2328                        var property = "";
2329                       
2330                        if ( currentBoxItem.find(".required-properties").length )
2331                        {
2332                            var properties_selected = "1";
2333                            currentBoxItem.find(".required-properties").each(function(){
2334                                if ( $(this).val() == "" )
2335                                {
2336                                    $(this).focus();
2337                                    alert ( $(this).find("option:first-child").text() );
2338                                    properties_selected = "0";
2339                                }
2340                                else
2341                                {
2342                                  // var ProperyId = currentBoxItem.find()  
2343                                   property = property + currentBoxItem.find("#prop_id_hid_"+obj_itemident).val() + "@" ;
2344                                  
2345                                }
2346                            });
2347
2348                            if ( properties_selected == "0" )
2349                                {
2350                                    return false;
2351                                }
2352                               // property = currentBoxItem.find("#prop_id_hid_"+obj_itemident).val();
2353                                // property = property + currentBoxItem.find("#prop_id_hid_"+obj_itemident).val() + "@" ;
2354                              
2355                        }
2356                        
2357                        if ( currentProductBox.find("select").length )
2358                        {
2359                            var objid     = currentProductBox.find("select").val();
2360                            quan_multiply = $('option:selected', currentProductBox.find("select") ).attr('quan_multiply');
2361                            quan_base     = $('option:selected', currentProductBox.find("select") ).attr('quan_base');
2362                            quan
2362_min      = $('option:selected', currentProductBox.find("select") ).attr('quan_min');
2363                        }
2364                        else
2365                        {  
2366                            var objid = currentProductBox.find("input:checked").val();
2367                             
2368                            if ( typeof objid == "undefined" )
2369                            {
2370                                currentProductBox.find("input").eq(1).prop("checked", true);
2371                                var objid = currentProductBox.find("input:checked").val();
2372                            }
2373                            if ( typeof objid == "undefined" )
2374                            {
2375                                currentProductBox.find("input").eq(0).prop("checked", true);
2376                                var objid = currentProductBox.find("input:checked").val();
2377                            }
2378
2379                            quan_multiply = currentProductBox.find("input:checked").attr('quan_multiply');
2380                            quan_base   = currentProductBox.find("input:checked").attr('quan_base');
2381                            quan_min    = currentProductBox.find("input:checked").attr('quan_min');
2382                        }
2383
2384                        var itemident =  currentProductBox.attr("itemident") ;
2385                        var objaction  = ""
2386                        
2387                        $(this).parent("div").find("input").each(function()
2388                        {
2389                            if ( $(obj).hasClass("minus") )
2390                                {
2391                                     if ($(this).val() > 0)
2392                                     {
2393                                        var quantity_calc = ($(this).val() - quan_multiply * 1) * 1;
2394                                       // console.log( quantity_calc );
2395                                        //if ( quantity_calc < quan_min  ) { quantity_calc = quan_min*1 ; }
2396                                        if ( quantity_calc < quan_min  ) { quantity_calc = 0 ; }
2397                                        
2398                                            $(this).val(quantity_calc);
2399                                        
2400                                     }
2401                                     else
2402                                     {
2403                                         $(this).val("0");
2404                                     }
2405                                }
2406                            else
2407                                {
2408                                    var quantity_calc = ($(this).val() * 1) + (quan_multiply * 1);
2409                                    if ( quantity_calc < quan_min ) { quantity_calc = quan_min*1 ; }
2410                                    
2411                                        $(this).val(quantity_calc);
2412                                    
2413                                }
2414                        });
2415
2416                        var quantity = $(obj).parent("div").find("input").val();
2417                         
2418                        
2419                       
2420
2421                        // update price
2422                        var Num_After_dot = "2";
2423                        var temp_dropDecimals = 0;
2424                        if (Num_After_dot == "1" || Num_After_dot == "2" )
2425                        {
2426                            temp_dropDecimals = 2;
2427                        }
2428
2429                        if(!$.isNumeric(quan_base)){quan_base = 1;}
2430                        if(!$.isNumeric(quantity)){quantity = 1;}
2431
2432                        
2433
2434                        var priceAttr = currentProductBox.find("input:checked").attr("price");
2435                       
2436                        if (priceAttr !== undefined && priceAttr !== "") {
2437                            if (!isNaN(quantity) && quantity !== 0 && quan_base !== 0) {
2438                                  priceAttr = priceAttr.replace(/,/g, '');
2439                                newtotal =  priceAttr  * quantity / quan_base;
2440                                 
2441                           }
2442                        }
2443 
2444
2445                       // var newtotal = currentProductBox.find("input:checked").attr("price")*quantity/quan_base;
2446                        
2447                        if ( currentProductBox.find("select").length )
2448                        {
2449                             
2450                            var currentselect = currentProductBox.find("select");
2451                            newtotal = $('option:selected',currentselect).attr('price') * quantity / quan_base;  
2452                             
2453                        }
2454                      
2455                        if (newtotal <= 0 )
2456                        {
2457                          
2458                            newtotal = currentProductBox.find(".son_saleprice").attr("price")*1;
2459                        }
2460  
2461                        
2462                        
2463
2464
2465                            if (newtotal !== undefined && newtotal.length > 0) {
2466                                    newtotal = newtotal.replace(/,/g, '');
2467                                   
2468                            } 
2469
2470
2471                            
2472
2473
2474                            currentProductBox.find(".son_saleprice").html(newtotal.toFixed(Num_After_dot)).formatCurrency({
2475                                groupDigits: true , symbol: '',
2476                                roundToDecimalPlace: temp_dropDecimals
2477                            });
2478                        
2479                         
2480                        if ( currentProductBox.find(".son_regprice").attr("price") != "" )
2481                        {
2482                            
2483                          var newregtotal = 0;
2484 
2485                          
2486                          var regPriceAttr = currentProductBox.find("input:checked").attr("regprice");
2487                          if (regPriceAttr !== undefined && regPriceAttr.length > 0) {
2488                             
2489                                regPriceAttr = regPriceAttr.replace(/,/g, '');
2490                                newregtotal = regPriceAttr*quantity/quan_base;
2491                                
2492                          }
2493                           
2494                         
2495                          if (newregtotal <= 0 )
2496                            {
2497                                newregtotal = currentProductBox.find(".son_regprice").attr("price")*1;
2498                           
2499                            }
2500
2501                            
2502                              
2503
2504                                currentProductBox.find(".son_regprice").html(newregtotal.toFixed(Num_After_dot)).formatCurrency({
2505                                    groupDigits: true , symbol: '',
2506                                    roundToDecimalPlace: temp_dropDecimals
2507                                });
2508    
2509                               
2510                            
2511
2512                        }
2513                        
2514                       
2515                        if ( currentProductBox.find("input:checked").is("[dimension_unitweight]") )
2516                            {
2517                               //property = "@-9997{=}{addtext} " + quantity + " éçé'";
2518                                
2519                               //quantity = quantity * currentProductBox.find("input:checked").attr("dimension_unitweight");
2520                               
2521                            }
2522
2523                            if ( currentBoxItem.find(".item-comment textarea") )
2524                            {
2525                              if ( currentBoxItem.find(".item-comment textarea").length )
2526                              {
2527                                property = property + "@-9997{=}{addtext}" + encodeEmojis(currentBoxItem.find(".item-comment textarea").val()) ;
2528                              }
2529                            }
2530                       
2531                            var dimension_type = "0";
2532                            if ( currentProductBox.find("input:checked").length )
2533                            {
2534                                dimension_type = currentProductBox.find("input:checked").attr("dimension");
2535                            }
2536
2537                            if ( currentProductBox.find("select").length )
2538                            {
2539                                var currentselect = currentProductBox.find("select");
2540                                dimension_type = $('option:selected',currentselect).attr("dimension");  
2541                            }
2542                            
2543                            if (  $(this).hasClass("withoutcart") ) 
2544                            {
2545
2546                            }
2547                            else
2548                            {
2549                                   
2550                                   
2551                                    clickTimeout = setTimeout(function(){
2552                                    
2553                                        $.get('/siteservices.asp?service=productbox_addproductson&params='+objid+'|'+quantity+'|'+itemident + '|' + property + '|' + dimension_type , function(data)
2554                                        {
2555                                            var answer_array = data.split("|");
2556                                            var status  = answer_array[0];
2557                                            var message = answer_array[1];
2558
2559                                            if (status == "1")
2560                                            {
2561                                                
2562                                                
2563                                                Ajax_updateCartInfo();
2564                                            }
2565                                            else
2566                                            {
2567                                                if ( message != "" )
2568                                                {
2569                                                    alert ( message ) ;
2570                                                }
2571                                            }
2572                                        })
2573                                    
2574                                    }, 1000);
2575
2576
2577                             }
2578
2579                        return false;
2580
2581
2582
2583
2584                   });
2585
2586
2587
2588
2589
2590
2591
2592   $("body").on("click",".productbox_product_son .addtocart",function()
2593                   { 
2594                        var obj   = this ;
2595                        var quan_multiply = 1;
2596                        var quan_base = 1;
2597                       
2598                        if ( $(this).parents(".productbox_product_son").find("select").length )
2599                        {
2600                            var objid     = $(this).parents(".productbox_product_son").find("select").val();
2601                            quan_multiply = $('option:selected', $(this).parents(".productbox_product_son").find("select") ).attr('quan_multiply');
2602                            quan_base     = $('option:selected', $(this).parents(".productbox_product_son").find("select") ).attr('quan_base');
2603                        }
2604                        else
2605                        {  
2606                            var objid = $(this).parents(".productbox_product_son").find("input:checked").val();
2607                             
2608                            if ( typeof objid == "undefined" )
2609                            {
2610                                $(this).parents(".productbox_product_son").find("input").eq(1).prop("checked", true);
2611                                var objid = $(this).parents(".productbox_product_son").find("input:checked").val();
2612                            }
2613                            if ( typeof objid == "undefined" )
2614                            {
2615                                $(this).parents(".productbox_product_son").find("input").eq(0).prop("checked", true);
2616                                var objid = $(this).parents(".productbox_product_son").find("input:checked").val();
2617                            }
2618
2619                            quan_multiply = $(this).parents(".productbox_product_son").find("input:checked").attr('quan_multiply');
2620                            quan_base     = $(this).parents(".productbox_product_son").find("input:checked").attr('quan_base');
2621                        }
2622
2623                        var itemident =  $(this).parents(".productbox_product_son").attr("itemident") ;
2624                        var objaction  = ""
2625                         
2626
2627                        var quantity = $(this).parents(".productbox_product_son").find("input[name='quantity']").val();
2628                          
2629                        // update price
2630                        var Num_After_dot = "2";
2631                        var temp_dropDecimals = 0;
2632                        if (Num_After_dot == "1" || Num_After_dot == "2" )
2633                        {
2634                            temp_dropDecimals = 2;
2635                        }
2636
2637                        if(!$.isNumeric(quan_base)){quan_base = 1;}
2638                        if(!$.isNumeric(quantity)){quantity = 1;}
2639
2640                        var newtotal = $(this).parents(".productbox_product_son").find("input:checked").attr("price")*quantity/quan_base;
2641                        if ( $(this).parents(".productbox_product_son").find("select").length )
2642                        {
2643                            var currentselect = $(this).parents(".productbox_product_son").find("select");
2644                            newtotal = $('option:selected',currentselect).attr('price') * quantity / quan_base;  
2645                        }
2646                      
2647                        if (newtotal <= 0 )
2648                        {
2649                            newtotal = $(this).parents(".productbox_product_son").find(".son_saleprice").attr("price")*1;
2650                        }
2651
2652                        
2653                         
2654                        if ( $(this).parents(".productbox_product_son").find(".son_regprice").attr("price") != "" )
2655                        {
2656                            var newregtotal = "";
2657                            newregtotal = $(this).parents(".productbox_product_son").find("input:checked").attr("regprice")*quantity/quan_base;
2658                            if (newregtotal <= 0 )
2659                            {
2660                                newregtotal = $(this).parents(".productbox_product_son").find(".son_regprice").attr("price")*1;
2661                            }
2662
2663                            
2664                        }
2665                        
2666                        var property = "";
2667                        var dimension_type = "0";
2668                        if ( $(this).parents(".productbox_product_son").find("input:checked").length )
2669                        {
2670                           dimension_type = $(this).parents(".productbox_product_son").find("input:checked").attr("dimension");
2671                        }
2672
2673                        if ( $(this).parents(".productbox_product_son").find("select").length )
2674                        {
2675                            var currentselect = $(this).parents(".productbox_product_son").find("select");
2676                            dimension_type = $('option:selected',currentselect).attr('dimension');  
2677                        }
2678
2679                        if ( $(this).parents(".productbox_product_son").find("input:checked").is("[dimension_unitweight]") )
2680                            {
2681                               //property = "-9997{=}{addtext} " + quantity + " éçé'";
2682                              // quantity = quantity * $(this).parents(".productbox_product_son").find("input:checked").attr("dimension_unitweight");
2683                            }
2684
2685
2686                
2687
2688
2689                        if ( $(this).parents(".boxItem").find(".item-comment textarea") )
2690                            {
2691                              if ( $(this).parents(".boxItem").find(".item-comment textarea").length )
2692                                  {
2693                                     property = property + "@-9997{=}{addtext}" + encodeEmojis($(this).parents(".boxItem").find(".item-comment textarea").val())  ;
2694                                  }
2695                            }
2696
2697                             
2698 
2699                                    $.get('/siteservices.asp?service=productbox_addproductson&params='+objid+'|'+quantity+'|'+itemident + '|' + property + '|' + dimension_type , function(data)
2700                                    {
2701                                    
2702                                            var answer_array = data.split("|");
2703                                            var status  = answer_array[0];
2704                                            var message = answer_array[1];
2705
2706                                            if (status == "1")
2707                                            {
2708                                                Ajax_updateCartInfo();
2709                                            }
2710                                            else
2711                                            {
2712                                                if ( message != "" )
2713                                                {
2714                                                    alert ( message ) ;
2715                                                }
2716                                            }
2717                                    
2718                                    
2719                                    })
2720                              
2721                             
2722                        return false;
2723
2724                   });
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741                    $("body").on("click",".productbox_product_son_items .buttons a",function()
2742                   {
2743                      var obj       = this ;
2744                      var objid     = $(this).parents("li").find(".product_son_item").attr("itemid");
2745                      var itemident = $(this).parents("li").find(".product_son_item").attr("itemident");
2746                      var objaction = ""
2747
2748                        $(this).parent("div").find("input").each(function()
2749                        {
2750
2751                            if ( $(obj).hasClass("minus") )
2752                                {
2753                                     if ($(this).val() > 0)
2754                                     {
2755                                         var quantity_calc = ($(this).val() - 1) * 1;
2756                                         
2757                                                $(this).val(quantity_calc);
2758                                         
2759
2760                                     }
2761
2762                                }
2763                            else
2764                                {
2765                                    var quantity_calc = ($(this).val() * 1) + (1);
2766                                    
2767                                        
2768                                                $(this).val(quantity_calc);
2769                                         
2770
2771                                }
2772                        })
2773
2774                        var quantity = $(obj).parent("div").find("input").val();
2775
2776                          $.get('/siteservices.asp?service=productbox_addproductson&params='+objid+'|'+quantity+'|'+itemident, function(data)
2777                             {
2778                                    var answer_array = data.split("|");
2779	                                   var status  = answer_array[0];
2780	                                   var message = answer_array[1];
2781
2782                                       if (status == "1")
2783                                       {
2784                                          Ajax_updateCartInfo();
2785                                       }
2786                                       else
2787                                       {
2788                                           if ( message != "" )
2789                                           {
2790                                             alert ( message ) ;
2791                                           }
2792                                       }
2793                             })
2794                          return false;
2795                   });
2796
2797
2798
2799                    $("body").on("click","#mobile_minicart .delete a",function()
2800                      {
2801                             obj  =  $(this).attr("cartitemid") ;
2802                             $.get('/services/cartservices.asp?service=deletefromcart&params='+obj, function(data)
2803                             {
2804
2805                               RenderAllCarts(1);
2806                             })
2807                             return false;
2808                      });
2809
2810                    $("body").on("click","#mobile_header .header_smallcart",function()
2811                    {
2812                        
2813                          if ($("#mobile_header #minicarttotalquantity").length  )
2814                              {}
2815                              else
2816                              {
2817                                
2818                                  //Ajax_updateCartInfo();
2819                                  RenderAllCarts();
2820                              }
2821
2822
2823
2824                           if( $(".mobile_search_form").is(":visible"))
2825      	                  {
2826      		                $(".mobile_search_form").slideUp('fast');
2827      	                  }
2828
2829                        if( $(".mobile_menu").is(':visible'))
2830      	                  {
2831      	                    $(".mobile_menu").slideUp('fast');
2832      	                  }
2833
2834                          if ($("#SlidingCart").length && $("#SlidingCart").is(":visible")) {
2835                                   
2836                                 $("#SlidingCart").attr("style", "left:0px !important;");
2837
2838                                // Detect clicks anywhere on the page
2839                                $(document).on("click", function (event) {
2840
2841                                    // Check if the clicked element is NOT #SlidingCart or its desce
2841ndants
2842                                    
2843                                    if (!$(event.target).closest("#SlidingCart").length) {
2844                                        // If clicked outside, update the style of #SlidingCart
2845                                        $("#SlidingCart").css("left", "-400px");
2846                                    }
2847
2848                                });
2849  
2850                            }   else {
2851
2852                                mobile_minicart_toggle("4");
2853                            }
2854                          return false;
2855                    });
2856
2857                    var miniCarttimer = "";
2858                    var cartClass = "";
2859                    if ( $(".cart_icon_button").length ){
2860                         cartClass = "click";
2861                    }
2862                    else{
2863                        cartClass = "mouseenter";
2864                    }
2865
2866
2867                     if ( $("#miniCart .toggle-hover").length )
2868                     {
2869
2870
2871                    $("body").on( cartClass, "#miniCart", function()
2872                    {
2873                           clearTimeout(miniCarttimer);  
2874                        if ($("#miniCart #minicarttotalquantity").length  )
2875                        {}
2876                        else
2877                        {
2878                           RenderAllCarts();
2879                        }
2880
2881                        if ($("#miniCart .toggle-hover i").length)
2882                        {
2883                            var icon_obj    = $("#miniCart .toggle-hover i");
2884                            var icon_position = $(icon_obj).position();
2885                            var icon_width  = $(icon_obj).width();
2886                            var icon_height = $(icon_obj).height();
2887                            
2888                            var caluclate_top  = ((icon_position.top) * 1) + (icon_height*1) * 1 ;
2889                         
2890                            if ($("#miniCart").hasClass("open-left"))
2891                            {
2892                                $("#minicartdiv").css({
2893                                    "top"  : caluclate_top + 20 +"px",
2894                                    "left" :(icon_position.left*1) + (icon_width) - (icon_width/2)  - 28 + "px" ,
2895                                    "right": "auto"
2896                                });
2897                            }
2898                            else{
2899                            
2900                                $("#minicartdiv").css({
2901                                    "top"  : caluclate_top + 20 +"px",
2902                                    
2903                                    "left" : (icon_position.left*1) + (icon_width/2*1) - 520 + "px" ,
2904                                    
2905                                    "right": "auto"
2906                                });
2907                            }
2908
2909                        }
2910                        $("#minicartdiv").show();
2911
2912                        if ( cartClass == "click" ){
2913
2914
2915                      
2916
2917
2918
2919                         
2920                         }
2921 
2922                         if ( cartClass != "click" )
2923                            {
2924                                return false;
2925                            }
2926                        });
2927                    }
2928
2929
2930                        $("body").on("mouseleave","#miniCart", function()
2931                        {
2932                            clearTimeout(miniCarttimer);  
2933                            miniCarttimer = setTimeout(function() {
2934                                    $("#minicartdiv").hide();
2935                            }, 1000);
2936                            return false;
2937                        });
2938                   
2939                  
2940                    
2941
2942                        $("body").on("click","#minicart_continue",function()
2943                        {
2944                            $("#minicartdiv").hide();
2945                           mobile_minicart_toggle("5");
2946
2947                            return false;
2948
2949                        });
2950                         $(".cart_icon_button #minicartdiv a.button-silver.btn.btn-primary").click(function() {
2951                             window.location = "/cart.asp";
2952                           });
2953                    
2954                        mini_userbar_element();
2955
2956            
2957
2958
2959                     
2960                       $("ul.dropdown-menu").supersubs({
2961                            minWidth:    12,
2962                            maxWidth:    27,
2963                            delay:       0,
2964                            speed:       'fast',
2965                            speedOut:    'fast',
2966                            extraWidth:  1
2967                       }).superfish();
2968                     
2969                     }
2970                 );
2971 
2972                function dynamicproductscall (obj,miscOptionId)
2973                {
2974                    
2975                       var itemident = obj.parents(".productbox_product_son_dynamic").attr("itemident") ;
2976                       //var colors_images = obj.parents(".productbox_product_son_dynamic.colors_images").attr("itemident") ;
2977                       var calculate_tax =1;
2978                       $.ajax
2979                            (
2980                                {
2981                                    url: "/Service_product_son_misc.asp?itemident="+itemident+"&miscfields=" + miscOptionId,
2982                                    success: function(data)
2983                                    {
2984                                       
2985                                        if (data == 0)
2986                                        {
2987                                            obj.find(".its_itemid").html("ìà ðîöà îåöø äîúàéí ìáçéøúê");
2988                                            obj.find(".its_price").html("");
2989                                            obj.find(".its_btn").hide();
2990                                            obj.find(".its_quan").hide();
2991                                            return false;
2992                                        }
2993                                        else
2994                                        {
2995                                            var Num_After_dot = "2";
2996                                            var temp_dropDecimals = 0;
2997                                            if (Num_After_dot == "1" || Num_After_dot == "2" )
2998                                            {
2999                                                temp_dropDecimals = 2;
3000                                            }
3001
3002                                            dataarray                 = data.split("|")
3003                                            var its_itemident         = dataarray[0];
3004                                            var its_itemid            = dataarray[1];
3005                                            var its_itemprice         = dataarray[2];
3006                                            var its_quan              = dataarray[3];
3007                                            var its_image             = dataarray[4];
3008                                            
3009                                            var its_allowbuyingbyquan = "1";
3010
3011                                            if (its_quan > 0 || (its_quan <= 0 && its_allowbuyingbyquan==1) )
3012                                            {
3013                                               
3014                                                if ( its_image != "" )
3015                                                {
3016                                                   obj.parents(".boxItem").find(".image img").attr("src",its_image);
3017                                                }
3018                                                
3019                                                var its_itemprice = its_itemprice / calculate_tax;
3020                                                its_itemprice = its_itemprice.toFixed(Num_After_dot) ;
3021                                                obj.find(".its_btn").show();
3022                                                obj.find(".its_quan").show();
3023                                                obj.find(".its_itemid").html('î÷è: <span>' + its_itemid + '</span>, ');
3024                                                obj.find(".its_price").html(  its_itemprice  ).formatCurrency({
3025                                                    groupDigits: true , symbol: 'îçéø: ¤',
3026                                                    roundToDecimalPlace: temp_dropDecimals
3027                                                });
3028
3029                                                if ( obj.parents("li").find(".bundlecheckbox").length )
3030                                                {
3031                                                    obj.parents("li").find(".bundlecheckbox").val(its_itemid);
3032                                                    obj.parents("li").find(".bundlecheckbox").attr("price",its_itemprice);
3033                                                    change_total();
3034                                                }
3035
3036                                            }
3037                                            else
3038                                            {
3039
3040                                                obj.find(".its_itemid").html("äîåöø äîáå÷ù àéðå áîìàé");
3041                                                obj.find(".its_itemid").append("<a class='fancybox iframe quantityalertlink' href='/product_alert.asp?AlertType=2&itemident="+its_itemident+"'>äåãéòå ìé ùçæø ìîìàé</a>");
3042                                                obj.find(".its_price").html("");
3043                                                obj.find(".its_btn").hide();
3044                                                obj.find(".its_quan").hide();
3045
3046                                                if ( obj.parents("li").find(".bundlecheckbox").length )
3047                                                {
3048                                                    obj.parents("li").find(".dinamicitemsons .misc").each(function(){
3049                                                        $(this).val("");
3050                                                    })
3051                                                    obj.parents("li").find(".bundlecheckbox").val("");
3052                                                    obj.parents("li").find(".bundlecheckbox").attr("price",0);
3053                                                    change_total();
3054                                                    alert ("äîåöø äîáå÷ù àéðå áîìàé");
3055                                                }
3056 
3057                                                return false;
3058                                            }
3059                                        }
3060                                        return false;
3061
3062                                    }
3063                                }
3064                            );
3065                }
3066
3067              function scrollerrows()
3068              {
3069                $(window).scroll(function()
3070                        {
3071
3072                      var top=$(window).scrollTop();
3073                            if(top>1)
3074                            {
3075                                $("#scroll-all").fadeIn("slow");
3076                            }
3077                            else
3078                            {
3079                                $("#scroll-all").fadeOut("slow");
3080                            }
3081                });
3082
3083              }
3084
3085             function mycarousel_initCallback(carousel)
3086                {
3087                    // Disable autoscrolling if the user clicks the prev or next button.
3088                    carousel.buttonNext.bind('click', function() {
3089                        carousel.startAuto(0);
3090                    });
3091
3092                    carousel.buttonPrev.bind('click', function() {
3093                        carousel.startAuto(0);
3094                    });
3095
3096                    // Pause autoscrolling if the user moves with the cursor over the clip.
3097                    carousel.clip.hover(function() {
3098                        carousel.stopAuto();
3099                    }, function() {
3100                        carousel.startAuto();
3101                    });
3102                };
3103        
3104        var glastDivId = "";
3105        var gLastsmallLink = "";
3106
3107        function gswitchdiv(divid, smalldivid, DivNum) {
3108            try {
3109                    $('#gLnk_gsmall_' + DivNum + '_0').removeClass("current");
3110                    $('#gLnk_gsmall_' + DivNum + '_1').removeClass("current");
3111                    $('#gLnk_gsmall_' + DivNum + '_2').removeClass("current");
3112                    $('#gLnk_gsmall_' + DivNum + '_3').removeClass("current");
3113                }
3114            catch (err)
3115               { }
3116
3117               $('#' + divid).html($('#' + smalldivid).html());
3118               $('#gLnk_' + smalldivid).addClass("current");
3119
3120                if (glastDivId == divid && gLastsmallLink != smalldivid & glastDivId != "" && gLastsmallLink != "")
3121                    {
3122                      $('#gLnk_' + LastsmallLink).removeClass("current");
3123                    }
3124            glastDivId = divid;
3125            gLastsmallLink = smalldivid;
3126        }
3127
3128            var plastDivId = "";
3129            var pLastsmallLink = "";
3130               function pswitchdiv(divid, smalldivid, DivNum)
3131                {
3132                    try {
3133                           $('#pLnk_psmall_' + DivNum + '_0').removeClass("current");
3134                           $('#pLnk_psmall_' + DivNum + '_1').removeClass("current");
3135                           $('#pLnk_psmall_' + DivNum + '_2').removeClass("current");
3136                           $('#pLnk_psmall_' + DivNum + '_3').removeClass("current");
3137                        } catch (err) { }
3138
3139                       $('#' + divid).html($('#' + smalldivid).html());
3140                       $('#pLnk_' + smalldivid).addClass("current");
3141
3142                        if (plastDivId == divid && pLastsmallLink != smalldivid & plastDivId != "" && pLastsmallLink != "")
3143                            {
3144                                $('#pLnk_' + LastsmallLink).removeClass("current");
3145                            }
3146                        plastDivId = divid;
3147                        pLastsmallLink = smalldivid;
3148                }
3149
3150              function onAfter(curr, next, opts, fwd)
3151                {
3152                    var $ht = $(this).height();
3153                    $(this).parent().css("height", $ht);
3154                }
3155
3156                var lastDivId = "";
3157                var LastsmallLink = "";
3158                function switchdiv(divid, smalldivid, DivNum)
3159                   {
3160                       try
3161                       {
3162                           $('#Lnk_small_' + DivNum + '_0').removeClass("current");
3163                           $('#Lnk_small_' + DivNum + '_1').removeClass("current");
3164                           $('#Lnk_small_' + DivNum + '_2').removeClass("current");
3165                           $('#Lnk_small_' + DivNum + '_3').removeClass("current");
3166                       } catch (err)
3167                       {
3168                       }
3169                       $('#' + divid).html($('#' + smalldivid).html());
3170                       $('#Lnk_' + smalldivid).addClass("current");
3171                       if (lastDivId == divid && LastsmallLink != smalldivid & lastDivId != "" && LastsmallLink != "") {
3172                           $('#Lnk_' + LastsmallLink).removeClass("current");
3173                       }
3174                       lastDivId = divid;
3175                       LastsmallLink = smalldivid;
3176                   }
3177
3178                  $("body").on("click",".propertiesbox .properties-image",function(){
3179                    $(this).parent(".propertiesbox").find(".properties-image").each(function(){
3180                        $(this).removeClass("current");
3181
3182                    });
3183                    $(this).addClass("current");
3184                    $(this).parent(".propertiesbox").find("select").val($(this).attr("value")).change() ;
3185                    return false
3186                  });
3187                           
3188
3189
3190                function ProductBoxUpdatePrices(ItemId,itemIdent,startP,arrIP,PropVal,regPrice ,currentElement)
3191                        {
3192
3193                             var total = startP;
3194                             var propPrice = 0;
3195                             var pro_id    = '';
3196                             var pro_name  = '';
3197                             
3198                             // Find the closest li element to scope the search properly
3199                                 var currentLi = $(currentElement).closest("li");
3200                         
3201                             // Only search within the current li element to avoid duplicates
3202                             currentLi.find(".required-properties").each(function()
3203                             {
3204                                
3205                              /*
3206                                  console.log("Number of elements found:", currentLi.find(".required-properties").length);
3207                                  console.log("Options:", $(this).find("option").length);
3208                                  console.log("arrIP:", arrIP);
3209                                  console.log("Selected option:", $(this).val());
3210                                  console.log("Selected option:", $(this).find("option:selected").attr("value"));
3211                               */
3212                               
3213                                       if ( $(this).val() != '' )
3214                                       {
3215
3216                                          PropVal = $(this).val();
3217                                    
3218                                          arrProperty = PropVal.split('|');
3219                                          if ( PropVal != "")
3220                                          {
3221                                             propPrice = propPrice + Number(arrProperty[1]);
3222                                            
3223
3224                                             pro_id    = pro_id + '@'+arrProperty[2];
3225                                             pro_name  = pro_name + '/'+arrProperty[0]
3226      
3227                                             if (Number(arrProperty[1]) > 0 )
3228                                             {
3229                                              //total = Number ( (total*1) + (propPrice*1)) ;
3230                                              //total=total.toFixed(2);
3231                                              }
3232                                          }
3233                                       }
3234                             });
3235
3236                             if (propPrice > 0 )
3237                             {
3238                                 total = Number ((total*1) + (propPrice*1));
3239                                 total = total.toFixed(2);
3240                             }
3241
3242      
3243                              // Scope all element selections to the current li to avoid duplicates
3244                              currentLi.find("#prop_id_hid_"+itemIdent).val(pro_id);
3245                             
3246                              currentLi.find("#prop_name_hid_"+itemIdent).val(pro_name);
3247                              currentLi.find("#prop_price_hid_"+itemIdent).val(propPrice);
3248                              currentLi.find("#total_hid_"+itemIdent).val(total);
3249                              currentLi.find("#total"+itemIdent).html(total);
3250                              if (regPrice != 0)
3251                              {
3252                                 RegTotal = regPrice + propPrice;
3253                                 RegTotal=RegTotal.toFixed(2);
3254                                 currentLi.find("#totalreg"+itemIdent).html(RegTotal);
3255                              }
3256                        }
3257                
3258                 function PB_AddToCartWithProperties(pid,itemIdent,obj)
3259                 {
3260                    document.addme.pid.value = pid;
3261    	            var pip_str = ""
3262                    var pip_prices = 0
3263                    var pip_ids = ""
3264                    var temparr = ""
3265                    var isRequierd = ""
3266
3267                    pip_ids     = $("#prop_id_hid_" + itemIdent).val();
3268                    pip_str     = $("#prop_name_hid_" + itemIdent).val();
3269                    pip_prices  = $("#prop_price_hid_" + itemIdent).val();
3270
3271                    selectedproperties = "0" ;
3272                    $(obj).parents("li").find(".required-properties").each(function()
3273                    {
3274                        if ( $(this).val() == '' )
3275                            {selectedproperties = "1";}
3276                    });
3277
3278
3279                    if (pip_ids != "" && selectedproperties == "0" )
3280                    {
3281                        pip_str = pip_str.substr(1, pip_str.length - 1)
3282                        pip_ids = pip_ids.substr(1, pip_ids.length - 1)
3283
3284                        document.addme.pip_str.value    = pip_str;
3285                        document.addme.pip_prices.value = pip_prices;
3286                        document.addme.pip_ids.value    = pip_ids;
3287
3288                        
3289                                document.addme.submit();
3290                        
3291                    }
3292                    else
3293                    {
3294                        alert("çåáä ìáçåø îàôééï ìîåöø");
3295                     }
3296
3297                     return false;
3298                 }
3299
3300 
3301    
3302
3303             function s_addme_cart(pid, quan, pip_str, pip_prices, pip_ids, numOfItems, ItemPromotionIdentStr)
3304             {
3305              if (quan == undefined || quan==0 ){ quan = 1; }
3306               
3307                      document.s_addme.pid.value = pid
3308                      document.s_addme.quan.value = quan;
3309                      document.s_addme.submit();
3310               
3311             }
3312
3313  
3314                   
3315
3316 
3317            $(document).ready
3318                (
3319                function () {
3320                    ViewFloatingCart();
3321                    FloatingCartObj_StartEffects();
3322                    if ($.browser.msie) {
3323                        if (parseInt($.browser.version, 10) < 9) {
3324                            $("#SlidingCart").css({ 'position': 'fixed' });
3325                        }
3326                    }
3327                });
3328           
3329
3330 
3331	  
3332    
3333
3334	    function openTakanon(){
3335	        window.open("Page_pop.asp?page=216",null,"width=700,height=500,scrollbars=yes,resizable=yes")
3336	    }
3337        function openprivacy(){
3338            window.open("Page_pop.asp?page=",null,"width=700,height=500,scrollbars=yes,resizable=yes")
3339        }
3340
3341	    function username_validation()
3342	    {
3343	        $(".username_validation").focus(function(){
3344	            $(this).parent().find("div.error").replaceWith("");
3345	        });
3346
3347	        $(".username_validation").focusout(function(){
3348	            var username_input  =  $(this);
3349	            if ( $(username_input).val() != "")
3350	            {
3351	                $.get("/siteservices.asp?service=user_username_check&username=" + $(this).val() , function(data)
3352	                {
3353	                    if (data == "1")
3354	                    {
3355	                        $(username_input).val("");
3356	                        if ( $(username_input).parent().find("div.error").length )
3357	                        {
3358                                $(username_input).parent().find("div.error").html("ëúåáú ãåàø äàì÷èøåðé ÷ééîú áîòøëú, ðñä ìäúçáø");
3359	                        }
3360	                        else
3361	                        {   $(username_input).parent().append("<div class='error checkout_error'>ëúåáú ãåàø äàì÷èøåðé ÷ééîú áîòøëú, ðñä ìäúçáø</div>");  }
3362                            $("#loginlink").trigger("click");
3363                        }
3364	                });
3365	            }
3366	        });
3367	    }
3368         
3369
3370         function calculate_icons_position()
3371                        {
3372                             
3373
3374                              if (  $(".productBoxes .MiscFieldsIcons").length ) 
3375                                {
3376                                    $(".productBoxes .MiscFieldsIcons").each(function ()
3377                                    {
3378                                    if ($(this).parent().find(".ProductBox_promotion").length) {
3379                                        var icons_height  = $(this).parent().find(".ProductBox_promotion").height();
3380                                        if (icons_height > 0) {
3381                                                $(this).css("top", icons_height + "px");
3382                                            }
3383                                    }
3384                                    else
3385                                    {
3386                                        $(this).css("top", "0px");
3387                                    }
3388                                    });
3389                                }    
3390
3391                             $(".boxItem-wrap .MiscFieldsIcons").show();
3392                            
3393                        }
3394                        
3395	    $(document).ready
3396               (
3397 
3398                   function()
3399                   {
3400                        $("body").on("click",".email_share",function(){
3401                            var title = $('meta[property="og:title"]').attr('content');
3402                            var desc  = $('meta[property="og:description"]').attr('content');
3403                            var url   = $('meta[property="og:url"]').attr('content');
3404                            var image = $('meta[property="og:image"]').attr('content');
3405                            window.location.href = "mailto:[email protected]?subject=÷øàúé îàîø ùéòðééï àåúê&body="+ title + "<br>" + desc + "<br>" + url;
3406                            return false;
3407                        });
3408
3409                        $("body").on("click",".linkedin_share",function(){
3410                            var url = "https://www.medicon.co.il";
3411                            var redirect_url = $(this).attr("href") + url;
3412                            //window.location.href = redirect_url
3413                            window.open(redirect_url);
3414                            return false;
3415                        });
3416                      
3417                        
3418
3419
3420                        
3421                          
3422
3423
3424                    $("body").on("change", ".cart_items_ul .value",function()
3425                       {
3426                             
3427                            var quantity                = $(this).val();
3428                            var quantity_action         = "odd";
3429                            var tmp_ee_list_item_obj    = $(this).parents(".ee_list_item");
3430                            var current_quantity        = $(this).attr("quantity");
3431                            var new_quantity            = quantity;
3432                            var quantity_request        = 1;
3433                            
3434                           // console.log( parseFloat(new_quantity) + '!=' + parseFloat(current_quantity));
3435
3436                            if  ( new_quantity != current_quantity ) {
3437
3438                                if (  parseFloat(new_quantity) > parseFloat(current_quantity) ) {
3439                                    quantity_action  = "odd";
3440                                    quantity_request = new_quantity - current_quantity;
3441                                   //  console.log( quantity_action + " " + parseFloat(new_quantity) + '>' + parseFloat(current_quantity));
3442                                }
3443
3444                                if ( parseFloat(new_quantity) < parseFloat(current_quantity) ) {
3445                                    quantity_action  = "minus";
3446                                    quantity_request = current_quantity - new_quantity;
3447                                 
3448                                }
3449                                
3450                            }
3451
3452
3453 
3454                            $.get('/services/cartservices.asp?service=setcartitemquantity&params=update&CartItemID='+$(this).next().attr("cartitemid")+'&quan_multiply=1&quan='+quantity , function(data)
3455                            {
3456                                       var answer_array = data.split("|");
3457	                                   var status  = answer_array[0];
3458	                                   var message = answer_array[1];
3459
3460                                       if (status == "1")
3461                                       {
3462 
3463                                            if (quantity_action == "minus" )
3464                                                {
3465                                                    
3466                                                    // cart_remove_from_cart = true;
3467                                                 
3468                                                    
3469                                                    
3470                                            }
3471
3472                                            if (quantity_action == "odd" )
3473                                                {
3474                                                   
3475                                                    // cart_add_to_cart = true;
3476                                                    
3477                                                    
3478                                                }
3479 
3480
3481                                            RenderAllCarts(1);
3482                                        
3483                                              
3484                               if (cookieconsent == true) {
3485                                           
3486                                                
3487 
3488                                                
3489                                                
3490
3491 
3492                                                if (quantity_action == "minus" )
3493                                                    {
3494                                                          
3495
3496                                                        
3497                                                    }
3498
3499                                                if (quantity_action == "odd" )
3500                                                    {
3501                                                          
3502                                                         
3503                                                    }
3504                                            
3505              }
3506
3507                                       }
3508                                       else
3509                                       {
3510                                            alert(message);
3511                                       }
3512
3513                                    })
3514                                    return false;
3515                       });
3516                         
3517                       $("body").on("change",".cart_dimension_type",function() {
3518                            var cartitemident  = $(this).parents(".ee_list_item").attr("itemident");
3519                            var cartitemid     = $(this).parent().find(".odd").attr("cartitemid");
3520                            var dimension_type = $(this).val();
3521                            $.get('/services/cartservices.asp?service=setcartitemdimension&itemident='+cartitemident+'&params='+dimension_type+"&CartItemID="+cartitemid  , function(data)
3522                            {
3523                                RenderAllCarts(1) ;
3524                            });
3525                        });
3526
3527                       $("body").on("click",".minicartsetquan",function()
3528                        {
3529                            
3530                            var quantity_action      = $(this).attr("action");
3531                            var quan_multiply        = $(this).parent().find(".value").attr("quan_multiply");
3532                            
3533                            var tmp_ee_list_item_obj = $(this).parents(".ee_list_item");
3534                            var quan_param = "";
3535                            var quantity_multiply = 1;
3536                            var quantity_request  = 1;
3537                            var current_quantity = $(this).parent().find(".value").val() || $(this).parent().find(".value").text();
3538  
3539                            if ( $(this).parent().find("input").length )
3540                            {
3541                                quan_param = "&quan=" + $(this).parent().find("input").val();
3542                            }
3543  
3544                            if ( $(tmp_ee_list_item_obj).find(".quantity .value").attr("quan_multiply") != "" )
3545                            {
3546                                quantity_multiply = $(tmp_ee_list_item_obj).find(".quantity .value").attr("quan_multiply");
3547                            }
3548
3549                            if ( $(this).parent().parent().find("input:checked").length ) {
3550                                if ( $(this).parent().parent().find("input:checked").val() == "0" ) {
3551                                    quantity_multiply = 1;
3552                                }
3553                            }
3554 
3555                            $.get('/services/cartservices.asp?service=setcartitemquantity&params='+quantity_action+"&CartItemID="+$(this).attr("cartitemid")+"&quan_multiply="+quantity_multiply + quan_param , function(data)
3556                                    {
3557                                       
3558                                       var answer_array = data.split("|");
3559	                                   var status  = answer_array[0];
3560	                                   var message = answer_array[1];
3561
3562                                       if (status == "1")
3563                                       {
3564 
3565                                         if (quantity_action == "minus" )
3566                                            {
3567                                                 
3568                                                // cart_remove_from_cart = true;
3569 
3570                                                
3571                                                
3572                                            }
3573
3574                                        if (quantity_action == "odd" )
3575                                            {
3576                                               
3577                                                // cart_add_to_cart = true;
3578
3579                                                
3580                                               
3581                                            }
3582
3583                                            RenderAllCarts(1) ;
3584
3585                                              
3586    if (cookieconsent == true) {
3587                                           
3588                                            
3589                                             
3590                                               
3591
3592                                                if ( quantity_action == "minus" )
3593                                                    {
3594                                                        
3595                                                   }
3596
3597                                                if ( quantity_action == "odd" )
3598                                                    {
3599                                                        
3600
3601                                                        
3602                                                    }
3603                                              
3604    }
3605                                       }
3606                                       else
3607                                       {
3608                                            alert(message);
3609                                       }
3610
3611                                    })
3612                                    return false;
3613                        });
3614
3615
3616                        $("body").on("click",".cart_items_ul .delete a",function()
3617                        {
3618                                obj  =   $(this).attr("cartitemid") ;
3619                                var tmp_ee_list_item_obj = $(this).parents(".ee_list_item");
3620                                var current_quantity = $(this).parents(".ee_list_item").find(".value").val() || $(this).parents(".ee_list_item").find(".value").text();
3621
3622                                $.get('/services/cartservices.asp?service=deletefromcart&params='+obj, function(data)
3623                                {
3624                                    var dataarray = data.split("|");
3625                                    if ( dataarray[0] == "0" )
3626                                         {
3627                                            alert (dataarray[1]);
3628                                         }
3629                                    else
3630                                        {
3631                                            //cart_remove_from_cart = true
3632                                               if (cookieconsent == true) {
3633                                           
3634                                                 
3635                                                
3636  
3637                                          
3638                                               }
3639                                            RenderAllCarts(1);
3640                                        }
3641
3642                                })
3643                                return false;
3644                        });
3645 
3646                      datecountdown();
3647
3648                      $("body").on("click",".close",function(){ 
3649                          if ( $(this).parent().hasClass("campain_wrap") )
3650                          {
3651                               $(this).parent().parent().hide(); 
3652                          }
3653                          else
3654                          {
3655                                $(this).parent().hide(); 
3656                          }
3657                          return false;
3658                          });
3659                      
3660
3661                       
3662                    }
3663                 );
3664
3665	    jQuery.fn.center = function ()
3666                      {
3667                            this.css("position","fixed");
3668                         
3668   var horizontalCenter = Math.floor(window.innerWidth/2 - ( $(this).outerWidth()/2));
3669                            var verticalCener = Math.floor(window.innerHeight/2 - ($(this).outerHeight()/2));
3670                            this.css("top", verticalCener + "px" );
3671                            this.css("left",horizontalCenter  + "px");
3672                            return this;
3673                        }
3674
3675       
3676    
3677
3678           function checkSectionfrm() {
3679                if (IsEmptyStr("document.memberFrm.UserName")) {
3680                    document.memberFrm.UserName.focus();
3681                    alert("ìà äåæï ùí îùúîù".charRefToUnicode());
3682                    return false;
3683                }
3684                if (IsEmptyStr("document.memberFrm.IDNum")) {
3685                    document.memberFrm.IDNum.focus();
3686                    alert("ñéñîà çééáú ìäëéì 4-20 úååéí, éù ìäæéï àåúéåú å/àå ñôøåú".charRefToUnicode());
3687                    return false;
3688                }
3689                return true;
3690            }
3691
3692 
3693function google_event_couponapply( coupon_code ){
3694    
3695        
3696}
3697
3698
3699var last_payment_info = '';
3700function google_event_addpaymentinfo( payment_info ){
3701    
3702        
3703}
3704
3705var last_shipping_method = '';
3706function google_event_begincheckout_add_shipping_info( shipping_value, shipping_method ){
3707        
3708        
3709        
3710        
3711}
3712
3713 function google_event_begincheckout(){
3714 
3715        
3716 }
3717
3718 
3719 function google_event_removefromcart()
3720 {
3721     
3722
3723
3724
3725
3726 
3727 
3728
3729 
3730 }
3731  
3732
3733
3734    function google_event_viewcart(){
3735
3736        
3737
3738    }
3739 
3740function flytocart(obj)
3741    {
3742                 
3743            var cart = $('#miniCart');
3744            var imgtodrag = $(obj).parents("li").find(".image img");
3745                        
3746            if (imgtodrag) {
3747                var imgclone = imgtodrag.clone()
3748                    .offset({
3749                        top: imgtodrag.offset().top,
3750                        left: imgtodrag.offset().left
3751                    })
3752                    .css({
3753                        'opacity': '0.5',
3754                        'position': 'absolute',
3755                        'height': '150px',
3756                        'width': '150px',
3757                        'z-index': '100'
3758                    })
3759                    .appendTo($('body'))
3760                    .animate({
3761                        'top': cart.offset().top + 10,
3762                        'left': cart.offset().left + 10,
3763                        'width': 75,
3764                        'height': 75
3765                    }, 1000, 'easeInOutExpo');
3766            
3767                setTimeout(function () {
3768                    cart.effect("shake", {
3769                        times: 2
3770                    }, 200);
3771                }, 1500);
3772
3773                imgclone.animate({
3774                    'width': 0,
3775                    'height': 0
3776                }, function () {
3777                    $(this).detach()
3778                });
3779            }
3780
3781            $('html, body').animate({
3782                'scrollTop' : $(cart).position().top
3783            }, 1000, 'easeInOutExpo');
3784 
3785    }
3786
3787String.prototype.charRefToUnicode = function()
3788{
3789    return this.replace(
3790    /&#(([0-9]{1,7})|(x[0-9a-f]{1,6}));?/gi,
3791    function(match, p1, p2, p3, offset, s)
3792    {
3793        return String.fromCharCode(p2 || ("0" + p3));
3794    });
3795}
3796
3797function loanCal(A,C,I) {
3798   
3799
3800    let monthlyInterestRate; // Define monthlyInterestRate outside the if block
3801    if ( I > 0 ) {
3802            I = I / 100; // Annual percentage rate
3803              monthlyInterestRate = I / 12;
3804        } else {
3805              monthlyInterestRate = I  ;
3806        }
3807    // Calculate monthly interest rate
3808      
3809
3810    // Calculate fixed monthly payment
3811    const fixedMonthlyPayment = calculateFixedMonthlyPayment(A, monthlyInterestRate, C);
3812    
3813   
3814
3815    let remainingAmount = A;
3816    let results = [];
3817
3818    for (let month = 1; month <= C; month++) {
3819        const interestPayment = remainingAmount * monthlyInterestRate;
3820        const principalPayment = fixedMonthlyPayment - interestPayment;
3821
3822        remainingAmount -= principalPayment;
3823  
3824        results.push({
3825            month: month,
3826            remainingAmount: parseFloat((remainingAmount).toFixed(2)) ,
3827            principal: parseFloat((principalPayment).toFixed(2)) ,
3828            interest: parseFloat((interestPayment).toFixed(2)) ,
3829            monthlyRepayment: parseFloat((fixedMonthlyPayment).toFixed(2))  
3830        });
3831    }
3832
3833    const totalLoanAmount = parseFloat((fixedMonthlyPayment * C).toFixed(2));
3834    const totalInterest = parseFloat((totalLoanAmount - A).toFixed(2));
3835	 
3836    
3837    
3838    return {
3839        monthlyDetails: results,
3840        totalLoanAmount,
3841        totalInterest,
3842		monthlyPayment: parseFloat(fixedMonthlyPayment.toFixed(2))  
3843    };
3844}
3845
3846function calculateFixedMonthlyPayment(loanAmount, monthlyInterestRate, totalMonths) {
3847    if ( totalMonths == 1 ) {
3848      
3849        return loanAmount*1 ;
3850        } else {
3851       
3852            if ( monthlyInterestRate > 0 ) {
3853            return loanAmount * monthlyInterestRate / (1 - (Math.pow(1 / (1 + monthlyInterestRate), totalMonths)));
3854            } else {
3855                return loanAmount /  totalMonths ;
3856            }
3857        }
3858    
3859}
3860
3861
3862$( document ).ready(function()
3863{
3864
3865       if ( $(".monthly_payments_select").length ) {
3866            $("body").on("change",".monthly_payments_select", function(){
3867                var monthly_payments_total = $(this).attr("total");
3868                var monthly_payments_ribit = $(this).find("option:selected").attr("ribit"); // Get the ribit attribute from the selected option
3869                var monthly_payments_num = $(this).val();
3870                var payment_details = loanCal(monthly_payments_total,monthly_payments_num,monthly_payments_ribit);
3871               if ( monthly_payments_num == 1   ) {
3872
3873                $(this).parent().find(".price .value").html(monthly_payments_total);
3874               }
3875               else {
3876                //console.log(payment_details.monthlyPayment);
3877                    $(this).parent().find(".price .value").html(payment_details.monthlyPayment.toFixed(2));
3878               }
3879                
3880            });
3881            $(".monthly_payments_select").trigger("change");
3882       }
3883
3884       $(".navbar-toggler").click(function(){
3885            if ( $(this).parent().hasClass("active") )
3886            {
3887                $(this).parent().removeClass("active");
3888                 $(this).attr('aria-expanded', 'false');
3889            }
3890            else
3891            {
3892                $(this).parent().addClass("active");
3893                 $(this).attr('aria-expanded', 'true');
3894            }
3895
3896       });
3897
3898
3899         $("body").on('mouseleave', '#floating-icons .icons-box',function (e) {
3900                            if (!$(e.target).is('input')) {
3901                              //   $('.content', this).removeClass("active");
3902                                $(this).removeClass("active");
3903                            }
3904                        });
3905  $("body").on('mouseenter', '#floating-icons .icons-box .icon', function () {
3906                           // $('.content', this).addClass("active");
3907                        $('#floating-icons .icons-box').removeClass("active");
3908                        $(this).parent().addClass("active");
3909                        
3910                        
3911                        if ( $(this).next().find("iframe").length  )
3912                            {
3913                                var iframedata = $(this).next().find("iframe").attr("data");
3914                                if ( iframedata != '' )
3915                                {
3916                                    $(this).next().find("iframe").attr("src" , iframedata);
3917                                    $(this).next().find("iframe").attr("data" , "");
3918                                }
3919                            }
3920                 })
3921                                     
3922                
3923                
3924username_validation()
3925 
3926 $("body").on("click","#usepointsbtn",function(){
3927            $.get("/services/CartServices.asp?service=points_cart_add", function(data)
3928            {
3929                if (data == "1")
3930                    {
3931                      RenderAllCarts();
3932                          startConfetti();
3933                    }
3934            });
3935                if ( $(this).attr("href") == 'cart.asp' )
3936                {
3937                    location.href=$(this).attr("href");
3938                }
3939        return false;
3940    });
3941 
3942$("body").on("click",".points_delete_btn",function(){
3943            $.get("/services/CartServices.asp?service=points_cart_del", function(data)
3944            {
3945                if (data == "1")
3946                    {
3947                      RenderAllCarts();
3948                    }
3949            });
3950        return false;
3951    });
3952
3953    $("body").on("click",".delete_coupon",function(){
3954            $.get("/services/CartServices.asp?service=deletecoupon", function(data)
3955            {
3956                if (data == "1")
3957                    {
3958                      RenderAllCarts();
3959                    }
3960            });
3961        return false;
3962    });
3963
3964   $(".populartag").click(function()
3965        {
3966                var randomnumber = Math.floor(Math.random()*1000)
3967                var tag_id = $(this).attr("tag_id");
3968                var tag_url = $(this).attr("href");
3969
3970                $.ajax({
3971                    url:'/Tags.asp?IsRecordTag=1&TagId='+tag_id+'&rnd='+randomnumber ,
3972                    type:'GET',
3973                    success:
3974                        function(data)
3975                        {
3976                             location.href = tag_url;
3977                        }
3978                   });
3979                return false;
3980        });
3981
3982    $("body").on("click",".toggle:not(.misc_title)",function()
3983        {
3984            $(this).next().toggle();
3985             if ( $(this).next().is(":visible")  )
3986                {
3987                    $(this).addClass("active");
3988                     $(this).attr('aria-expanded', 'true');
3989                }
3990                else
3991                {
3992                    $(this).removeClass("active");
3993                    $(this).attr('aria-expanded', 'false');
3994                    
3995                }
3996            return false;
3997        });
3998
3999    try {
4000
4001           if ($('#SlidingCart').length)
4002            { 
4003                RenderAllCarts();
4004               //get_cart_quantity();
4005            }
4006
4007           $('form.validate').each( function()
4008            {
4009                $(this).validate({});
4010            });
4011           
4012        }
4013    catch (err)
4014        { }
4015
4016});
4017
4018
4019
4020
4021
4022var glbl_int_cat1_menu_num = -1;
4023var glbl_bln_oncat2 = 0;
4024var checkout_validation = "";
4025function ViewFloatingCart()
4026    {
4027        /* if ($('#SlidingCart').length)
4028        {
4029           //  rnd = new Date().getTime();
4030           // SetInnerHTMLFromAjaxResponse("../inc/FloatingCart/FloatingCart.asp?rnd="+rnd,"SlidingCart");
4031        }*/
4032    }
4033
4034function setproductsonquantity()
4035    { }
4036
4037function setcustomscroller()
4038	{ }
4039
4040    function get_checkout_payments()
4041        {
4042             var deliveryprice = 0 ;
4043             var ribit = 0 ;
4044             var checkout_payments = default_payment;
4045           
4046             $("#OrderPayments option:selected").each(function ()
4047              {
4048                ribit = $(this).attr("ribit");
4049                checkout_payments = $(this).attr("value");
4050              });
4051               
4052              $("#delivery option:selected").each(function ()
4053                { deliveryprice = $(this).attr("price"); });
4054
4055                var checkout_payments_type = $('input[name=payment_type]:checked', '#checkout-form').val();
4056                var checkout_payments_id = $('input[name=payment_type]:checked', '#checkout-form').attr("id");
4057             var agree_credit_token = $('input[name=agree_credit_token]:checked', '#checkout-form').val();
4058
4059              var bitxt_p = $("#bit_phone").val();
4060    var bitxt_e = $("#bit_phone_ext").val();
4061               $.get('/siteservices.asp?service=get_checkout_payments&payment_id='+checkout_payments_id+'&payment_type='+checkout_payments_type+'&payments='+checkout_payments+"&lang="+currentSiteLang+"&CurrencyID="+currentCurrency+"&delivery_price=" + deliveryprice+"&agree_credit_token=" + agree_credit_token + "&bitxt_e=" + bitxt_e + "&bitxt_p=" + bitxt_p, function (data)
4062                {
4063                    $("#checkout_payments").html(data);
4064                            
4065                        if ( $("input[name=payment_type]:checked").length == 0 )
4066                            {
4067                                $("input[name=payment_type]").eq(0).attr('checked', true);
4068                            }
4069                       
4070                        if ( $("input[name=payment_type]:checked").val() == "bit" ) {
4071                             $("#bit_phone_div").show();
4072                            }
4073
4074                        if ( $("input[name=payment_type]:checked").attr("payments") == "0" )
4075                            {
4076                                $("#OrderPayments").val("1");
4077                                $("#OrderPayments").trigger("change");
4078                                $("#OrderPayments").next().find(".sbSelector").html("1");
4079                                $("#OrderPayments").next().hide();
4080                                $(".payments_wrap").hide();
4081                            }
4082 
4083                        try {
4084                                if ( checkout_validation != "1" && global_settings_bootstrap != "1" )
4085                                {
4086                                    $("select#OrderPayments").selectbox();
4087                                }
4088                        }
4089                        catch (err)
4090                        {}
4091 
4092                        if ( $("#bit_phone_ext").length && $("#Phone_ext").length ){
4093                            if ( $("#bit_phone").val() == '' && $("#bit_phone_ext").val() == '' ){
4094                                $("#bit_phone").val(  $("#Phone").val()  )
4095                                $("#bit_phone_ext").val( $("#Phone_ext").val() )
4096                            }
4097                        }
4098
4099
4100                            
4101                            
4102                            
4103                            
4104
4105                  
4106                });
4107        }
4108  function get_checkout_relative_items()
4109        {
4110            $.get("/siteservices.asp?service=get_checkout_relative_items&lang="+currentSiteLang+"&CurrencyID="+currentCurrency, function (data)
4111                {
4112                    $("#checkout_relative_items").html(data);
4113                    dependonwidget();
4114                });
4115        }
4116
4117 function ShowAllCarts()
4118 {
4119
4120        if ($('#SlidingCart').length)
4121        {
4122            $('#SlidingCart').show();
4123        }
4124
4125        if ($("#sidebarcart").length || $("#checkout_fullcart").length || '' == '1'  || '' == ''  )
4126        {
4127            RenderAllCarts();
4128        }
4129        else
4130        {
4131
4132        
4133        $("#mobile_smallcart_items_counter").html('0');
4134        $("#miniCart #cartQuantity").html('0');
4135  
4136        if ( $(".smallcart").length >0 )
4137        {
4138            //console.log('0');
4139            if( 0 >0 )
4140            {
4141
4142                $(".smallcart #cartEmptyTR").hide();
4143                $(".smallcart #cartPriceTR").show();
4144                $(".smallcart #cartPrice").html('');
4145                $(".smallcart #cartQuantity").html('0');
4146                
4147            }
4148            else
4149            {
4150                $(".smallcart #cartEmptyTR").show();
4151                $(".smallcart #cartPriceTR").hide();
4152            }
4153        }
4154        setcustomscroller();
4155
4156       if ($('#SlidingCart').length)
4157        {
4158            if( 0 > 0 )
4159                {
4160                    $("#SlidingCart #CartIcon").removeClass('empty');
4161                    $("#floatingcart-total").html('0');
4162                }
4163            else
4164                {
4165                    $("#SlidingCart #CartIcon").addClass('empty');
4166                    $("#floatingcart-total").html('');
4167                }
4168        }
4169        }
4170 }
4171
4172
4173 function dependonwidget() {
4174    $(".dependonwidget").each(function () {
4175
4176        // Get the target designbox ID from the attribute"
4177        var dependonwidgetid = $(this).attr("dependonwidgetid");
4178        var $target = $("#designbox_" + dependonwidgetid);
4179
4180        // Safety check: if no such element exists, skip
4181        if (!$target.length) {
4182            return;
4183        }
4184
4185        // Check only the actual content, without script tags
4186        var $content = $target.find('.content');
4187
4188        // Check if there are products
4189        var hasProducts = $content.find('ul.productBoxes li').length > 0;
4190
4191        // Check if there are images
4192        var hasImages = $content.find('img').length > 0;
4193
4194        // Check if there is real text
4195        var hasText = $.trim($content.text()) !== "";
4196
4197        if (hasProducts || hasImages || hasText) {
4198             $(this).removeClass("hide-v");
4199        } else {
4200             $(this).addClass("hide-v");
4201        }
4202    });
4203}
4204
4205
4206function get_cart_quantity(){
4207    $.get("/services/CartServices.asp?service=get_cart_quantity", function(data)
4208    {
4209        
4210    });
4211}
4212
4213 function RenderAllCarts(render_sonquan)
4214{
4215   
4216  if (render_sonquan == undefined )
4217    {
4218        render_sonquan=0;
4219    }
4220     if ( $("#sidebarcartdiv").length )
4221      {
4222        render_sonquan=1;
4223      }
4224
4225 try {
4226     var add_js_cartid = ''
4227     if (js_cartid != '')
4228     {
4229        add_js_cartid = "&cartid="+js_cartid+"&lang="+currentSiteLang+"&CurrencyID="+currentCurrency
4230        //add_js_cartid = "&cartid="+js_cartid
4231        
4232
4233     }
4234
4235    if ($(".page-checkout").length >0)
4236        {
4237           add_js_cartid = add_js_cartid + "&checkout=1"
4238           $.get("/services/CartServices.asp?service=cartdeliverydelete" + add_js_cartid , function(data)
4239            {});
4240              
4241        }                        
4242    
4243    $.get('/services/cartservices.asp?service=getcart'+add_js_cartid+"&n=1", function (data)
4244    {
4245
4246        $("#minicartdiv #minicartdiv_container").html(data);
4247        $("#minicartdiv #minicartdiv_total").empty();  
4248        $("#minicartdiv .minicartbottom").appendTo('#minicartdiv_total');  
4249
4250        $("#mobile_minicart #mobile_minicart_container").html( data );
4251        $("#mobile_minicart #mobile_minicart_total").empty(); 
4252        $("#mobile_minicart .minicartbottom").appendTo('#mobile_minicart_total');  
4253      
4254        if ( ! $("#mobile_minicart .close-icon").length )
4255        {
4256            $("#mobile_minicart").append('<i class="fa fa-times close-icon" aria-hidden="true"></i>');
4257        }
4258        
4259 
4260
4261        $("#sidebarcart").html(data);
4262      
4263        $("#shoppingcart").html(data);
4264
4265   
4266      if ($('#SlidingCart').length)
4267            {
4268              $(".FlyingCartDivWrap").html(data);
4269               if( $("#minicartproductcount").val() >0 )
4270                {
4271                    $("#SlidingCart #CartIcon").removeClass('empty');
4272                    $("#floatingcart-total").html($("#minicartproductcount").val());
4273                }
4274                else
4275                {
4276                    $("#SlidingCart #CartIcon").addClass('empty');
4277                     $("#floatingcart-total").html('0');
4278                }
4279               
4280                if ( $("#SlidingCart .promotion_notice.success").length ){
4281                     startConfetti();
4282                }
4283
4284                if ( $("#SlidingCart .promotions-carousel").length ){
4285
4286                    if ( $("#SlidingCart .promotion-item").length > 1 ) {
4287                    
4288
4289                    
4290 
4291                    }
4292
4293                };
4294
4295            if ( $("#SlidingCart #promotionsoffers").length ){
4296                if ( $("#SlidingCart #promotionsoffers .promotionsofferitemsul li ").length > 1 ) {
4297                    
4298                }
4299            } ;
4300
4301
4302            if ( $("#SlidingCart .cart-relatives-carousel").length ){
4303                if ( $("#SlidingCart .cart-relatives-carousel .relatives-carousel .relative-item").length > 1 ) {
4304                    
4305                }
4306            }
4307
4308        const $cartDiv = $('#SlidingCart'); // The parent container
4309        const $cartItems = $('#SlidingCart .cart_items_ul'); // The list element
4310        const $bottomDiv = $('#SlidingCart .minicartbottom'); // The bottom section
4311        const $cartHeader = $('#SlidingCart .cart_header'); // The progress bar
4312        
4313        // Calculate the height of other elements
4314        const otherElementsHeight = 
4315            $bottomDiv.outerHeight(true) + 
4316            $cartHeader.outerHeight(true) + 
4317            15; // Adjust for additional padding or margins if needed
4318
4319        // Calculate the available height for the cart items
4320        const availableHeight = $cartDiv.outerHeight() - otherElementsHeight;
4321
4322        // Set the max-height of the cart items
4323        $cartItems.css({
4324            'max-height': `${availableHeight}px`,
4325            'overflow-y': 'auto'
4326        });
4327
4328            }
4329
4330
4331        $("#mobile_smallcart_items_counter").html($("#minicartproductcount").val());
4332        $("#miniCart #cartQuantity").html($("#minicartproductcount").val());
4333 
4334    
4335        if ($(".checkout_fullcart").length >0)
4336        {
4337             $(".checkout_fullcart .cart").html(data);
4338             if ($(".checkout_fullcart .cart #minicarttotalquantity").val()==0)
4339             {
4340                 location.reload();
4341             }
4342             else
4343             {
4344
4345                try {
4346        
4347                        get_checkout_relative_items();
4348                        get_checkout_payments();
4349                        get_checkout_shipping();
4350                        setTimeout(function() {calculateordertotal()}, 500);
4351
4352                }
4353                catch (err)
4354                { }
4355  
4356                //console.log('calculateordertotal');
4357             }
4358        }
4359
4360
4361        if ( $(".smallcart").length >0 )
4362        {
4363            //$(".smallcart #cartQuantity").html("<div id='smallcartdata' style='display:none'>"+data+"</div>");
4364            if( $("#minicartproductcount").val() >0 )
4365            {
4366
4367                $(".smallcart #cartEmptyTR").hide();
4368                $(".smallcart #cartPriceTR").show();
4369                $(".smallcart #cartPrice").html($("#minicarttotal").val());
4370                $(".smallcart #cartQuantity").html($("#minicartproductcount").val());
4371
4372            }
4373            else
4374            {
4375                $(".smallcart #cartEmptyTR").show();
4376                $(".smallcart #cartPriceTR").hide();
4377            }
4378        }
4379
4380        if (render_sonquan=="1")
4381        {
4382            setproductsonquantity();
4383        }
4384        setcustomscroller();
4385 
4386        ViewFloatingCart();
4387
4388
4389            if ( $("#minicartproductcount").val() == "0" )  
4390                {
4391                    $(".cart-link").each( function() 
4392                    {
4393                        $(this).attr("href","#");
4394                    });
4395                }
4396            else
4397            {
4398                  $(".cart-link").each( function() {
4399                        $(this).attr("href","/cart.asp");
4400                    });
4401            }
4402        
4403        
4404         
4405
4406        $("#minicartdiv .cart_dimension_type").each( function ( index ){
4407            var temp_attr_name  = $(this).attr("name");
4408            $(this).attr("name", temp_attr_name + "mc"  );
4409            var attr = $(this).attr('checked');
4410            if (typeof attr !== typeof undefined && attr !== false) {
4411                $(this).prop("checked", true); 
4412            }
4413        });
4414 
4415        $("#sidebarcartdiv .cart_dimension_type").each( function ( index ){
4416            var temp_attr_name  = $(this).attr("name");
4417            $(this).attr("name", temp_attr_name + "sb"  );
4418            var attr = $(this).attr('checked');
4419            if (typeof attr !== typeof undefined && attr !== false) {
4420                $(this).prop("checked", true); 
4421            }
4422        });
4423
4424
4425            if ( $("#cart-points").length > 0 )
4426            {
4427                $.get('/siteservices.asp?service=points_cart_get', function(data)
4428                    {
4429                        $("#cart-points span").html(data);
4430                        
4431                    });
4432            }
4433
4434  
4435 
4436    }) ;
4437}
4438catch (err)
4439        { }
4440 
4441}
4442
4443 var cartmobilepopuptimer = "";
4444
4445function mobile_minicart_toggle(num)
4446{
4447    // console.log("mobile_minicart_toggle = " + num);
4448     $("#mobile_minicart").toggle();
4449}
4450
4451function Ajax_updateCartInfo()
4452{
4453	  
4454     RenderAllCarts();
4455
4456     try {
4457 
4458            clearTimeout(cartmobilepopuptimer);   
4459            
4460            if (  !$("#mobile_minicart").is(':visible') )
4461            {
4462                //$("#mobile_header .header_smallcart").trigger("click");
4463               mobile_minicart_toggle("6");
4464            }
4465 
4466             cartmobilepopuptimer = setTimeout(function() {
4467                    //$("#mobile_header .header_smallcart").trigger("click");
4468                  mobile_minicart_toggle("7");
4469               }, 6000 );
4470            
4471            
4472         }
4473     catch (err)
4474         { }
4475    
4476     if ($('#SlidingCart').length)
4477        {
4478            OpenFloatingCart();
4479        }
4480        else
4481        {
4482             OpenSmallCart();
4483        }
4484        
4485        cart_opened = true;
4486       
4487}
4488
4489
4490
4491
4492
4493function AddToCartAjaxDivNote(xml, p, t)
4494{
4495
4496
4497        try { removeAjaxDivNote(); }
4498        catch (e) { }
4499
4500            var e
4501	        if(window.ActiveXObject){
4502	        // *** IE
4503	            var xmlDom = getDOMObject();
4504	            xmlDom.loadXML(xml);
4505	            p = xmlDom.getElementsByTagName("PRICE")[0].text;
4506	            t = xmlDom.getElementsByTagName("QUANTITY")[0].text;
4507	        }
4508	        else if (document.implementation && document.implementation.createDocument)
4509	        {
4510	        // *** Mozilla
4511	        var oParser = new DOMParser();
4512	        var xmlDom = oParser.parseFromString(xml,'text/xml');
4513	            p = xmlDom.getElementsByTagName("PRICE")[0].textContent;
4514	            t = xmlDom.getElementsByTagName("QUANTITY")[0].textContent;
4515	        }
4516
4517	        if (p != "" && t != "" && p != "undefined" && t != "undefined") {
4518	            try {
4519	                var ni = document.getElementById('MainWrapDiv');
4520	                var newdiv = document.createElement('div');
4521	                var divIdName = 'AddToCartAjaxDivNote';
4522	                newdiv.setAttribute('id', divIdName);
4523	                newdiv.innerHTML = "<a class=\'DelAddToCartAjaxDivNote\' href=\'#\' onclick=\'removeAjaxDivNote()\'><span>X</span></a> <h3>"+CartAjaxAddTxt+"</h3><p class='info'> " + t+ " " +CartAjaxQuantityName +  " | " +CartAjaxTotalName+ " " + currentCurrencySign+p +  "</p><p class='buttons'><a class='cartlink' href='/cart.asp' >"+CartAjaxBuyingTxt+"</a>&nbsp;<a class='checkoutlink' href='#' onclick=\'removeAjaxDivNote()\' >"+CartAjaxContinueTxt+"</a></p>";
4524	                ni.appendChild(newdiv);
4525                    showdeadcenterdiv("AddToCartAjaxDivNote");
4526	            }
4527	            catch (e) { }
4528	        }
4529    }
4530 
4531
4532var ObjName;
4533var tempval;
4534var templateSubCatOffset=0;
4535
4536function IsEmptyStr(objName){
4537	if (eval(objName+".value")==""){
4538		return true;
4539	}
4540	else{
4541		tempval = new String(eval(objName+".value"))
4542		for (y=0;y<tempval.length;y++){
4543				if (tempval.substring(y,y+1) != " "){
4544					tempval=tempval.slice(y,tempval.length);
4545					y = tempval.length;
4546					eval(objName+".value = tempval")
4547				}
4548				else {
4549						if (y == tempval.length-1){
4550							eval(objName+".value = ''")
4551							return true;
4552						}
4553				}
4554		}
4555	}
4556	tempval = new String(eval(objName+".value"))
4557	for (y=tempval.length;y>0;y--){
4558		if (tempval.substring(y-1,y) != " "){
4559			tempval = tempval.slice(0,y);
4560			y=0;
4561			eval(objName+".value = tempval")
4562		}
4563	}
4564	return false;
4565}
4566
4567
4568function Cat_mouseover(cate1,num){
4569if (cate1 != glbl_int_cat1_menu_num){
4570glbl_int_cat1_menu_num = cate1;
4571
4572var start_div = "";
4573var mid_div = "";
4574var end_div = "";
4575var found_cat2 = 0;
4576eval("cat2array = cat1_"+cate1+"_cat2array")
4577//	document.body.scrollLeft = 150;
4578	
4579	winW2 = (document.layers)? window.innerWidth-16 : document.body.offsetWidth-20
4580	winW1 = 960
4581	winW = (winW2-winW1)/2 + winW1
4582	
4583	my = (document.layers)? e.layerY:event.y;
4584	mx = (document.layers)? e.layerX:event.x;
4585	my_off = event.offsetY
4586	mx_off = event.offsetX
4587	my_dsTOP = document.body.scrollTop
4588	my_dsLFT = document.body.scrollLeft
4589
4590
4591	document.getElementById("Cat2lay").style.top = my-20+my_dsTOP;
4592	if (langdir == "rtl" ){
4593		document.getElementById("Cat2lay").style.left = winW-235+my_dsLFT+templateSubCatOffset;}
4594	else {
4595	   
4596		document.getElementById("Cat2lay").style.left = 229;
4597	   
4598	}
4599
4600	if (num > 0){
4601		tbl_mover = "onmouseover=document.all.df"+num+".style.backgroundColor='#FFFFFF'"
4602		tbl_mout = "onmouseout=document.all.df"+num+".style.backgroundColor=''"
4603	}
4604	else{
4605		tbl_mover = ""
4606		tbl_mout = ""
4607	}
4608
4609	start_div = "<table cellpadding=4 cellspacing=1 border=0 bgcolor='black' width=120 "+tbl_mover+" "+tbl_mout+" style='cursor:hand'>";
4610	for (i=0;i < cat2array.length;i++){
4611		if (cat2array[i][0]==cate1){
4612			//products_href = "products.asp?Cat2Cat1ID="+cat2array[i][0]+"&Cat2ID="+cat2array[i][1];
4613			var products_href = "items~"+cat2array[i][0]+"~"+cat2array[i][1]+".htm";
4614			mid_div=mid_div+"<tr><td bgcolor='#898989' align=center id=cat2mo"+i+" class='sub_cats_txt_col' onmouseover='Cat2_mouseover("+i+")'  onmouseout='Cat2_mouseout("+i+")' onclick=document.location='"+products_href+"' dir='"+langdir+"'>"+cat2array[i][2]+"<\/td><\/tr>";
4615		}
4616	}
4617
4618	end_div = "<\/table>";
4619	document.getElementById("Cat2lay").innerHTML = start_div+mid_div+end_div;
4620	document.getElementById("Cat2lay").style.display = 'block'
4621
4622}
4623}
4624
4625
4626function Cat_mouseout(){
4627	if (document.getElementById("Cat2lay").style.display == 'block')
4628		var timer = setTimeout('close_menus()',2500);
4629}
4630
4631function close_menus(){
4632	if (glbl_bln_oncat2 == 0){
4633		document.getElementById("Cat2lay").style.display = 'none'
4634		glbl_int_cat1_menu_num = -1;
4635	}
4636}
4637
4638
4639function Cat2_mouseover(i){
4640	glbl_bln_oncat2 = 1;
4641	eval("document.all.cat2mo"+i+".style.backgroundColor='#898989'")
4642	eval("document.all.cat2mo"+i+".style.color='white'")
4643}
4644
4645function Cat2_mouseout(i){
4646	glbl_bln_oncat2 = 0;
4647	eval("document.all.cat2mo"+i+".style.backgroundColor='#898989'")
4648	eval("document.all.cat2mo"+i+".style.color='#000000'")
4649}
4650
4651function opendiv(cat1id){
4652	if (eval("document.all.tbl_"+cat1id+".style.display") == 'none'){
4653		eval("document.all.pic_"+cat1id+".src = 'images/minus.gif'")
4654		eval("document.all.tbl_"+cat1id+".style.display = 'block'")
4655	}
4656	else{
4657		eval("document.all.pic_"+cat1id+".src = 'images/plus.gif'")
4658		eval("document.all.tbl_"+cat1id+".style.display = 'none'")
4659	}
4660
4661}
4662
4663function directcat1(cid){
4664	eval("cat2array = cat1_"+cid+"_cat2array")
4665	found_cat2 = 0;
4666	for (i=0;i < cat2array.length;i++){
4667		if (cat2array[i][0] == cid){
4668			found_cat2 = cat2array[i][1]
4669			break
4670		}
4671	}
4672	if (found_cat2 == 0){
4673		//document.location='products.asp?Cat2Cat1ID='+cid;
4674		document.location='items~'+cid+'.htm';
4675	}
4676	else{
4677		//document.location='products.asp?Cat2Cat1ID='+cid+'&Cat2ID='+found_cat2;
4678		document.location='items~'+cid+'~'+found_cat2+'.htm';
4679	}
4680}
4681
4682function subserach(){
4683	if ((IsEmptyStr('document.all.srch_str.value')) || (document.all.srch_str.value.length > 1) || document.all.srch_manufact.value != ""){
4684		document.quicksearch.qsearch.value = document.all.srch_str.value
4685		document.quicksearch.qmanufact.value = document.all.srch_manufact.value
4686		document.quicksearch.submit()
4687	}
4688}
4689
4690function chkchr(){
4691    if (window.event.keyCode == 13)
4692        subserach()
4693}
4694
4695
4696function setCartInfo(xml,p,t){
4697
4698	var e
4699
4700	var cartarray = xml.split("{|}");
4701	var p = cartarray[1];
4702	var t = cartarray[2];
4703
4704	//var p = $(xml).find('PRICE').text();
4705    //var t = $(xml).find('QUANTITY').text();
4706
4707	if (p != "" && t != "" && p != "undefined" && t != "undefined"){
4708	    try
4709        {
4710    	    $("#cartQuantity").html(t);
4711            $("#cartPrice").html(p);
4712            //var cartp = document.getElementById("cartPrice");
4713		    //var cartq = document.getElementById("cartQuantity");
4714    		var cartpTR = document.getElementById("cartPriceTR");
4715    		var cartqTR = document.getElementById("cartQuantityTR");
4716		    var carteTR = document.getElementById("cartEmptyTR");
4717		    carteTR.style.display = 'none';
4718    		//cartp.innerHTML = p;
4719	    	//cartq.innerHTML = t;
4720            cartpTR.style.display = '';
4721    		cartqTR.style.display = '';
4722    	}
4723    	catch(e){};
4724	}
4725	else{
4726	    try
4727	    {
4728	        var carteTR = document.getElementById("cartEmptyTR");
4729		    carteTR.style.display = '';
4730		}
4731		catch(e){}
4732	}
4733}
4734
4735// Floating banners //
4736var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
4737
4738function positionit(pos,div,w,h,ho,vo){
4739	//ho = HorizontalOffset //vo = VerticalOffset;
4740	var bannerObj=ie? eval("document.all."+div) : document.getElementById? document.getElementById(div) : eval("document."+div)
4741	var dsocleft=ie? document.body.scrollLeft : pageXOffset
4742	var dsoctop=ie? document.body.scrollTop : pageYOffset
4743	var window_width=ie? document.body.clientWidth : window.innerWidth-20
4744
4745	if (ie||document.getElementById){
4746		if(pos == "L")
4747			bannerObj.style.left=parseInt(dsocleft)+5+ho
4748		else
4749			bannerObj.style.left=parseInt(dsocleft)+parseInt(window_width)-w-ho
4750		bannerObj.style.top=parseInt(dsoctop)+5+vo
4751	}
4752	else if (document.layers){
4753		if(pos == "L"){
4754			bannerObj.left=dsocleft+5+ho
4755			bannerObj.top=dsoctop+5+vo
4756		}
4757		else{
4758			bannerObj.left=dsocleft+window_width-ho-w
4759			bannerObj.top=dsoctop+window_height+5+vo
4760		}
4761	}
4762}
4763
4764function beingFloatingBanners(){
4765	var window_width=ie? document.body.clientWidth : window.innerWidth-20
4766	
4767		if(window_width > 1100){
4768			if (document.getElementById("FloatBNRight").innerHTML.length > 20 ){
4769				document.getElementById("FloatBNRight").style.display='block';
4770				setInterval("positionit('R','FloatBNRight',80,200,25,0)",50);
4771			}
4772			if (document.getElementById("FloatBNLeft").innerHTML.length > 20 ){
4773				document.getElementById("FloatBNLeft").style.display='block';
4774				setInterval("positionit('L','FloatBNLeft',80,200,2,0)",50);
4775			}
4776		}
4777	
4778}
4779</script>
4779
4780
4781  
4782
4783
4784     
4785    
4786    
4787    
4787<script>
4788
4789
4790   
4791
4792
4793$( document ).ready(function() {
4794
4795    
4796    
4797    $( ".first_layer" ).delegate( "*", "focus blur", function() {
4798        var elem = $( this );
4799            if(elem.is(":focus") == true ){
4800            elem.parent().addClass( "active" );
4801        }
4802        else {
4803            elem.parent().removeClass( "active" );
4804        }
4805    });
4806
4807    
4808
4809    $("body").on( "click", ".product_add_to_cart_button", function(){
4810    
4811        var product_ids ='';
4812        $(".item_checkbox_input:checked").each( function(){
4813             if ( $(this).parents(".boxItem").find(".product_son").length ) {
4814                product_ids = product_ids + $(this).parents(".boxItem").find(".product_son:checked").val()+ ", ";
4815             } 
4816             else 
4817             {
4818                if ( $(this).val() != '' ){
4819                    product_ids = product_ids + $(this).val() + ", ";
4820                }
4821            }
4822        });
4823
4824        if ( product_ids != '' ){
4825            product_ids = product_ids.substring(0, product_ids.length - 2);
4826         
4827            $.post( "/cartLogic.asp?ajax=1", { pid:product_ids } ).done(function( data ) {
4828                RenderAllCarts();
4829                OpenSmallCart();
4830            });
4831        }
4832    return false;
4833    });
4834    
4835
4836   
4837
4838    $("body").on( "click", "#product_multi_checkbox", function(){
4839
4840        if  ( $(this).is(":checked") )      
4841            {
4842                $(".item_checkbox_input").each (function(){
4843                $(this).prop("checked",true);
4844                });
4845            }
4846        else
4847            {
4848                $(".item_checkbox_input").each (function(){
4849                    $(this).prop("checked",false);
4850                });
4851            }
4852 
4853    });                        
4854       
4855  });
4856
4857 $(document).ready(function() {
4858   
4859   
4860    // Hide the div when clicking the close icon
4861    $(document).on('click', '.close-icon', function() {
4862        $(this).parent().hide();
4863    });
4864
4865     // Hide the div when clicking outside of it
4866   $(document).click(function(event) {
4867        var $target = $(event.target);
4868        if(!$target.closest('.mobile_search_form').length && $('.mobile_search_form').is(":visible")) {
4869            $('.mobile_search_form').hide();
4870        }
4871
4872         if(!$target.closest('#mobile_minicart').length && $('#mobile_minicart').is(":visible")) {
4873           $('#mobile_minicart').hide();
4874        }
4875    });
4876
4877    
4878});
4879
4880
4881(() => {
4882  const prefix = 'animate__';
4883
4884  function play(el, anim) {
4885    const trimmedAnim = anim.trim();
4886    const cls = `${prefix}${trimmedAnim}`;
4887    el.classList.add(`${prefix}animated`, cls);
4888    el.addEventListener('animationend', () => {
4889      el.classList.remove(cls);         
4890    }, { once: true });
4891  }
4892
4893  function stripAnimate(el) {
4894    // remove any animate.css classes that might have been pre-added
4895    el.className = el.className.replace(/\banimate__\S+/g, '').trim();
4896  }
4897
4898  let io = null;
4899
4900  function getObserver() {
4901    if (io) return io;
4902    const prefersReduced = matchMedia('(prefers-reduced-motion: reduce)').matches;
4903
4904    // If your items scroll inside a container, set root to that container
4905    // const rootEl = document.querySelector('.your-scrollable-wrapper');
4906
4907    io = new IntersectionObserver((entries, obs) => {
4908      entries.forEach(entry => {
4909        if (!entry.isIntersecting || entry.intersectionRatio < 0.01) return;
4910
4911        const el = entry.target;
4912        const anim = el.getAttribute('data-animation');
4913
4914        if (prefersReduced) {
4915          el.classList.add(`${prefix}animated`); // reveal without motion
4916        } else {
4917          play(el, anim);
4918        }
4919
4920        obs.unobserve(el); // animate once
4921      });
4922    }, {
4923      root: null,        // change to rootEl if not window scrolling
4924      threshold: 0.01,
4925      rootMargin: '0px 0px -5% 0px'
4926    });
4927    return io;
4928  }
4929
4930  // Observe every element that declares data-animation inside `root` (root itself included).
4931  // Runs once on DOM ready and again for every node injected later (infinite scroll,
4932  // lazyscroll blocks, ajax popups) - otherwise those stay at opacity:0 forever because
4933  // nothing ever adds animate__animated to them.
4934  function observeAnimations(root) {
4935    const scope = root || document;
4936    const items = Array.prototype.slice.call(scope.querySelectorAll('[data-animation]'));
4937    if (scope.nodeType === 1 && scope.hasAttribute('data-animation')) items.unshift(scope);
4938    if (!items.length) return;
4939
4940    const obs = getObserver();
4941    items.forEach(el => {
4942      if (el.dataset.esAnimObserved === '1') return; // already handled (or already played)
4943      el.dataset.esAnimObserved = '1';
4944      stripAnimate(el);
4945      obs.observe(el);
4946    });
4947  }
4948
4949  function bootAnimations() {
4950    observeAnimations(document);
4951    if (!window.MutationObserver || !document.body) return;
4952    if (window.__esAnimObserver) return;
4953    window.__esAnimObserver = new MutationObserver(mutations => {
4954      mutations.forEach(mutation => {
4955        mutation.addedNodes.forEach(node => {
4956          if (node.nodeType === 1) observeAnimations(node);
4957        });
4958      });
4959    });
4960    window.__esAnimObserver.observe(document.body, { childList: true, subtree: true });
4961  }
4962
4963  window.es_observe_animations = observeAnimations;
4964
4965  if (document.readyState === 'loading') {
4966    document.addEventListener('DOMContentLoaded', bootAnimations);
4967  } else {
4968    bootAnimations();
4969  }
4970})();
4971
4972(function() {
4973  function clearHaClasses(el) {
4974    el.classList.remove('es-ha-in', 'es-ha-out');
4975  }
4976
4977  function bindHoverAnim(el) {
4978    if (el.dataset.esHaBound === '1') return;
4979    el.dataset.esHaBound = '1';
4980
4981    el.addEventListener('mouseenter', function() {
4982      clearHaClasses(el);
4983      void el.offsetWidth;
4984      el.classList.add('es-ha-in');
4985    });
4986
4987    el.addEventListener('mouseleave', function() {
4988      clearHaClasses(el);
4989      void el.offsetWidth;
4990      el.classList.add('es-ha-out');
4991      var onEnd = function(e) {
4992        if (e.target !== el || e.animationName === 'none') return;
4993        el.classList.remove('es-ha-out');
4994        el.removeEventListener('animationend', onEnd);
4995      };
4996      el.addEventListener('animationend', onEnd);
4997    });
4998  }
4999
5000  function initEsHoverAnims(root) {
5001    var scope = root || document;
5002    var boxes = scope.querySelectorAll('[id^="designbox_"]');
5003    boxes.forEach(function(box) {
5004      var candidates = [box].concat(Array.prototype.slice.call(box.querySelectorAll('*')));
5005      candidates.forEach(function(el) {
5006        try {
5007          if (getComputedStyle(el).getPropertyValue('--es-ha').trim()) {
5008            bindHoverAnim(el);
5009          }
5010        } catch (e) {}
5011      });
5012    });
5013  }
5014
5015  function bootEsHoverAnims() {
5016    initEsHoverAnims(document);
5017    if (!window.MutationObserver || !document.body) return;
5018    if (window.__esHoverAnimObserver) return;
5019    window.__esHoverAnimObserver = new MutationObserver(function(mutations) {
5020      mutations.forEach(function(mutation) {
5021        mutation.addedNodes.forEach(function(node) {
5022          if (node.nodeType === 1) initEsHoverAnims(node);
5023        });
5024      });
5025    });
5026    window.__esHoverAnimObserver.observe(document.body, { childList: true, subtree: true });
5027  }
5028
5029  if (document.readyState === 'loading') {
5030    document.addEventListener('DOMContentLoaded', bootEsHoverAnims);
5031  } else {
5032    bootEsHoverAnims();
5033  }
5034})();
5035
5036
5037</script>
5037
5038
5039 
5040
5041
5042</head>
5043
5044<body class="page-default he   is_desktop      "   >
5045 
5046     
5047<div id="fb-root"></div>
5048<div id="pl_web_page">
5049   <div id="pl_web_page_wrap">
5050 
5051    <div id="scroll-all" style="position: fixed; right: 10px; bottom: 10%; z-index: 100; display: block;z-index: 99999;">
5052        <div id="scroll-full"></div>
5053        <div id="scroll-bottom"></div>
5054    </div>
5055 
5056
5057                <div id="FloatBNLeft" style="display:none;float:left"  >
5058                
5059                </div>
5060
5061                <div id="FloatBNRight"  style="display:none;float:right"  >
5062                  
5063                </div>
5064      
5065        <div id="SlidingCart" style="display:none">
5066              <div id="FlyingCartDiv">
5067                <div class="confetti-wrapper"></div>
5068                    <div id="InnerCartDiv">
5069                        <div class="FlyingCartDivWrap"><div class="emptycart text">èåòï òâìä àðà äîúï...</div></div></div>
5070                        
5071                        <div class="cart_content">
5072
5073                    
5074                        <div id="cart_add_order_comment" class="cart_content_panel">
5075                            <i class="fal fa-times close"></i>
5076                            <h3 class="mb-4">äåñôú äòøä ìäæîðä</h3>
5077                            <div class="form-group">
5078                                <textarea class="form-control"  aria-label="äåñéôå äòøåú îéåçãåú ìäæîðä (ëîå äðçéåú ìùìéç)" placeholder="äåñéôå äòøåú îéåçãåú ìäæîðä (ëîå äðçéåú ìùìéç)"></textarea>
5079                            </div>
5080                            <button class="btn btn-block btn-primary" id="save_cart_order_comment">ùîéøú äòøä</button>
5081                        </div>
5082                    
5083                        <!-- Content for "Coupon Code" -->
5084                        <div id="cart_choose_coupons" class="cart_content_panel">
5085                            <i class="fal fa-times"></i>
5086                            <div class="loader" style="display: none;">
5087                                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" style="width:120px; height:120px;">
5088                                    <defs>
5089                                        <linearGradient id="a1" x1="0%" y1="0%" x2="100%">
5090                                            <stop offset="0%" stop-color="#000000" stop-opacity="1"></stop>
5091                                            <stop offset="100%" stop-color="#333333" stop-opacity="1"></stop>
5092                                        </linearGradient>
5093                                    </defs>
5094                                    <circle transform-origin="center" fill="none" stroke="url(#a1)" stroke-width="7" stroke-linecap="round" stroke-dasharray="200 1000" stroke-dashoffset="0" cx="100" cy="100" r="70">
5095                                        <animateTransform type="rotate" attributeName="transform" calcMode="spline" dur="0.7s" values="360;0" keyTimes="0;1" keySplines="0 0 1 1" repeatCount="indefinite"></animateTransform>
5096                                    </circle>
5097                                    <circle transform-origin="center" fill="none" opacity=".2" stroke="black" stroke-width="1.62" stroke-linecap="round" cx="100" cy="100" r="70"></circle>
5098                                </svg>
5099                            </div>
5100                            <div class="panel_content"></div>
5101
5102                            <h3 class="mt-4">éù ìê ÷åã ÷åôåï?</h3>
5103                            <div class="form-group">
5104                            <input type="text" value="" placeholder="÷åã ÷åôåï" aria-label="÷åã ÷åôåï"  class="form-control"  name="cart_coupon_code" id="cart_coupon_code"> 
5105                                <span id="cart_coupon_code_error" class="error"></span>
5106                            </div>
5107                            <button class="btn btn-block btn-primary" id="apply_cart_coupon">äçì ÷åôåï</button>
5108                        </div>
5109                    
5110                        <!-- Content for "Delivery Details" -->
5111                        <div id="cart_delivery_details" class="cart_content_panel">
5112                              
5113                            <i class="fal fa-times"></i>
5114                            <h3>ôøèé äîùìåç</h3>
5115                            <div class="loader" style="display: none;">
5116                                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" style="width:120px; height:120px;">
5117                                    <defs>
5118                                        <linearGradient id="a1" x1="0%" y1="0%" x2="100%">
5119                                            <stop offset="0%" stop-color="#000000" stop-opacity="1"></stop>
5120                                            <stop offset="100%" stop-color="#333333" stop-opacity="1"></stop>
5121                                        </linearGradient>
5122                                    </defs>
5123                                    <circle transform-origin="center" fill="none" stroke="url
5123(#a1)" stroke-width="7" stroke-linecap="round" stroke-dasharray="200 1000" stroke-dashoffset="0" cx="100" cy="100" r="70">
5124                                        <animateTransform type="rotate" attributeName="transform" calcMode="spline" dur="0.7s" values="360;0" keyTimes="0;1" keySplines="0 0 1 1" repeatCount="indefinite"></animateTransform>
5125                                    </circle>
5126                                    <circle transform-origin="center" fill="none" opacity=".2" stroke="black" stroke-width="1.62" stroke-linecap="round" cx="100" cy="100" r="70"></circle>
5127                                </svg>
5128                            </div>
5129                            <div class="panel_content"></div>
5130                                  
5131                        </div>
5132                     
5133
5134                    </div>
5135
5136                    
5136<script>
5137
5138            function startConfetti() {
5139                const confettiWrapper = document.querySelector('.confetti-wrapper');
5140
5141                // Clear any existing confetti
5142                confettiWrapper.innerHTML = '';
5143
5144                // Show the confetti wrapper
5145                confettiWrapper.style.display = 'block';
5146
5147                const totalConfetti = 150; // Total number of confetti pieces
5148                let completedConfetti = 0; // Track completed animations
5149
5150                for (let i = 0; i < totalConfetti; i++) {
5151                    const confetti = document.createElement('div');
5152                    confetti.classList.add('confetti-piece');
5153
5154                    // Random position, size, and animation duration
5155                    confetti.style.left = `${Math.random() * 100}%`;
5156                    confetti.style.setProperty('--fall-duration', `${Math.random() * 2 + 1}s`);
5157                    confetti.style.setProperty('--confetti-color', getRandomColor());
5158
5159                    // Randomly create rectangles or arcs
5160                    if (Math.random() > 0.5) {
5161                        const isSmall = Math.random() > 0.7;
5162                        const width = isSmall ? `${Math.random() * 5 + 2}px` : `${Math.random() * 10 + 5}px`;
5163                        const height = isSmall ? `${Math.random() * 10 + 5}px` : `${Math.random() * 20 + 10}px`;
5164                        confetti.style.width = width;
5165                        confetti.style.height = height;
5166                    } else {
5167                        confetti.classList.add('confetti-arc');
5168                        const size = `${Math.random() * 6 + 3}px`;
5169                        confetti.style.width = size;
5170                        confetti.style.height = size;
5171                        confetti.style.setProperty('--arc-rotation', `${Math.random() * 360}deg`);
5172                    }
5173
5174                    // Add confetti with staggered delays
5175                    setTimeout(() => {
5176                        confettiWrapper.appendChild(confetti);
5177
5178                        // Remove confetti when animation ends
5179                        confetti.addEventListener('animationend', () => {
5180                            confetti.remove();
5181                            completedConfetti++;
5182
5183                            // Hide the wrapper when all confetti is done
5184                            if (completedConfetti === totalConfetti) {
5185                                confettiWrapper.style.display = 'none';
5186                            }
5187                        });
5188                    }, Math.random() * 1000); // Staggered start
5189                }
5190            }
5191
5192            function getRandomColor() {
5193                const colors = [
5194                    '#ff6347', '#ffa500', '#32cd32', '#1e90ff', '#ff69b4',
5195                    '#9400d3', '#00ced1', '#f4a460', '#7fff00', '#ff4500'
5196                ];
5197                return colors[Math.floor(Math.random() * colors.length)];
5198            }
5199                      
5200                      
5201$(document).ready(function () {
5202 
5203    $("body").on("click", "#SlidingCart .coupon_box" , function(){
5204        var current_coupon = $(this).find(".code").text();
5205        $("#cart_coupon_code").val(current_coupon);
5206
5207    });
5208    $("#apply_cart_coupon").on("click",function(){
5209        let coupon_is_valid = true;
5210        const cart_coupon_code = $("#cart_coupon_code");
5211            if (!cart_coupon_code.val()) {
5212                coupon_is_valid = false;
5213                cart_coupon_code.css("border", "1px solid red");
5214                $("#cart_coupon_code_error").text("Type coupon code"); // Show error
5215            } else {
5216                cart_coupon_code.css("border", "");
5217                $("#cart_coupon_code_error").text(""); // Clear error
5218            }
5219        if (coupon_is_valid){
5220            
5221            
5222		        $.get("/services/CartServices.asp?service=setcoupon&CouponCode=" + cart_coupon_code.val(), function (data)
5223                {
5224                        answer = data.split("|");
5225                        if (answer[0] == "1")
5226                        {
5227		                    RenderAllCarts();
5228                            $(".cart_content_panel").removeClass("active");
5229                              $(".FlyingCartDivWrap").removeClass("opacity");
5230                            startConfetti();
5231		                }
5232		                else
5233                        {
5234		                   if (answer[1] != "")
5235                           {
5236                              $("#cart_coupon_code_error").text(answer[1]); // Show error
5237		                   }
5238		                    return false;
5239		                }
5240
5241		        });
5242        }
5243    });
5244
5245  // Save the comment to localStorage on button click
5246  $("#save_cart_order_comment").on("click", function () {
5247    const commentTextarea = $("#cart_add_order_comment textarea");
5248    const comment = commentTextarea.val().trim(); // Get the value of the textarea
5249
5250    if (comment) {
5251    localStorage.setItem("order_comment", comment); // Save to localStorage
5252    commentTextarea.val(comment); // Clear the textarea after saving
5253    } else {
5254      
5255    }
5256     $(".cart_content_panel").removeClass("active");
5257      $(".cart_content").removeClass("active");
5258      $(".FlyingCartDivWrap").removeClass("opacity");
5259  });
5260
5261  // Optional: Load saved comment on page load
5262  const savedComment = localStorage.getItem("order_comment");
5263  if (savedComment) {
5264    $("#cart_add_order_comment textarea").val(savedComment); // Populate the textarea with the saved comment
5265  }
5266
5267  // Handle tab clicks to open panels
5268  $("body").on( "click", ".cart_tab", function (e) {
5269   
5270        $(".FlyingCartDivWrap").addClass("opacity");
5271        const targetid    = $(this).attr("data-target");
5272        const targetPanel = $($(this).data("target"));
5273    
5274        // Check if the target panel exists
5275        if (targetPanel.length) {
5276        // Show the loader if the panel is empty
5277        const loader = targetPanel.find(".loader");
5278        const panelContent = targetPanel.find(".panel_content");
5279        
5280        if (targetid == "#cart_choose_coupons"){
5281            var url = "/siteservices.asp?service=get_cart_tab&params=cart_choose_coupons"  ;
5282        }
5283        
5284        if (targetid == "#cart_delivery_details"){
5285            var url = "/siteservices.asp?service=get_cart_tab&params=cart_delivery_details"  ;
5286        }
5287         
5288        if ( targetid != "#cart_add_order_comment" ) {
5289            if (!panelContent.html().trim() ) {
5290                loader.show(); // Show the loader
5291                 
5292                $.ajax({
5293                url:  url  , // Replace with your endpoint URL
5294                method: "GET",
5295                dataType: "html",
5296                success: function (response) {
5297                    panelContent.html(response); // Insert the HTML content
5298                    loader.hide(); // Hide the loader
5299                },
5300                error: function () {
5301                    loader.hide(); // Hide the loader on error
5302                },
5303                });
5304
5305                }
5306        }
5307
5308      $(".cart_content_panel").removeClass("active");
5309      // Close all panels and open the current one
5310      $(".content_panel").removeClass("active");
5311      targetPanel.addClass("active");
5312      $(".cart_content").addClass("active");
5313
5314    }
5315
5316    return false;
5317  });
5318
5319
5320  // Handle clicking outside to close panels
5321  $(document).on("click", function (e) {
5322    if (
5323      !$(e.target).closest(".cart_tabs").length &&
5324      !$(e.target).closest(".cart_content").length
5325    ) {
5326      $(".cart_content_panel").removeClass("active");
5327      $(".cart_content").removeClass("active");
5328        $(".FlyingCartDivWrap").removeClass("opacity");
5329    }
5330  });
5331
5332  // Handle "fa-times" click to close the specific panel
5333  $(".fal.fa-times").on("click", function (e) {
5334    e.stopPropagation(); // Prevent triggering the document click listener
5335    const parentPanel = $(this).closest(".cart_content_panel");
5336    if (parentPanel.length) {
5337      parentPanel.removeClass("active");
5338      $(".cart_content").removeClass("active");
5339        $(".FlyingCartDivWrap").removeClass("opacity");
5340    }
5341  });
5342});
5343                    </script>
5343
5344
5345                    <div class="empty" id="CartIcon">
5346                        <span id="floatingcart-total"></span>
5347                        <i class="fal fa-shopping-cart icon " aria-hidden="true"></i>
5348                    </div>
5349                </div>
5350            
5351        </div>
5352    
5353 
5354    <div id="Cat2lay"></div>
5355
5356    
5357        <div align="center" id="MainWrapDiv" >
5358        <div align="center" id="MainContentDiv" >
5359    
5360        
5361           <!--[ header start ]-->
5362           
5363
5364
5365
5366                        <div id="header" class="header">
5367
5368
5369                                <div class="header_wrap">
5370                                    <div class="container_16 wrap " > 
5371                                <!--[ start_userbar_6 ]-->
5372                            <div class=" lazyload designbox header_userbar"  id="designbox_6"  >
5373
5374                           </div><!--[ end_userbar_6 ]--><!--[ start_menu_7 ]-->
5375                            <div class=" designbox header_menu"  id="designbox_7"  >
5376
5377                           
5378                <div class="block menu grid_16"  >
5379                
5380                    <div class="content ">
5381
5382         <ul class="dropdown-menu  ">
5383    	                
5384						                <li class=" first  parent">
5385    						                <a class=""  href="/"  ><span>øàùé</span></a>
5386							                  </li>   
5387						                <li class=" parent">
5388    						                <a class=""  href="/infopage.asp?page=183"  ><span>àåãåúéðå</span></a>
5389							                  </li>   
5390						                <li class=" parent">
5391    						                <a class=""  href="/infopage.asp?page=216"  ><span>ú÷ðåï  </span></a>
5392							                  </li>   
5393						                <li class=" parent">
5394    						                <a class=""  href="/infopage.asp?page=190"  ><span>á÷øåá</span></a>
5395							                
5396						  	                        <ul>
5397							                            <li class=""><a class=""  href="/infopage.asp?page=198"  ><span>îàîø øàùåï</span></a>
5398
5399        								                             
5400
5401        								                           </li><li class=""><a class=""  href="/infopage.asp?page=199"  ><span>îàîø ùðé</span></a>
5402
5403        								                             
5404
5405        								                           </li><li class=""><a class=""  href="/infopage.asp?page=200"  ><span>îàîø ùìéùé</span></a>
5406
5407        								                             
5408
5409        								                           </li>
5410				  		                            </ul>
5411
5412				  		              </li>   
5413						                <li class=" parent">
5414    						                <a class=""  href="contact.asp?page=184"  ><span>öåø ÷ùø</span></a>
5415							                  </li>   
5416                    </ul>
5417          </div></div>
5418
5419          
5420       
5420<script type="text/javascript" >
5421           $(document).ready(function(){
5422               
5423                
5424                $("ul.dropdown-menu").supersubs({
5425                   minWidth:    12,
5426                   maxWidth:    27,
5427                   delay:       0,
5428                   extraWidth:  1
5429               }).superfish();
5430               
5431            });
5432      </script>
5432
5433  </div><!--[ end_menu_7 ]--><!--[ start_header_banner1_12 ]-->
5434                            <div class=" designbox header_header_banner1"  id="designbox_12"  >
5435
5436                           
5437                            <div class="header-banner1 banner-div" ><div class='banner-block editorcss'  ><a ee_promo_loc="header_banner1" ee_promo_name="ìåâå" ee_promo_id="145" href="/" class='eventtracking ee_promo image b15'  target='_blank'><span></span></a><P dir=ltr><IMG style="MARGIN-LEFT: 10px" border=0 alt="ìåâå" align=top src="/images/itemPics/uploads/banner medicon.jpg" width=940 height=100></P></div></div>
5438                       </div><!--[ end_header_banner1_12 ]--><!--[ start_header_banner2_13 ]-->
5439                            <div class=" designbox header_header_banner2"  id="designbox_13"  >
5440
5441                           
5442                            <div class="header-banner2 banner-div" ></div>
5443                         </div><!--[ end_header_banner2_13 ]--><!--[ start_breadcrumb_33 ]-->
5444                            <div class=" lazyload designbox header_breadcrumb"  id="designbox_33"  >
5445
5446                           </div><!--[ end_breadcrumb_33 ]--><!--[ start_header_banner3_14 ]-->
5447                            <div class=" designbox header_header_banner3"  id="designbox_14"  >
5448
5449                           
5450                            <div class="header-banner3 banner-div" ></div>
5451                         </div><!--[ end_header_banner3_14 ]--><!--[ start_header_banner4_15 ]-->
5452                            <div class=" designbox header_header_banner4"  id="designbox_15"  >
5453
5454                           
5455                            <div class="header-banner4 banner-div" ></div>
5456                            </div><!--[ end_header_banner4_15 ]-->
5457                                    </div> 
5458                                </div>
5459                                
5460                        </div>
5461                        
5462           <!--[ header end ]-->
5463            <div id='mobile_header_holder'></div>
5464    <!--[ content start ]-->
5465    
5466<div class="maindivCenter  container_16 page-columns-2  "> 
5467<div class="maindivCenter-wrap"> 
5468
5469    
5470      <div class="homepage_maindiv-banner banner-div"></div>
5471    
5472    <table cellpadding="0" cellspacing="0" class="tlb_main" >
5473    <tr>
5474       <td valign="top">
5475	    
5476	    </td>
5477	    <td valign="top" class = "mainTD" align="center" >
5478            <div class = "mainTDWrap grid_12" >
5479                <div class = "mainTDcontainer" >
5480                          
5481                           
5482                      
5483                       <div class="AllPagesContent_banner banner-div"></div>
5484                       
5485                      
5486                       <!--[ Homepage Start ]-->
5487    <div class="homepage-div" id="homepage">
5488         <!--[ start_homepage_banner1_41 ]-->
5489                            <div class=" designbox homepage_homepage_banner1"  id="designbox_41"  >
5490
5491                           
5492                            <div class="homepage_banner1 banner-div"></div>
5493                            </div><!--[ end_homepage_banner1_41 ]--><!--[ start_homepage_banner2_42 ]-->
5494                            <div class=" designbox homepage_homepage_banner2"  id="designbox_42"  >
5495
5496                           
5497                            <div class="homepage_banner2 banner-div"></div>
5498
5499                            </div><!--[ end_homepage_banner2_42 ]--><!--[ start_spacielitems_36 ]-->
5500                            <div class=" designbox homepage_spacielitems"  id="designbox_36"  >
5501
5502                           
5503
5504   <div class="homepage block hp-slider-product-box jcarousel spacial-items" tabindex="0">
5505
5506
5507                        
5508                                <div class="title"><strong><span>îáöòéí îéåçãéí</span></strong>
5509                               </div>
5510                         
5511
5512
5513
5514
5515                          <div class="content content">
5516                          <div class="spaciels-wrap">
5517
5518
5519  <ul class="jcarousel-skin-tango">
5520<li itemident="270" class="">
5521
5522                 <div class="special-box" id="spaciel-items-v1-0" >
5523
5524
5525
5526                   
5527                                        <div class="item-name"><a href="https://www.medicon.co.il/pl_product~270~2~0.htm">
5527÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </a></div>
5528                                    
5529                                     <div class="imagediv"  ><a class="image"  href="https://www.medicon.co.il/pl_product~270~2~0.htm"><span></span><img alt="÷åøà ñôøéí àì÷èøåðé Pocketbook Era  øåñéú, òáøéú, àðâìéú áîìàé îééãé" title="÷åøà ñôøéí àì÷èøåðé Pocketbook Era  øåñéú, òáøéú, àðâìéú áîìàé îééãé" src='/images/itempics/270_200720220205431_small160.jpg' /></a>
5530                                      
5531                                     </div>
5532                                 
5533                                        <strike class="reg-price">
5534                                            <span class="name">øâéì:</span>
5535                                            <span><em>¤</em>930.00</span>
5536                                            
5537                                        </strike>
5538                                    
5539                                             <div class="sale-price">
5540                                                <span class="name">îáöò:</span>
5541                                                <span><em>¤</em><span class="priceholder" id="spacial_total270" price="859.00">859.00</span></span>
5542                                                
5543                                             </div>
5544                                    
5545                </div>
5546              </li>
5547<li itemident="324" class="">
5548
5549                 <div class="special-box" id="spaciel-items-v1-1" >
5550
5551
5552
5553                   
5554                                        <div class="item-name"><a href="https://www.medicon.co.il/pl_product~324~2~0.htm">÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW</a></div>
5555                                    
5556                                     <div class="imagediv"  ><a class="image"  href="https://www.medicon.co.il/pl_product~324~2~0.htm"><span></span><img alt="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" title="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" src='/images/itempics/324_040920242235091_small160.jpg' /></a>
5557                                      
5558                                     </div>
5559                                 
5560                                        <strike class="reg-price">
5561                                            <span class="name">øâéì:</span>
5562                                            <span><em>¤</em>890.00</span>
5563                                            
5564                                        </strike>
5565                                    
5566                                             <div class="sale-price">
5567                                                <span class="name">îáöò:</span>
5568                                                <span><em>¤</em><span class="priceholder" id="spacial_total324" price="779.00">779.00</span></span>
5569                                                
5570                                             </div>
5571                                    
5572                </div>
5573              </li>
5574<li itemident="238" class="">
5575
5576                 <div class="special-box" id="spaciel-items-v1-2" >
5577
5578
5579
5580                   
5581                                        <div class="item-name"><a href="https://www.medicon.co.il/pl_product~238~10~0.htm">Confirmation of our status of an official distributor</a></div>
5582                                    
5583                                     <div class="imagediv"  ><a class="image"  href="https://www.medicon.co.il/pl_product~238~10~0.htm"><span></span><img alt="Confirmation of our status of an official distributor" title="Confirmation of our status of an official distributor" src='/images/itempics/238_04012021160338_small160.jpg' /></a>
5584                                      
5585                                     </div>
5586                                 
5587                                            <div class="no-price">ìøëéùú îåöø æä äú÷ùøå ì÷áìú ôøèéí</div>
5588                                            
5589                </div>
5590              </li>
5591</ul>
5592        </div>
5593        </div>
5594         </div>
5595
5596         </div><!--[ end_spacielitems_36 ]--><!--[ start_homepage_banner3_43 ]-->
5597                            <div class=" designbox homepage_homepage_banner3"  id="designbox_43"  >
5598
5599                           
5600                            <div class="homepage_banner3 banner-div"></div>
5601                            </div><!--[ end_homepage_banner3_43 ]--><!--[ start_homepage_banner4_44 ]-->
5602                            <div class=" designbox homepage_homepage_banner4"  id="designbox_44"  >
5603
5604                           
5605                            <div class="homepage_banner4 banner-div"></div>
5606                            </div><!--[ end_homepage_banner4_44 ]--><!--[ start_homepage_banner5_45 ]-->
5607                            <div class=" designbox homepage_homepage_banner5"  id="designbox_45"  >
5608
5609                           
5610                            <div class="homepage_banner5 banner-div"></div>
5611                            </div><!--[ end_homepage_banner5_45 ]--><!--[ start_homepage_banner6_46 ]-->
5612                            <div class=" designbox homepage_homepage_banner6"  id="designbox_46"  >
5613
5614                           
5615                            <div class="homepage_banner6 banner-div"></div>
5616                            </div><!--[ end_homepage_banner6_46 ]-->
5617    </div>
5618<!--[ Homepage End ]-->
5619
5620  
5621
5622
5623
5624<table cellpadding="0" cellspacing="0" border="0" width="100%" id="HpMainTable" >
5625<tr>
5626<td valign="top" width="100%">
5627<table cellpadding="0" cellspacing="0" border="0" width="100%" onmouseover="Cat_mouseout()">
5628
5629
5630    
5631	    <tr><td></td></tr>
5632	<tr>
5633	<td align="center" valign="top">
5634
5635
5636		<table cellpadding="0" cellspacing="0" border="0" width="100%" id="defProductboxesTbl">
5637		<tr>
5638		  
5639                <td colspan="5">
5640                    <h3 class="products-box-titles regulars"><span>îëéøåú øâéìåú</span></h3>
5641                    <div class='products-box-wrap regulars  ee_list  boxsinline_3 itembox-style-0'  ee_list_category_name = '' ee_list_name= 'Homepage' >
5642                    <ul class="productBoxes">
5643            
5644                 <li class="boxItem auto-height ee_list_item first  grid_4" ee_list_item_position="1"  quan_min = ""  quan_base="1" quan_multiply="1" >
5645                     <div class="boxItem-wrap">
5646                        
5647                                              <div class="boxPicture" aria-hidden=true>
5648                                                 
5649                                                 <a class="image pic-160 grid_3 ee_product_click" aria-hidden=true  href='/pl_product~270~2~0.htm'  ><span></span><img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="/images/itempics/270_200720220205431_small.jpg?12082026203137" title="÷åøà ñôøéí àì÷èøåðé Pocketbook Era  øåñéú, òáøéú, àðâìéú áîìàé îééãé" alt="÷åøà ñôøéí àì÷èøåðé Pocketbook Era  øåñéú, òáøéú, àðâìéú áîìàé îééãé" align='middle' border="0" /></a>
5650                                                 
5651
5652                                               </div>
5653
5654                                        
5655                                            <div class="item-name"><a class="ee_product_click"   href='/pl_product~270~2~0.htm'   ee_list_itembrand="Pocketbook" ee_list_itemident="270" ee_list_itemid="270" ee_list_category="÷åøàé ñôøéí àì÷èøåðéí Pocketbook" ee_list_itemprice="859.00" ee_list_itemname="÷åøà ñôøéí àì÷èøåðé PocketBook E
5655RA Lite PB710 ">÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </a></div>
5656                                        
5657                                            <div class="product-box-prices">
5658
5659                                                
5660                                                        <strike class="reg-price"><span class="name">øâéì </span><span class="value"><span id="totalreg270">930.00</span><em>¤</em></span></strike>
5661                                                        
5662                                                                        <p class="sale-price ">
5663                                                                            <span class="name">îáöò </span>
5664                                                                            <span class="value"><span class="priceholder" id="total270" price="859.00">859.00</span><em>¤</em></span>
5665                                                                            
5666                                                                        </p>
5667                                                                        
5668                                                </div>
5669                                          
5670
5671                                            <div class="ProductBoxBtn ">
5672                                                
5673                                                
5674                                                    <a class="more-info  btn-secondary ee_product_click  btn-link " href="/pl_product~270~2~0.htm" ><span>ìîéãò ðåñó</span></a>
5675                                                     
5676                                                                                <a href="#" class="add-to-cart btn-primary btn-link " onclick="addme_cart('270',$(this).parents('li').find('input[name=quantity]').val(), '', '', '', '', '',$(this));return false;" title="÷ðä òëùéå" ><span class="content">÷ðä òëùéå</span></a>
5677                                                                                
5678
5679                                            </div>
5680
5681                                    
5682                    </div>
5683                 </li>
5684               
5685                 <li class="boxItem auto-height ee_list_item   grid_4" ee_list_item_position="2"  quan_min = ""  quan_base="1" quan_multiply="1" >
5686                     <div class="boxItem-wrap">
5687                        
5688                                              <div class="boxPicture" aria-hidden=true>
5689                                                 
5690                                                 <a class="image pic-160 grid_3 ee_product_click" aria-hidden=true  href='/pl_product~310~8~0.htm'  ><span></span><img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="/images/itempics/310_111220231525531_small.jpg?18032025113844" title="îèòï àìçåèé PocketBook, ùçåø" alt="îèòï àìçåèé PocketBook, ùçåø" align='middle' border="0" /></a>
5691                                                 
5692
5693                                               </div>
5694
5695                                        
5696                                            <div class="item-name"><a class="ee_product_click"   href='/pl_product~310~8~0.htm'   ee_list_itembrand="Pocketbook" ee_list_itemident="310" ee_list_itemid="310" ee_list_category="àáéæøéí" ee_list_itemprice="125.00" ee_list_itemname="îèòï àìçåèé PocketBook, ùçåø">îèòï àìçåèé PocketBook, ùçåø</a></div>
5697                                        
5698                                            <div class="product-box-prices">
5699
5700                                                
5701                                                        <strike class="reg-price"><span class="name">øâéì </span><span class="value"><span id="totalreg310">150.00</span><em>¤</em></span></strike>
5702                                                        
5703                                                                        <p class="sale-price ">
5704                                                                            <span class="name">îáöò </span>
5705                                                                            <sp
5705an class="value"><span class="priceholder" id="total310" price="125.00">125.00</span><em>¤</em></span>
5706                                                                            
5707                                                                        </p>
5708                                                                        
5709                                                </div>
5710                                          
5711
5712                                            <div class="ProductBoxBtn ">
5713                                                
5714                                                
5715                                                    <a class="more-info  btn-secondary ee_product_click  btn-link " href="/pl_product~310~8~0.htm" ><span>ìîéãò ðåñó</span></a>
5716                                                     
5717                                                                                <a href="#" class="add-to-cart btn-primary btn-link " onclick="addme_cart('310',$(this).parents('li').find('input[name=quantity]').val(), '', '', '', '', '',$(this));return false;" title="÷ðä òëùéå" ><span class="content">÷ðä òëùéå</span></a>
5718                                                                                
5719
5720                                            </div>
5721
5722                                    
5723                    </div>
5724                 </li>
5725               
5726                 <li class="boxItem auto-height ee_list_item last  grid_4" ee_list_item_position="3"  quan_min = ""  quan_base="1" quan_multiply="1" >
5727                     <div class="boxItem-wrap">
5728                        
5729                                              <div class="boxPicture" aria-hidden=true>
5730                                                 
5731                                                 <a class="image pic-160 grid_3 ee_product_click" aria-hidden=true  href='/pl_product~323~11~0.htm'  ><span></span><img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="/images/itempics/323_03072024150429_small.jpg?05072026031543" title="Kobo Libra Colour" alt="Kobo Libra Colour" align='middle' border="0" /></a>
5732                                                 
5733
5734                                               </div>
5735
5736                                        
5737                                            <div class="item-name"><a class="ee_product_click"   href='/pl_product~323~11~0.htm'   ee_list_itembrand="Kobo" ee_list_itemident="323" ee_list_itemid="323" ee_list_category="÷åøàé ñôøéí àì÷èøåðé Kobo" ee_list_itemprice="1,389.00" ee_list_itemname="÷åøà ñôøéí àì÷èøåðé Kobo Libra Colour  ">÷åøà ñôøéí àì÷èøåðé Kobo Libra Colour  </a></div>
5738                                        
5739                                            <div class="product-box-prices">
5740
5741                                                
5742                                                        <strike class="reg-price"><span class="name">øâéì </span><span class="value"><span id="totalreg323">1,499.00</span><em>¤</em></span></strike>
5743                                                        
5744                                                                        <p class="sale-price ">
5745                                                                            <span class="name">îáöò </span>
5746                                                                            <span class="value"><span class="priceholder" id="total323" price="1389.00">1,389.00</span><em>¤</em></span>
5747                                                                            
5748                                                                        </p>
5749                                                                        
5750                                                </div>
5751                                          
5752
5753                                            <div class="ProductBoxBtn ">
5754                                                
5755                                                
5756                                                    <a class="more-info  btn-secondary ee_product_click  btn-link " href="/pl_product~323~11~0.htm" ><span>ìîéãò ðåñó</span></a>
5757                                                
5758
5759                                            </div>
5760
5761                                    
5762                    </div>
5763                 </li>
5764               
5765                 <li class="boxItem auto-height ee_list_item first  grid_4" ee_list_item_position="4"  quan_min = ""  quan_base="1" quan_multiply="1" >
5766                     <div class="boxItem-wrap">
5767                        
5768                                              <div class="boxPicture" aria-hidden=true>
5769                                                 
5770                                                 <a class="image pic-160 grid_3 ee_product_click" aria-hidden=true  href='/pl_product~324~2~0.htm'  ><span></span><img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="/images/itempics/324_040920242235091_small.jpg?11022026122809" title="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" alt="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" align='middle' border="0" /></a>
5771                                                 
5772
5773                                               </div>
5774
5775                                        
5776                                            <div class="item-name"><a class="ee_product_click"   href='/pl_product~324~2~0.htm'   ee_list_itembrand="Pocketbook" ee_list_itemident="324" ee_list_itemid="324" ee_list_category="÷åøàé ñôøéí àì÷èøåðéí Pocketbook" ee_list_itemprice="779.00" ee_list_itemname="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW">÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW</a></div>
5777                                        
5778                                            <div class="product-box-prices">
5779
5780                                                
5781                                                        <strike class="reg-price"><span class="name">øâéì </span><span class="value"><span id="totalreg324">890.00</span><em>¤</em></span></strike>
5782                                                        
5783                                                                        <p class="sale-price ">
5784                                                                            <sp
5784an class="name">îáöò </span>
5785                                                                            <span class="value"><span class="priceholder" id="total324" price="779.00">779.00</span><em>¤</em></span>
5786                                                                            
5787                                                                        </p>
5788                                                                        
5789                                                </div>
5790                                          
5791
5792                                            <div class="ProductBoxBtn ">
5793                                                
5794                                                
5795                                                    <a class="more-info  btn-secondary ee_product_click  btn-link " href="/pl_product~324~2~0.htm" ><span>ìîéãò ðåñó</span></a>
5796                                                     
5797                                                                                <a href="#" class="add-to-cart btn-primary btn-link " onclick="addme_cart('324',$(this).parents('li').find('input[name=quantity]').val(), '', '', '', '', '',$(this));return false;" title="÷ðä òëùéå" ><span class="content">÷ðä òëùéå</span></a>
5798                                                                                
5799
5800                                            </div>
5801
5802                                    
5803                    </div>
5804                 </li>
5805               
5806                 <li class="boxItem auto-height ee_list_item   grid_4" ee_list_item_position="5"  quan_min = ""  quan_base="1" quan_multiply="1" >
5807                     <div class="boxItem-wrap">
5808                        
5809                                              <div class="boxPicture" aria-hidden=true>
5810                                                 
5811                                                 <a class="image pic-160 grid_3 ee_product_click" aria-hidden=true  href='/pl_product~326~2~0.htm'  ><span></span><img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="/images/itempics/326_040520251513531_small.jpg?11022026123400" title="÷åøà ñôøéí àì÷èøåðé  Pocketbook Verse Lite" alt="÷åøà ñôøéí àì÷èøåðé  Pocketbook Verse Lite" align='middle' border="0" /></a>
5812                                                 
5813
5814                                               </div>
5815
5816                                        
5817                                            <div class="item-name"><a class="ee_product_click"   href='/pl_product~326~2~0.htm'   ee_list_itembrand="Pocketbook" ee_list_itemident="326" ee_list_itemid="326" ee_list_category="÷åøàé ñôøéí àì÷èøåðéí Pocketbook" ee_list_itemprice="459.00" ee_list_itemname="÷åøà ñôøéí àì÷èøåðé  Pocketbook Verse Lite">÷åøà ñôøéí àì÷èøåðé  Pocketbook Verse Lite</a></div>
5818                                        
5819                                            <div class="product-box-prices">
5820
5821                                                
5822                                                        <strike class="reg-price"><span class="name">øâéì </span><span class="value"><span id="totalreg326">529.00</span><em>¤</em></span></strike>
5823                                                        
5824                                                                        <p class="sale-price ">
5825                                                                            <span class="name">îáöò </span>
5826                                                                            <span class="value"><span class="priceholder" id="total326" price="459.00">459.00</span><em>¤</em></span>
5827                                                                            
5828                                                                        </p>
5829                                                                        
5830                                                </div>
5831                                          
5832
5833                                            <div class="ProductBoxBtn ">
5834                                                
5835                                                
5836                                                    <a class="more-info  btn-secondary ee_product_click  btn-link " href="/pl_product~326~2~0.htm" ><span>ìîéãò ðåñó</span></a>
5837                                                     
5838                                                                                <a href="#" class="add-to-cart btn-primary btn-link " onclick="addme_cart('326',$(this).parents('li').find('input[name=quantity]').val(), '', '', '', '', '',$(this));return false;" title="÷ðä òëùéå" ><span class="content">÷ðä òëùéå</span></a>
5839                                                                                
5840
5841                                            </div>
5842
5843                                    
5844                    </div>
5845                 </li>
5846               
5847                 <li class="boxItem auto-height ee_list_item last  grid_4" ee_list_item_position="6"  quan_min = ""  quan_base="1" quan_multiply="1" >
5848                     <div class="boxItem-wrap">
5849                        
5850                                              <div class="boxPicture" aria-hidden=true>
5851                                                 
5852                                                 <a class="image pic-160 grid_3 ee_product_click" aria-hidden=true  href='/pl_product~341~2~0.htm'  ><span></span><img src="data:image/png;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=" data-src="/images/itempics/341_14042026150506727_small.jpg?01072026111726" title="÷åøà ñôøéí àì÷èøåðé Pocketbook InkPad One" alt="÷åøà ñôøéí àì÷èøåðé Pocketbook InkPad One" align='middle' border="0" /></a>
5853                                                 
5854
5855                                               </div>
5856
5857                                        
5858                                            <div class="item-name"><a class="ee_product_click"   href='/pl_product~341~2~0.htm'   ee_list_itembrand="Pocketbook" ee_list_itemident="341" ee_list_itemid="341" ee_list_category="÷åøàé ñôøéí àì÷èøåðéí Pocketbook" ee_list_itemprice="1,279.00" ee_list_itemname="÷åøà ñôøéí àì÷èøåðé Pocketbook InkPad One">÷åøà ñôøéí àì÷èøåðé Pocketbook InkPad One</a></div>
5859                                        
5860                                            <div class="product-box-prices">
5861
5862                                                
5863                                                        <strike class="reg-price"><span class="name">øâéì </span><span class="value"><span id="totalreg341">1,399.00</span><em>¤</em></span></strike>
5864                                                        
5865                                                                        <p class="sale-price ">
5866                                                                            <sp
5866an class="name">îáöò </span>
5867                                                                            <span class="value"><span class="priceholder" id="total341" price="1279.00">1,279.00</span><em>¤</em></span>
5868                                                                            
5869                                                                        </p>
5870                                                                        
5871                                                </div>
5872                                          
5873
5874                                            <div class="ProductBoxBtn ">
5875                                                
5876                                                
5877                                                    <a class="more-info  btn-secondary ee_product_click  btn-link " href="/pl_product~341~2~0.htm" ><span>ìîéãò ðåñó</span></a>
5878                                                     
5879                                                                                <a href="#" class="add-to-cart btn-primary btn-link " onclick="addme_cart('341',$(this).parents('li').find('input[name=quantity]').val(), '', '', '', '', '',$(this));return false;" title="÷ðä òëùéå" ><span class="content">÷ðä òëùéå</span></a>
5880                                                                                
5881
5882                                            </div>
5883
5884                                    
5885                    </div>
5886                 </li>
5887               
5888                         </ul></div>
5889                    </td>
5890                </tr>
5891	</table>
5892</td>
5893</tr>
5894<tr><td></td></tr>
5895</table>
5896</td>
5897</tr>
5898</table>
5899</form>
5900
5901
5902<script type="text/javascript">
5903<!--
5904
5905    function addtocart_hook()
5906     {return true;}
5907
5908    function addme_cart(pid, quan , pip_str, pip_prices, pip_ids, numOfItems, ItemPromotionIdentStr,obj,IgnorAjax){
5909        if (IgnorAjax == undefined)
5910        {IgnorAjax = "";  }
5911		 if (quan == undefined || quan==0 ){ quan = 1; }
5912
5913         if ( addtocart_hook() == false)
5914            {
5915                return false;
5916            }
5917
5918         if (typeof obj !== typeof undefined && obj !== false)
5919         {
5920                 try
5921                    {
5922                            
5923
5924                                       var temp_ee_list_obj = $(obj).parents(".ee_list");
5925                                       var temp_ee_list_item_obj = $(obj).parents(".ee_list_item");
5926                                       var temp_ee_list_category = $(temp_ee_list_obj).attr("ee_list_category_name");
5927
5928                                      var price = '';
5929                                      if ( $(obj).hasClass("product_son_addtocart") )
5930                                          {
5931                                            price = $(obj).parent(".productbox_product_son_links").find(".current").attr("price");
5932                                          }
5933                                      else
5934                                          {
5935                                            price = $(temp_ee_list_item_obj).find("[ee_list_itemprice]").attr("ee_list_itemprice");
5936                                          }
5937
5938                                       if ( price != '' ){
5939                                            price = price.replace(/[^\d\.]/g,'');
5940                                        }
5941
5942                                       
5943                                       try
5944                                           {
5945                                               if (cookieconsent == true) {
5946                                                
5947
5948                                                
5949                                               }
5950                                            }
5951                                         catch (e)
5952                                            {
5953                                            }
5954                         
5955                    }
5956                    catch(e)
5957                    {
5958
5959                    }
5960            }
5961
5962
5963
5964                    
5965		    document.addme.pid.value = pid;
5966            document.addme.quan.value = quan;
5967            try
5968            {
5969               if (cookieconsent == true) {
5970                    
5971               }
5972               
5973             }
5974            catch(e){}
5975
5976		    document.addme.submit();
5977		
5978	}
5979
5980	
5981//-->
5982</script>
5982
5983 
5984
5985<form name="addme" method="post" action="CartLogic.asp">
5986	<input type="hidden" name="pid"/>
5987	<input type="hidden" name="pip_str"/>
5988	<input type="hidden" name="pip_prices"/>
5989	<input type="hidden" name="pip_ids"/>
5990	<input type="hidden" name="quan"/>
5991	<input type="hidden" name="M" value=""/>
5992	<input type="hidden" name="RequestGiftInfo" />
5993</form>
5994
5995
5996
5997</td>
5998<td valign="top" align="right" style="height:100%;">
5999   
6000 <!--[ SideBar Start ]-->
6001  
6002  <div id="sidebar"  > 
6003     <div class = "wrap">
6004           <!--[Dynamic SideBar Modules]-->
6005          <!--[ start_smallcart_39 ]-->
6006                            <div class=" designbox sidebar_smallcart"  id="designbox_39"  >
6007
6008                           
6009               <div class="block smallcart grid_4 cart_icon   " >
6010                   
6011                   <div class="title"><strong><span>
6012                   òâìú ä÷ðéåú
6013                   </span></strong></div>
6014                   
6015                   <div class="content">
6016                        <p id="cartPriceTR" style="display:none" onclick="location.href='https://www.medicon.co.il/cart.asp';" >
6017                                <span id="cartQuantity"></span>
6018                                <span id="cartitemstext">ôøéèéí áòâìä</span>
6019                                <span id="carttotaltext">ñä"ë</span>
6020                                <span id="cartpricetext">¤<span id="cartPrice"></span></span>
6021                        </p>
6022                        <p id="cartEmptyTR" >
6023                            <span>àéï îåöøéí áòâìä&nbsp;</span>
6024                            <span id="cartQuantityTR"></span>
6025                        </p>
6026        		   </div>
6027             </div>
6028        </div><!--[ end_smallcart_39 ]--><!--[ start_searchbox_38 ]-->
6029                            <div class=" designbox sidebar_searchbox"  id="designbox_38"  >
6030
6031                           
6032    <div class="block searchbox grid_4" >
6033        
6034            <div class="title"><strong><span>
6035            çéôåù áàúø</span></strong></div>
6036        
6037        <div class="content ui-widget">
6038    
6039          
6039<script type="text/javascript">
6040              
6041             
6042              $( document ).ready(function()    
6043              {
6044                  
6045                  
6046
6047                 $("#right_srch_str").keydown(function(event)
6048                 {
6049                    if(event.keyCode == 13 && search_form_submited == false ) 
6050                    {
6051                        event.preventDefault();       
6052                        submitsearchform();
6053                        return false;
6054                    }
6055                 });
6056
6057                  $("#right_srch_str").autocomplete
6058                  ({
6059                  delay: 700 ,
6060                  minLength: 3,
6061                  appendTo:$("#right_srch_str").parent(),
6062                  select: function(event, ui) 
6063              {       
6064                          if (ui.item.itemid == "category")
6065              {
6066                              document.location = 'https://www.medicon.co.il/' + ui.item.url ;
6067              }
6068              else if (ui.item.itemid == "")
6069              {
6070                              submitsearchform();
6071                              return false;
6072              }
6073              else
6074              {
6075                              
6076                                  document.location = 'https://www.medicon.co.il/product.asp?pid='+ui.item.itemid;
6077                              
6078              }
6079              },
6080                  source: function(request, response)
6081              {
6082                   
6083                  
6084                              $.ajax(
6085                                      {
6086                              url: "/autocompletexml.asp?term=" + encodeURIComponent(request.term),
6087                              dataType: "xml",
6088                              success: function(xmlResponse)
6089                          {
6090                                              var data = $("Item", xmlResponse).map(function()
6091                          {
6092                                              return {
6093                              label: $("Name", this).text(),
6094                              value: $("Name", this).text(),
6095                              id: $("Ident", this).text(),
6096                              itemid: $("ItemId", this).text(),
6097                              image: $("Image1", this).text(),
6098                              url : $("Url", this).text(),
6099                              image_name:$("Image_name", this).text()
6100                          };
6101                          });
6102                                              response(data);
6103                          }
6104                          });
6105                     
6106              }
6107              }).data("autocomplete")._renderItem = function(ul, item)
6108              {
6109                    if (item.image == '1')
6110                        { img = '<span class="item-icon"><span><img align=absmiddle src=/images/itempics/' + item.image_name + '_small50.jpg></span></span>'; }
6111                    else
6112                        { img = '';}
6113
6114                    if (item.url != '')
6115                        {
6116                            item_class = 'with_url';
6117                        }
6118                    else
6119                        {
6120                            item_class = '';
6121                        }
6122                          return $('<li class="ui-menu-item-with-icon ' + item_class + '  "></li>')
6123                              .data("item.autocomplete", item)
6124                              .append('<a>' + img + '<span class="item-name">' + item.label + '</span></a>')
6125                              .appendTo(ul);
6126              };
6127
6128                  
6129                        
6130                  $.ui.autocomplete.prototype._renderMenu = function(ul, items) {
6131                      var self = this;
6132                      $.each(items, function(index, item)
6133              {
6134                          if (index < 8) // here we define how many results to show
6135              { self._renderItem(ul, item); }
6136              });
6137              }
6138              });
6139              
6140
6141
6142                  function send_search_event (formObj)
6143              {     
6144                     
6145                      
6146              }
6147
6148                        function submitsearchbuttonform(obj){
6149                            search_form_submited = true;
6150                            var submitButton = $(obj).find("button[type='submit']");
6151                            // Disable the submit button
6152                            submitButton.prop("disabled", true);
6153                            return true;
6154                        }
6155
6156                  function checkSrchFormSP(formObj)
6157                  {
6158                      if ( $(formObj).find("select[name=mfield]").length > 0 )
6159                      {
6160                          var mFLDs ='';
6161                          $(formObj).find("select[name=mfield]").each(function()
6162                          {
6163                              if ( $(this).val() != '' )
6164                              {
6165                                  mFLDs = mFLDs + $(this).val() + "-";
6166                              }
6167                          });
6168                          $(formObj).find("input[name=mFLDs]").val(mFLDs);
6169                      }
6170                     
6171                     var qmanufact = $(formObj).find("select[name=qmanufact]").val();
6172                     var qsearch   = $(formObj).find("input[name=Qsearch]").val();
6173
6174                      var DefaultStr = 'äëðñ îéìåú çéôåù';
6175                      if (  qsearch.length > 1  || qmanufact != "" )
6176                      {
6177                          if (DefaultStr == qsearch )
6178                          {delText(DefaultStr);}
6179
6180                          if ( qsearch.length > 1 || qmanufact != "")
6181                          {
6182                              formObj.key.value=$("#userkey").attr("userkey");
6183                              send_search_event (formObj);
6184                              return submitsearchbuttonform(formObj);
6185                              //return false;
6186                          }
6187                          else
6188                          {
6189
6190                              if ( $(formObj).find("select[name=Cat2Cat1ID]").length > 0 )
6191                              {
6192                                  if ($(formObj).find("select[name=Cat2Cat1ID]").val() != '')
6193                                  {
6194                                      send_search_event (formObj);
6195                                       return submitsearchbuttonform(formObj);
6196                                      //return false;
6197                                  }
6198                              }
6199
6200                              if ( $(formObj).find("input[name=mFLDs]").length > 0 )
6201                              {
6202                                  if ($(formObj).find("input[name=mFLDs]").val() != '')
6203                                  {
6204                                      send_search_event (formObj);
6205                                      return submitsearchbuttonform(formObj);
6206                                      //return false;
6207                                  }
6208                              }
6209
6210                              return false;
6211                          }
6212                      }
6213                      else
6214                      {
6215
6216                          if ( $(formObj).find("select[name=Cat2Cat1ID]").length > 0 )
6217                          {
6218                              if ($(formObj).find("select[name=Cat2Cat1ID]").val() != '')
6219                              {
6220                                  send_search_event (formObj);
6221                                   return submitsearchbuttonform(formObj);
6222                                  //return false;
6223                              }
6224                          }
6225
6226                          if ( $(formObj).find("input[name=mFLDs]").length > 0 )
6227                          {
6228                              if ($(formObj).find("input[name=mFLDs]").val() != '')
6229                              {
6230                                  send_search_event (formObj);
6231                                   return submitsearchbuttonform(formObj);
6232                                  //return false;
6233                              }
6234                          }
6235
6236                          return false;
6237                      }
6238                  }
6239
6240              function delText(Text,formObj) {
6241
6242                  if (formObj.Qsearch.value == Text) {
6243                      formObj.Qsearch.value = '';
6244                  }
6245              }
6246              
6247              function checkFormChrSP(formObj)
6248              {
6249                  if (formObj == 13)
6250                  {
6251                     
6252                     
6253                     // $( "#right_srch_str" ).autocomplete( "destroy" );
6254                     //submitsearchform();
6255                      return false;
6256                  }
6257              }
6258
6259              function showtext(Text,formObj) {
6260                  if (formObj.Qsearch.value == '')
6261                  { formObj.Qsearch.value = Text; }
6262              }
6263          </script>
6263
6264    
6265              <form action="https://www.medicon.co.il/items.asp" method="get" name="SearchFrm" onsubmit="return checkSrchFormSP(this);">
6266                  <input type="hidden" name="IsPostback" value="true"/>
6267                  <fieldset>
6268                    <div class="">
6269                    
6270                          <label for="right_srch_str">çôù:</label>
6271                          
6272                                  <input type="text"  dir="rtl" name="Qsearch" placeholder="äëðñ îéìåú çéôåù" class="text" id="right_srch_str"  value="" />
6273                                  <label for='right_srch_manf_slct'>áçø éöøï:</label><select name='qmanufact' id='right_srch_manf_slct'><option value=''>ëì äéöøðéí </option><option  value='18'>Amazon</option><option  value='27'>Anker</option><option  value='9'>Barnes&Noble</option><option  value='17'>Cine</option><option  value='26'>Fintie</option><option  value='23'>GP</option><option  value='24'>Kobo</option><option  value='14'>Onyx international Inc.</option><option  value='8'>Pocketbook</option><option  value='25'>ShenZhen Boyue Technology</option> </select> 
6274                                       <input type="hidden" name="stype" value="M"/>
6275                                        
6276                                       <button class="button btn-primary" title="çôù" type="submit"><span><span>çôù</span></span></button>
6277                                </fieldset>
6278                                <input type="hidden" value="s" name="key">
6279                            
6280                      </form>
6281                </div>
6282             </div>
6283         </div><!--[ end_searchbox_38 ]--><!--[ start_categories_37 ]-->
6284                            <div class=" designbox sidebar_categories"  id="designbox_37"  >
6285
6286                           
6287
6288       <div class="block accordion categories grid_4">
6289         
6290         <div class="title "><strong><span>
6291         ÷èìåâ îåöøéí
6292         </span></strong></div>
6293         
6294         <div class="content ">
6295
6296
6297    	                 
6298                        
6299                           <ul class="menu ">
6300	                       
6301	                        
6302                                                  <li class="parent  first  li-0" > 
6303                                                     
6304                                                        <a class="Catname" href="/items~2.htm" >
6305                                                            
6306                                                            <span>÷åøàé ñôøéí àì÷èøåðéí Pocketbook</span></a>
6307                                                    
6308                                                </li>
6309                                                
6310                                                  <li class="parent  li-1" > 
6311                                                     
6312                                                        <a class="Catname" href="/items~11.htm" >
6313                                                            
6314                                                            <span>÷åøàé ñôøéí àì÷èøåðé Kobo</span></a>
6315                                                    
6316                                                </li>
6317                                                
6318                                                  <li class="parent  li-2" > 
6319                                                     
6320                                                        <a class="Catname" href="/items~6.htm" >
6321                                                            
6322                                                            <span>÷åøàé ñôøéí àì÷èøåðéí MeeBook</span></a>
6323                                                    
6324                                                </li>
6325                                                
6326                                                  <li class="parent  li-3" > 
6327                                                     
6328                                                        <a class="Catname" href="/items~9.htm" >
6329                                                            
6330                                                            <span>÷åøàé ñôøéí àì÷èøåðéí Amazon Kindle</span></a>
6331                                                    
6332                                                </li>
6333                                                
6334                                                  <li class="parent  li-4" > 
6335                                                     
6336                                                        <a class="Catname" href="/items~8.htm" >
6337                                                            
6338                                                            <span>àáéæøéí</span></a>
6339                                                    
6340                                                </li>
6341                                                
6342                                                  <li class="parent  li-5" > 
6343                                                     
6344                                                        <a class="Catname" href="/items~3.htm" >
6345                                                            
6346                                                            <span>ðøúé÷éí ì÷åøàé ñôøéí àì÷èøåðéí</span></a>
6347                                                    <ul><li class='  first '><a href='/items~3~10.htm'>ðøúé÷éí ì÷åøàé ñôøéí Likebook Boyue</a></li><li class=' '><a href='/items~3~1.htm'>ðøúé÷éí ì÷åøàé ñôøéí Amazon</a></li><li class=' '><a href='/items~3~4.htm'>ðøúé÷éí ì÷åøàé ñôøéí Pocketbook</a></li><li class=' '><a href='/items~3~8.htm'>ðøúé÷éí ì÷åøàé ñôøéí Kobo</a></li><li class=' '><a href='/items~3~9.htm'>ðøúé÷éí ì÷åøàé ñôøéí Onyx</a></li></ul>
6348                                                </li>
6349                                                
6350                                                  <li class="parent  li-6" > 
6351                                                     
6352                                                        <a class="Catname" href="/items~10.htm" >
6353                                                            
6354                                                            <span>÷åøàé ñôøéí àì÷èøåðéí Onyx Boox</span></a>
6355                                                    
6356                                                </li>
6357                                                
6358                                                  <li class="parent  li-7" > 
6359                                                     
6360                                                        <a class="Catname" href="/items~12.htm" >
6361                                                            
6362                                                            <span>÷åøàé ñôøéí àì÷èøåðéí (Likebook (Boyue</span></a>
6363                                                    
6364                                                </li>
6365                                                 </ul> 
6366
6367	     </div>
6368       </div>
6369
6370</div><!--[ end_categories_37 ]--><!--[ start_spacielitems_10 ]-->
6371                            <div class=" designbox sidebar_spacielitems"  id="designbox_10"  >
6372
6373                           
6374
6375   <div class="block spacial-items grid_4" tabindex="0">
6376
6377
6378                        
6379                                <div class="title"><strong><span>îáöòéí îéåçãéí</span></strong>
6380                               </div>
6381                         
6382
6383
6384
6385
6386                          <div class="content jcroller">
6387                          <div class="spaciels-wrap">
6388
6389
6390  
6391                 <div class="special-box" id="spaciel-items-v1-0" >
6392
6393
6394
6395                   
6396                                        <div class="item-name"><a href="https://www.medicon.co.il/pl_product~270~2~0.htm">÷åøà ñôøéí àì÷èøåðé PocketBook ERA Lite PB710 </a></div>
6397                                    
6398                                     <div class="imagediv"  ><a class="image"  href="https://www.medicon.co.il/pl_product~270~2~0.htm"><span></span><img alt="÷åøà ñôøéí àì÷èøåðé Pocketbook Era  øåñéú, òáøéú, àðâìéú áîìàé îééãé" title="÷åøà ñôøéí àì÷èøåðé Pocketbook Era  øåñéú, òáøéú, àðâìéú áîìàé îééãé" src='/images/itempics/270_200720220205431_small160.jpg' /></a>
6399                                      
6400                                     </div>
6401                                 
6402                                        <strike class="reg-price">
6403                                            <span class="name">øâéì:</span>
6404                                            <span><em>¤</em>930.00</span>
6405                                            
6406                                        </strike>
6407                                    
6408                                             <div class="sale-price">
6409                                                <span class="name">îáöò:</span>
6410                                                <span><em>¤</em><span class="priceholder" id="spacial_total270" price="859.00">859.00</span></span>
6411                                                
6412                                             </div>
6413                                    
6414                                            <div class="buttons-box">
6415                                                  <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~270~2~0.htm" ><span>ìîéãò ðåñó</span></a>
6416                                               
6417                                                        <a class="add-to-cart btn-link btn-link  btn-primary" href="#" onclick="s_addme_cart('270',$(this).parents('li').find('input[name=quantity]').val()); return false; "><span>÷ðä òëùéå</span></a>
6418                                                    
6419                                              
6420                                            </div>
6421                                      
6422                </div>
6423              
6424                 <div class="special-box" id="spaciel-items-v1-1" >
6425
6426
6427
6428                   
6429                                        <div class="item-name"><a href="https://www.medicon.co.il/pl_product~324~2~0.htm">÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW</a></div>
6430                                    
6431                                     <div class="imagediv"  ><a class="image"  href="https://www.medicon.co.il/pl_product~324~2~0.htm"><span></span><img alt="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" title="÷åøà ñôøéí àì÷èøåðé PocketBook Verse Pro Color PB634K3-1-WW" src='/images/itempics/324_040920242235091_small160.jpg' /></a>
6432                                      
6433                                     </div>
6434                                 
6435                                        <strike class="reg-price">
6436                                            <span class="name">øâéì:</span>
6437                                            <span><em>¤</em>890.00</span>
6438                                            
6439                                        </strike>
6440                                    
6441                                             <div class="sale-price">
6442                                                <span class="name">îáöò:</span>
6443                                                <span><em>¤</em><span class="priceholder" id="spacial_total324" price="779.00">779.00</span></span>
6444                                                
6445                                             </div>
6446                                    
6447                                            <div class="buttons-box">
6448                                                  <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~324~2~0.htm" ><span>ìîéãò ðåñó</span></a>
6449                                               
6450                                                        <a class="add-to-cart btn-link btn-link  btn-primary" href="#" onclick="s_addme_cart('324',$(this).parents('li').find('input[name=quantity]').val()); return false; "><span>÷ðä òëùéå</span></a>
6451                                                    
6452                                              
6453                                            </div>
6454                                      
6455                </div>
6456              
6457                 <div class="special-box" id="spaciel-items-v1-2" >
6458
6459
6460
6461                   
6462                                        <div class="item-name"><a href="https://www.medicon.co.il/pl_product~238~10~0.htm">Confirmation of our status of an official distributor</a></div>
6463                                    
6464                                     <div class="imagediv"  ><a class="image"  href="https://www.medicon.co.il/pl_product~238~10~0.htm"><span></span><img alt="Confirmation of our status of an official distributor" title="Confirmation of our status of an official distributor" src='/images/itempics/238_04012021160338_small160.jpg' /></a>
6465                                      
6466                                     </div>
6467                                 
6468                                            <div class="no-price">ìøëéùú îåöø æä äú÷ùøå ì÷áìú ôøèéí</div>
6469                                            
6470                                            <div class="buttons-box">
6471                                                  <a class="more-info btn-link btn-secondary" href="https://www.medicon.co.il/pl_product~238~10~0.htm" ><span>ìîéãò ðåñó</span></a>
6472                                               
6473                                              
6474                                            </div>
6475                                      
6476                </div>
6477              
6478        </div>
6479        </div>
6480         </div>
6481
6482         </div><!--[ end_spacielitems_10 ]--><!--[ start_sidebar_banner_general_17 ]-->
6483                            <div class=" designbox sidebar_sidebar_banner_general"  id="designbox_17"  >
6484
6485                           
6486                           <div class="sidebar_banner_general banner-div grid_4"  ></div>
6487                        </div><!--[ end_sidebar_banner_general_17 ]--><!--[ start_sidebar_banner_categories_16 ]-->
6488                            <div class=" designbox sidebar_sidebar_banner_categories"  id="designbox_16"  >
6489
6490                           </div><!--[ end_sidebar_banner_categories_16 ]--><!--[ start_sidebar_banner_product_18 ]-->
6491                            <div class=" designbox sidebar_sidebar_banner_product"  id="designbox_18"  >
6492
6493                           </div><!--[ end_sidebar_banner_product_18 ]--><!--[ start_sidebar_banner_homepage_19 ]-->
6494                            <div class=" designbox sidebar_sidebar_banner_homepage"  id="designbox_19"  >
6495
6496                           
6497                              <div class="sidebar_banner_homepage banner-div grid_4" ></div>
6498                        </div><!--[ end_sidebar_banner_homepage_19 ]--><!--[ start_newsletter_8 ]-->
6499                            <div class=" designbox sidebar_newsletter"  id="designbox_8"  >
6500
6501                           
6502               <div class="block newsletter grid_4" >
6503                     
6504                   <div class="title">
6505                       <strong>
6506                           <span>
6507                            øùéîú úôåöä
6508                           </span>
6509                       </strong>
6510                   </div>
6511                   
6512                   <div class="content">
6513                       <form action="https://www.medicon.co.il/club.asp?IsNewsleter=1" method="post" name="NewsLatterFrm" class="NewsLatterFrm" id="NewsLatterFrm" >
6514                         <input type="hidden" name="IsPostback" value="true"/>
6515                            
6516                             <h3 class="subtitle">äåñéôå àåúé ìøùéîú úôåöä</h3>
6517                           
6518
6519                              <div class="status"></div>
6520                           
6521                              <fieldset >
6522                                    
6523                                    <p class='email_p'>
6524                                        
6525                                        <label for="email" >äëðñ ëúåáú àé îééì:</label>
6526                                        
6527                                        <input type="text" name="Email" class="text" id="email" maxlength="45" dir="ltr" value="" aria-label="email"  />
6528                                        
6529                                    </p>
6530                                    
6531  
6532                                    
6533                                        <input type="hidden" name="AuthCode" value="1" />
6534                                        <input type="hidden" name="CapachaAnswer" value="1" />
6535                                    <button class='checkNewsEmail btn-primary button' title="äøùí" type="submit"><span><span>äøùí</span></span></button>
6536                                  <div class='privacy_p custom-control  custom-checkbox mt-1 mr-sm-3  '>
6537                                    <input type="checkbox" class="custom-control-input" name="privacy" id='privacy_8' >
6538                                     
6539                                                    <label class="custom-control-label " for='privacy_8' style="font-size:14px">àðé îñëéí/ä ìúðàéí, ääâáìåú, ì-îãéðéåú ôøèéåú åîàùø/ú éöéøú ÷ùø îàúø medicon.co.il.</label> 
6540                                     
6541                                  
6542                                </div>
6543                            
6544                                  
6545                              </fieldset>
6546                       </form>
6547                  </div>
6548             </div>
6549  
6550        </div><!--[ end_newsletter_8 ]--><!--[ start_populartags_9 ]-->
6551                            <div class=" designbox sidebar_populartags"  id="designbox_9"  >
6552
6553                           </div><!--[ end_populartags_9 ]--><!--[ start_contactform_11 ]-->
6554                            <div class=" designbox sidebar_contactform"  id="designbox_11"  >
6555
6556                           
6557            <div class="block contactform grid_4" >
6558                        
6559                            
6560                                    <div class="title"><strong><span>èåôñ öåø ÷ùø</span></strong>
6561                                </div>
6562                            
6563
6564                          <form name="contctfrm" id="contctfrm_11" method="post" action="https://www.medicon.co.il/contact.asp" onsubmit="return  checkcontactform();">
6565                          <input type="hidden" name="IsPostback" value="true"/>
6566                          <div class="content">
6567
6568                          <input type="hidden" name="formFields" value="ContactPerson,Subject,Phone,content,email" />
6569                            
6570                         
6571                            <p id="cf_fullname">
6572                               
6573                                         <label for="ContactPerson"><em>*</em>ùí:</label>
6574                                
6575                            <input type="text" class="text" aria-label="ùí" dir="rtl"  name="ContactPerson" id="ContactPerson" value="" />
6576                          </p>
6577
6578                           
6579                            <p id="cf_phone">
6580                               
6581                                        <label for="cf_text_Phone"><em>*</em>èìôåï:</label>
6582                               
6583                              <input type="text" class="text" aria-label="èìôåï" name="Phone" id="cf_text_Phone" value=""  />
6584                          </p>
6585
6586                           
6587                              <p id="cf_email">
6588                              
6589                                <label for="cf_text_email"><em>*</em>ãåàø àì÷èøåðé:</label>
6590                              
6591                              <input type="text" class="text" aria-label="ãåàø àì÷èøåðé" name="email" id="cf_text_email" value=""   />
6592                          </p>
6593
6594                         
6595                            <p id="cf_subject">
6596                               
6597                             <label for="Subject"><em>*</em>ðåùà:</label>
6598                              
6599                            <text type="text" class="text" aria-label="ðåùà" name="Subject" id="Subject" value=""     />
6600                          </p>
6601
6602                         
6603                            <p id="cf_content">
6604                              
6605                              <label for="content">úåëï:</label>
6606                              
6607                              <textarea name="content" aria-label="úåëï" id="content" 
6607cols="" rows=""  ></textarea>
6608                          </p>
6609
6610                          
6611                                <p id="cf_CodeAuth">
6612                                   
6613                                        <label for="AuthCode"> 
6614                                         ? 9 + 8 ëîä æä<em>*</em>
6615                                          
6616                                        </label>
6617                                      
6618                                  <input type="text"  class="text" id="AuthCode" aria-label="? 9 + 8 ëîä æä" name="AuthCode" size="15" maxlength="3" dir="rtl" value=""   >
6619					          </p>
6620                               
6621 
6622                          <!--<p id="cf_newsletter">-->
6623                            
6624                              
6625                            <p id="cf_newsletter">
6626                            <input id="checkoutNewsletter" type="checkbox" name="club" aria-label="áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø" value="1" checked /> áøöåðé ì÷áì îéãò òì îåöøéí åîáöòéí áàúø
6627                          </p>
6628                              
6629                            <input type='hidden' name='ContactPerson_HE' value='ùí îìà'> 
6630                            <input type='hidden' name='Phone_HE'  value='èìôåï' > 
6631                            <input type='hidden' name='email_HE'  value='ãåàø àì÷èøåðé' > 
6632                            <input type='hidden' name='Subject_HE'  value='ðåùà' > 
6633                            <input type='hidden' name='content_HE' value='úåëï' > 
6634                          
6635                          
6636                            <button class="button btn-primary btn" aria-label="ùìç"  title="ùìç" type="submit"><span><span>ùìç</span></span></button>
6637                         
6638     </div>
6639     </form>
6640
6641      </div>
6642        
6643    
6643<script type="text/javascript">
6644        
6645         
6646    function ContactCheckEmail(CurMail)
6647        {
6648		if (CurMail.length != 0)
6649        {
6650				var i=CurMail.indexOf("@")
6651				var i2=CurMail.indexOf("@",i+1)
6652				var j=CurMail.indexOf(".",i)
6653				var k=CurMail.indexOf(",")
6654				var kk=CurMail.indexOf(" ")
6655				var jj=CurMail.lastIndexOf(".") + 1
6656				var leng = CurMail.length
6657
6658			if ((i>0)&&(j>(i+1))&&(k==-1)&&(kk==-1)&&(leng-jj >= 2)&&(leng-jj <= 3)&&(i2==-1))
6659        {
6660				return true;
6661        }
6662        else
6663        {
6664				return false;
6665        }
6666        }
6667        else{
6668			return false;
6669        }
6670        }
6671
6672            function checkcontactform()
6673            {
6674
6675                if (document.contctfrm.ContactPerson.value == "")
6676                {
6677                    alert("äëðñ ùí îìà");
6678                    document.contctfrm.ContactPerson.focus();
6679                    return false;
6680                }
6681
6682
6683                if (document.contctfrm.Phone.value == "")
6684                {
6685                    alert("ìà äåæï èìôåï");
6686                    document.contctfrm.Phone.focus();
6687                    return false;
6688                }
6689                if (document.contctfrm.email.value == "")
6690                {
6691                    alert("ëúåáú äîééì ùâåéä");
6692                    document.contctfrm.email.focus();
6693                    return false;
6694                }
6695
6696                if(  !ContactCheckEmail(document.contctfrm.email.value) )
6697                {
6698                    alert("ëúåáú äîééì ùâåéä");
6699                    document.contctfrm.email.focus();
6700                    return false;
6701                }
6702
6703                
6704                      if (document.contctfrm.AuthCode.value == "")
6705                {
6706                    alert("ôúåø ðëåï àú äúøâéì");
6707                    document.contctfrm.AuthCode.focus();
6708                    return false;
6709                }
6710
6711                
6712
6713
6714
6715                 if (document.contctfrm.Subject.value == "")
6716                {
6717                    alert("àðà îìà ðåùà");
6718                    document.contctfrm.Subject.focus();
6719                    return false;
6720                }
6721            
6722                
6723
6724
6725   return true;
6726        }
6727    </script>
6727
6728</div><!--[ end_contactform_11 ]-->     
6729     </div>
6730 </div>
6731 <!--[ SideBar end ]-->
6732
6733</tr>
6734</table>
6735	</td>
6736</tr>
6737</table>
6738
6739
6740<!-- Cookie Consent Check - Add this to every page -->
6741
6742<script>
6743// Check if cookie consent exists on page load
6744(function() {
6745    function getCookie(name) {
6746        var nameEQ = name + "=";
6747        var ca = document.cookie.split(';');
6748        for(var i = 0; i < ca.length; i++) {
6749            var c = ca[i];
6750            while (c.charAt(0) == ' ') c = c.substring(1, c.length);
6751            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
6752        }
6753        return null;
6754    }
6755    
6756    // Check if consent cookie exists
6757
6758    if (!getCookie('cookieconsentapproved')) {
6759
6760        // Show popup if no consent
6761        window.addEventListener('load', function() {
6762            var popup = document.getElementById('cookie-consent-popup');
6763            if (popup) {
6764                popup.style.display = 'block';
6765                // Add animation class after a small delay
6766                setTimeout(function() {
6767                    popup.classList.add('show');
6768                }, 100);
6769            }
6770        });
6771    }
6772
6773    // Pages restored from the back/forward cache (mostly mobile) keep the DOM
6774    // snapshot with the popup still visible even after consent was given on
6775    // another page - scripts do not re-run on restore, so re-check the cookie
6776    // and hide the stale popup on pageshow / tab return
6777    function syncCookieConsentPopup() {
6778        if (getCookie('cookieconsentapproved')) {
6779            var popup = document.getElementById('cookie-consent-popup');
6780            if (popup) {
6781                popup.classList.remove('show');
6782                popup.style.display = 'none';
6783            }
6784        }
6785    }
6786    window.addEventListener('pageshow', syncCookieConsentPopup);
6787    document.addEventListener('visibilitychange', function() {
6788        if (!document.hidden) syncCookieConsentPopup();
6789    });
6790})();
6791</script>
6791
6792   
6793          </td>
6794        </tr>
6795      </table>
6796        
6797
6798    </div>
6799      </div>
6800 
6801  </div>
6802</div>
6803   
6804 
6805
6806   <!--[ content end ]-->
6807
6808     
6809            <!--[ footer start ]-->
6810            
6811            <div id="footer">
6812                  
6813                <div class="footer_wrap">
6814                  <div class="container_16 " >
6815                      
6816                      <!--[Dynamic Footer Modules]-->
6817                      <!--[ start_manufactoreslogos_1 ]-->
6818                            <div class=" designbox footer_manufactoreslogos"  id="designbox_1"  >
6819
6820                           
6821                        <div class="manufactores_logos  block manufactores logos width-920 jcarousel " >
6822                        <div class="sr-only"><span>éöøðéí</span></div>
6823                      
6824                            <div class="content">
6825                                        
6826                                        <ul class="">
6827                                    
6828                                        <li class="">
6829                                        
6830                                        
6831
6832                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=27"><span></span>
6833                                        
6834                                       
6835                                                
6836                                              
6837                                        </a>
6838                                        <span class="name">Anker</span>
6839                                        
6840                                          
6841                                        
6842                                            </li>
6843                                        
6844                                        <li class="">
6845                                        
6846                                        
6847
6848                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=26"><span></span>
6849                                        
6850                                       
6851                                                
6852                                              
6853                                        </a>
6854                                        <span class="name">Fintie</span>
6855                                        
6856                                          
6857                                        
6858                                            </li>
6859                                        
6860                                        <li class="">
6861                                        
6862                                        
6863
6864                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=25"><span></span>
6865                                        
6866                                       
6867                                                
6868                                              
6869                                        </a>
6870                                        <span class="name">ShenZhen Boyue Technology</span>
6871                                        
6872                                          
6873                                        
6874                                            </li>
6875                                        
6876                                        <li class="">
6877                                        
6878                                        
6879
6880                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=18"><span></span>
6881                                        
6882                                       
6883                                                <img alt='Amazon' src='/images/itempics/manufact_18.jpg?20170312111616' >
6884                                              
6885                                        </a>
6886                                        <span class="name">Amazon</span>
6887                                        
6888                                          
6889                                        
6890                                            </li>
6891                                        
6892                                        <li class="">
6893                                        
6894                                        
6895
6896                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=8"><span></span>
6897                                        
6898                                       
6899                                                <img alt='Pocketbook' src='/images/itempics/manufact_8.jpg?20170312111616' >
6900                                              
6901                                        </a>
6902                                        <span class="name">Pocketbook</span>
6903                                        
6904                                          
6905                                        
6906                                            </li>
6907                                        
6908                                        <li class="">
6909                                        
6910                                        
6911
6912                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=14"><span></span>
6913                                        
6914                                       
6915                                                <img alt='Onyx international Inc.' src='/images/itempics/manufact_14.jpg?20170312111616' >
6916                                              
6917                                        </a>
6918                                        <span class="name">Onyx international Inc.</span>
6919                                        
6920                                          
6921                                        
6922                                            </li>
6923                                        
6924                                        <li class="">
6925                                        
6926                                        
6927
6928                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=9"><span></span>
6929                                        
6930                                       
6931                                                <img alt='Barnes&Noble' src='/images/itempics/manufact_9.jpg?20170312111616' >
6932                                              
6933                                        </a>
6934                                        <span class="name">Barnes&Noble</span>
6935                                        
6936                                          
6937                                        
6938                                            </li>
6939                                        
6940                                        <li class="">
6941                                        
6942                                        
6943
6944                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=17"><span></span>
6945                                        
6946                                       
6947                                                
6948                                              
6949                                        </a>
6950                                        <span class="name">Cine</span>
6951                                        
6952                                          
6953                                        
6954                                            </li>
6955                                        
6956                                        <li class="">
6957                                        
6958                                        
6959
6960                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=23"><span></span>
6961                                        
6962                                       
6963                                                
6964                                              
6965                                        </a>
6966                                        <span class="name">GP</span>
6967                                        
6968                                          
6969                                        
6970                                            </li>
6971                                        
6972                                        <li class="">
6973                                        
6974                                        
6975
6976                                           <a class="image"  href="/items.asp?qsearch=&amp;qmanufact=24"><span></span>
6977                                        
6978                                       
6979                                                
6980                                              
6981                                        </a>
6982                                        <span class="name">Kobo</span>
6983                                        
6984                                          
6985                                        
6986                                            </li>
6987                                        
6988                                        </ul>
6989                                    
6990                                    </div>
6991                                    </div>
6992                                </div><!--[ end_manufactoreslogos_1 ]--><!--[ start_footer_banner1_69 ]-->
6993                            <div class=" designbox footer_footer_banner1"  id="designbox_69"  >
6994
6995                           
6996                            <div class="footer_banner1 banner-div"></div>
6997                            </div><!--[ end_footer_banner1_69 ]--><!--[ start_footer_banner2_70 ]-->
6998                            <div class=" designbox footer_footer_banner2"  id="designbox_70"  >
6999
7000                           
7001                        <div class="footer_banner2 banner-div"></div>
7002                        </div><!--[ end_footer_banner2_70 ]--><!--[ start_footer_banner3_71 ]-->
7003                            <div class=" designbox footer_footer_banner3"  id="designbox_71"  >
7004
7005                           
7006                            <div class="footer_banner3 banner-div"></div>
7007                        </div><!--[ end_footer_banner3_71 ]--><!--[ start_footer_banner4_72 ]-->
7008                            <div class=" designbox footer_footer_banner4"  id="designbox_72"  >
7009
7010                           
7011                             <div class="footer_banner4 banner-div"></div>
7012                         </div><!--[ end_footer_banner4_72 ]-->
7013                    </div>       
7014                    </div>
7015                  
7016            </div>
7017            
7018            <!--[ footer end ]--> 
7019     
7020     
7021         <form name="s_addme" method="post" action="/CartLogic.asp">
7022	            <input type="hidden" name="pid"/>
7023	            <input type="hidden" name="pip_str"/>
7024	            <input type="hidden" name="pip_prices"/>
7025	            <input type="hidden" name="pip_ids"/>
7026	            <input type="hidden" name="quan"/>
7027	            <input type="hidden" name="M" value=""/>
7028	            <input type="hidden" name="RequestGiftInfo" />
7029         </form>
7030     
7031      
7032<div>
7033  <div>
7034
7035<div id="eshop-footer" class="">
7036<div id="eshop-footer-wrap">
7037<div id="eshop-footer-pages"><table></table></div>
7038
7039
7040
7041<div id="eshop-footer-credit">
7042
7043	    <span class="powered-by-holder"><a class="powered-by-link" href="https://www.e-shop.co.il" rel="nofollow" target="_blank">
7044       
7045        <img src="https://www.medicon.co.il/images/e-shop-powerd-by-black.png" height="33" width="201" alt="àéùåô çðåú åéøèåàìéú" />
7046        
7047        </a><a class='eshop-link' href='https://www.e-shop.co.il' target='_blank'>ðáðä áîòøëú e-shop</a></span>
7048	</div>
7049 <div id="eshop-footer-text"></div>
7050</div>
7051</div>
7052
7053
7054<form name="quicksearch" action="https://www.medicon.co.il/search.asp" method="get">
7055	<input type='hidden' name='IsPostback' value='true'/>
7056    <input type="hidden" name="qsearch"/>
7057	<input type="hidden" name="qmanufact"/>
7058</form>
7059
7060<script type="text/javascript">
7061<!--
7062self.name = 'hps';
7063
7064try
7065{
7066if (ie||document.getElementById||document.layers)
7067     {
7068     
7069     }
7070
7071}
7072catch(err){}
7073
7074    
7075
7076
7077//form tags to omit in NS6+:
7078var omitformtags=["input", "textarea", "select"]
7079
7080omitformtags=omitformtags.join("|")
7081
7082function disableselect(e){
7083if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
7084return false
7085}
7086
7087function reEnable(){
7088return true
7089}
7090
7091if (typeof document.onselectstart!="undefined")
7092document.onselectstart=new Function ("return false")
7093else{
7094document.onmousedown=disableselect
7095document.onmouseup=reEnable
7096}
7097
7098//Disable right click script III- By Renigade ([email protected])
7099//For full source code, visit http://www.dynamicdrive.com
7100
7101var message="";
7102///////////////////////////////////
7103function clickIE() {if (document.all) {(message);return false;}}
7104function clickNS(e) {if
7105(document.layers||(document.getElementById&&!document.all)) {
7106if (e.which==2||e.which==3) {(message);return false;}}}
7107if (document.layers)
7108{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
7109else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
7110
7111document.oncontextmenu=new Function("return false")
7112
7113// -->
7114</script>
7114
7115
7116 </div></div>
7117
7118 
7119
7120
7121</div>
7122</div>
7123
7124
7125
7126<div id="userkey" userkey="key112198382616041"></div>
7127
7128    
7129 
7129<script>
7130 function fireAnalyticsEvents() {
7131    
7132            
7133    }
7134
7135   $(window).on("load" , function ()
7136    { 
7137      if (cookieconsent == true) {
7138        fireAnalyticsEvents();
7139      }
7140     }); 
7141 </script>
7141
7142
7143 
7144
7145
7146 
7146<script>
7147  $("#mobile_footer_newsletter button").detach().appendTo("#mobile_footer_newsletter .email_p");
7148 </script>
7148
7149
7150        
7150<script type="text/javascript" defer="defer">
7151            (function() {
7152                var scr = document.createElement('script');
7153                if ('https:' == document.location.protocol) {
7154                    scr.src = '/ajaxUtil/logstat.asp?c1=&c2=&pid=&aid=0&gsid=&sct=/default.asp&aff=';
7155                } else {
7156                    scr.src = '/ajaxUtil/logstat.asp?c1=&c2=&pid=&aid=0&gsid=&sct=/default.asp&aff=';
7157                }
7158                scr.type = 'text/javascript';
7159                //scr.type = 'text/html';
7160                scr.async = true;
7161                scr.setAttribute('defer', 'defer');
7162                document.getElementsByTagName('head')[0].appendChild(scr);
7163            } ());
7164        </script>
7164
7165
7166    
7166<script type="text/javascript" defer="defer">
7167
7168        (function() {
7169            var scr = document.createElement('script');
7170            if ('https:' == document.location.protocol) {
7171                scr.src = '/statsjs.asp?v=4.7.13';
7172            } else {
7173                scr.src = '/statsjs.asp?v=4.7.13';
7174            }
7175            scr.type = 'text/javascript';
7176            //scr.type = 'text/html';
7177             
7178            scr.async = true;
7179            scr.setAttribute('defer', 'defer');
7180            document.getElementsByTagName('head')[0].appendChild(scr);
7181        } ());
7182
7183    </script>
7183
7184
7185    
7186            
7186<script type="text/javascript">
7187                $.get( "/siteservices.asp?service=get_popup&Cat2Cat1ID=0&Cat2ID=0&SV_SCRIPT_NAME=/default.asp&itemid=&pageid=", function( data ) {
7188                    $( "body" ).append( data );
7189                });
7190            </script>
7190
7191        
7192               
7192<script type="text/javascript">
7193                    $.get( "/siteservices.asp?service=get_campaigns&Cat2Cat1ID=0&Cat2ID=0&SV_SCRIPT_NAME=/default.asp&itemident=341&pageid=", function( data ) {
7194                        $( "body" ).append( data );
7195                    });
7196                </script>
7196
7197            
7198<script type="text/javascript">
7199    $(document).ready(function () {
7200      ShowAllCarts();
7201    });
7202
7203
7204    window.onpageshow = function(event) {
7205    if (event.persisted) {
7206        //back event
7207        ShowAllCarts();
7208
7209    }
7210
7211};
7212
7213</script>
7213
7214
7215
7216
7217 
7218 
7219</body>
7220</html>
7221 

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.