function _gel(idname)
{
	if(typeof document.getElementById != 'undefined')
		{
			return document.getElementById(idname)
		}
	else if(document.all)
		{
			return document.all[idname]
		}
	else if(document.layers)
		{
			return document.layers[idname]
		}
		return null
}

function _gettag(parentobj, tag)
{
	if(typeof parentobj.getElementsByTagName != 'undefined')
		{
			return parentobj.getElementsByTagName(tag);
		}
	else if(parentobj.all && parentobj.all.tags)
		{
			return parentobj.all.tags(tag);
		}
	return null
}

function fetch(obj)
{
	var sub = _gel('s'+obj.id);
	sub.style.display = 'block';
	obj.style.backgroundImage = 'url(i/butgradon.jpg)'; obj.style.color = '#fff';
	var div = _gettag(document, 'div');
	if(div.length > 0)
	{
		for(var i=0;i<div.length;i++)
		{
			if(div[i].id.match('snavi') && sub.id != div[i].id)
			{
				div[i].style.display = 'none';
			}
		}
	}
	var a = _gettag(document, 'a');
	if(a.length > 0)
	{
		for(var i=0;i<a.length;i++)
		{
			if(a[i].id.match('navi') && obj.id != a[i].id)
			{
				a[i].style.backgroundImage = 'url(i/butgrad.jpg)'; a[i].style.color = '#24669c';
			}
		}
	}
	return false;
}
