function show_div(pole,id,kolko) {
//var program = array ('program1','program2','program3','program4', 'program5','program6','program7','program8','program9');

for (i=1;i<kolko+1;i++)
	{

	var co = pole;
	if (co+i == id)
		{
		//alert (id);
		if (document.getElementById) document.getElementById(id).style.display='block';
		else if (document.all) document.all[id].style.display='block';
		}
	else 
	{
	//alert (co+i);
	if (document.getElementById) document.getElementById(co+i).style.display='none';
	else if (document.all) document.all[co+i].style.display='none';
	}
	}

//if (in_array(id,pole) ) alert ("aaaa");
if (document.getElementById) document.getElementById(id).style.display='block';
else if (document.all) document.all[id].style.display='block';
}
function unshow_div(id) {
if (document.getElementById) document.getElementById(id).style.display='none';
else if (document.all) document.all[id].style.display='none';
}


function mouse_over(what) {
forWhat = "img/butt/"+what.id+"_1.gif";
what.src = forWhat;
//if (document.getElementById) document.getElementById(what).src='';
//else if (document.all) document.all[what].style.visibility='visible';
}

function mouse_out(what){
forWhat = "img/butt/"+what.id+"_0.gif";
what.src = forWhat;
}


function new_window(pict,name,width,height) { 
   b=new_window.arguments;
   title = "Kollchema";
   msgWindow=window.open("","displayWindow","menubar=no,scrollbars=no,width="+b[2]+",height="+b[3]+",top=130,left=30")   
   msgWindow.document.write("<html><head><title>"+title+""+name+"</title><style>body {margin: 0px 0px 0px 0px;padding: 0px 0px 0px 0px;background-color:white;}</style></head>") 
   msgWindow.document.write("<body><a href=javascript:window.close();><img src="+b[0]+" width="+b[2]+" height="+b[3]+" alt=\"Zatvor okno\" title=\"Zatvor okno\" border=0></a>")
   msgWindow.document.write("</body></html>")
     }

MenuImage = new Array();
MenuImage[0] = new Image();
MenuImage[0].src = "";




