var tab = new Array("img/REALIZ1.jpg","img/REALIZ2.jpg","img/REALIZ3.jpg","img/REALIZ4.jpg","img/REALIZ5.jpg");
var nextload=0;
function loadb() {
 nextload--;
 if (nextload<0) {nextload=tab.length-1};
 document.images.o.src=tab[nextload];
}

function loadf() {
 nextload++;
 if (nextload>tab.length-1) {nextload=0};
 document.images.o.src=tab[nextload];
}

function photo(arg)
{
   var wysokosc = screen.width/2 - 300;
   var szerokosc = screen.height/2 - 210;
   var config='width='+600+',height='+420+',left='+wysokosc+',top='+szerokosc;
   pop = window.open ('','pop',config);
   void(0);
   pop.document.open();
   pop.document.write('<!DOCTYPE html PUBLIC "-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN" "http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd">'
   +'<html xmlns="http:\/\/www.w3.org\/1999\/xhtml" xml:lang="pl" >'
   +'<head><title>MONTO-STAL Monta¿ Konstrukcji Stalowych - galeria<\/title>'
   +'<\/head><body><div align="center">'
   +'<img src="'+arg+'" alt="kliknij aby zamkn±æ" onclick="self.close();" \/><\/div><\/body><\/html>');
   pop.document.close();
}

