function swapimg(imgName,newImg)
	{eval('document.' + imgName + '.src = "' + newImg + '"');}

function openWin( windowURL, windowName, windowFeatures ) 
	{return window.open( windowURL, windowName, windowFeatures ) ;} 

function bover(bunka) {T_gstyle(bunka).background='#FFFF00'}
function bout(bunka) {T_gstyle(bunka).background='#EAEAEA'}

function cover(bunka) {T_gstyle(bunka).color='#FF0000'}
function cout(bunka) {T_gstyle(bunka).color='#000000'}

function oWin(pFileName, i_width, i_height, pTitle, pClose) {
  var owidth=(i_width>800)?800:i_width , oheight=(i_height>600)?600:i_height;
	sirka = owidth+50;
	vyska = oheight+100;
	
	
  if ((owidth!=i_width) || (oheight!=i_height))
    photoWin = window.open( "", "jmenoOkna", "width="+sirka+",height="+vyska+",menubar,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");
  else
    photoWin = window.open( "", "jmenoOkna", "width="+sirka+",height="+vyska+",screenX=20,screenY=40,left=20,top=40");
	photoWin.resizeTo(sirka,vyska);

  photoWin.document.write('<html><head><title>' + pTitle + '</title>');
  photoWin.document.write('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">');
  photoWin.document.write('<style type="text/css">a.window:hover {color: #8C0000;} a.window {color: #5D5E7A;}</style>');
  photoWin.document.write('</head>');
  photoWin.document.write('<body bgcolor="#FFFFFF" text="#000000" link="#005900" alink="#005900" style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size : 11px;font-weight: bolder;text-transform : uppercase;">');
  photoWin.document.write('<div align="center"><b>' + pTitle + '</b><br />');
  photoWin.document.write('<a class="window" href="javascript:self.close()">');
  photoWin.document.write('<br><img style="border-color: #D8D8D8 #D8D8D8 #D8D8D8 #D8D8D8;" src="' + pFileName + '" width="' + i_width + '" height="' + i_height + '" border="1" alt="' + pClose + '" /><br />');
  photoWin.document.write('<small>' + pClose + '</small></a><br /></div>');
  photoWin.document.write('</body></html>');
  photoWin.document.close();
  photoWin.focus();
}
