var ImageViewer = Class.create();
ImageViewer.prototype = {
	initialize: function(url) {
		this.win = window.open("" , "" ,'width=660, height=460, scrollbars=no, status=no, toolbar=no, menubar=no, location=no, resizable=no');
		this.win.document.open("text/html", "replace");
		this.win.document.write('<html><head></head><body><img onclick="javascript: self.close();" src="' + url + '" alt="Zamknij zdjęcie" title="Zamknij zdjęcie" /></body></html>');
		this.win.document.close();
	}
}