function Picture(obr,cislo,gallery,chap) {

chapter = new Array(5);

chapter[1] = "Chapter 1: UNDUE ALARM";
chapter[2] = "Chapter 2: DIRECT INTERVENTION";
chapter[3] = "Chapter 3: LOWLIFE";
chapter[4] = "Chapter 4: URBAN FLIGHT";
chapter[5] = "Chapter 5: EXIT 17";

iMyWidth = (screen.width/2) - (435 + 10)
iMyHeight = (screen.height/2) - (350 + 25)

okno=window.open("", "gallery", "height=700,width=870,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");


okno.document.write("<html>");
okno.document.write("<head>");
okno.document.write("<title>Half-Life 2: Obrázek #"+cislo+"</title>");
okno.document.write("<link rel='stylesheet' type='text/css' href='xfiles/style.css'>");
okno.document.write("</head>");
okno.document.write("<body style='overflow:auto;' topmargin='20' leftmargin='20' rightmargin='20' bottomargin='20'>");
okno.document.write("<table CLASS='borders' align='center' width='100%' cellspacing='0' cellpadding='3'>");
okno.document.write("<tr><td CLASS='texthead-gold' align='left'>");
okno.document.write("<img src='../hlzone/img/logos/icon_eone.gif' width='18' height='16' align='top'>&nbsp;Episode One: Obrázek #"+cislo);
okno.document.write("</td><td CLASS='texthead-gold' align='right'>");
okno.document.write(chapter[chap]);
okno.document.write("</td></tr>");
okno.document.write("<tr><td align='center' colspan='2'>");
okno.document.write("<img src='img/pictures/gallery/"+gallery+"/img"+obr+".jpg' align='top' width='800' height='600' OnClick='javascript:self.close();' alt='Zavři okno...' style='cursor:hand;'><br>");
okno.document.write("</td></tr>");
okno.document.write("<tr><td CLASS='borderhead' align='center' colspan='2'>");
okno.document.write("<a CLASS='mailsv' title='Zavřít okno...' href='javascript:self.close()'>CLOSE</a></td>");
okno.document.write("</td></tr>");
okno.document.write("</table>");
okno.document.write("</body>");
okno.document.write("</html>");
}

function NewsPicture(obr,cislo,sirka,vyska,title,date) {

ScreenWidth = sirka + 60
ScreenHeight = vyska + 100

iMyWidth = (screen.width/2) - (ScreenWidth/2 + 10)
iMyHeight = (screen.height/2) - (ScreenHeight/2 + 25)

okno=window.open("", "images", "width=" + ScreenWidth + ",height=" + ScreenHeight + ", resizable=no, left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");


okno.document.write("<html>");
okno.document.write("<head>");
okno.document.write("<title>"+title+" obrázek #"+cislo+"</title>");
okno.document.write("<link rel='stylesheet' type='text/css' href='xfiles/style.css'>");
okno.document.write("</head>");
okno.document.write("<body style='overflow:auto;'>");
okno.document.write("<table CLASS='borders' align='center' width='100%' cellspacing='0' cellpadding='3'>");
okno.document.write("<tr><td CLASS='texthead-gold' align='left'>");
okno.document.write("<img src='../hlzone/img/logos/icon_eone.gif' width='18' height='16' align='top'>&nbsp;"+title+" - obrázek #"+cislo);
okno.document.write("</td><td CLASS='texthead-gray' align='right'>");
okno.document.write(date);
okno.document.write("</td></tr>");
okno.document.write("<tr><td align='center' colspan='2'>");
okno.document.write("<img src='../hlzone/img/pictures/news/img"+obr+".jpg' align='top' width='"+sirka+"' height='"+vyska+"' OnClick='javascript:self.close();' alt='Zavřít okno...' style='cursor:hand;'><br>");
okno.document.write("</td></tr>");
okno.document.write("<tr><td CLASS='borderhead' align='center' colspan='2'>");
okno.document.write("<a CLASS='mailsv' title='Zavřít okno...' href='javascript:self.close()'>CLOSE</a></td>");
okno.document.write("</td></tr>");
okno.document.write("</table>");
okno.document.write("</body>");
okno.document.write("</html>");
}


function Wallpapers(obr,cislo,sirka,vyska,isirka,ivyska,title) {

ScreenWidth = sirka + 60
ScreenHeight = vyska + 100

iMyWidth = (screen.width/2) - (ScreenWidth/2 + 10)
iMyHeight = (screen.height/2) - (ScreenHeight/2 + 25)

okno=window.open("", "images", "width=" + ScreenWidth + ",height=" + ScreenHeight + ", resizable=no, left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");


okno.document.write("<html>");
okno.document.write("<head>");
okno.document.write("<title>"+title+" obrázek #"+cislo+"</title>");
okno.document.write("<link rel='stylesheet' type='text/css' href='xfiles/style.css'>");
okno.document.write("</head>");
okno.document.write("<body style='overflow:auto;' topmargin='20' leftmargin='20' rightmargin='20' bottomargin='20'>");
okno.document.write("<table CLASS='borders' align='center' width='100%' cellspacing='0' cellpadding='3'>");
okno.document.write("<tr><td CLASS='texthead-gold' align='left'>");
okno.document.write("<img src='../hlzone/img/logos/icon_eone.gif' width='18' height='16' align='top'>&nbsp;"+title+"  obrázek #"+cislo);
okno.document.write("</td><td CLASS='texthead-gray' align='right'>");
okno.document.write("Rozměry: "+isirka+"x"+ivyska);
okno.document.write("</td></tr>");
okno.document.write("<tr><td align='center' colspan='2'>");
okno.document.write("<img src='img/pictures/gallery/wall"+obr+".jpg' align='top' width='"+sirka+"' height='"+vyska+"' OnClick='javascript:self.close();' alt='Zavři okno...' style='cursor:hand;'><br>");
okno.document.write("</td></tr>");
okno.document.write("<tr><td CLASS='borderhead' align='center' colspan='2'>");
okno.document.write("<a CLASS='mailsv' title='Zavřít okno...' href='javascript:self.close()'>CLOSE</a></td>");
okno.document.write("</td></tr>");
okno.document.write("</table>");
okno.document.write("</body>");
okno.document.write("</html>");
}


function NavodPicture(chap,obr,cislo) {

chapter = new Array(5);

chapter[1] = "UNDUE ALARM";
chapter[2] = "DIRECT INTERVENTION";
chapter[3] = "LOWLIFE";
chapter[4] = "URBAN FLIGHT";
chapter[5] = "EXIT 17";


ScreenWidth = 800 + 60
ScreenHeight = 600 + 85

iMyWidth = (screen.width/2) - (ScreenWidth/2 + 10)
iMyHeight = (screen.height/2) - (ScreenHeight/2 + 25)

okno=window.open("", "images", "width=" + ScreenWidth + ",height=" + ScreenHeight + ", resizable=no, left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");


okno.document.write("<html>");
okno.document.write("<head>");
okno.document.write("<title>Episode One: Návod - obrázek #"+cislo+"</title>");
okno.document.write("<link rel='stylesheet' type='text/css' href='xfiles/style.css'>");
okno.document.write("</head>");
okno.document.write("<body style='overflow:auto;'>");
okno.document.write("<table CLASS='borders' align='center' width='100%' cellspacing='0' cellpadding='3'>");
okno.document.write("<tr><td CLASS='texthead-gold' align='left'>");
okno.document.write("<img src='../hlzone/img/logos/icon_eone.gif' width='18' height='16' align='top'>&nbsp;Episode One: Návod - obrázek #"+cislo);
okno.document.write("</td><td CLASS='texthead-gray' align='right'>");
okno.document.write(chapter[chap]);
okno.document.write("</td></tr>");
okno.document.write("<tr><td align='center' colspan='2'>");
okno.document.write("<img src='img/pictures/navod/chapter0"+chap+"_img"+obr+".jpg' align='top' width='800' height='600' OnClick='javascript:self.close();' alt='Zavřít okno...' style='cursor:hand;'><br>");
okno.document.write("</td></tr>");
okno.document.write("<tr><td CLASS='borderhead' align='center' colspan='2'>");
okno.document.write("<a CLASS='mailsv' title='Zavřít okno...' href='javascript:self.close()'>CLOSE</a></td>");
okno.document.write("</td></tr>");
okno.document.write("</table>");
okno.document.write("</body>");
okno.document.write("</html>");
}