 function fachat() {
	if (document.images)
		return true;
	else
		return false;
}

function display(imageURL, imagePOS, imageW, imageH)
{

if (budeFachat) {
		//document.imagePoster.src = imageURL;
//imageRES2 = imageRES + 15;
//PreView = window.open("", "pic","width='"+ imageW +"',height='"+ imageH +"',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0");
//PreView = window.open("", "pic","width='"+ imageW +"',height='"+ imageH +"',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0");
PreView = window.open("","","width=" + imageW + ",height="+ imageH + ",status=yes,toolbar=no,menubar=no,location=no,resizable=0,fullscreen=no");

PreView.document.open();
PreView.document.write("<html><head>");
PreView.document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-2\" />");
PreView.document.write("<title>" + imageURL + "</title>");
//PreView.document.write("<link rel=\"StyleSheet\" HREF=\"../css/default.css\" />");
PreView.document.write("</head><body bgcolor=#000000 text=000000>");
PreView.document.write("<div align=" + imagePOS + ">");
PreView.document.write("<a " + "onClick='window.close()'><img " + "src='" + imageURL + "' /></a>");
//PreView.document.write("<br /><br />zavøít");
PreView.document.write("</div>");
PreView.document.write("</body></html>");
PreView.document.close();

		return false;
	}
	else {
		return true;
	}
}

// gImageCapableBrowser - is this browser hip to images? Set up
// a global variable so that we don't have to keep calling a function
// (useful if the function becomes costly to compute).

function zobrazit(imageURL,imagePOS,imageRES)
{

        //<A HREF="bigpic/foo.jpg"
          //  onClick="return(loadPosterImage('bigpic/foo.jpg'))">
//        <img src="smallpic/foo.jpg" border="0" /></A>
}

budeFachat = fachat();





