var tmp_img = null;
var cur_open_div = '';

function m_on(obj, num)
{
	var obj2 = document.getElementById('c'+num);
	
	obj.style.backgroundColor = '#C5C5C5';
	obj.style.color = '#454545';
	obj2.style.backgroundColor = '#C5C5C5';
	document.images['i'+num].style.visibility = 'visible';
}

function m_off(obj, num)
{
	var obj2 = document.getElementById('c'+num);
	
	obj.style.backgroundColor = '#ffffff';
	obj2.style.backgroundColor = '#ffffff';
	obj.style.color = '#99999A';
	document.images['i'+num].style.visibility = 'hidden';
}

function objOn(obj)
{
	try
	{
		obj.style.display = "block";
		obj.style.visibility = "visible";
	}
	catch(Exception){}
}	

function objOff(obj)
{
	try
	{
		obj.style.visibility = "hidden";
		obj.style.display = "none";
	}
	catch(Exception){}
}

function showdiv(divName)
{
	if(cur_open_div!='')
	{
		id1 = document.getElementById(cur_open_div);
		objOff(id1);
	}
	
	if(cur_open_div != divName)
	{
		cur_open_div = divName;
		id2 = document.getElementById(cur_open_div);
		objOn(id2);
	}
	else cur_open_div = '';
	
}