PageSourceSearch

https://www.orlenpolymer.cz/assets/_js/main.js

js orlenpolymer.cz collected 2026-10-09 23:29:14 UTC 25,570 bytes, 700 lines download raw bytes

1var pathname = window.location.pathname;
2var lokalizacja=pathname.split("/");		
3
4function getParameterByName(name, url) {
5    if (!url) {
6      url = window.location.href;
7    }
8    name = name.replace(/[\[\]]/g, "\\$&");
9    var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
10        results = regex.exec(url);
11    if (!results) return null;
12    if (!results[2]) return '';
13    return decodeURIComponent(results[2].replace(/\+/g, " "));
14}	
15  
16var f2hGetListInJson = function (listName, siteName, fields, callback, query) {
17    var $ = jQuery;
18    if (fields == undefined)
19        fields = ['Title']; 
20
21    if (query == undefined)
22        query = "<Query><OrderBy><FieldRef Name=\"ID\"/></OrderBy></Query>";
23
24    var viewFields = "";
25    $.each(fields, function (k, v) {
26        viewFields += "<FieldRef Name='" + v + "' />"
27    });
28    $().SPServices({ 
29        operation: "GetListItems",
30        webURL: siteName,
31        listName: listName,
32        async: false,
33        CAMLViewFields: "<ViewFields>" + viewFields + "</ViewFields>",
34        CAMLQuery: query,
35        CAMLRowLimit: 0,
36        completefunc: function (data, status) {
37
38            var error = $(data.responseXML).find('errorstring').text();
39            var error_code = $(data.responseXML).find('errorcode').text();
40
41            if (error_code == "0x82000006") {
42                alert("UWAGA. Lista '" + listName  + "' nie została znaleziona. Nie można kontynuować.");
43            }
44            else if (error_code) {
45                alert("B£¥D: " + error_code + "\n" + error);
46                return;
47            }
48
49            var result = [];
50
51            //$($.browser.msie ? data.responseText : data.responseXML).find('row').each(function () {
52            $(data.responseXML).find("z\\:row, row").each(function () {
53                var item = {};
54                var row = $(this);
55                $.each(fields, function (i, name) {
56                    item[name] = row.attr('ows_' + name);
57                });
58                result.push(item);
59            });
60
61            if (callback)
62               callback(result, status);
63
64            //console.log('result', result);
65        }
66    });
67};
68
69function Iagree()
70{
71    jQuery.cookie('cookiesokf', "1", { expires: 7, path: '/' });
72    jQuery('#cookie-bar').hide();
73    
74}
75function More()
76{
77    if(jQuery('div.siteMap').is(":visible"))
78    {
79     jQuery('div.siteMap').hide();
80     }
81     else
82     {
83    jQuery('div.siteMap').show();
84    }
85}
86
87
88
89
90jQuery(document).on('DOMContentLoaded', function() {
91//jQuery(document).ready(function() {
92
93
94jQuery( "a.more" ).click(function() {
95  More();
96});
97
98String.prototype.capitalize = function() {
99    return this.charAt(0).toUpperCase() + this.slice(1);
100}
101jQuery(".icopdf").text(jQuery(".icopdf").text().capitalize());
102jQuery(".icosend").text(jQuery(".icosend").text().capitalize());
103jQuery(".icoprint").text(jQuery(".icoprint").text().capitalize());
104
105		jQuery("a.btn_search_small").bind("click",function(){
106			if(jQuery("#szukaj_w2").is(':checked'))
107				return;
108						var pathname = window.location.pathname;
109					var lokalizacja=pathname.split("/");
110					if(lokalizacja[1].toLowerCase()=='pl')
111					{
112					
113					location.href="/pl/search/Strony/default.aspx?k="+jQuery(".search_input_container input").val();
114					}
115					if(lokalizacja[1].toLowerCase()=='en')
116					{
117					location.href="/en/Search/Pages/default.aspx?k="+jQuery(".search_input_container input").val();			
118					}
119
120		});
121
122
123//wyświetlenie z grupy orlen na innych wersjach językowych
124		var pathname = window.location.pathname;
125		var lokalizacja=pathname.split("/");
126		lok = lokalizacja;
127     //   cookieText(lokalizacja[1].toLowerCase());
128		if(lokalizacja[1].toLowerCase()=='en')
129		{
130		console.log("en");
131		window.dataLayer.push({ 
132		 'event': 'language_change', 
133		 'culture': 'en' 
134		 });
135		
136		//jQuery(".skupina").text("Good");
137		jQuery(".menuTop > ul li:nth-child(2) a").attr('href','/en/Contacts/Pages/default.aspx')
138			
139		jQuery(".search_label, a.btn_search_small span").text("search");
140		jQuery(".search_input_container input").attr("value","Enter a search term ...");
141		jQuery(".grid_2.box_with_right_padding a h2").text("From Orlen Group");
142		jQuery(".site_options_inner .float_right span, .site_options_inner span").text("Size: ");	
143		jQuery(".float_right a.up").text("Up");
144		jQuery(".vyberte").text("choose");
145		jQuery("a.orlen_group .skupina").html("ORLEN GROUP");
146		jQuery("a.orlen_group2 .skupina").html("ORLEN UNIPETROL<br/>GROUP");
147		jQuery("#size").html("Size");
148		jQuery("#logos h3").html("ORLEN Unipetrol Group Brands");
149		jQuery(".bottom_menu_list .first a").html("Main page");
150		jQuery(".bottom_menu_list .first a").attr('href','/en');
151		jQuery(".bottom_menu_list li:nth-child(2) a").html("Sitemap");
152		jQuery(".bottom_menu_list li:nth-child(2) a").attr('href','/en/Pages/sitemap.aspx');	
153		jQuery(".bottom_menu_list li:nth-child(3) a").html("Legal disclaimer");
154		jQuery(".bottom_menu_list li:nth-child(3) a").attr('href','/en/Pages/Legal-disclaimer.aspx');
155		jQuery(".bottom_menu_list li:nth-child(4) a").html("Privacy policy");
156		jQuery(".bottom_menu_list li:nth-child(4) a").attr('href','/en/Pages/PRIVACY-POLICY.aspx ');
157		jQuery("#stopkaLinki .pull-right .up").html("UP");
158		}
159		if(lokalizacja[1].toLowerCase()=='ru')
160		{
161		jQuery(".site_options_inner span").text("размер шрифта");
162		jQuery(".search_label, a.btn_search_small span").text("поиск");
163		jQuery(".grid_2.box_with_right_padding a h2").text("Из Orlen");		
164		jQuery(".site_options_inner .float_right span, .site_options_inner span").text("размер: ");				
165		}
166		if(lokalizacja[1].toLowerCase()=='cs')
167		{
168			console.log("cs");
169			window.dataLayer.push({ 
170			 'event': 'language_change', 
171			 'culture': 'cs' 
172			 });
173			
174			jQuery(".menuTop > ul li:nth-child(2) a").attr('href','/cs/Kontakty/Stranky/default.aspx');
175			jQuery(".site_options_inner span").text("velikost");
176			jQuery(".search_label, a.btn_search_small span").text("Hledat");
177			jQuery(".grid_2.box_with_right_padding a h2").text("ZE SKUPINY ORLEN");		
178			jQuery(".site_options_inner .float_right span, .site_options_inner span").text("Velikost: ");	
179			jQuery(".sightless").html("Pro zrakově postižené");	
180			jQuery("#size").html("Velikost textu");
181			jQuery(".bottom_menu_list li:nth-child(3) a").attr('href','/cs/Stranky/Pravni-ujednani.aspx');
182		}
183
184
185
186    //modal YT
187    jQuery('.yt_modal_show').bind('mouseenter', function(){
188		jQuery('.yt_modal').show();
189	}).bind('mouseleave', function(){
190		jQuery('.yt_modal').hide();
191	});
192
193/*
194    // groups menu
195    jQuery('a.orlen_group, #group_menu a.group_menu_close').click(function() {
196        if(jQuery('#group_menu .group_menu_wrapper').is(':visible'))
197        {
198            jQuery('#group_menu .group_menu_wrapper').slideUp();
199        }
200        else
201        {
202            jQuery('#group_menu .group_menu_wrapper').slideDown();
203        }
204    });
205	
206	
207	    jQuery('a.orlen_group2, #group_menu2 a.group_menu_close').click(function() {
208        if(jQuery('#group_menu2 .group_menu_wrapper').is(':visible'))
209        {
210            jQuery('#group_menu2 .group_menu_wrapper').slideUp();
211        }
212        else
213        {
214            jQuery('#group_menu2 .group_menu_wrapper').slideDown();
215        }
216    });
217   */ 
218    //do góry
219    jQuery('a.up').click(function() {
220        jQuery('html, body').animate({scrollTop:0});
221    });
222    
223    //szukaczka
224    jQuery('input[name=query]').click(function() {
225        jQuery(this).val('');
226    });
227    
228    jQuery('div.search_trigger').on('mouseenter', function() {
229        jQuery('.search_modal').show();
230        jQuery(this).addClass('hovered');
231        jQuery('.search_modal input').focus();
232    });
233    
234    jQuery('.search_modal, div.search_trigger').on('mouseleave', function() {
235        if(jQuery('.search_modal input').val() === '' || jQuery('.search_modal input').val() === 'Wpisz szukane słowo...' 
236		|| jQuery('.search_modal input').val() ===  'Enter a search term ...'
237		|| jQuery('.search_modal input').val() ===  'Введите слово для поиска ...'
238		|| jQuery('.search_modal input').val() ===  'Introduceți un termen de căutare ...'
239		|| jQuery('.search_modal input').val() ===  'Geben Sie einen Suchbegriff ein ...'
240				
241		)
242        {
243            jQuery('.search_modal').hide();
244            jQuery('div.search_trigger').removeClass('hovered');
245        }
246        
247    });
248    
249    jQuery('.search_modal').on('mouseenter', function() {
250        jQuery(this).show();
251        jQuery('div.search_trigger').addClass('hovered');
252    })
253    
254    jQuery('div.search_trigger').on('click', function() {
255        if(jQuery('.search_modal').is(':visible'))
256        {
257            jQuery('.search_modal').hide();
258            jQuery('div.search_trigger').removeClass('hovered');
259        }
260        else
261        {
262            jQuery('.search_modal').show();
263            jQuery(this).addClass('hovered');
264            jQuery('.search_modal input').focus();
265        }
266    });
267    
268    
269    jQuery('a.close_grey').on('click', function() {
270        jQuery('.search_modal input').val('').focus();
271    });
272    
273    
274    jQuery('a.btn_search_small').click(function() {
275        return false;
276    });
277    
278    
279    //bank zdjęć
280    jQuery('.gallery_photos a').hover(function() {
281        jQuery(this).find('.gallery_details').fadeIn(100);
282    }, function() {
283        jQuery(this).find('.gallery_details').fadeOut(100);
284    });
285    
286  /* //Nadmiarowa funkcja  
287    jQuery('a.A1, a.A2, a.A3').click(function() {
288        var clas = (jQuery(this).attr('class'));
289        jQuery('a.A1, a.A2, a.A3').removeClass('active');
290        jQuery(this).addClass('active');
291        
292        var size = 0;
293        if(clas === 'A1')
294        {
295            size = -2;
296        }
297        else if(clas === 'A2')
298        {
299            size = 0;
300        }
301        else if(clas === 'A3')
302        {
303            size = 2;
304        }
305        
306        
307        jQuery('.middle p, .middle a, .content_site a, .content_site p, .content_site_right_boxes a, .content_site_right_boxes p, .content_site_right_boxes span').each(function(index, el) {
308            var originalSize = 0;
309            if(jQuery(el).attr('data-size') === undefined )
310            {
311                originalSize = parseInt(jQuery(el).css('font-size'));
312                jQuery(el).attr('data-size', originalSize+"px");
313            }
314            else
315            {
316                originalSize = parseInt(jQuery(el).attr('data-size'));
317            }
318            if(jQuery(el).attr('class') !== 'read_more' && jQuery(el).attr('class') !== 'sightless')
319            jQuery(el).css('font-size', (originalSize + size) + 'px');
320        });
321    });
322    */
323    
324    
325    
326    jQuery("select[name=filtr]").change(function(){
327       
328       document.location.href = "#"+jQuery("select[name=filtr]").val();
329        
330    });
331    
332    
333    
334    
335    //slider do logosó
336    setInterval(function hi(){
337        var elArray = jQuery('#logos').find('.logos_slider');
338        var currentIndex = elArray.index(jQuery('#logos').find('.logos_slider:visible'));
339        
340        var maxCount = (elArray.length - 1);
341        var next = currentIndex + 1;
342        if(currentIndex === maxCount) next = 0;
343        
344        jQuery('#logos').find('.logos_slider:visible').fadeOut('normal', function() {
345            jQuery(elArray[next]).fadeIn();
346        });
347        
348    }, 5000);
349
350    
351});
352
353
354
355jQuery(window).load(function() {
356    if( jQuery('div.main_banner').length > 0  && jQuery('#visual').find('#flashHeaderEmbed').length == 0)
357    {
358        jQuery(".main_banner").attr("style","overflow:hidden;min-height: 300px;");
359        jQuery(".main_banner").append (jQuery("#picture").html());
360        jQuery(".main_banner img").attr("style","display: inline; height: 300px;");
361
362    }
363    
364});
365
366function cookieText(lang)
367{
368var adresy =  [
369['orlen-asfalt.pl','ORLEN Asfalt Sp. z o.o'],
370['orlenadministracja.pl','ORLEN Administracja'],
371['budonaft.com.pl','ORLEN Budonaft'],
372['orlenautomatyka.pl','ORLEN Automatyka Sp. z o.o.'],
373['orlencapital.se','ORLEN Capital AB'],
374['orlencs.pl','ORLEN Centrum Serwisowe Sp. z o.o.'],
375['orlendarserca.pl','Fundacja ORLEN – DAR SERCA'],
376['orlen-deutschland.de','ORLEN Deutschland GmbH'],
377['orleneko.pl','ORLEN Eko Sp. z o.o.'],
378['orlenfinance.se/','Orlen Finance AB'],
379['orlengaz.pl','ORLEN GAZ Sp. z o.o.'],
380['orlenkoltrans.pl','ORLEN KolTrans Sp z o.o."'],
381['orlencuk.pl','ORLEN Centrum Usług Korporacyjnych Sp. z o.o.'],
382['orlenlaboratorium.pl','ORLEN Laboratorium Sp. z o.o'],
383['orlenlietuva.lt','ORLEN Lietuva'],
384['orlenochrona.pl','ORLEN Ochrona Sp. z o.o.'],
385['orlenoil.pl','ORLEN OIL'],
386['orlenpaliwa.com.pl','ORLEN Paliwa Sp. z o.o.'],
387['orlenpetrotank.pl','ORLEN PetroTank'],
388['orlenpoludnie.pl','ORLEN Południe S.A.'],
389['orlenprojekt.pl','ORLEN Projekt S.A.'],
390['orlenserwis.pl','ORLEN Serwis S.A.'],
391['orlentransport.pl','​ORLEN Transport S.A.'],
392['orlenupstream.pl','ORLEN Upstream Sp. z o.o.'],
393['orlenwir.pl','ORLEN Wir Sp. z o. o.'],
394['anwil.pl','ANWIL'],
395['centrumedukacji.pl','Centrum Edukacji Grupa ORLEN'],
396['solino.pl','IKS Solino'],
397['pppt.pl','Płocki Park Przemysłowo-Technologiczny'],
398['ship-service.pl','SHIP-SERVICE S.A.'],
399['unipetrol.cz','Unipetrol group '],
400['petrotrans.cz','Unipetrol group '],
401['paramo.cz','Unipetrol group '],
402['unipetrolrpa.cz','Unipetrol group '],
403['butadien.cz','Unipetrol group '],
404['polymer.cz','Unipetrol group '],
405['unipetroldoprava.cz','Unipetrol group '],
406['unipetrol.sk','Unipetrol group '],
407['spolana.cz','Unipetrol group ']
408
409];
410
411
412var companyName = "PKN ORLEN S.A.";
413var address = window.location.host;
414for(var i = 0; i< adresy.length; i++)
415{
416    if(address.indexOf( adresy[i][0])> -1)
417    {
418        companyName = adresy[i][1];
419    }
420}
421
422
423
424var label1 = "<div  id='cookie-bar'><div class='main' id='mes'><span> "+ companyName +" informuje, że na swoich stronach www stosuje pliki cookies (tzw. ciasteczka). Kliknij <a class='close' onclick='Iagree();' href='#'>[Zgadzam się]</a>, aby ta informacja nie pojawiała się więcej.</span>\
425      <span>Kliknij <a href='http://www.orlen.pl/PL/PolitykaPrywatnosci/Strony/default.aspx'>[Polityka prywatności i cookies]</a>
425, aby dowiedzieć się więcej, w tym jak zarządzać plikami cookies za pośrednictwem swojej przeglądarki internetowej.</span>\
426      <span><strong>Wykaz plików Cookies wykorzystywanych w serwisie  "+ address +"</strong> <span style='text-decoration: underline;cursor:pointer;color:#0066cc;' class='more' onclick='More();' >[Rozwiń]</spa></span>\
427      <div class='siteMap expand' style='display: none;'>\
428         <ul>\
429            <li>DlaNiedowidzacych - plik odpowiedzialny za wyświetlanie strony w wersji dla niedowidzących,</li>\
430            <li>Orlenpl_font_size - plik odpowiedzialny za wielkość czcionki na stronie,</li>\
431            <li>__utma - plik odpowiedzialny za dane statystyczne,</li>\
432            <li>__utmb - plik odpowiedzialny za dane statystyczne,</li>\
433            <li>__utmc - plik odpowiedzialny za dane statystyczne,</li>\
434			<li>__utmt - plik odpowiedzialny za dane statystyczne.</li>\
435            <li>__utmz - plik odpowiedzialny za dane statystyczne,</li>\
436            <li>TSxxxxxxxx, TSxxxxxxxx_d (gdzie: x - znaki alfanumeryczne, d - liczby 1 – 14) - pliki odpowiadające za prawidłowy transfer danych pomiędzy serwerami obsługującymi zapytania</li>\
437         </ul>\
438      </div></div></div>";
439if(lang != "pl")
440{
441label1 = "<div  id='cookie-bar'>\
442			<div class='main' id='mes'><br/>\
443				<p>This website uses cookies that serve to improve the functions and use of our website and enable visit rate analysis.\
444				 We share the information regarding your use of our website with our partners for social media, advertising and analyses.\
445				  If you want to know more about the types of cookies we use and for what purpose and with whom we share them, or how to\
446				   change the cookie settings, please click on  <span class='more'  style='text-decoration: underline;cursor:pointer;color:#0066cc;' ><a href='/en/Pages/PRIVACY-POLICY.aspx'>Display details</a></span>.\
447				   If you wish to continue using this web without any changes to the setting, you agree to the use of cookies.<br/>\
448				     <a class='close' onclick='Iagree();'  href='#'> I understand</a></p>\
449			<br/></div>\
450		</div>";
451}
452if(lang == "cs")
453{
454
455if(companyName == "Unipetrol group ")
456companyName = "Skupina Unipetrol";
457
458label1 = "<div  id='cookie-bar'>\
459			<div class='main' id='mes'><br/>\
460				<p>Tato webová stránka využívá soubory cookie, které slouží ke zlepšení funkcí a využitelnosti našich webových stránek,\
461				analýze návštěvnosti a k personalizaci obsahu a reklam, včetně využití funkcí sociálních médií. Informace o tom, jak náš\
462				web používáte, sdílíme se svými partnery pro sociální média, inzerci a analýzy. Pokud chcete vědět více o tom, jaké soubory\
463				cookie používáme, k jakým účelům a s kým je sdílíme, případně jak můžete změnit nastavení cookie, klikněte na <span class='more'  style='text-decoration: underline;cursor:pointer;color:#0066cc;' ><a href='/cs/Stranky/ZASADY-OCHRANY-OSOBNICH-UDAJU.aspx'>Zobrazit podrobnosti</a></span>.\
464				Budete-li pokračovat v používání tohoto webu bez změny nastavení, souhlasíte s využíváním cookies.  <a class='close' onclick='Iagree();'  href='#'> Rozumím</a></p>\
465     		<br/></div>\
466     	</div>";
467}
468	
469 	if(typeof(GetCookie('cookiesokf')) == 'undefined' || GetCookie('cookiesokf')!='1')
470	{
471	
472
473		var div = document.createElement('div');
474		div.innerHTML = label1;
475		var element = div.firstChild;
476		document.body.insertBefore(element, document.body.firstChild);
477		
478	}
479}
480
481
482
483
484jQuery(function(){
485 var pathname = window.location.pathname;
486var lokalizacja=pathname.split("/"); 
487  if(jQuery.cookie('DlaNiedowidzacych')==1){
488     jQuery("body").attr("class","amblyopic");
489	 
490		if(lokalizacja[1].toLowerCase()=='pl'){
491			jQuery(".sightless").html("Wersja standardowa");
492		 }else{
493			if(lokalizacja[1].toLowerCase()=='en')
494					jQuery(".sightless").html("Standard website");	
495			if(lokalizacja[1].toLowerCase()=='ru')
496					jQuery(".sightless").html("Стандартный сайт");		
497		 }
498  }else{
499  
500		if(lokalizacja[1].toLowerCase()=='pl'){
501			jQuery(".sightless").html("Dla niedowidzących");
502		}else{
503			if(lokalizacja[1].toLowerCase()=='en')
504				jQuery(".sightless").html("Website for disabled");	
505			if(lokalizacja[1].toLowerCase()=='ru')
506				jQuery(".sightless").html("Сайт для инвалидов");		 
507		}
508  }
509/*    
510    jQuery(".sightless").bind("click",function(){
511       if(jQuery.cookie('DlaNiedowidzacych')==0){
512            jQuery("body").addClass("amblyopic");
513             jQuery.cookie('DlaNiedowidzacych', "1", { expires: 7, path: '/' });
514			 if(lokalizacja[1].toLowerCase()=='pl'){
515				jQuery(".sightless").html("Wersja standardowa");
516			 }else{
517				if(lokalizacja[1].toLowerCase()=='en')
518					jQuery(".sightless").html("Standard website");	
519				if(lokalizacja[1].toLowerCase()=='ru')
520					jQuery(".sightless").html("Стандартный сайт");				
521			 }
522        }else{
523            jQuery("body").removeClass("amblyopic");
524             jQuery("body").attr("class","");
525             jQuery.cookie('DlaNiedowidzacych', "0", { expires: 7, path: '/' });
526             
527			 if(lokalizacja[1].toLowerCase()=='pl'){
528				jQuery(".sightless").html("Dla niedowidzących");
529			 }
530			if(lokalizacja[1].toLowerCase()=='en')
531				jQuery(".sightless").html("Website for disabled");	
532			if(lokalizacja[1].toLowerCase()=='ru')
533				jQuery(".sightless").html("Сайт для инвалидов");				
534			 }			        
535    });
536 */
537    jQuery(".language").html("English").show();
538    jQuery(".languagepl").html("Polski").show();
539	if(jQuery("a.orlen_group").html() == "")
540    jQuery("a.orlen_group").html('<img alt="Grupa Orlen" src="/_layouts/f2hszablon/_img/grupa_orlen.png">');
541    jQuery(".group").show();
542    
543    
544    var pathname = window.location.pathname;
545	var lokalizacja=pathname.split("/")
546	if(lokalizacja[1].toLowerCase()=='pl'){
547        jQuery(".tekstszukaj").attr("value","Wpisz szukane słowo...");
548    }else{
549        jQuery(".tekstszukaj").attr("value","Enter a search term ...ss");
550    }
551    jQuery("#bottom_menu .main_menu").removeClass("main_menu");
552    jQuery("#bottom_menu ul ul").hide();
553    jQuery("#bottom_menu .last").hide();
554    jQuery("#bottom_menu ").show();
555});
556
557
558
559
560function urlExists(url)
561{
562    var http = new XMLHttpRequest();
563    http.open('HEAD', url, false);
564    http.send();
565    return http.status!=404;
566}
567
568
569
570jQuery(window).load(function () {
571//obsługa xmla z headerami
572    if( jQuery('div.main_banner').length > 0) {
573		var isText; // jeżeli nie ma pliku xml nie są widoczne przyciski
574		var pauseTimeCustom = 3000; // standardowy czas wyswietlania slajdu
575
576		var pathname = window.location.pathname;
577        if(pathname[pathname.length - 1] == "/")
578        pathname = pathname.substring(0, pathname.length - 1);
579		var site ="";
580		var lokalizacja=pathname.split("/");
581		for( var i =0; i < lokalizacja.length -2; i++) // tworzenie adresu bez Strony/Nazwa.aspx
582		site +=  lokalizacja[i] + "/";
583		
584        var text = "";
585        if ( urlExists(site+"Documents/header.xml")) {
586            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
587                xmlhttp = new XMLHttpRequest();
588            }
589            else {// code for IE6, IE5
590                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
591            }
592            xmlhttp.open("GET", site+"/Documents/header.xml", false);
593
594            xmlhttp.send();
595            xmlDoc = xmlhttp.responseXML;
596            var x = xmlDoc.getElementsByTagName("item");
597            if(xmlDoc.getElementsByTagName("header") != null && xmlDoc.getElementsByTagName("header")[0].getAttribute('pauseTime') != null )
598            {
599            console.log(xmlDoc.getElementsByTagName("header")[0].getAttribute('pauseTime'));
600            pauseTimeCustom = xmlDoc.getElementsByTagName("header")[0].getAttribute('pauseTime');
601            }
602            
603				
604			//Pętla szukania wpisów XML
605            for (i = 0; i < x.length; i++) {
606                //   var chk =jQuery(x[i]);
607                //   console.log(chk.attr('bgUrl'));
608                // console.log(x[i].getAttribute('bgURL')); 
609				var thumbUrl ="";
610				var callToActionURL ="";
611				var label ="";
612				 if( x[i].getAttribute('thumbUrl') != null) 
613					thumbUrl = " thumbUrl ='"+ x[i].getAttribute('thumbUrl')+"'";
614				 if( x[i].getAttribute('label') !=  null)
615				 {
616					label =   "title='" + x[i].getAttribute('label');
617				 }
618				else
619					isText = false;
620				if(	x[i].getAttribute('callToActionURL') != null && x[i].getAttribute('callToActionURL') !="")
621					callToActionURL = "href='" + x[i].getAttribute('callToActionURL')+"' ";
622                text += "<a " + callToActionURL +  label + "'>";
623                text += "<img "+  thumbUrl  +" src='" + x[i].getAttribute('bgURL') + "' alt='' />";
624				text += "</a>";
625				var y = x[i].getElementsByTagName("image");
626				//Pętla szukania dodatkowych obrazów dla danej sekcji
627				for(j = 0; j < y.length; j++) {
628				text += "<a href='" + x[i].getAttribute('callToActionURL') + "'>";
629				//dodanie obrazków bez tytułów, inaczej nivo rozpozna, że ma być controlNav
630				text += "<img src='" + y[j].getAttribute('bgURL') + "' alt='' />"; 
631				text += "</a>";
632				}
633            }
634			
635			
636		 }
637        else {
638            text = "<a href='#' ><img src='/Documents/Header.jpg' alt='' /></a>";
639			isText = false;
640        }
641        jQuery('div.main_banner').append(text);
642
643
644        jQuery('div.main_banner').nivoSlider({
645        	pauseTime: pauseTimeCustom,
646            directionNav: false,
647			animSpeed: 200,
648            effect: 'boxRandom',
649            controlNav: isText
650        });
651
652
653    }
654    
655});
656
657jQuery(function(){
658	if(lokalizacja[1].toLowerCase()=='de'){
659		jQuery("UL.main_menu LI.last").attr("style","WIDTH: 155px !important");
660	}
661	if(lokalizacja[1].toLowerCase()=='ru'){
662		jQuery("UL.main_menu LI.last").attr("style","WIDTH: 155px !important");
663	}
664	if(lokalizacja[1].toLowerCase()=='ro'){
665		jQuery("UL.main_menu LI.last").attr("style","WIDTH: 176px !important");
666		jQuery("UL.main_menu LI.last a").attr("style","max-WIDTH: 139px !important");
667	}
668	jQuery(".cookieRenew").on("click",function(e){
669		e.preventDefault();
670		console.log("Cookiebot.renew");
671		Cookiebot.renew();
672	});
673	/*
674	jQuery(".main_menu > li a").not(".main_menu li ul a").each(function(){
675		
676		var ciag = jQuery(this).html();
677		var rozbity = ciag.split(" ");
678		if (rozbity[0].length > 2 && rozbity[0].length < 11){	
679			var menugot="";
680			for (i = 0; i < rozbity.length; i++){
681				menugot = menugot + rozbity[i]+" ";
682				if(i==0){
683				menugot = menugot + "<br>";
684				}
685			}
686			jQuery(this).html(menugot);
687		
688		}else{
689		
690		}
691		
692	});
693	*/
694	
695});
696
697
698
699
700

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.