markacategory = new Array ("mark1cat", "mark2cat", "mark3cat", "mark4cat", "mark5cat");
topacategory = new Array ("book1cat", "book2cat", "book3cat", "book4cat", "book5cat");

function markcat(num) 
{

for ( i = 0; i < 4; i++ ) 
{
	document.getElementById(topacategory[i]).src = "../../themes/lpi-soft/img/vkl.jpg";
	document.getElementById(markacategory[i]).style.color = "#D5D5D5";
}

document.getElementById(topacategory[num]).src = "../../themes/lpi-soft/img/actvkl.jpg";
document.getElementById(markacategory[num]).style.color = "#3A3A3A";
document.getElementById("javabodycontcategory").innerHTML = document.getElementById("textscategory["+num+"]").innerHTML; 
}