var agt    = navigator.userAgent.toLowerCase();
var is_ie  = (agt.indexOf("msie") != -1);
var url    = self.location.hostname;

var okno   = '';
var scroll = 'no';


// OKNO S FOTKOU
function openPhoto(path, alt, width, height)
{
	var img_width  = width;
	var img_height = height;

	if (typeof(okno.document) == 'object') okno.close(); 

	okno = window.open('', 'ARTIKO', 'left=50, top=50, width=' + width + ', height=' + height + ', toolbar=no, ' + 
                      	   'location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no');

	with (okno) {
		document.write('<!DOCTYPE html'+"\n");
		document.write('     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'+"\n");
		document.write('     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'+"\n");
		document.write("\n");
		document.write('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'+"\n");
		document.write('<head>'+"\n");
		document.write('<meta http-equiv="Cache-control" content="no-cache" />'+"\n");
		document.write('<meta http-equiv="Pragma" content="no-cache" />'+"\n");
		document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />'+"\n");
		document.write('<meta name="description" content="" />'+"\n");
		document.write('<meta name="keywords" content="" />'+"\n");
		document.write('<title>' + alt + '</title>'+"\n");
		document.write("\n");
		document.write('<style type="text/css">'+"\n");
		document.write('body{ margin: 0; padding: 0; }'+"\n");
		document.write('</style>'+"\n");
		document.write('</head>'+"\n");
		document.write('<body>'+"\n");
		document.write("\n");
		document.write('<img src="http://' + url + '/' + path + '" alt="' + alt + '" width="' + img_width + '" height="' + img_height + '" />'+"\n");
		document.write("\n");
		document.write('</body>'+"\n");
		document.write('</html>'+"\n");
	}
}