// javascript document

function nahlad(obr,format,sirka,vyska,dir,text) {
//width="+(sirka)+",height="+(vyska)+20);
msg=open("","","toolbar=no,directories=no,menubar=no,width="+(100)+",height="+(100)+20);
//msg=open("","","");
msg.document.write("<html><head><title>"+obr+"</title><meta http-equiv=content-type content=\"text/html; charset=windows-1250\"><link rel=\"stylesheet\" href=\"../style_green.css\"></head>");
msg.document.write("<body leftmargin=\"0\"><div align=\"center\"><a class=\"nadpis\">kliknutím na obrázok sa okno zatvorí.</a><br><a href=\"#\" onclick=\"window.close()\"><img alt=\"zavrie okno\" src=\"../images/preview/"+dir+"/"+obr+"."+format+"\" border=\"0\"></a>");
msg.document.write("<br><a>"+text+"</a></div></body></html>");
}

function preview1(file,style,width,height)
{
  msg=open("","","toolbar=no,directories=no,menubar=no,resizable=1,width="+(width)+",height="+(height));
  msg.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
  msg.document.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"sk\" lang=\"sk\">\n");
  msg.document.write("<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1250\" />\n");
  msg.document.write("<link href=\""+style+"\" rel=\"stylesheet\" type=\"text/css\" />\n");
  msg.document.write("<title>.:preview:.</title>\n");
  msg.document.write("<body>\n<a href=\"#\"><img src=\""+file+"\" alt=\"Click to close window\"");
  msg.document.write(" onclick=\"window.close();\"></a>\n</body>\n</html>");
  msg.document.close();
}

function preview2(file,style)
{
  msg=open("","","");
  msg.document.write("<html>\n<head>\n<title>"+file+"</title>\n<meta http-equiv=content-type content=\"text/html; charset=windows-1250\">\n");
  msg.document.write("<link rel=\"stylesheet\" href=\""+style+"\">\n</head>\n");
  msg.document.write("<body>\n<div>\n<img src=\""+file+"\" alt=\"Click to close window\"");
  msg.document.write(" onclick=\"window.close();\">\n</div>\n</body>\n</html>");
  msg.document.close();
}

