var a=0;
function counter(){
	do{	a = a + 1;
	}while(document.getElementById("showobj_" + a))}


function show(objid,razina){
	var obj=document.getElementById("showobj_" + objid);
	for(var i=1;i<a;i++){ 
		var c=document.getElementById("showobj_"+i);
		if (c==null) break;
		if (objid != i)	document.getElementById("showobj_" + i).style.display = "none";
	}
	if (razina !=1){
		if (obj.style.display == "none"){
			obj.style.display = "";
		} else {
			obj.style.display = "none";
		}
	} else {
		obj.style.display = "";
	}
	return false;
}