// Begin Show/hide layer
var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;

function hidelayer(lay) {
if (ie4) {document.all[lay].style.visibility = "hidden";}
if (ns4) {document.layers[lay].visibility = "hide";}
if (ns6) {document.getElementById([lay]).style.display = "none";}
}
function showlayer(lay) {
if (ie4) {document.all[lay].style.visibility = "visible";}
if (ns4) {document.layers[lay].visibility = "show";}
if (ns6) {document.getElementById([lay]).style.display = "block";}
}

function writetolayer(lay,txt) {
if (ie4) {
document.all[lay].innerHTML = txt;
}
if (ns4) {
document[lay].document.write(txt);
document[lay].document.close();
}
if (ns6) {
over = document.getElementById([lay]);
range = document.createRange();
range.setStartBefore(over);
domfrag = range.createContextualFragment(txt);
while (over.hasChildNodes()) {
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
   }
}
//  End Show/hide layer-->

function PictWindow(fullImgURL,ImgWidth,ImgHeight)
{

title="sykora-camelot"; 
//title=window.location.URL.hostname;
var maxW = screen.width;
var maxH = screen.height;

if (ImgHeight ==0)
{
	ImgHeight =480;
}

okno=window.open("","","scroolbars=0;resizeable=1;"+"width="+(ImgWidth+10)+";height="+(ImgHeight+10));

imgUrl=fullImgURL;

//okno.document.open();

okno.document.write("<HTML><HEAD><TITLE>"+title+"</TITLE><meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1250\"><link rel=\"stylesheet\" href=\"../scripts/website.css\" type=\"text/css\"></HEAD><BODY leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><CENTER>");
okno.document.write("<A HREF=\"JavaScript: window.close();\"><IMG SRC='"+imgUrl+"' BORDER=0 vspace=3 hspace=3>");
okno.document.write("<BR>zavøít okno</A>");
okno.document.write("</CENTER></BODY></HTML>");


var _top = Math.floor((maxH - (ImgHeight+10)) / 2);
var _left = Math.floor((maxW - (ImgWidth+10)) / 2);

// okno.moveTo(_left,_top);

//okno.document.close();
}

function PictWindow(fullImgURL,ImgWidth,ImgHeight)
{

title="sykora-camelot"

if (ImgHeight ==0)
{
	ImgHeight =480;
}

okno=window.open("","","width="+(ImgWidth+10)+",height="+(ImgHeight+10));

imgUrl=fullImgURL;

//okno.document.open();
okno.document.write("<HTML><HEAD><TITLE>"+title+"</TITLE><meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1250\"><link rel=\"stylesheet\" href=\"../scripts/website.css\" type=\"text/css\"></HEAD><BODY leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><CENTER>");
okno.document.write("<A HREF=\"JavaScript: window.close();\"><IMG SRC='"+imgUrl+"' BORDER=1 vspace=3 hspace=3>");
okno.document.write("<!-- BR>zavøít okno / close window --></A>");
okno.document.write("</CENTER></BODY></HTML>");
//okno.document.close();
}

function writeCopyright (Msg)
{
	today=new Date();
	currYear=today.getYear();
	
	if (currYear<1900) currYear+=1900;
	
	document.write ("&copy;2005-"+currYear+Msg);

}


document.write ("<span class=\"copyright\"><a href=\"http://www.nastrankach.cz\">");
writeCopyright (" jkd</a>");
document.write ('</span>');
