function ViewImage(ifile,ix,iy,ititle) { 
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
var xkozep;
var ykozep;
xkozep = (screen.width/2)-(ix/2);
ykozep = (screen.height/2)-(iy/2);
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no,left=0,top=0");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'City Hotel Éden')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>City Hotel Éden</title>");
win.document.write("</head><body onblur='JavaScript:window.close()'>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px" onclick="JavaScript:window.close()">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}