function galeria (szum_kep){
	var x=window.location.toString();

	x=x.substring(x.lastIndexOf("/",x.length)+1,x.length);
	x=x.substring(0,x.indexOf(".",0));
	var y=eval(x*1);
	
	var fnev1=y-1+1000;
	fnev1=fnev1.toString();
	fnev1=fnev1.substring(1,4);

	var fnev2=y+1001;
	fnev2=fnev2.toString();
	fnev2=fnev2.substring(1,4);
	
	document.write("<P style='padding-bottom:5px'>");
	if (y>1){
		document.write("<A href='"+fnev1+".html'><IMG src='../images/prev.gif' border=0></A>");
	}
	if (y>1 && y<szum_kep){
		document.write("&nbsp;");
	}
	if (y<szum_kep){
		document.write("<A href='"+fnev2+".html'><IMG src='../images/next.gif' border=0></A>");
	}
	document.write("</P>");
	
	document.write("<IMG src='../images/big/"+x+".jpg' border=0>");
	
	document.write("<P style='padding-top:5px'>");
	if (y>1){
		document.write("<A href='"+fnev1+".html'><IMG src='../images/prev.gif' border=0></A>");
	}
	if (y>1 && y<szum_kep){
		document.write("&nbsp;");
	}
	if (y<szum_kep){
		document.write("<A href='"+fnev2+".html'><IMG src='../images/next.gif' border=0></A>");
	}
	document.write("</P>");
}


function galeria_index(szum_kep,src){
	if (src== null){
		src='';
	}

	document.writeln("<TR>");
	for(i=0;i<szum_kep;i++){
		if (i%4==0){
			document.writeln("</TR><TR>");
		}
		var fnev=i+1001;
		fnev=fnev.toString();
		fnev=fnev.substring(1,4);
		document.write("<TD align=center valign=bottom><TABLE style='border:1px solid #78BE1B' border=0 cellspacing=0 cellpadding=3><TR><TD bgcolor='#FBFFEF' style='font-size:10px;text-align:center' onmouseover=\"this.bgColor='#E0F2D1'\" onmouseout=\"this.bgColor='#FBFFEF'\"><A href='pages/"+(fnev)+".html' ><IMG src='"+src+"images/small/"+(fnev)+".jpg' border=0></A><BR>"+fnev+"</TD></TR></TABLE></TD>");
	}
	document.writeln("</TR>");
}


