function skryj(){
 skryjHlasku();
 prvekImDiv = document.getElementById("divimg"); 
 prvekImDiv.style.visibility = 'hidden';
 
 prvekImage = document.getElementById("imgbig"); 
 prvekImage.src = "/_images/_nic.gif";
}
function ukaz(soubor) {
 skryj();
 prvekImage = document.getElementById("imgbig"); 
 prvekImDiv = document.getElementById("divimg"); 
 
 eval("prvekImage.src = soubor;");
 
 prvekImDiv.style.top = 5+document.body.scrollTop+"px";
 prvekImDiv.style.left = 5+document.body.scrollLeft+"px";
 setTimeout("prvekImDiv.style.visibility = 'visible';", 1000);
 return true; 
}
function zobrazHlasku () {
 
 
 prvekImDiv = document.getElementById("divimg"); 
 prvekZavrit = document.getElementById("zavrit");
 
 var divTop = prvekImDiv.style.top; 
 var divLeft = prvekImDiv.style.left;
 var divWidth = prvekImDiv.offsetWidth;
 var prvekWidth = prvekZavrit.offsetWidth;
 
 prvekZavrit.style.left = divWidth/2 - prvekWidth/2 + divLeft;
 prvekZavrit.style.visibility = 'visible';
 
}
function skryjHlasku () {
 prvekZavrit = document.getElementById("zavrit");
 prvekZavrit.style.visibility = 'hidden';
}
function najdi()
{
umisteni=adrprefix+'search/search.php3?q=';
cohledat=document.form1.tfSearch.value;
zbytek='&np=0&ps=20&t=&ul=&ue=&o=0&m=';
location=umisteni+cohledat+zbytek;
}
function najdie()
{
umisteni=adrprefix+'searche/search.php3?q=';
cohledat=document.form1.tfSearch.value;
zbytek='&np=0&ps=20&t=&ul=&ue=&o=0&m=';
location=umisteni+cohledat+zbytek;
}
function otevri()
{
if (version!=2) {
ratin=window.open('','','width=480,height=335');}
else {ratin=window.open('','','width=466,height=335');}
var adresa=adrprefix+'rate.php?str='+window.location+'&tit='+document.title+'&zna='+pozn_var;
ratin.window.location=adresa;
}
function otevrie()
{
if (version!=2) {
ratin=window.open('','','width=480,height=335');}
else {ratin=window.open('','','width=466,height=335');}
var adresa=adrprefix+'ratee.php?str='+window.location+'&tit='+document.title+'&zna='+pozn_var;
ratin.window.location=adresa;
}
/*without GUI scripts*/
thumbnail_page_2 = 
"<HTML>\n" +
"<HEAD>\n" +
" <TITLE>{2}</TITLE>\n" +
" <link type=\"text/css\" rel=\"stylesheet\" href=\"{0}/styles/styles.css\">\n" +
" <script language='javascript'>\n" +
" var agt=navigator.userAgent.toLowerCase();\n" +
" var is_major = parseInt(navigator.appVersion);\n" +
" var is_minor = parseFloat(navigator.appVersion);\n" +
" var is_ie = ((agt.indexOf('msie') != -1) && (agt.indexOf('opera') == -1));\n" +
" function resizeImage() {\n" +
" bodyDiv = document.getElementById('body-div');\n" +
" iWidth = 0;\n" +
" iHeight = 0;\n" +
" sbX = false;\n" +
" sbY = false;\n" +
" iesb = 17;\n" +
" iHeight = 0;\n" +
" mwc = 8;\n" +
" mhc = 38;\n" +
" if (is_ie) {\n" +
" iWidth = document.body.clientWidth;\n" +
" iHeight = document.body.clientHeight;\n" +
" } else {\n" +
" iWidth = window.innerWidth;\n" +
" iHeight = window.innerHeight;\n" +
" mwc = window.outerWidth - window.innerWidth;\n" +
" mhc = window.outerHeight - window.innerHeight\n" +
" }\n" +
" iWidth = (!is_ie)?window.innerWidth:document.body.clientWidth;\n" +
" iHeight = (!is_ie)?window.innerHeight:document.body.clientHeight;\n" +
" imgW = document.images[0].width; \n" +
" if (imgW > (screen.availWidth - mwc)) { \n" +
" imgW = screen.availWidth - mwc; \n" +
" if (is_ie) {" + 
" imgW = imgW - iesb;\n" +
" }\n" +
" sbX = true; \n" +
" } \n" +
" imgH = document.images[0].height; \n" +
" if (imgH > (screen.availHeight - mhc)) { \n" +
" imgH = screen.availHeight - mhc; \n" +
" if (is_ie) {" + 
" imgH = imgH - iesb;\n" +
" }\n" +
" sbY = true; \n" +
" } \n" +
" iWidth = imgW - iWidth;\n" +
" iHeight = imgH - iHeight; \n" +
" if (!sbX && !sbY && is_ie) {" + 
" iWidth = iWidth - iesb;\n" +
" iHeight = iHeight - iesb;\n" +
" }\n" +
" window.resizeBy(iWidth, iHeight);\n" +
" if (!sbX && !sbY) {\n" +
" document.body.style.overflow = 'hidden';\n" +
" }\n" +
" self.focus();\n" +
" };\n" +
" </script>\n" +
"</HEAD>\n" +
"<BODY id='body-div' class='vcUESPage' onload='resizeImage();'>\n" +
" <a class=\"vcReference\" href=\"javascript:parent.window.close();\" style=\"outline:none;display:block;\">\n" +
" <img src=\"{1}\" id=\"myimg\" style=\"margin:0;\" class=\"vcImage\">\n" +
" </a>\n" +
"</BODY>\n" +
"</HTML>"; 
function OpenImage2(filename, title)
{
 var wi = Math.floor(Math.random() * 1000) + 1000;
 ImageWindow = window.open('', wi.toString(), 'width=1,height=1,status=no,help=no,scrollbars=yes,menubar=no,resizable=yes,titlebar=no,toolbar=no,location=no,left=0,top=0');
 var wContent = thumbnail_page_2;
 wContent = wContent.replace(/\{1\}/g, filename);
 wContent = wContent.replace(/\{0\}/g, "/gui/ie_5.5/ues");
 wContent = wContent.replace(/\{2\}/g, title);
 
 ImageWindow.document.write(wContent);
 ImageWindow.document.close();
}
function Zmena(id,name,status) {
 var img = document.getElementById(id);
 var path=img.src;
 path=path.substring(0,path.lastIndexOf('/'))+"/";
 if (status==1) img.src=path+name+"-mouse-over.png";
 else img.src=path+name+".png";
}
function vypEml(jmeno, prijmeni, dom){
 eml_start = '\x6D\x61\x69\x6c\x74\x6f\x3a';
// eml_end = '&#064;'+ dom;
 eml_end = '@'+ dom;
 eml = eml_start + jmeno + prijmeni + eml_end;
 location.href = eml;
}
function doOv(id,on) {
 var img = document.getElementById(id);
 var path=img.src;
 name=path.substring((path.lastIndexOf("/")+1),path.length);
 ext=name.substring(name.lastIndexOf("."),name.length);
 name=name.substring(0,name.lastIndexOf("."));
 path=path.substring(0,path.lastIndexOf("/"))+"/";
 if (on==1) img.src=path+name+"_o"+ext;
 else { 
 name=name.substring(0,(name.length-2));
 img.src=path+name+ext;
 }
 img.style.cursor="pointer";
}
function hover(obj) {
 var dec= obj.style.textDecoration;
// if (dec=="") dec="none";
// if (dec=="none") dec="underline";
// else dec="none";
// obj.style.textDecoration=dec;
 obj.style.cursor="pointer";
}
