PageSourceSearch

https://fsd.pl/asp/jscore/funkcje2.js

js fsd.pl collected 2026-10-02 16:45:06 UTC 25,062 bytes, 683 lines download raw bytes

1function Otworz(nazwa, adres, lewo, gora, szerokosc, wysokosc)
2{
3	window.open(adres,nazwa,'toolbar=no,menubar=no,location=no,personalbar=no,scrollbars=no,directories=no,status=no,resizable=no,width='+szerokosc+',height='+wysokosc+',left=' + lewo + ',top=' + gora);
4}
5
6function DodajDoUlubionych(title, url) {
7	if (window.sidebar) {
8  		window.sidebar.addPanel(title, url,"");
9 	} else if( document.all ) {
10 		window.external.AddFavorite( url, title);
11 	} else if( window.opera && window.print ) {
12 		return true;
13	}
14}
15
16function fclosepopup(nazwa) {
17	iloscpopup--;
18	if (iloscpopup>0) {
19 	   jQuery('#'+nazwa).fadeOut('slow');
20	} else {
21	 	jQuery('#div_loader').fadeTo('slow', 0,function(){ jQuery('body #div_loader').remove()});
22	}
23}
24
25function popupSize(lewo,gora,polozenie,tabela, szerokosc, wysokosc, auto) {
26	tabgora = gora.split(';');
27	tablewo = lewo.split(';');
28	tabpolozenie = polozenie.split(';');
29	tabtabela = tabela.split(';');
30	tabszerokosc = szerokosc.split(';');
31	tabwysokosc = wysokosc.split(';');
32	tabauto = auto.split(';');
33	ilosc=(tabpolozenie.length)-1;
34	for (i=0;i<ilosc;i++){
35	  var myWidth = 0, myHeight = 0, myScroll = 0;
36	  if( typeof( window.innerWidth ) == 'number' ) {
37	    //Non-IE
38	    myWidth = window.innerWidth;
39	    myHeight = window.innerHeight;
40		 myScroll = 1000;
41		 przesunx = 18;
42	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
43	    //IE 6+ in 'standards compliant mode'
44	    myWidth = document.documentElement.clientWidth;
45	    myHeight = document.documentElement.clientHeight;
46		 myScroll = document.documentElement.scrollTop;
47		 przesunx = 0;
48	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
49	    //IE 4 compatible
50	    myWidth = document.body.clientWidth;
51	    myHeight = document.body.clientHeight;
52		 myScroll = document.body.scrollTop;
53		 przesunx = 0;
54	  }
55	  if (tabpolozenie[i]==1){
56	  		mgora=tabgora[i];
57			mlewo=tablewo[i];
58	  }
59	  if (tabpolozenie[i]==2){
60	  		mgora=tabgora[i];
61			mlewo=(((myWidth/2)-(tabszerokosc[i]/2))+parseInt(tablewo[i]));
62	  }
63	  if (tabpolozenie[i]==3){
64	  		mgora=tabgora[i];
65			mlewo=((myWidth-tabszerokosc[i])+parseInt(tablewo[i]))-przesunx;
66	  }
67	  if (tabpolozenie[i]==4){
68	  		if (myHeight<tabszerokosc[i]){
69		  		mgora=tabgora[i];
70				mlewo=tablewo[i];
71			} else {
72		  		mgora=(((myHeight/2)-(tabwysokosc[i]/2))+parseInt(tabgora[i]));
73				mlewo=tablewo[i];
74			}
75	  }
76	  if (tabpolozenie[i]==5){
77	  		if (myHeight<tabszerokosc[i]){
78		  		mgora=tabgora[i];
79				mlewo=(((myWidth/2)-(tabszerokosc[i]/2))+parseInt(tablewo[i]));
80			} else {
81		  		mgora=(((myHeight/2)-(tabwysokosc[i]/2))+parseInt(tabgora[i]));
82				mlewo=(((myWidth/2)-(tabszerokosc[i]/2))+parseInt(tablewo[i]));
83			}
84	  }
85	  if (tabpolozenie[i]==6){
86	  		if (myHeight<tabszerokosc[i]){
87		  		mgora=tabgora[i];
88				mlewo=((myWidth-tabszerokosc[i])+parseInt(tablewo[i]))-przesunx;
89			} else {
90				mgora=(((myHeight/2)-(tabwysokosc[i]/2))+parseInt(tabgora[i]));
91				mlewo=((myWidth-tabszerokosc[i])+parseInt(tablewo[i]))-przesunx;
92		   }
93	  }
94	  if (tabpolozenie[i]==7){
95	  		mgora=(((myHeight-tabwysokosc[i]))+parseInt(tabgora[i]-5));
96			mlewo=tablewo[i];
97	  }
98	  if (tabpolozenie[i]==8){
99	  		mgora=(((myHeight-tabwysokosc[i]))+parseInt(tabgora[i]-5));
100			mlewo=(((myWidth/2)-(tabszerokosc[i]/2))+parseInt(tablewo[i]));
101	  }
102	  if (tabpolozenie[i]==9){
103			mgora=(((myHeight-tabwysokosc[i]))+parseInt(tabgora[i]-5));
104			mlewo=((myWidth-(tabszerokosc[i]))+parseInt(tablewo[i]))-przesunx;
105	  }
106		mlewo = parseInt(mlewo);
107		mgora = parseInt(mgora);
108		if (mgora<0) {mgora=0};
109		if (tabauto[i]==1){
110		  popupJSFX_FloatDiv(tabtabela[i],mlewo,mgora).floatIt();
111		} else {
112			document.getElementById(tabtabela[i]).style.top=""+mgora+"px";
113			document.getElementById(tabtabela[i]).style.left=""+mlewo+"px";
114		}
115	}
116}
117
118var ns = (navigator.appName.indexOf("Netscape") != -1);
119var d = document;
120function popupJSFX_FloatDiv(id, sx, sy)
121{
122	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
123	var px = document.layers ? "" : "px";
124	window[id + "_obj"] = el;
125	if(d.layers)el.style=el;
126	el.cx = el.sx = sx;el.cy = el.sy = sy;
127	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
128
129	el.floatIt=function()
130	{
131		var pX, pY;
132		pX = (this.sx >= 0) ? 0 : ns ? innerWidth :
133		document.documentElement && document.documentElement.clientWidth ?
134		document.documentElement.clientWidth : document.body.clientWidth;
135		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ?
136		document.documentElement.scrollTop : document.body.scrollTop;
137		if(this.sy<0)
138		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ?
139		document.documentElement.clientHeight : document.body.clientHeight;
140		this.cx += (pX + this.sx - this.cx)/20;this.cy += (pY + this.sy - this.cy)/20;
141		this.sP(this.cx, this.cy);
142		setTimeout(this.id + "_obj.floatIt()", 10);
143	}
144	return el;
145}
146
147function Scrolling(o)
148{
149	// na podstawie skryptu ze strony: www.62kompaniaspecjalna.pl / sierpien 2010
150  this.z=document.getElementById(o);
151  this.n=document.getElementById(o+'W');
152  this.s=this.n.style;
153  this.l=0;
154  this.y=0;
155  wysokosc = this.n.offsetHeight;
156  pr = 40;
157  this.w=this.n.offsetHeight-this.z.offsetHeight;
158  this.obj=o+"Ob";
159  eval(this.obj+"=this")
160  this.krok=ScrollKrok;
161  this.przesun=ScrollPrzesun;
162  this.stop=ScrollStop;
163	tid=0;
164  function ScrollStop()
165  {
166     clearInterval(this.l)
167  }
168
169  function ScrollPrzesun(k,p)
170  {
171      this.stop();
172	  	this.y = p;
173      this.l=setInterval(this.obj+'.krok('+k+','+p+')',50)
174  }
175
176  function ScrollKrok(k,p)
177  {
178	tid=1;
179	if (k>0 && this.y>=(-document.getElementById(o+'W').offsetHeight)-pr && document.getElementById(o+'W').offsetHeight<=p){
180      this.y-=k;
181		//alert(this.y);
182		if (this.y<=(-document.getElementById(o+'W').offsetHeight-pr)){
183			this.y=p;
184	      this.s.top=this.y+'px';
185		} else {
186	      this.s.top=this.y+'px';
187   	}
188   }
189	if (k>0 && this.y>=(-p+(p-(document.getElementById(o+'W').offsetHeight)))-pr && document.getElementById(o+'W').offsetHeight>=p){
190      this.y-=k;
191		if (this.y<=(-p+(p-(document.getElementById(o+'W').offsetHeight)))-pr){
192			this.y=p;
193	      this.s.top=this.y+'px';
194		} else {
195	      this.s.top=this.y+'px';
196   	}
197	}
198  }
199  this.clear;
200}
201
202function Scrollinginfo24(o)
203{
204	// na podstawie skryptu ze strony: www.62kompaniaspecjalna.pl / sierpien 2010
205  this.z=document.getElementById(o);
206  this.n=document.getElementById(o+'W');
207  this.s=this.n.style;
208  this.l=0;
209  this.x=0;
210  wysokosc = this.n.offsetWidth;
211  pr = 40;
212  this.w=this.n.offsetWidth-this.z.offsetWidth;
213  this.obj=o+"Ob";
214  eval(this.obj+"=this")
215  this.krok=ScrollKrokinfo24;
216  this.przesun=ScrollPrzesuninfo24;
217  this.stop=ScrollStopinfo24;
218	tid=0;
219  function ScrollStopinfo24()
220  {
221     clearInterval(this.l)
222  }
223
224  function ScrollPrzesuninfo24(k,p)
225  {
226      this.stop();
227	  	this.x = p;
228      this.l=setInterval(this.obj+'.krok('+k+','+p+')',50)
229  }
230
231  function ScrollKrokinfo24(k,p)
232  {
233	tid=1;
234	if (k>0 && this.x>=(-document.getElementById(o+'W').offsetWidth)-pr && document.getElementById(o+'W').offsetWidth<p){
235      this.x-=k;
236		if (this.x<=(-document.getElementById(o+'W').offsetWidth-pr)){
237			this.x=p;
238	      this.s.left=this.x;
239		} else {
240	      this.s.left=this.x;
241   	}
242   }
243	if (k>0 && this.x>=(-p+(p-(document.getElementById(o+'W').offsetWidth)))-pr && document.getElementById(o+'W').offsetWidth>p){
244      this.x-=k;
245		if (this.x<=(-p+(p-(document.getElementById(o+'W').offsetWidth)))-pr){
246			this.x=p;
247	      this.s.left=this.x;
248		} else {
249	      this.s.left=this.x;
250   	}
251	}
252  }
253  this.clear;
254}
255
256
257
258function fpoziom(nazwa,pozycja)
259{
260	document.getElementById(nazwa).style.zIndex=pozycja;
261}
262
263function ismaxlength(obj){
264	var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
265	if (obj.getAttribute && obj.value.length>mlength)
266	obj.value=obj.value.substring(0,mlength)
267}
268
269
270
271// Zmiana koloru obrazka
272function SkalaSzarosci() {
273	var tagidozmiany=new Array("img");
274	for(j=0;j<tagidozmiany.length;j++) {
275	   var tag = document.getElementsByTagName(tagidozmiany[j]);
276	   for(k=0;k<tag.length;k++) {
277			if (tag[k].id!="kir" && tag[k].id!="imgx" && tag[k].id!="imgr1" && tag[k].id!="imgr2" && tag[k].id!="imgr3" && tag[k].id!="imgr4" && tag[k].id!="imgr5" && tag[k].id!="imgr6" && tag[k].id!="imgr7" && tag[k].id!="imgr8" && tag[k].id!="imgr9" && tag[k].id!="imgr10" && tag[k].id!="imgr11" && tag[k].id!="imgr12" && tag[k].id!="imgprev" && tag[k].id!="imgnext" && tag[k].id!="flash_frame"){
278				if (navigator.userAgent.indexOf('MSIE') !=-1) {
279					SkalaSzarosciIE(tag[k]);
280				} else {
281					if ((tag[k].src.indexOf('http')!=-1 && tag[k].src.indexOf(document.location.hostname)!=-1) && tag[k].width>0 && tag[k].height>0) {
282						tag[k].src = SkalaSzaroscInne(tag[k]);
283					}
284				}
285			}
286	   }
287	}
288}
289
290function SkalaSzarosciIE(Obraz) {
291	Obraz.style.filter = 'progid:DXImageTransform.Microsoft.BasicImage(grayScale=1)';
292}
293
294function SkalaSzaroscInne(Obraz) {
295	var canvas = document.createElement('canvas');
296	var canvasContext = canvas.getContext('2d');
297	var imgW = Obraz.naturalWidth || Obraz.offsetWidth || Obraz.width;
298	var imgH = Obraz.naturalHeight || Obraz.offsetHeight || Obraz.height;
299	canvas.width = imgW;
300	canvas.height = imgH;
301	canvasContext.drawImage(Obraz, 0, 0);
302	var imgPixels = canvasContext.getImageData(0, 0, imgW, imgH);
303	for (var i=0; i<imgPixels.data.length; i+=4) {
304		var avg = 0.21*imgPixels.data[i] + 0.72*imgPixels.data[i + 1] + 0.07*imgPixels.data[i + 2]; //luminosity
305		imgPixels.data[i] = avg;
306		imgPixels.data[i + 1] = avg;
307		imgPixels.data[i + 2] = avg;
308	}
309	canvasContext.putImageData(imgPixels, 0, 0, 0, 0, imgPixels.width, imgPixels.height);
310	return canvas.toDataURL();
311}
312
313// Obsługa Cookie
314function setCookie(cname, cvalue, exdays) {
315    var d = new Date();
316    d.setTime(d.getTime() + (exdays*24*60*60*1000));
317    var expires = "expires="+d.toUTCString();
318    document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/";
319}
320
321function getCookie(cname) {
322    var name = cname + "=";
323    var ca = document.cookie.split(';');
324    for(var i=0; i<ca.length; i++) {
325        var c = ca[i];
326        while (c.charAt(0)==' ') c = c.substring(1);
327        if (c.indexOf(name) != -1) return c.substring(name.length,c.length);
328    }
329    return "";
330}
331
332// Lista plików cookie
333async function cookieList() {
334  const cookies = await cookieStore.getAll();
335  const timestamp = Date.now();
336  var datetxt;
337  console.log(timestamp);
338  if (cookies.length > 0) {
339    cookies.forEach((cookie) => {
340      // datetxt = "";
341      datediff = cookie.expires - timestamp;
342      datediff>0 ? datediff=Math.round(datediff/1000/60/60) : datediff=0;
343      if (datediff==0) {datetxt = "sesyjne"}
344      if (datediff>0 && datediff<24) {
345        datetxt = datediff + " godzin";
346        if (datediff==1) {datetxt = datediff + " godzina";}
347        if ((datediff>1 && datediff<5) || (datediff>21 && datediff<25)) {datetxt = datediff + " godziny";}
348      }
349      if (datediff>=24 && datediff<365) {
350        datediff = Math.floor(datediff/24);
351        datetxt = datediff + " dni";
352        if (datediff==1) {datetxt = datediff + " dzień";}
353      }
354      expires = new Date(cookie.expires);
355      console.log(cookie.name + ' | ' + expires.toLocaleString('pl-PL') + ' | ' + datetxt);
356    });
357  }
358  // $('*[data-src]').each(function() {
359  //   $(this).attr({'src': $(this).attr('data-src')}).removeAttr('data-src');
360  // });
361}
362// cookieList();
363
364// Zmiana wielkości czcionki
365function zmienTekst(wielkosc) {
366	if (wielkosc==0) {
367		window.location.reload(1);
368	}
369	var plikcss = document.styleSheets;
370	var klasacss;
371	var wielkoscczcionki;
372	for(i=0;i<plikcss.length;i++) {
373		if (plikcss[i].href != null && plikcss[i].href.indexOf(window.location.hostname) > 0 && plikcss[i].href.indexOf('rotator_zdjec.css') == -1 && plikcss[i].href.indexOf('font-awesome.css') == -1) {
374			klasacss =  plikcss[i].cssRules || plikcss[i].rules;
375			if (klasacss != null) {
376				for(j=0;j<klasacss.length;j++) {
377					if (klasacss[j].style!=undefined) {
378						wielkoscczcionki = klasacss[j].style.fontSize.replace("px","");
379						if (wielkoscczcionki!='' && wielkoscczcionki!=NaN) {
380							wielkoscczcionki = parseInt(wielkoscczcionki);
381							wielkoscczcionki += wielkosc;
382							klasacss[j].style.fontSize = wielkoscczcionki+'px';
383						}
384					}
385				}
386			}
387		}
388	}
389	var tagidozmiany=new Array("span");
390	for(j=0;j<tagidozmiany.length;j++) {
391	   var tag = document.getElementsByTagName(tagidozmiany[j]);
392	   for(i=0;i<tag.length;i++) {
393			wielkoscczcionki = 0;
394			if (navigator.userAgent.indexOf('MSIE') != -1) {
395				if(tag[i].currentStyle.fontSize) {
396					wielkoscczcionki = tag[i].currentStyle.fontSize;
397				}
398			} else {
399				if(tag[i].style.fontSize) {
400					wielkoscczcionki = tag[i].style.fontSize;
401				}
402			}
403			switch(wielkoscczcionki) {
404			case 'xx-small':
405				wielkoscczcionki = 9;
406				break;
407			case 'x-small':
408				wielkoscczcionki = 10;
409				break;
410			case 'small':
411				wielkoscczcionki = 13;
412				break;
413			case 'medium':
414				wielkoscczcionki = 16;
415				break;
416			case 'large':
417				wielkoscczcionki = 18;
418				break;
419			case 'x-large':
420				wielkoscczcionki = 24;
421				break;
422			case 'xx-large':
423				wielkoscczcionki = 32;
424				break;
425			}
426			if (wielkoscczcionki !=0) {
427				wielkoscczcionki = parseInt(wielkoscczcionki);
428	         wielkoscczcionki += wielkosc;
429				tag[i].style.fontSize = wielkoscczcionki+'px';
430			}
431	   }
432	}
433}
434
435// Zmiana schematu graficznego
436function zmienSchemat(schemat) {
437	if (schemat != "") {
438		var tagidozmiany=new Array("body","table","tr","td","div","span","input");
439		for(j=0;j<tagidozmiany.length;j++) {
440		   var tag = document.getElementsByTagName(tagidozmiany[j]);
441		   for(i=0;i<tag.length;i++) {
442				if (navigator.userAgent.indexOf('MSIE') != -1) {
443					if(tag[i].currentStyle.backgroundImage) {
444						if(tag[i].id!="kir" && tag[i].id!="flash_main" && tag[i].id!="slides" && tag[i].id!="slides2" && tag[i].id!="slides3" && tag[i].id!="slides_1" && tag[i].id!="slides_2" && tag[i].id!="slides_3" && tag[i].id!="slides_4" && tag[i].id!="slides_5" && tag[i].id!="slides_6" && tag[i].id!="slides_7" && tag[i].id!="slides_8" && tag[i].currentStyle.backgroundImage.indexOf("grafika/"+schemat) == -1 && tag[i].currentStyle.backgroundImage.indexOf("pliki/") == -1 && tag[i].currentStyle.backgroundImage.indexOf("spi.prologit.pl") == -1 && tag[i].currentStyle.backgroundImage.indexOf("fsi.prologit.pl") == -1) {
445				         var nowyschemat = tag[i].currentStyle.backgroundImage.replace("grafika/","grafika/"+schemat);
446							tag[i].style.backgroundImage = nowyschemat;
447						}
448					}
449				} else {
450					if(tag[i].style.background) {
451						if(tag[i].id!="kir" && tag[i].id!="flash_main" && tag[i].id!="slides" && tag[i].id!="slides2" && tag[i].id!="slides3" && tag[i].id!="slides_1" && tag[i].id!="slides_2" && tag[i].id!="slides_3" && tag[i].id!="slides_4" && tag[i].id!="slides_5" && tag[i].id!="slides_6" && tag[i].id!="slides_7" && tag[i].id!="slides_8" && tag[i].style.background.indexOf("grafika/"+schemat) == -1 && tag[i].style.background.indexOf("pliki/") == -1 && tag[i].style.background.indexOf("spi.prologit.pl") == -1 && tag[i].style.background.indexOf("fsi.prologit.pl") == -1) {
452				         var nowyschemat = tag[i].style.background.replace("grafika/","grafika/"+schemat);
453			      		tag[i].style.background = nowyschemat;
454						}
455					}
456				}
457		   }
458		}
459		var tagidozmiany=new Array("img");
460		for(j=0;j<tagidozmiany.length;j++) {
461		   var tag = document.getElementsByTagName(tagidozmiany[j]);
462		   for(i=0;i<tag.length;i++) {
463				if(tag[i].id!="imgx" && tag[i].id!="imgr1" && tag[i].id!="imgr2" && tag[i].id!="imgr3" && tag[i].id!="imgr4" && tag[i].id!="imgr5" && tag[i].id!="imgr6" && tag[i].id!="imgr7" && tag[i].id!="imgr8" && tag[i].id!="imgr9" && tag[i].id!="imgr10" && tag[i].id!="imgr11" && tag[i].id!="imgr12" && tag[i].id!="imgprev" && tag[i].id!="imgnext" && tag[i].id!="flash_frame" && tag[i].src && tag[i].src.indexOf("grafika/"+schemat) == -1 && tag[i].src.indexOf("pliki/") == -1 && tag[i].src.indexOf("spi.prologit.pl") == -1 && tag[i].src.indexOf("fsi.prologit.pl") == -1) {
464		         var nowyschemat = tag[i].src.replace("grafika/","grafika/"+schemat);
465					nowyschemat = tag[i].src.replace("pliki/grafika/"+schemat,"pliki/grafika/");
466			      tag[i].src = nowyschemat;
467				}
468		   }
469		}
470	}
471	/*
472	var tag = document.getElementById('gora');
473	alert(tag.style.width);
474	alert(so.getQueryParamValue("align"));
475	if(tag && schemat != '') {
476		var so = new SWFObject("flash/"+schemat+"gora.swf", "gora", tag.style.width, tag.style.height, "9", "#FFFFFF");
477		so.addParam("quality", "high");
478		so.addParam("menu", "false");
479		so.addParam("align", "t");
480		so.addParam("bgcolor", "#FFFFFF");
481		so.addParam("wmode", "transparent");
482		so.useExpressInstall('http://fsi.prologit.pl/asp/flash/expressinstall.swf');
483		so.write("gora");
484	}
485	*/
486}
487
488function showevent(e,tresc) {
489	var myWidth = 0, myHeight = 0, konfiguratorx = 0, konfiguratory = 30, infox = 0, infoy = 0;
490	if( typeof( window.innerWidth ) == 'number' ) {
491		//Non-IE
492		myWidth = window.innerWidth;
493		myHeight = window.innerHeight;
494		myScroll = window.pageYOffset;
495	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
496		//IE 6+ in 'standards compliant mode'
497		myWidth = document.documentElement.clientWidth;
498		myHeight = document.documentElement.clientHeight;
499		myScroll = document.documentElement.scrollTop;
500	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
501		//IE 4 compatible
502		myWidth = document.body.clientWidth;
503		myHeight = document.body.clientHeight;
504		myScroll = document.body.scrollTop;
505	}
506	if (!e) e = window.event;
507	ch_x = e.clientX;
508	ch_x += -10;
509	ch_y = e.clientY;
510	ch_y = ch_y + myScroll;
511	ch_y += -10;
512	//alert('x:'+ch_x+'\ny:'+ch_y+'\nwysokosc:'+myHeight+'\nszerokosc:'+myWidth+'\nscrolltop:'+myScroll+'\n');
513	//alert('wysokość:' + ch_wysokosc + ', scroll: ' + ch_scroll + ', y:' + ch_y);
514	document.getElementById("chmurka").style.left = ch_x+'px';
515	document.getElementById("chmurka").style.top = ch_y+'px';
516	//document.getElementById("chmurka").innerHTML = "wysokość: "+ch_wysokosc+"<br>scroll: "+ch_scroll+"<br>x: "+ch_x+"<br>y: "+ch_y+"<br>";
517	document.getElementById("chmurka").innerHTML = tresc;
518	document.getElementById("chmurka").style.display = "block";
519	ch_width = document.getElementById('chmurka').offsetWidth;
520	if (ch_x>(myWidth/2)){
521		document.getElementById("chmurka").style.left = (ch_x-ch_width+20)+'px';
522		//alert((ch_x-ch_width));
523	}
524}
525
526jQuery(function() {
527	jQuery('a.a_lightbox').lightBox();
528	jQuery('a[rel*=lightbox]').lightBox();
529
530	$obrazy = jQuery('a[href$=jpg], a[href$=JPG], a[href$=jpeg], a[href$=JPEG], a[href$=png], a[href$=PNG], a[href$=gif], a[href$=GIF], a[href$=bmp]:has(img), a[href$=BMP]:has(img)');
531	for (var i=0; i < $obrazy.length; i++)	{
532		if (jQuery($obrazy[i]).attr("rel") != null && jQuery($obrazy[i]).attr("rel").indexOf("lightbox")==-1) {
533			jQuery('a[rel='+jQuery($obrazy[i]).attr("rel")+']').lightBox();
534		}
535	}
536});
537
538function closeevent() {
539	document.getElementById("chmurka").innerHTML = "";
540	document.getElementById("chmurka").style.left = -200;
541}
542
543function pokaz_chmurke(nazwa)
544{
545		document.getElementById(nazwa).style.display='';
546}
547
548function pokaz_chmurke2(nazwa)
549{
550		document.getElementById(nazwa).style.display='';
551		szer = (document.getElementById(nazwa).offsetWidth)-10;
552		wys = (document.getElementById(nazwa).offsetHeight)-10;
553		document.getElementById(nazwa).style.margin='-'+wys+'px 0px 0px -'+szer+'px';
554}
555
556function ukryj_chmurke(nazwa)
557{
558		document.getElementById(nazwa).style.display='none';
559}
560
561function loadXMLDoc2(url) {
562	if (window.XMLHttpRequest)	{
563	xmlhttp=new XMLHttpRequest();
564	} else 	{
565		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
566	}
567	xmlhttp.open("GET",url,false);
568	xmlhttp.send(null);
569	document.getElementById('komunikat_prywatnosc').innerHTML=xmlhttp.responseText;
570}
571
572jQuery(document).ready(function() {
573
574/*
575	jQuery("img").each(function() {
576		var imgsrc = jQuery(this).attr("src");
577		var imgalt = jQuery(this).attr("alt");
578		if (imgalt != null) {
579			imgalt = imgalt.replace("- ", "");
580		}
581		if (imgsrc.indexOf(imgalt) != -1) {
582			imgalt = "Obraz na stronie " + imgalt;
583			jQuery(this).attr("alt",imgalt);
584		}
585		if (imgalt == "" || imgalt == null) {
586			imgalt = "Obraz na stronie " + imgsrc;
587			jQuery(this).attr("alt",imgalt);
588		}
589	});
590*/
591	jQuery('#file').change(function() {
592		jQuery('#status').append('<div class=komunikat>Trwa wgrywanie pliku...</div>');
593		var data = new FormData();
594		data.append('folder', jQuery('#folder').val());
595		data.append('saveto', 'disk');
596		data.append('plik', jQuery('#file')[0].files[0]);
597		data.append('typy', jQuery('#typy').val());
598		data.append('pole', jQuery('#file').attr('name'));
599		jQuery.ajax({
600			url: '//spi.prologit.pl/asp/admin/mod/wyslijplik3.asp',
601			data: data,
602			processData: false,
603			contentType: 'multipart/form-data',
604			type: 'POST',
605			success: function (data) {
606				jQuery('#status').append(data);
607				jQuery('#file').val('');
608			}
609		});
610	});
611
612	var hasFlash = false;
613	var arrayTemp = [];
614	var arrayTemp2 = [];
615	var divFlash, divFlashWymiar
616	try {
617		var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
618		if(fo) hasFlash = true;
619	}
620	catch(e) {
621		if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) hasFlash = true;
622	}
623	if (!hasFlash) {
624		jQuery("script").each(function() {
625			arrayTemp = jQuery(this).html().split(';');
626			if (arrayTemp.length > 0) {
627				for (var i=0; i<arrayTemp.length; i++) {
628					if (arrayTemp[i].indexOf("var so = new SWFObject")>0) {
629						divFlashWymiar = arrayTemp[i].trim();
630						divFlashWymiar = divFlashWymiar.replace('var so = new SWFObject','');
631						divFlashWymiar = divFlashWymiar.replace('("','');
632						divFlashWymiar = divFlashWymiar.replace('")','');
633						arrayTemp2 = divFlashWymiar.split('", "');
634					}
635					if (arrayTemp[i].indexOf("so.write")>0) {
636						divFlash = arrayTemp[i].trim();
637						divFlash = divFlash.replace('so.write','');
638						divFlash = divFlash.replace('("','');
639						divFlash = divFlash.replace('")','');
640						divFlash = '#'+divFlash;
641						//console.log(divFlash);
642						//console.log(arrayTemp2[2]+" x "+arrayTemp2[3]);
643						//jQuery(divFlash).html('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+arrayTemp2[2]+'" height="'+arrayTemp2[3]+'" id="flashAbout_small"><param name="movie" value="jscore/flashAbout_info_small.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF"><param name="wmode" value="opaque"><embed src="jscore/flashAbout_info_small.swf" width="'+arrayTemp2[2]+'" height="'+arrayTemp2[3]+'" qual
643ity="high" bgcolor="#FFFFFF" wmode="opaque" name="flashAbout_small" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"></embed></object>');
644						jQuery(divFlash).html('<div style="width: '+arrayTemp2[2]+'px; height: '+arrayTemp2[3]+'px; opacity: 0;"></div>');
645					}
646				}
647			}
648		});
649	}
650
651	/* Poprawa polityki prywatności na wersję bez przeładowania i httprequest */
652	jQuery('a[href*="prywatnosc=tak"]').each(function() {
653		jQuery(this).attr('href','javascript:void(null)');
654		jQuery(this).parent().attr('id','iks');
655	});
656	jQuery("#iks").unbind();
657	jQuery('#iks a, #iks').click(function() {
658		setCookie('prywatnosc', 'tak', 365);
659		jQuery('#politykaprywatnosci').animate({bottom: '-500px'});
660		setTimeout(function() {
661			jQuery('#politykaprywatnosci').css('display', 'none');
662			jQuery('body').css('padding-bottom', '0px');
663		}, 500);
664	});
665
666	/* Symulacja placeholder dla HTML 4.01 */
667	jQuery('input[name="fraza"]').val('Wpisz szukaną treść');
668	jQuery('input[name="fraza"]').css('color','#757575');
669	jQuery('input[name="fraza"]').click(function() {
670		if(jQuery(this).val()=="Wpisz szukaną treść") {
671			jQuery(this).val('');
672			jQuery(this).css('color','initial');
673		}
674	});
675	jQuery('form[name="szukaj"]').submit(function(event) {
676		//alert(jQuery(this).children('input[name="fraza"]').val());
677		if(jQuery(this).children('input[name="fraza"]').val()=="Wpisz szukaną treść") {
678			event.preventDefault();
679			alert("Musisz wpisać minimum 3 znaki!");
680		}
681	});
682
683});

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.