﻿
function ov(id,objnum,obj)
{
	var tarobj = obj;
	var menu = document.getElementById(id);
	tarobj.className = "headB"+objnum.toString()+"H";
	if(menu != null)
	{
	menu.style.display="block";
	}
}
function ot(id,objnum,obj)
{
	var tarobj = obj;
	tarobj.className = "headB"+objnum.toString();
	if(document.getElementById(id) != null)
	{
	document.getElementById(id).style.display="none";
	}	
}
function ovi(id,objnum,obj)
{
	/*var tarobj = obj;*/
	var menu = document.getElementById(id);
	/*tarobj.className = "headB"+objnum.toString()+"H";*/
	if(menu != null)
	{
	menu.style.display="block";
	}
}
function oti(id,objnum,obj)
{
/*	var tarobj = obj;
	tarobj.className = "headB"+objnum.toString();*/
	document.getElementById(id).style.display="none";	
}

function SwitchInfoH(id,num,count)
{
	ClearInfoClass(id,count);
	document.getElementById("infoname_" + id + num).className = "infof";
	document.getElementById(id + num).style.display = "";
}
function ClearInfoClass(id,count)
{
	for(i=1;i<=count;i++)
	{
		document.getElementById("infoname_" + id + i).className = "infon";
		document.getElementById(id + i).style.display = "none";
	}
}
function SwitchInfoH1(id,num,count)
{
	ClearInfoClass1(id,count);
	document.getElementById("infoname_" + id + num).className = "bL3";
	document.getElementById(id + num).style.display = "";
}
function ClearInfoClass1(id,count)
{
	for(i=1;i<=count;i++)
	{
		document.getElementById("infoname_" + id + i).className = "bL33";
		document.getElementById(id + i).style.display = "none";
	}
}

function SwitchInfoHM1(id,num,count)
{
	ClearInfoClassM(id,count);
	document.getElementById("infoname_" + id + num).className = "infof";
	document.getElementById(id + num).style.display = "";
	document.getElementById("hmore").style.display="";
}

function SwitchInfoHM2(id,num,count)
{
	ClearInfoClassM(id,count);
	document.getElementById("infoname_" + id + num).className = "infof";
	document.getElementById(id + num).style.display = "";
	document.getElementById("hmore").style.display="none";
}

function ClearInfoClassM(id,count)
{
	document.getElementById("hmore").style.display="none";
	for(i=1;i<=count;i++)
	{
		document.getElementById("infoname_" + id + i).className = "infon";
		document.getElementById(id + i).style.display = "none";
	}
}
