<!--
function OtevriOkno(adresa,sirka,vyska,text) { 	
 s1='<html>\n<head>\n<title>!!!klikni na obrázek pro jeho zavření!!!</title>\n</head>\n<body>';
 s2='<a href="#" alt="kliknutím zavřít" id="obrazek"><img src="'+adresa+'" alt="kliknutím zavřít" id="obrazek" name="velikost" height="'+vyska+'" width="'+sirka+'" border="0"  onclick="window.close()"></a><br><br>\n';
 s2=s2+'</body>\n</html>';
 sirka=(sirka+40);
 vyska=(vyska+40);
 okno=window.open('','noveokno','width='+sirka+', height='+vyska+',resizable=yes, scrollbars=yes, toolbar=no, location=no, status=no, menubar=no,top=0,left=0');
 okno.document.writeln(s1);
 okno.document.writeln('<div>'+text+'</div>');
 okno.document.writeln(s2);
 }
 
function jsrsArrayFromString( s, delim ){
  // rebuild an array returned from server as string
  // optional delimiter defaults to ~
  var d = (delim == null)? '~' : delim;
  return s.split(d);
}  
 //onclick="document.images[prdel].src="'+location+'/'+fileNamesA[currentIndex+1]+'"
//OtevriOkno2('+location+',800,600,"'+fileNames+'",'+next+')
function OtevriOkno2(location,width,height,fileNames,currentIndex){
 var fileNamesA = jsrsArrayFromString(fileNames,null); 
 var cache1 = new Image();
 cache1.src = location+'/'+fileNamesA[currentIndex];
 s1='<html>\n<head>\n<title>Klikni na obrázek pro další fotku...</title>\n</head>\n<body>';
 s2='<a href="#" alt="kliknutím přjdi na další" id="obrazek">';
 s2= s2+'<img src="'+location+'/'+fileNamesA[currentIndex]+'" name="prdel" alt="kliknutím zavřít" id="obrazek" name="velikost" height="'+height+'" width="'+width+'" border="0" onclick="window.document.prdel.src=\"'+cache1.src+'\" "></a><br><br>\n';
 width=(width+40);
 height=(height+40); 
 var okno=window.open('','noveokno','width='+width+', height='+height+', resizable=yes, scrollbars=yes, toolbar=no, location=no, status=no, menubar=no,top=0,left=0');
 okno.document.writeln(s1);
 okno.document.writeln(s2);
 okno.document.writeln('<div>'+okno.document.prdel.src+'<br />'+location+'/'+fileNamesA[currentIndex+1]+'</div>');
 okno.document.writeln('</body>\n</html>'); 	
}

function OtevriBannerKodOkno(bannerFile) { 		
 s1='<html>\n<head>\n<title>Zkopiruj tento text do svého zdrojového kódu </title>\n</head>\n<body>'; 
 s2='</body>\n</html>';
 sirka=(800);
 vyska=(100);
 okno=window.open('','noveokno','width='+sirka+', height='+vyska+',resizable=yes, scrollbars=yes, toolbar=no, location=no, status=no, menubar=no,top=0,left=0');
 okno.document.write(s1); 
 okno.document.writeln('&lt;a href=\"http://www.gauneri.com\"&gt;');
 okno.document.writeln('&lt;img src=\"http://www.gauneri.com/Banners/gauneri/'+bannerFile+'\" style=\"border: 0px !important;\" /&gt;');
 okno.document.writeln('&lt;/a&gt;');
 okno.document.write(s2);
 }

function OtevriTextOkno(textOkna) { 		
 s1='<html>\n<head>\n<title>Po přečtení reportu zavři toto okno</title>\n</head>\n<body>'; 
 s2='</body>\n</html>';
 sirka=(800);
 vyska=(100);
 okno=window.open('','noveokno','width='+screen.width+', height='+screen.height+',resizable=yes, scrollbars=yes, toolbar=no, location=no, status=no, menubar=no,top=0,left=0');
 okno.document.write(s1); 
 okno.document.write(textOkna);
 okno.document.write(s2);
 }
 
 function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;

<!-- openWindowSimple is used by gallery -->
function openWindowSimple(_address,_width,_height,_id) { 	
	 okno=window.open('./Pages/gallery/gallery_detail/index-gallery.php?location='+_address+'&id='+_id,'noveokno','width='+_width+', height='+_height+',resizable=no, scrollbars=yes, toolbar=no, location=no, status=no, menubar=no,top=0,left=0');
 }

-->