<!--
//var ie5= (document.getElementById && document.all);
//var ns6= (document.getElementById && !document.all);

  function preloadImg() {
        Img1 = new Image;
        Img1.src = 'images/aktuality_b.png';
        Img2 = new Image;
        Img2.src = 'images/galeria_b.png';
        Img3 = new Image;
        Img3.src = 'images/clanky_b.png';
        Img4 = new Image;
        Img4.src = 'images/forum_b.png';
        Img5 = new Image;
        Img5.src = 'images/linky_b.png';
  }
  function swapImg(id,path) {
      		var el;
	        el = document.getElementById(id);
	        el.src = path;
      		/*
          if (el.src == './images/+id+_a.png') {
              el.src = './images/+id+_b.png';
      		}
      		else {
              el.src = './images/+id+_a.png';
          }
  */
        //if (document.all&&document.getElementById)
        //id.src = 'images/button/'+filename+'.jpg';
  }    
  function ShowFoto(file) {
        var NewWin = window.open('','FotoGalery','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,top=50,left=50');
        with (NewWin.document) {
          write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
          write('<html xmlns="http://www.w3.org/1999/xhtml" lang="sk" xml:lang="en">');
          write('<head>');
          write('<title>Fotografia</title>');
          write('<link rel="stylesheet" type="text/css" href="./style/preview.css" />');
          write('</head>');
          write('<body onload="javascript: window.resizeTo(document.photo.width+40, document.photo.height+85);">');
          write('<a href="javascript:window.close();" title="Kliknutím okno zavriete">');
          write('<img class="gallery" name="photo" src="'+file+'" alt="Kliknutím okno zavriete" />');
          write('</a>');
          write('</body>');
          write('</html>');
          close();
        }      
  }
  

	function PopUp() {
        var NewWin = window.open('','PopUp','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,top=50,left=50,width=300,height=200');
        with (NewWin.document) {
          write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
          write('<html xmlns="http://www.w3.org/1999/xhtml" lang="sk" xml:lang="en">');
          write('<head>');
          write('<title>Banner</title>');
          write('<link rel="stylesheet" type="text/css" href="./style/preview.css" />');
          write('</head>');
          write('<body>');
          write('<a href="javascript:window.close();" title="Kliknutím okno zavriete">');
          write('<img name="photo" src="./products/'+directory+'/'+file+'" alt="Kliknutím okno zavriete" />');
          write('</a>');
          write('</body>');
          write('</html>');
          close();
        }      
  }
	function PreviewFoto(directory,file) {
        var NewWin = window.open('','FotoGalery','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,top=50,left=50');
        with (NewWin.document) {
          write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
          write('<html xmlns="http://www.w3.org/1999/xhtml" lang="sk" xml:lang="en">');
          write('<head>');
          write('<title>Fotografia</title>');
          write('<link rel="stylesheet" type="text/css" href="./style/preview.css" />');
          write('</head>');
          write('<body onload="javascript: window.resizeTo(document.photo.width+40, document.photo.height+85);">');
          write('<a href="javascript:window.close();" title="Kliknutím okno zavriete">');
          write('<img name="photo" src="./products/'+directory+'/'+file+'" alt="Kliknutím okno zavriete" />');
          write('</a>');
          write('</body>');
          write('</html>');
          close();
        }      
  }
  function PreviewFoto2(directory,file) {
        var NewWin = window.open('','FotoGalery','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,top=50,left=50');
        with (NewWin.document) {
          write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
          write('<html xmlns="http://www.w3.org/1999/xhtml" lang="sk" xml:lang="en">');
          write('<head>');
          write('<title>Fotografia</title>');
          write('<link rel="stylesheet" type="text/css" href="./style/preview.css" />');
          write('</head>');
          write('<body onload="javascript: window.resizeTo(document.photo.width+40, document.photo.height+85);">');
          write('<a href="javascript:window.close();" title="Kliknutím okno zavriete">');
          write('<img name="photo" src="./other/'+directory+'/'+file+'" alt="Kliknutím okno zavriete" />');
          write('</a>');
          write('</body>');
          write('</html>');
          close();
        }      
  }
  function PreviewFoto1(file) {
        var NewWin = window.open('','FotoGalery','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,top=50,left=50');
        with (NewWin.document) {
          write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
          write('<html xmlns="http://www.w3.org/1999/xhtml" lang="sk" xml:lang="en">');
          write('<head>');
          write('<title>Fotografia</title>');
          write('<link rel="stylesheet" type="text/css" href="./style/preview.css" />');
          write('</head>');
          write('<body onload="javascript: window.resizeTo(document.photo.width+40, document.photo.height+85);">');
          write('<a href="javascript:window.close();" title="Kliknutím okno zavriete">');
          write('<img name="photo" src="'+file+'" alt="Kliknutím okno zavriete" />');
          write('</a>');
          write('</body>');
          write('</html>');
          close();
        }      
  }
  function checkContactForm(id) {
        eval('id = document.all.' + id);
        
        if (id.meno.value == "") { 
          alert("Uveďte Vaše meno!");
          id.meno.focus();
          return false; 
        }
        if (id.tel.value == "" && id.email.value == "") { 
          alert("Uveďte Vaše telefónne číslo, alebo email!");
          id.email.focus();
          return false; 
        }
        if (id.text.value=="") { 
          alert("Uveďte text správy!");
          id.text.focus();
          return false; 
        }	
	}  

-->
