function mail1(){
 maile = new Array("erakamienia","vp.pl");
 robot1 = maile[0] + "@" + maile[1];
// eoszukanie robota spamujacgo
  return robot1;
}
function newWindowm1(opl,op2) {
OpenWindow=window.open("flashmaterialkamien.html?myVar="+opl+"&myCss="+op2+"", "newwin", "height=393, width=528,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindowm2(opl,op2,op3) {
OpenWindow=window.open("flashmaterialogrod.html?myVar="+opl+"&myVarx="+op2+"&myCss="+op3+"", "newwin", "height=383, width=528,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindowm3(opl,op2,op3) {
OpenWindow=window.open("flashGaleryReal.html?myVar="+opl+"&myVarx="+op2+"&myCss="+op3+"", "newwin", "height=383, width=528,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindowm4(opl,op2,op3) {
OpenWindow=window.open("flashGaleryOfer.html?myVar="+opl+"&myVarx="+op2+"&myCss="+op3+"", "newwin", "height=383, width=528,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindowmapa() {
OpenWindow=window.open("mapa.html", "newwin", "height=430, width=450,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow1() {
OpenWindow=window.open("granit.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow2() {
OpenWindow=window.open("marmur.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow3() {
OpenWindow=window.open("konglomerat.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow4() {
OpenWindow=window.open("trawertyt.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow5() {
OpenWindow=window.open("plyty.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow6() {
OpenWindow=window.open("otoczaki.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow7() {
OpenWindow=window.open("okladziny.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow8() {
OpenWindow=window.open("formaki.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow9() {
OpenWindow=window.open("kostka.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow10() {
OpenWindow=window.open("kraweznik.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow11() {
OpenWindow=window.open("kruszywa.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow12() {
OpenWindow=window.open("zwir.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow13() {
OpenWindow=window.open("lupany.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow14() {
OpenWindow=window.open("kompozyt.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow15() {
OpenWindow=window.open("wapien.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow16() {
OpenWindow=window.open("piaskowiec.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function newWindow17() {
OpenWindow=window.open("lamany.html", "newwin", "height=382, width=536,toolbar=no,menubar=no,resizable=no,left=200,top=200")
}
function data(){
 today = new Date()
 rok=today.getFullYear();// end hiding
  return rok;
}
function Foto(img){
  foto1= new Image();
  foto1.src=(img);
  Kontrola(img);
}
function Kontrola(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    podglad(img);
  }
  else{
    funzione="Kontrola('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function podglad(img){
  largh=foto1.width;
  altez=foto1.height;
  stringa="width="+largh+",height="+altez;
  photoWin=window.open("","",stringa); 
  photoWin.document.write('<html><head><title>Era kamienia - galeria naszych realizacji</title>');
  photoWin.document.write('<link href="css/PopUpWindow.css" rel="stylesheet" type="text/css" media="screen" />');
  photoWin.document.write('</head>'); 
  photoWin.document.write('<body>');
  photoWin.document.write('<div class="blok">');
  photoWin.document.write('<img src="' + img + '">');
  photoWin.document.write('</div>');
  photoWin.document.write('</body></html>');
  
}

function Foto1(img,img2){
  foto1= new Image();
  foto1.src=(img);
  Kontrola1(img,img2);
}
function Kontrola1(img,img2){
  if((foto1.width!=0)&&(foto1.height!=0)){
    podglad1(img,img2);
  }
  else{
    funzione="Kontrola1('"+img+"','"+img2+"')";
    intervallo=setTimeout(funzione,20);
  }
}

var photoWin

function podglad1(img,img2) {
if ( !photoWin || photoWin.closed ) 
{ 
  largh=foto1.width;
  altez=foto1.height;
  stringa="width="+largh+",height="+altez+",left="+670+",top="+335+",_parent";
  photoWin=window.open("","",stringa); 
} 
 
  photoWin.document.clear();
  photoWin.focus();
 // photoWin.document.write('<html><head><title>' + img2 + '</title>');
  photoWin.document.write('<html><head><title>Era Kamienia</title>');
  photoWin.document.write('<link href="css/PopUpWindow.css" rel="stylesheet" type="text/css" media="screen" />');
  photoWin.document.write('</head>'); 
  photoWin.document.write('<body>');
  photoWin.document.write('<div class="blok">');
  photoWin.document.write('<img src="' + img + '">');
  photoWin.document.write('</div>');
  photoWin.document.write('</body></html>');
  photoWin.document.close();
  photoWin.focus();
}

