// JavaScript Document
function menu(num, num2)
{
	//document.delform.delidprispevku.value=prispevek;
    //document.delform.delkniha.value=kniha;
    if (num=='menu') kam=0;
    else kam=-200;
	
    if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
    {
    	elm=document.getElementById(num);
		elm2=document.getElementById(num2);
        if (document.all && !window.opera) {
			x = document.body.clientWidth;
			/*var a_str = new String();
			a_str = x;
			a_str = a_str.substring(0, a_str.length-2);*/
			x = x - (x - 1024)/2 - 250;
        }  
        else {
			x = document.defaultView.getComputedStyle(document.body, null).getPropertyValue("width");
			var a_str = new String();
			a_str = x;
			a_str = a_str.substring(0, a_str.length-2);
			x = a_str - (a_str - 1024)/2 - 250;
		}
        if (document.all && !window.opera) {
        	elm.style.pixelLeft = x;
			elm2.style.pixelLeft = x;
        }
        else {
        	elm.style.left = x + "px";
			elm2.style.left = x + "px";
        }
        elm.style.display = "block";
		elm2.style.display = "block";
	}
	window.setTimeout("menu('menu', 'menu_shadow')",10);
}