var sc_project=4720795; var sc_invisible=1; var sc_partition=54; var sc_click_stat=1; var sc_security="d302f289";

function find()
{
	if(document.search.szukaj.value.length>2)
	{
		document.search.action='wyszukiwarka-'+document.search.szukaj.value+'-0.html';
		document.search.submit();
	}
	else alert('Wpisz minimum 3 znaki dla wyszukiwania w Katalogu Stron WWW!');
	return false;
}

// Copyright (c) 2008, General_Depet - http://www.katalog.intelekt.net.pl
function podmiana(co,j,ile) {
for(var i=1; i<=ile; i++) {
var ktora = +i;

if(ktora == co) {
var pod = +j+"_"+ktora;
var istnieje = document.getElementById(pod);
if (istnieje != null) document.getElementById(pod).style.display = "";
}
else if(ktora != co) {
var pod = +j+"_"+ktora;
var istnieje = document.getElementById(pod);
if (istnieje != null) document.getElementById(pod).style.display = "none";
}
}
}

function podmiana_pod_tyl(co,j,ile,u4,wyj) {
var t = +j;
t-=1;
for (var a=t; a>=u4; a--) {
for(var i=1; i<=ile; i++) {
var ktora = +i;

if(ktora == co) {
var pod = "p"+a+"_"+ktora;
var istnieje = document.getElementById(pod);
if (istnieje != null && ktora != wyj) document.getElementById(pod).style.display = "none";
}
else if(ktora != co) {
var pod = "p"+a+"_"+ktora;
var istnieje = document.getElementById(pod);
if (istnieje != null && ktora != wyj) document.getElementById(pod).style.display = "";
}
}
}
}

function podmiana_pod_przod(co,j,ile,u4,wyj) {
var p = +j;
p+=1;
for (var a=p; a<=u4; a++) {
for(var i=1; i<=ile; i++) {
var ktora = +i;
if(ktora == co) {
var pod = "p"+a+"_"+ktora;
var istnieje = document.getElementById(pod);
if (istnieje != null && ktora != wyj) document.getElementById(pod).style.display = "none";
}
else if(ktora != co) {
var pod = "p"+a+"_"+ktora;
var istnieje = document.getElementById(pod);
if (istnieje != null && ktora != wyj) document.getElementById(pod).style.display = "";
}
}
}
}

var obj='';
var timer='';
function iloscZnakow(o,i){
if (o) obj=o;
if (i) obj2=i;
var div=document.getElementById('iloscZnakow');
var iloscWpisanych = obj.value.length;
var ilosc = obj2;
obj1 = document.getElementById('anchor');
if (iloscWpisanych > ilosc) {
obj1.style.display = 'inline';
iloscWpisanych = '<span style="color:green">'+iloscWpisanych+'</span>'; 
}
else {
obj1.style.display = 'none';
iloscWpisanych = '<span style="color:red">'+iloscWpisanych+'</span>'; 
}
div.style.fontWeight='bold';
div.innerHTML=iloscWpisanych+' wpisanych znaków';
timer=setTimeout('iloscZnakow()',500);
}

D=document,S=[],T=[],C=alert,B=unescape;
function bbcode(x,z){(z=s())?A('['+x+']'+z+'[/'+x+']'):R(x)}
function A(x){D.selection?(F.focus(),D.selection.createRange().text=x):(F.selectionStart||F.selectionStart=='0')?F.value=F.value.substring(0,F.selectionStart)+x+F.value.substring(F.selectionEnd,F.value.length):F.value+=x}
function s(){return D.selection?D.selection.createRange().text:F.value.substring(F.selectionEnd||0,F.selectionStart||0)}
function R(x){T[x]?'':T[x]=0;T[x]?CT(x):(S.push(x),T[x]=1,A('['+x+']'),St(x,'*'))}
function St(i,x){D.getElementById(i).value=i+x}Z='%52%4b';function emot(x){A(x)}
function CT(x,a){T[a=S.pop()]=0;A('[/'+a+']');St(a,'');a!=x?CT(x):''}
function CA(e){while(S[0]){A('[/'+(e=S.pop())+']');T[e]=0;St(e,'')}}

function Url(u,d,z){A("[url="+(u=prompt("Podaj adres strony","http://"))+"]"+(s()?s():((d=prompt("Opis odnosnika",""))?d:u))+"[/url]")}
function bold(u,d,z){A("[b]"+(s()?s():((d=prompt("Podaj słowo",""))?d:u))+"[/b]")}

window.onload = function(){ F=D.getElementById('txt'); if(document.getElementById('goOut')) document.getElementById('goOut').target='_blank';
/* Google +1 */
window.___gcfg={lang:'pl'};
var po=document.createElement('script');
po.type='text/javascript';
po.async=true;
po.src='http://apis.google.com/js/plusone.js';
var s=document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po,s); };

