window.defaultStatus = 'PENZION VILA';

function ShowImage(id,width,height){

if(screen.width) {
                scrwidth = screen.width;
                } else {
                scrwidth = 800;
                }

if(screen.height) {
                scrheight = screen.height;
                } else {
                scrheight = 600;
                }

                width = width+40;
                height = height+40;

if(width > scrwidth) width = scrwidth - 40;
if(height > scrheight) height = scrheight - 80;

	var NewImage = window.open('',"",'toolbar=no,scrollbars,location=no,status=no,width='+width+',height='+height+',resizable=yes,left=0,top=0');
	NewImage.document.write("<html>");
	NewImage.document.write("<TITLE>FOTO</TITLE>");
	NewImage.document.write("<a href='' onClick='window.close()'><img border='0' src='image/"+id+".jpg' alt='ZAVØÍT'></a>");
	NewImage.document.write("</body>");
	NewImage.document.write("</html>");
};
function ShowImageGIF(id,width,height){

if(screen.width) {
                scrwidth = screen.width;
                } else {
                scrwidth = 800;
                }

if(screen.height) {
                scrheight = screen.height;
                } else {
                scrheight = 600;
                }

                width = width+40;
                height = height+40;

if(width > scrwidth) width = scrwidth - 40;
if(height > scrheight) height = scrheight - 80;

	var NewImage = window.open('',"",'toolbar=no,scrollbars,location=no,status=no,width='+width+',height='+height+',resizable=yes,left=0,top=0');
	NewImage.document.write("<html>")
	NewImage.document.write("<TITLE>FOTO</TITLE>")
	NewImage.document.write("<a href='' onClick='window.close()'><img border='0' src='image/"+id+".gif' alt='ZAVØÍT'></a>")
	NewImage.document.write("</body>")
	NewImage.document.write("</html>")
};
