// Turismo Caith © 2007 Copyright



function uklid_si() { if (window.okno) okno.close(); }



function wokno(imgsrc,imgwidth,imgheight,text,per) {

	var winwidth = imgwidth + 20

	var winheight = imgheight + 50

	var ods = 12

	var YN = "none"

	var a = 0

	var b = 0

	var c = 0

if (per!=1) {per=0} else {per=1}; 



if (winwidth+10 > screen.availWidth) a=1;

if (winheight+29-1 > screen.availHeight-ods) b=1; //(29-1>>může být přesah 1;přesně je to ale 29)

if (a+b > 0) YN = "auto";



WW=winwidth

WH=winheight



if (a > 0)

 if(winheight+29+16>screen.availHeight-ods) {c=1; WW=WW+16;}

 else {WH=WH+16; WW=screen.availWidth-10;}



if (b > 0)

 if(winwidth+10+16>screen.availWidth) {c=1; WH=WH+16;}

 else {WW=WW+16; WH=screen.availHeight-ods-29;}



if (c==1) {

	WW=screen.availWidth-10;

	WH=screen.availHeight-ods-29;}





if (window.okno) okno.close(); 





okno = window.open("","n_okno", "width="+WW+",height="+WH+",toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,copyhistory=0,left=0,top="+ods+"");





okno.document.open();

	okno.document.writeln ("<html><head><title>Turismo Caith © 2007 Copyright</title><META HTTP-EQUIV=pragma CONTENT=no-cache>");



	okno.document.writeln ("<script language=JavaScript>");

	okno.document.writeln ("function clik(e) { ");

	okno.document.writeln ("var text='Contáctese con nosotros.' ");

	okno.document.writeln ("if (document.all) { if (event.button == 2) { alert(text); return false; }}");

	okno.document.writeln ("if (document.layers) { if (e.which == 3) { alert(text); return false; }}}");

	okno.document.writeln ("if (document.layers) document.captureEvents(Event.MOUSEDOWN);");

	okno.document.writeln ("if ("+per+"!=1) document.onmousedown=clik;");

	okno.document.writeln ("window.defaultStatus='Turismo Caith © 2007 Copyright';");

	okno.document.writeln ("window.status='Turismo Caith © 2007 Copyright';</script>");

	okno.document.writeln ("<STYLE type=text/css> body {margin-top:10px; margin-bottom:0px;} ");

	okno.document.writeln ("A:link {COLOR:#FFFFFF}");

	okno.document.writeln ("A:visited {COLOR:#FFFFFF}");

	okno.document.writeln ("A:hover {COLOR:#AAAAAA;}");

	okno.document.writeln (".ld {background: URL(../gif/loading.gif) no-repeat center center;}</style></head> ");

	okno.document.writeln ("<body scroll="+YN+" bgcolor=#000920 text=#FFFFFF topmargin=10 leftmargin=0 bottommargin=0 marginwidth=0 marginheight=0");

if (per!=1) {okno.document.writeln (" onKeyDown='return false;' onContextmenu='return false;' onSelectstart='return false;' onDragstart='return false;'>");}

	okno.document.writeln ("<center><table border=0 cellpadding=0 cellspacing=0 width="+winwidth+" class=ld>");

	okno.document.writeln ("<tr><td valign=top align=center height="+imgheight+" width="+winwidth+"><center>");

        okno.document.writeln ("<img src="../../Web Caith/www/+imgsrc+" width="+imgwidth+" height="+imgheight+"></center></td></tr>");

	okno.document.writeln ("<tr><td valign=middle align=center height=40><center><font face='arial ce, arial' size=2>"+text+"</font></center>");

	okno.document.writeln ("</td></tr></table></center>");

if (per!=1) {okno.document.writeln ("<div id='Layer1' style='position:absolute; visibility:inherit; width:"+imgwidth+"px; height:"+imgheight+"px; z-index:auto; left:10px; top:10px'><img src='../../Web Caith/gif/_.gif' width="+imgwidth+" height="+imgheight+"></div>")};

	okno.document.writeln ("</body></html>");

okno.document.close();

okno.focus();

}







function clik(e) {

 setTimeout("radek();",1);

 if (document.all) { if (event.button == 2 || event.button == 3) {radek; return false;} }

 if (document.layers) { if (e.which == 2 || e.which == 3) {radek; return false;} }

}



if (document.layers) document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clik;







window.defaultStatus="Turismo Caith © 2007 Copyright";



function radek() {

window.status="Turismo Caith © 2007 Copyright";

return true; 

}



function fals() {

radek;

return false;

}



if (document.layers) document.captureEvents(Event.MOUSEOVER); document.onmouseover=radek;

if (document.layers) document.captureEvents(Event.MOUSEUP); document.onmouseup=radek;

if (document.layers) document.captureEvents(Event.KEYUP); document.onkeyup=radek;

if (document.layers) document.captureEvents(Event.KEYDOWN); document.onkeydown=radek;



window.onload=radek; 

document.oncontextmenu=fals;

window.onselectstart=fals;

document.ondragstart=fals;



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}