function  hideSubCat(catValue){
if (catValue=='raz') {
var testdiv = document.getElementById("raz");
testdiv.style.display = "none";
testdiv = document.getElementById("doc");
testdiv.style.display = "";
var testdiv = document.getElementById("raz1");
testdiv.style.display = "none";
}else if (catValue=='doc'){
var testdiv = document.getElementById("raz");
testdiv.style.display = "";
testdiv = document.getElementById("doc");
testdiv.style.display = "none";
}else if (catValue=='pub'){
var testdiv = document.getElementById("raz");
testdiv.style.display = "";
testdiv = document.getElementById("doc");
testdiv.style.display = "";
}
}

function addLoadEvent(func){
var oldonload=window.onload;
if(typeof window.onload != 'function'){
window.onload = func;
}else{
window.onload= function(){
oldload();
func();
}
}
}
function hidePasus(pasusId){
pasusId = document.getElementById(pasusId);
if (pasusId.style.display == "none"){
pasusId.style.display = "";
}else{
pasusId.style.display = "none";
}
}

function hideAtStart(){
$i=0;
for (var $j = 1; $j <= 5; $j++){
var test = "test" + $j + "_0";
var hideBlock=document.getElementById(test);
while (hideBlock){
		test = "test" + $j + "_" + $i;
		hideBlock=document.getElementById(test);
		hideBlock.style.display = "none";
		$i++;
		test = "test"+ $j +"_" + $i;
		hideBlock=document.getElementById(test);
	}
}
}
addLoadEvent(hideAtStart);