function popShow(i)
{
      	obj = document.getElementById('popmenu'+i);
		if(obj) obj.style.visibility = 'visible';
		//alert(obj.style.visibility);
        var divs = document.getElementsByTagName("div");
        if(divs)
		{
			for(j=0;j<divs.length;++j)
			{
				if(divs[j].id && (divs[j] != obj) && (divs[j].id.substring(0,7) == 'popmenu'))
				{
					divs[j].style.visibility = 'hidden';
				}
			}
		}
}

function popHide(i)
{
	obj = document.getElementById('popmenu'+i);
	if(obj) obj.style.visibility = 'hidden';
}

function spaceLight(item)
{
	el = document.getElementById(item);
	if (el) 
	{
		el.style.color = '#FFFFFF';
		el.style.font.weight = 'normal';
	}
}

function spaceUnLight(item)
{
	el = document.getElementById(item);
	if (el) el.style.color = '';
}

function itemLight(obj, item)
{
	obj.className = '#FFFFFF';
	item = document.getElementById(item);
	item.className = 'menu_on';
}

function itemUnLight(obj, obj_class, item)
{
	obj.className = obj_class;
	item = document.getElementById(item);
	item.className = 'menu_off';
}
