function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}
function pokaz_t(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML=whichcontent
}
else if (document.layers){
document.d1.document.d2.document.write(whichcontent)
document.d1.document.d2.document.close()
}
}

function npokaz_t(cokonkretnie){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions3"):document.all.descriptions3
cross_el.innerHTML=cokonkretnie
}
else if (document.layers){
document.d7.document.d8.document.write(cokonkretnie)
document.d7.document.d8.document.close()
}
}

function pokaz_s(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions1"):document.all.descriptions1
cross_el.innerHTML=whichcontent
}
else if (document.layers){
document.d3.document.d4.document.write(whichcontent)
document.d3.document.d4.document.close()
}
}

function npokaz_s(cokonkretnie){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions4"):document.all.descriptions4
cross_el.innerHTML=cokonkretnie
}
else if (document.layers){
document.d9.document.d10.document.write(cokonkretnie)
document.d9.document.d10.document.close()
}
}


function pokaz_o(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions2"):document.all.descriptions2
cross_el.innerHTML=whichcontent
}
else if (document.layers){
document.d5.document.d6.document.write(whichcontent)
document.d5.document.d6.document.close()
}
}

function npokaz_o(cokonkretnie){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions5"):document.all.descriptions5
cross_el.innerHTML=cokonkretnie
}
else if (document.layers){
document.d11.document.d12.document.write(cokonkretnie)
document.d11.document.d12.document.close()
}
}

function appear(){
document.d1.visibility='show'
}

window.onload=regenerate2

function wstecz(){
	if (pktory>0){
	//window.status=content.length;
	pktory--;
	pokaz_t(ptytul[pktory]);
	pokaz_s(popis[pktory]);
	pokaz_o(pokladka[pktory]);
	}
	else
	{
	//window.status='ostatni';
	pktory=(ptytul.length-1);
	pokaz_t(ptytul[pktory]);
	pokaz_s(popis[pktory]);
	pokaz_o(pokladka[pktory]);
	
	}
}



function dalej(){
if (pktory<(ptytul.length-1)){
	//window.status=which;
	pktory++;
	pokaz_t(ptytul[pktory]);
	pokaz_s(popis[pktory]);
	pokaz_o(pokladka[pktory]);
	
	}
	else if (pktory==(ptytul.length-1)){
	//window.status=which;
	pktory=0;
	pokaz_t(ptytul[pktory]);
	pokaz_s(popis[pktory]);
	pokaz_o(pokladka[pktory]);
	
	}
}


function nwstecz(){
	if (nktory>0){
	//window.status=content.length;
	nktory--;
	npokaz_t(ntytul[nktory]);
	npokaz_s(nopis[nktory]);
	npokaz_o(nokladka[nktory]);
	}
	else
	{
	//window.status='ostatni';
	nktory=(ntytul.length-1);
	npokaz_t(ntytul[nktory]);
	npokaz_s(nopis[nktory]);
	npokaz_o(nokladka[nktory]);
	
	}
}


function ndalej(){
if (nktory<(ntytul.length-1)){
	//window.status=which;
	nktory++;
	npokaz_t(ntytul[nktory]);
	npokaz_s(nopis[nktory]);
	npokaz_o(nokladka[nktory]);
	
	}
	else if (nktory==(ntytul.length-1)){
	//window.status=which;
	nktory=0;
	npokaz_t(ntytul[nktory]);
	npokaz_s(nopis[nktory]);
	npokaz_o(nokladka[nktory]);
	
	}
}