function ox() { position=0; xpos=document.body.clientWidth; if (xpos > 780 ) { position=(xpos/2)-385; } return position; }; function clear_menu() { main_menu1.style.color='white' } function menu_show(l,x) { if (document.all) { l.style.pixelLeft=x; l.style.visibility="visible" } else if (document.getElementById) { l.style.left=x; l.style.visibility="visible" } }; function menu_hide(l,x) { if (document.all) { l.style.pixelLeft=x; l.style.visibility="hidden" } else if (document.getElementById) { l.style.left=x; l.style.visibility="hidden" } }; function create_menu(fobj_num,te,fl,position,t,w){ position=MainPosition+position; if ((document.all) || (document.getElementById)) { if ((document.all) || (document.getElementById)) { document.write('')} } } function onimg(evt) { window.location=window.location; evt.stopPropagation() } function ZobrazCelyDokument() { if (window.addEventListener) { window.addEventListener("resize",onimg,true) } else { var oldRef = window.onresize; window.onresize = function() { if(oldRef != null && typeof oldRef != 'undefined') oldRef(); location.reload(); }; }; // if (document.all) { loadtable.style.visibility="hidden"; maintable.style.visibility="visible"; mainbody.style.cursor="auto"; } // else { document.getElementById('mainbody').style.cursor="auto"; } } function Zalozka(tab) { var cislo=tab.substring(3,4); var deti=document.getElementsByTagName("div"); var zahlavi=document.getElementById('tabulka').rows[0].cells; j=0; for (i=0; i<=deti.length-1; i++) { strTemp=deti[i].id; if (strTemp.substring(0,3)=='Tab') { document.getElementById(strTemp).style.display="none"; zahlavi[j].className="zalozka_off"; j++; } } document.getElementById(tab).style.display="block"; document.getElementById('tabulka').rows[0].cells[cislo].className="zalozka_on"; document.getElementById('empty').className="zalozka_hrana"; }