PageSourceSearch

https://gruppi.hu/js/system.js?a=648582810s1

js gruppi.hu collected 2026-10-08 20:50:16 UTC 31,118 bytes, 1,139 lines download raw bytes

1/* Fejléc fixálás */
2
3$(function() {
4	
5	var anitime=250;
6	
7    var stickyHeaderTop = $('#logo_div').offset().top;
8	var scrollcheck=true;
9    $(window).scroll(function() {
10    	
11    	var scrollle=true;
12    	var scrolltop=$(window).scrollTop();
13    	if(scrolltop <= stickyHeaderTop){scrollle=false;}else if(scrolltop > stickyHeaderTop){scrollle=true;}
14    	
15       if (scrollcheck && scrollle){
16        	
17        	scrollcheck=false;
18        	
19        	$('#logo_div').css({position: 'fixed', top: '0px'});
20        	
21        	return;
22        	
23        	//$('#promo0').fadeOut( "slow", function() {});
24        	if($('#promo0').css('display') != 'none')
25        	{
26        		$('#promo0').slideToggle( "slow", function() {
27        			//$('#cont0').css({paddingTop: '50px'});
28        			}
29        		);
30        	}
31        	if($('#visitors0').css('display') != 'none')        	
32        	{
33        		$('#visitors0').slideToggle( "slow");
34        	}
35        	
36        	$('.logo_div_right').css({marginTop: '8px'});
37        	
38        	
39        	$( "#menu0" ).hide(0);  
40			$( ".logo_div_right" ).show(0); 
41        	$( "#menu_search_div0" ).show(0);
42        	$( "#header_xml" ).hide(0);
43        	
44        	
45        	
46        	
47	        	$( "#other_logos_face" ).removeClass( "other_logos_face" );
48	        	$( "#other_logos_face" ).addClass( "other_logos_face2" );
49	        	
50	        	$( "#menus" ).removeClass( "menus" );
51	        	$( "#menus" ).addClass( "menus2" );
52	        	
53	        	$( "#logo_div" ).removeClass( "logo_div" );
54	        	$( "#logo_div" ).addClass( "logo_div00" );
55	        	
56	        	$( "#logosvg" ).removeClass( "logosvg1" );
57	        	$( "#logosvg" ).addClass( "logosvg2" );
58	        	
59	        	$( "#logotextsvg" ).removeClass( "logotextsvg1" );
60	        	$( "#logotextsvg" ).addClass( "logotextsvg2" );        	
61	        	
62	        	
63	                      
64	           
65	            $('.other_logos_b').css({display: 'none'});
66	            if(!$('#buffer').length){
67	                $('<div/>',{
68	                    id: 'buffer',
69	                    css: {
70	                        height: $('#logo_div').height()   
71	                    }
72	                }).prependTo('body');
73	            }
74        	
75        	
76        	
77        	
78        	
79        	
80        }
81    	else if(!scrollle ) {
82    	 	
83    	 	scrollcheck=true;
84    	 	
85    	 	$('#logo_div').css({position: 'relative', top: '0px'});    	 	
86    	 	
87    	 	return;
88        	
89        	$( "#other_logos_face" ).removeClass( "other_logos_face2" );
90        	$( "#other_logos_face" ).addClass( "other_logos_face" );
91        	
92        	$( "#menus" ).removeClass( "menus2" );
93        	$( "#menus" ).addClass( "menus" );
94    	 	
95    	 	$( "#logo_div" ).removeClass( "logo_div00" );
96        	$( "#logo_div" ).addClass( "logo_div" );
97    	 	
98    	 	$( "#logosvg" ).removeClass( "logosvg2" );
99        	$( "#logosvg" ).addClass( "logosvg1" );
100        	
101        	$( "#logotextsvg" ).removeClass( "logotextsvg2" );
102        	$( "#logotextsvg" ).addClass( "logotextsvg1" );       
103        	
104        	$( "#menu0" ).show(0);  
105			$( ".logo_div_right" ).hide(0); 
106        	$( "#menu_search_div0" ).hide(0);
107        	$( "#header_xml" ).show(0);
108        	
109    	 	
110    	 		 	
111    	 	
112    	 	 	
113    	 	
114    	 	$('#cont0').css({paddingTop: '70px'});
115    	 	//$('#promo0').css({marginTop: '0px'});
116    	 	$('.logo_div_right').css({marginTop: '28px'});
117        	
118    	 	
119    	 	
120            
121            
122           
123            //$('.other_logos_b').css({display: 'block'});
124            $('#buffer').remove();
125			
126        }
127        
128    });
129});
130/*
131$(function() {
132	
133	var anitime=250;
134	
135    var stickyHeaderTop = $('#logo_div').offset().top; console.log(stickyHeaderTop);
136	var scrollcheck=true;
137    $(window).scroll(function() {
138    	
139    	var scrollle=true;
140    	var scrolltop=$(window).scrollTop();
141    	if(scrolltop <= stickyHeaderTop){scrollle=false;}else if(scrolltop > stickyHeaderTop){scrollle=true;}
142    	
143       if (scrollcheck && scrollle){
144        	
145        	//$('#promo0').fadeOut( "slow", function() {});
146        	if($('#promo0').css('display') != 'none')
147        	{
148        		$('#promo0').slideToggle( "slow", function() {
149        			//$('#cont0').css({paddingTop: '50px'});
150        			}
151        		);
152        	}
153        	if($('#visitors0').css('display') != 'none')        	
154        	{
155        		$('#visitors0').slideToggle( "slow");
156        	}
157        	
158        	$('.logo_div_right').css({marginTop: '8px'});
159        	
160        	$( "#menu0" ).fadeOut(250);
161        	
162        	
163        	$( "#header_xml" ).fadeOut( 100, function() {
164        		$( "#menu_search_div0" ).show(anitime);
165        		$( ".logo_div_right" ).fadeIn(anitime);
166        	});
167        	
168        	
169	        	$( "#other_logos_face" ).removeClass( "other_logos_face" );
170	        	$( "#other_logos_face" ).addClass( "other_logos_face2" );
171	        	
172	        	$( "#menus" ).removeClass( "menus" );
173	        	$( "#menus" ).addClass( "menus2" );
174	        	
175	        	$( "#logo_div" ).removeClass( "logo_div" );
176	        	$( "#logo_div" ).addClass( "logo_div00" );
177	        	
178	        	$( "#logosvg" ).removeClass( "logosvg1" );
179	        	$( "#logosvg" ).addClass( "logosvg2" );
180	        	
181	        	$( "#logotextsvg" ).removeClass( "logotextsvg1" );
182	        	$( "#logotextsvg" ).addClass( "logotextsvg2" );        	
183	        	
184	        	scrollcheck=false;
185	        	
186	            $('#logo_div').css({position: 'fixed', top: '0px'});
187	            
188	                      
189	           
190	            $('.other_logos_b').css({display: 'none'});
191	            if(!$('#buffer').length){
192	                $('<div/>',{
193	                    id: 'buffer',
194	                    css: {
195	                        height: $('#logo_div').height()   
196	                    }
197	                }).prependTo('body');
198	            }
199        	
200        	
201        	
202        	
203        	
204        	
205        }
206    	else if(!scrollle ) {
207    	 	
208        	
209        	$( "#other_logos_face" ).removeClass( "other_logos_face2" );
210        	$( "#other_logos_face" ).addClass( "other_logos_face" );
211        	
212        	$( "#menus" ).removeClass( "menus2" );
213        	$( "#menus" ).addClass( "menus" );
214    	 	
215    	 	$( "#logo_div" ).removeClass( "logo_div00" );
216        	$( "#logo_div" ).addClass( "logo_div" );
217    	 	
218    	 	$( "#logosvg" ).removeClass( "logosvg2" );
219        	$( "#logosvg" ).addClass( "logosvg1" );
220        	
221        	$( "#logotextsvg" ).removeClass( "logotextsvg2" );
222        	$( "#logotextsvg" ).addClass( "logotextsvg1" );       
223        	
224        	$( "#menu0" ).fadeIn(250);  
225			
226        	
227        	//$( "#menu0" ).fadeIn(500);   	 
228        	
229        		
230    	 	
231    	 	$( ".logo_div_right" ).fadeOut( 1, function() {
232    	 		$( "#menu_search_div0" ).hide(1);
233			   $( "#header_xml" ).fadeIn(700);    
234			   
235			});
236    	 	
237    	 		 	
238    	 	
239    	 	 	
240    	 	
241    	 	$('#cont0').css({paddingTop: '70px'});
242    	 	//$('#promo0').css({marginTop: '0px'});
243    	 	$('.logo_div_right').css({marginTop: '28px'});
244        	
245    	 	
246    	 	scrollcheck=true;
247    	 	
248    	 	$('#logo_div').css({position: 'relative', top: '0px'});
249            
250            
251           
252            //$('.other_logos_b').css({display: 'block'});
253            $('#buffer').remove();
254			
255        }
256        
257    });
258});
259*/
260/* Fejléc fixálás - vége */
261
262/* Rendezés lenyitás */
263$(window).click(function () {
264				if($('#lenyilo').is(':visible'))
265				{
266					$("#lenyilo").hide();
267				}		
268				
269			});
270			
271$(document).ready(function() {	
272	$("#logo_cats_click").click(function (event) {
273					event.stopPropagation();		
274					$("#lenyilo").slideToggle( "medium", function() {
275					    // Animation complete.
276					    if($('#top_lenyilo').is(':visible'))
277						{
278							$("#top_lenyilo").hide();
279						}	
280					  });
281				});
282});
283/* Rendezés lenyitás - vége */
284
285/* Multi site lenyitás */
286/*
287$(function () {    
288	  $('.sites_menu_div').hover(function () {
289		$('#site_lenyilo', this).stop(true, true).delay(100).slideDown(500);
290	  }, function () {
291		$('#site_lenyilo', this).stop(true, true).slideUp(500);
292	  });
293});*/
294
295/* Multi site lenyitás - vége */
296
297/* Help Layers */
298$(document).ready(function() {
299  function helplayers_on() {
300    $(".helplayer").fadeToggle( "slow", function() {
301    // Animation complete.
302  	});
303  };
304  function helplayers_off() {
305    $(".helplayer").fadeToggle( "slow", function() {
306	    // Animation complete.
307	  });
308  };
309  setTimeout(function(){ helplayers_on(); }, 2000);
310  setTimeout(function(){ helplayers_off(); }, 7000);
311})
312
313/* Help Layers - vége */
314
315/* kategória lenyíló */
316function openalcat(maincatid)
317	{		
318			event.stopPropagation();		
319			$(".alkategoria").hide();
320			$("#alkategoria_"+maincatid).toggle("fast");
321			
322			$(".kategoria").removeClass("kategoria_aktiv");
323			$("#kategoria_"+maincatid).addClass("kategoria_aktiv");
324	}	
325	
326function openalcat_m(maincatid)
327	{		
328			$("#alkategoria_"+maincatid).css('left', '0');
329			$(".kategoria").css('right', '100%');
330	}	
331	
332function closealcat_m(maincatid)
333	{		
334			$("#alkategoria_"+maincatid).css('left', '100%');
335			$(".kategoria").css('right', '0');
336	}	
337	
338$(document).ready(function() {
339	$(".kategoria_menu_click").click(function (event) {
340				if($('#kategoria_lenyilo').is(':visible'))
341				{
342					event.stopPropagation();		
343					$("#kategoria_lenyilo").slideUp( "medium", function() {
344					$(".alkategoria").hide();
345					$(".kategoria").removeClass("kategoria_aktiv");
346				});				
347				}else{	
348					event.stopPropagation();		
349					$("#kategoria_lenyilo").slideDown( "medium", function() {
350					$(".alkategoria").hide();
351					$(".kategoria").removeClass("kategoria_aktiv");					
352						
353				});
354				}
355	});
356});
357	
358$(window).click(function () {
359				if($('#kategoria_lenyilo').is(':visible'))
360				{
361					event.stopPropagation();		
362					$("#kategoria_lenyilo").slideUp();
363					$(".alkategoria").hide();
364				}			
365			});	
366/* kategória lenyíló vége */	
367
368/* top termék lenyitás */
369$(document).ready(function() {
370	
371	$(window).click(function () {
372				if($('#top_lenyilo').is(':visible'))
373				{
374					$("#top_lenyilo").hide();
375				}		
376				
377			});
378	
379	$(".top_termekek_div").click(function (event) {
380					event.stopPropagation();		
381					$("#top_lenyilo").slideToggle( "medium", function() {
382					    // Animation complete.
383					    if($('#lenyilo').is(':visible'))
384						{
385							$("#lenyilo").hide();
386						}		
387					  });
388				});
389				
390	
391				
392});	
393/* top termék lenyitás - vége */
394
395/* 18+ */
396function func18(id) {
397				
398				/*
399				var fulladarray = JSON.parse(readCookie('adu_cookie'));
400				
401				if(fulladarray!==null)
402				{					
403					fulladarray.push(id);
404					var adarray = fulladarray;
405				}
406				else
407				{
408					var adarray=[id];
409				}
410				
411				document.cookie = 'adu_cookie='+JSON.stringify(adarray)+';max-age=86400;path=/';	
412				*/
413				
414				document.cookie = 'adu_cookie=1;max-age=86400;path=/';	
415				
416				//$("#product_adu_"+id).hide();		
417				
418				$(".product_adu").hide();	
419				$(".product_adu_min").hide();
420							
421}
422
423function func18_no(id) {
424				
425				document.cookie = 'adu_cookie=0;max-age=86400;path=/';	
426				
427				$(".ad_button").hide();		
428				$(".ad_button_no").hide();				
429}
430
431function readCookie(name) {
432            var nameEQ = name + "=";
433            var ca = document.cookie.split(';');
434            for (var i = 0; i < ca.length; i++) {
435                var c = ca[i];
436                while (c.charAt(0) == ' ') c = c.substring(1, c.length);
437                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
438            }
439            return null;
440        }
441/* 18+ - vége */
442
443/* Mobil menü */
444$(document).ready(function() {	
445			$("#menu_link").click(function () {		
446				$("#m_menu").slideToggle("fast"); 	
447				$("#m_lenyilo").hide();
448				$("#menu_search_div").hide();
449				$("#menu_cross_div").hide();	
450				$("#m_menu_tars").hide();
451				$("#menu_cat_div").hide();	
452			});
453			$("#menu_seq").click(function () {		
454				$("#m_lenyilo").slideToggle("fast");				
455				$("#menu_search_div").hide();
456				$("#m_menu").hide();
457				$("#menu_cross_div").hide();
458				$("#m_menu_tars").hide();
459				$("#menu_cat_div").hide();	
460			});
461			$("#menu_search").click(function () {		
462				$("#menu_search_div").slideToggle("fast");
463				$("#m_lenyilo").hide();				
464				$("#m_menu").hide();
465				$("#menu_cross_div").hide();
466				$("#m_menu_tars").hide();
467				$("#menu_cat_div").hide();	
468			});
469			$("#menu_cross").click(function () {		
470				$("#menu_cross_div").slideToggle("fast");
471				$("#menu_search_div").hide();
472				$("#m_lenyilo").hide();				
473				$("#m_menu").hide();
474				$("#m_menu_tars").hide();
475				$("#menu_cat_div").hide();	
476			});
477			
478			$("#cont").click(function () {		
479				$("#m_lenyilo").hide();
480				$(".m_menu_search_div").hide();
481				$("#m_menu").hide();
482				$("#menu_cross_div").hide();
483				$("#m_menu_tars").hide();
484				$("#menu_cat_div").hide();	
485
486			});
487			
488			$("#tars_link_m").click(function () {		
489				$("#m_menu_tars").slideToggle("fast");
490				$(".dropdown_arrow").toggleClass('deg90');
491				$("#menu_search_div").hide();
492				$("#m_lenyilo").hide();				
493				$("#menu_cat_div").hide();	
494				
495			});
496			
497			$("#menu_cat").click(function () {		
498				$("#menu_cat_div").slideToggle("fast");
499				$("#menu_search_div").hide();
500				$("#m_lenyilo").hide();				
501				$("#tars_link_m").hide();	
502				$("#m_menu").hide();
503				$(".m_menu_search_div").hide();
504				$("#menu_cross_div").hide();
505			});
506			
507			$("#news_close").click(function () {
508				document.cookie = 'newshiddencookie=1;max-age=86400;path=/';	
509				$("#news_div0").hide();	
510				$("#news_div").hide();
511			});
512			
513		});	
514/* Mobil menü - vége */
515
516/* Mobil info */
517$(document).ready(function() {	
518			$("#info_choice").click(function () {		
519				$("#info_top_menu").toggle();		 	
520			});
521		});	
522/* Mobil info - vége */
523
524/* Keresés */
525
526function keresessubmit()
527{
528	var text=$("#search_input0").val();
529		
530		if(text.length>2)
531		{
532			document.searchform.submit()
533		}
534}
535
536$(document).ready(function() {	
537	$("#search_input").keyup(function () {
538		var text=$("#search_input").val();
539		
540		if(text.length>2)
541		{
542			$.post( "/search.php?search="+text, function( data ) {
543			  $( "#menu_search_list" ).show();
544			  $( "#menu_search_list" ).html( data );
545			});			
546		}
547		else
548		{
549			$( "#menu_search_list" ).hide();
550		}
551			 	
552	});
553	$("#search_input0").keyup(function () {	
554		var text=$("#search_input0").val();
555		$("#searchform").attr('action', '/kereses/'+RemoveAccents(text));
556		if(text.length>2)
557		{
558			$.post( "/search.php?search="+text, function( data ) {
559			  $( "#menu_search_list0" ).slideDown("fast");
560			  $( "#menu_search_list0" ).html( data );
561			});			
562		}
563		else
564		{
565			$( "#menu_search_list0" ).hide();
566		}
567			 	
568	});
569	$("#search_input0").click(function () {	
570		var text=$("#search_input0").val();
571		if(text.length>2)
572		{
573			$.post( "/search.php?search="+text, function( data ) {
574			  $( "#menu_search_list0" ).slideDown("fast");
575			  $( "#menu_search_list0" ).html( data );
576			});			
577		}
578		else
579		{
580			$( "#menu_search_list0" ).hide();
581		}
582			 	
583	});
584	$(window).click(function () {
585				if($('#menu_search_list0').is(':visible'))
586				{
587					event.stopPropagation();		
588					$("#menu_search_list0").slideUp("fast");
589				}			
590			});	
591});	
592
593function RemoveAccents(strAccents) {
594var strAccents = strAccents.split('');
595var strAccentsOut = new Array();
596var strAccentsLen = strAccents.length;
597var accents =   'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖŐòóôõöőÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜŰùúûüűÑñŠšŸÿýŽž ';
598var accentsOut = "AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUUuuuuuNnSsYyyZz_";
599for (var y = 0; y < strAccentsLen; y++) {
600if (accents.indexOf(strAccents[y]) != -1) {
601strAccentsOut[y] = accentsOut.substr(accents.indexOf(strAccents[y]), 1);
602} else
603strAccentsOut[y] = strAccents[y];
604}
605strAccentsOut = strAccentsOut.join('');
606return strAccentsOut;
607}
608
609/* Keresés - vége */
610
611/* Cégadatok */
612
613$(document).ready(function() {		
614		$("#ownerLayerLink").tipTip({defaultPosition: "top",activation: "click", delay:100,keepAlive: true});
615	});
616
617/* Cégadatok - vége */
618
619/* Szürke layer felugrókhoz */
620$(document).ready(function ($) {
621	$("#gray_layer").click(function () {
622    	$("#gray_layer").hide();
623    	$(".up_text").hide();
624    	$(".up_div").hide();
625    });
626});	
627/* Szürke layer felugrókhoz - vége */
628
629/* További oldalak slider */
630$(document).ready(function ($) {
631
632
633
634	var fullSiteSize=$('#other_site_slider').width();
635
636	var slideCount = $('#other_site_slider_ccc a').length;
637	
638	var slideWidth = $('#other_site_slider_ccc').width();
639	$('#other_site_slider_c').width(slideWidth);
640	
641	var slideLogoWidth = $('.other_site_link').width();
642	slideWidthN=slideCount*slideLogoWidth;
643	
644	$('#other_site_slider_ccc').width(slideWidthN);
645	var slideLeft=0;
646	var slideMaxWidth=slideCount*slideLogoWidth;	
647	
648	
649	var slideViewWidth=Math.floor(slideWidth/slideLogoWidth)*slideLogoWidth;
650	$('#other_site_slider_cc').width(slideViewWidth);
651	
652	setInterval(function(){
653		
654		if(fullSiteSize!=$('#other_site_slider').width())
655		{
656			var newFullSiteSize=$('#other_site_slider').width();
657			var fullSiteSizeNN=newFullSiteSize-fullSiteSize;
658			fullSiteSize=newFullSiteSize;
659			
660			//console.log(slideWidth); console.log($('#other_site_slider_c').width());
661			
662			slideWidth = slideWidth + fullSiteSizeNN; 
663			$('#other_site_slider_c').width(slideWidth);
664			
665			slideViewWidth=Math.floor(slideWidth/slideLogoWidth)*slideLogoWidth;
666			$('#other_site_slider_cc').width(slideViewWidth);
667			
668			
669		}
670		
671	}, 1000);
672	
673    function moveLeft() {    	
674	    if((slideLeft + slideLogoWidth)>0){return false;}
675    	else
676    	{    		
677    		slideLeft=slideLeft + slideLogoWidth;
678	        $('#other_site_slider_ccc').animate({
679	            left: slideLeft,
680	            width: slideWidthN
681	        }, 400);
682	     }
683    };
684
685    function moveRight() {
686    	if((slideWidth - slideLeft)<=slideMaxWidth){
687    		slideLeft=slideLeft-slideLogoWidth;
688    		 $('#other_site_slider_ccc').animate({
689	            left: slideLeft,
690	            width: slideWidthN
691       		 }, 400);
692       	}
693    	
694               
695    };
696
697    $('#other_site_slider_l').click(function () {
698    	//clearInterval(interval);
699        moveLeft();
700    });
701
702    $('#other_site_slider_r').click(function () {
703    	//clearInterval(interval);
704        moveRight();
705    });
706 
707	 
708
709});
710/* További oldalak slider - Vége */
711
712/* Termék galéria */
713function galleryValues(id){
714		var galleryCount = parseInt($('#gallerycount_'+id).val());
715	
716		var galleryWidth = parseInt($('.plm_gallery_div').width());
717		
718		galleryWidthN=galleryCount*galleryWidth;
719	
720		var galleryMaxWidth=galleryWidthN;	
721		
722		var galleryLeftPos=0;
723		var galleryCountPot=1;
724		
725		$('#plm_gallery_photos_'+id).width(galleryWidthN);		
726		$('.gallery_photo_div').width(galleryWidth);		
727		$('#gallerywidth_'+id).val(galleryWidth);
728		$('#gallerymaxwidth_'+id).val(galleryMaxWidth);
729		$('#galleryleftpos_'+id).val(galleryLeftPos);
730		$('#gallerycountpot_'+id).val(galleryCountPot);
731	}
732
733function galleryLeft(id){
734	
735		var galleryCountPot=parseInt($('#gallerycountpot_'+id).val());
736		var galleryWidth=parseInt($('.plm_gallery_div').width());
737		var galleryCount=parseInt($('#gallerycount_'+id).val());
738		
739		if(galleryCountPot>1){	    	
740			galleryLeftPos=(galleryWidth*(galleryCountPot-2))*-1;
741			galleryCountPot--;
742		}
743    	else
744    	{    		
745    		galleryCountPot=galleryCount-1;
746    		galleryLeftPos=(galleryWidth*(galleryCountPot))*-1;
747    		galleryCountPot=galleryCount;
748	    }
749	    $('#gallerycountpot_'+id).val(galleryCountPot);
750	    
751	    $(".gdd_class_"+id).css("background", "none"); 
752  		$("#gdd_"+id+"_"+galleryCountPot).css("background", "#003643"); 
753	    
754	    $('#plm_gallery_photos_'+id).animate({
755	            left: galleryLeftPos	            
756       		 }, 400);
757       		 
758       	var gddk=$( "#gddk_"+id ).attr('value');	
759       	galleryDotSwip (id, galleryCountPot, gddk);
760       		 
761	}
762	
763function galleryRight(id) {
764		var galleryCountPot=parseInt($('#gallerycountpot_'+id).val());
765		var galleryWidth=parseInt($('.plm_gallery_div').width());
766		var galleryCount=parseInt($('#gallerycount_'+id).val());
767		
768    	if(galleryCountPot<galleryCount){
769    		galleryLeftPos=(galleryWidth*(galleryCountPot))*-1;
770    		galleryCountPot++;    		 
771       	}
772       	else
773       	{
774       		galleryLeftPos=0;
775       		galleryCountPot=1;
776       	}
777       	$('#gallerycountpot_'+id).val(galleryCountPot);
778       	
779       	$(".gdd_class_"+id).css("background", "none"); 
780  		$("#gdd_"+id+"_"+galleryCountPot).css("background", "#003643"); 
781       	
782       	$('#plm_gallery_photos_'+id).animate({
783	            left: galleryLeftPos	            
784       		 }, 400);
785       		 
786       	var gddk=$( "#gddk_"+id ).attr('value');	
787       	galleryDotSwip (id, galleryCountPot, gddk);
788       	 	 
789    }
790    
791function galleryDot (id, count) {
792		var galleryWidth=$('.plm_gallery_div').width();
793		
794  		galleryLeftPos=(galleryWidth*(count-1))*-1;
795  		
796  		$('#gallerycountpot_'+id).val(count);	
797  		 
798  		$(".gdd_class_"+id).css("background", "none"); 
799  		$("#gdd_"+id+"_"+count).css("background", "#003643"); 
800  		 
801  		$('#plm_gallery_photos_'+id).animate({
802	            left: galleryLeftPos	            
803       		 }, 400);       	
804	}    
805
806function galleryDotSwip (id, count, gddk) {
807		
808		var dot_id="gdd_"+id+"_"+count;
809    	$( ".gallery_dot_div" ).removeClass( "gallery_dot_div_1" );
810    	$( "#"+dot_id ).addClass( "gallery_dot_div gallery_dot_div_1" );
811		
812		var fixdot=3;
813		var maxperrow=5;
814		var imagewidth=$('.gallery_dot_div').width()+6;
815		$('#plm_bcc_w_'+id).width((imagewidth+2)*gddk);
816		
817		if(gddk>maxperrow)
818		{
819				galleryLeftPosDot=(imagewidth*(count-fixdot))*-1;
820				
821				if(galleryLeftPosDot>0){galleryLeftPosDot=0;}
822				if(galleryLeftPosDot<imagewidth*(gddk-maxperrow)*-1){galleryLeftPosDot=imagewidth*(gddk-maxperrow)*-1;}
823				console.log(imagewidth*(gddk-maxperrow)*-1);
824				$('#plm_bcc_w_'+id).animate({
825	            left: galleryLeftPosDot	            
826       		 	}, 400);
827			
828		}
829	}    
830
831$(document).ready(function ($) {	
832
833    $('.plm_cl').click(function () {
834        galleryLeft($(this).attr('value'));
835    });
836
837    $('.plm_cr').click(function () { 	
838        galleryRight($(this).attr('value'));
839    });
840    
841    $('.gallery_dot_div, .gallery_rec_div').click(function () { 	
842    	var str = $(this).attr('value');
843    	var res = str.split(",");
844    	
845    	var gddk=$( "#gddk_"+res[0] ).attr('value');
846    	
847        galleryDot(res[0],res[1]);
848        
849        galleryDotSwip(res[0],res[1], gddk);
850        
851    });
852 
853  
854	
855	  $( "#gallery_photo_div_1" ).on('swipeLeft', function(event) {
856	   galleryLeft(1);
857	  });
858		
859		$( "#gallery_photo_div_1" ).on('swipeRight', function(event) {
860	    alert('Swiped right!');
861	  });	
862		
863	/* Termék galéria - mouseover */
864/*
865	$( ".plm_c" )
866	  .mouseover(function() {
867	     $(this).find(".plm_gal_pic").fadeIn(200);
868	  })
869	  .mouseout(function() {
870	    $(this).find(".plm_gal_pic").fadeOut(200);
871	  });
872*/	
873	/* Termék galéria - mouseover  - Vége*/
874
875});
876
877/* Termék galéria - Vége */
878
879/* Termék galéria MOBIL SWIPER */
880
881function gallerySwiperB(id, num)
882{
883	var touchstartX = 0;
884	var touchendX = 0;
885	
886	var gesuredZone = document.getElementById(id);
887	
888	gesuredZone.addEventListener('touchstart', function(event) {
889	    touchstartX = event.changedTouches[0].screenX;	   
890	}, false);
891	
892	gesuredZone.addEventListener('touchend', function(event) {
893	    touchendX = event.changedTouches[0].screenX;   
894	    handleGesure(touchstartX, touchendX, num);
895	}, false); 
896
897}
898
899function handleGesure(tsx, tex, num) {
900   console.log(tex-10);
901   console.log(tsx);
902    if (tex < tsx - 70) {
903    	galleryRight(num);    
904    }
905    if (tex > tsx + 70) {
906       galleryLeft(num);
907    }
908   
909}
910
911/* Termék galéria MOBIL SWIPER - Vége */
912
913	
914
915/* Vásárlás */
916
917function number_format (number, decimals, dec_point, thousands_sep) {
918		number = (number + '').replace(/[^0-9+\-Ee.]/g, '');
919		var n = !isFinite(+number) ? 0 : +number,
920			prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
921			sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep,
922			dec = (typeof dec_point === 'undefined') ? '.' : dec_point,
923			s = '',
924			toFixedFix = function (n, prec) {
925				var k = Math.pow(10, prec);
926				return '' + Math.round(n * k) / k;
927			};
928		// Fix for IE parseFloat(0.55).toFixed(0) = 0;
929		s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.');
930		if (s[0].length > 3) {
931			s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
932		}
933		if ((s[1] || '').length < prec) {
934			s[1] = s[1] || '';
935			s[1] += new Array(prec - s[1].length + 1).join('0');
936		}
937		return s.join(dec);
938	}
939
940function changeCart(d, param, var_id) {
941		if(var_id>0){$("#var_id").val(var_id);}else{var var_id=0;$("#var_id").val(var_id);}
942		$("#action").val(d);
943		$("#param").val(param);
944			
945		$.post(  
946			loadUrl,  
947			$("#cartForm").serialize(),
948			function(json) {
949				//$("#result").html(json);  
950				var j = $.parseJSON(json);
951				
952				if(j.max_1) {
953					$(".max1class").each(function() {
954						$(this).val('0');
955					});					
956					$(".kosar_darab2").each(function() {						
957						$(this).val('0');
958						
959					});
960				}
961				
962				//$("#messageBox").html(j.message);
963				if(var_id>0 && j.pq00)
964				{
965					$("#pq0").val(j.pq00);
966				}
967				else
968				{
969					if(d=='product_quantity_plus'){document.getElementById("pq0").value=parseInt(document.getElementById("pq0").value)+1;}
970					if(d=='product_quantity_minus'){if(document.getElementById("pq0").value>1){document.getElementById("pq0").value=parseInt(document.getElementById("pq0").value)-1;}}
971					if(j.max_error && j.max_error>0){document.getElementById("pq0").value=j.max_error;}
972				}
973				if(j.message){nofancy(j.message);}
974				//if(j.message) {	$.fancybox(j.message, {overlayOpacity: 0});}
975				if(j.product_quantity)  {$("#product_quantity").val(j.product_quantity);}
976				if(j.product_sum_price) {$("#product_sum_price").html(j.product_sum_price);}
977				if(j.subproduct_sum_price) { 
978					$.each(j.extra_quantity, function(index, value) {
979						  $("#subproduct_sum_price_"+index).html(j.subproduct_sum_price[index]);
980						 $("#extra_quantity_"+index).val(value);
981					});					
982				}
983				if(j.sumprice1) {
984					$("#sumprice1").html(number_format(j.sumprice1, 0, '', ' '));
985				}
986				if(j.sumprice2) {$("#sumprice2").html(' '+number_format(j.sumprice2, 0, '', ' '));}
987				//Variációk
988				if(var_id>0){$("#product_quantity_" + var_id).val(j.product_quantity_x); $("#pq0_" + var_id).val(j.product_quantity_x);}
989				//Variációk - vége
990				//Sávos szállítás
991				
992				if(j.intsp==1){					
993					$(".shpa_price").html("+ " + j.intsp_price + " Ft");
994				}
995				//Sávos szállítás - vége 
996				
997			}  
998		);  
999	}
1000	
1001	function nofancy(text)
1002	{
1003		$("#gray_layer").show();
1004		$(".loginBox").center();
1005		$(".loginBox").show();
1006		$("#systemmess_text").html(text);
1007		    
1008	}
1009	
1010	function changePayment() {		
1011
1012		var payment = $("input[name=payment]:radio:checked").val();
1013		
1014			
1015		$("input[name=shipping]:radio").attr('disabled', true);
1016		$('input:disabled').closest('.ez-radio').addClass('disabled');				
1017
1018		var parts = new Array();
1019		$.each(sp, function(index, value) {
1020			parts = value.split('-');
1021			if(payment==parts[1]) {	
1022				$("input[name=shipping][value="+parts[0]+"]:radio").attr('disabled', false);
1023				$("input[name=shipping][value="+parts[0]+"]:radio").closest('.ez-radio').removeClass('disabled');
1024			}
1025		}); 
1026
1027		$("input:radio[name=shipping][disabled=false]:first").attr('checked', true);	
1028		
1029		changeShipping()
1030		
1031		$('input').ezMark({no:'no'});
1032	  // $('input:radio').lightSwitch();
1033			
1034	}
1035	
1036	function changeShipping() {
1037		var shipping = $("input[name=shipping]:radio:checked").val();
1038		$.post(  
1039			loadUrl,  
1040			{shipping: shipping, 
1041			 task: "changePayment"},
1042			function(json) {  
1043				//$("#result").html(json);  
1044				var j = $.parseJSON(json);
1045				$("#messageBox").html(j.message);
1046				if(j.sumprice2) {$("#sumprice2").html(' '+number_format(j.sumprice2, 0, '', ' '));}
1047			}  
1048		); 		
1049	}
1050	
1051	function changeShippingPayment() {
1052		var shippingpayment = $("input[name=shippingpayment]:radio:checked").val();
1053		if(!shippingpayment) return;
1054		if(shippingpayment.substr(0,1)==5) {
1055			$('#pickpack').css('display', '') 
1056			$('#pickpack').addClass('validate[required]') 
1057			
1058		} else {
1059			$('#pickpack').css('display', 'none') 
1060			$('#pickpack').removeClass('validate[required]') 
1061		}		
1062		$.post(  
1063			loadUrl,  
1064			{shippingpayment: shippingpayment, 
1065			 task: "changePayment"},
1066			function(json) {  
1067				//$("#result").html(json);  
1068				var j = $.parseJSON(json);
1069				$("#messageBox").html(j.message);
1070				if(j.sumprice2) {$("#sumprice2").html(' '+number_format(j.sumprice2, 0, '', ' '));}
1071			}  
1072		); 		
1073	}
1074	
1075	function copyData() {
1076		if(!$("#copydata").is(":checked")) {
1077			$(".bill").show();
1078			$("#dataDiv").scrollTop($("#billingA").position().top);
1079		} else { $(".bill").hide(); }
1080	}
1081	
1082/* Vásárlás vége */
1083
1084/* Heder XML */
1085
1086function xmlRight(id) {
1087		var galleryCountPot=parseInt($('#gallerycountpot').val());
1088		var galleryWidth=parseInt($('.header_xml_prod').width());
1089		var galleryCount=parseInt($('#gallerycount').val());
1090		
1091    	if(galleryCountPot<galleryCount){
1092    		galleryLeftPos=(galleryWidth*(galleryCountPot))*-1;
1093    		galleryCountPot++;    		 
1094       	}
1095       	else
1096       	{
1097       		galleryLeftPos=0;
1098       		galleryCountPot=1;
1099       	}
1100       	$('#gallerycountpot').val(galleryCountPot);
1101       
1102       	
1103       	$('#header_xml_prods').animate({
1104	            left: galleryLeftPos	            
1105       		 }, 400);
1106    }
1107
1108$(document).ready(function ($) {
1109	
1110   	interval=setInterval(function () {
1111        xmlRight(1);
1112    }, 5000);
1113    
1114    
1115});	
1116
1117
1118/* Header XML - vége */
1119
1120/* Szavazás */
1121$(document).ready(function() {	
1122	$(".vote_link").click(function () {
1123		var link=$(this).prop('rel');
1124		
1125		$(".vote_link").html("<span>Már szavaztál</span>");
1126		
1127		//console.log(link);
1128		if(link!="1")
1129		{
1130			$.post( link, function( data ) {
1131				$(".vote_link").attr('rel', '1');
1132			 	//console.log(data);
1133			});			
1134		}
1135			 	
1136	});
1137	
1138});	
1139/* Szavazás - vége */

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.