if (document.layers)	document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=click;

var kodclose=1;
var delta=19;
var startpoint=205;

function click(e)
{
	if (document.layers)
	{
		if (e.which == 1)
			if (kodclose)
			{
				hideBar(5);
				return true;
			}
	} else
	{
		if (event.button == 1)
			if (kodclose)
			{
				hideBar(5);
				return true;
			}
	}
}

function showBar(jj)
{
	if (document.layers)
	{
		var thisspan = eval("document.bar"+jj);
		thisspan.visibility="visible";
		thisspan.top=document.logomorena.top + startpoint + delta*jj - thisspan.clip.height;
	} else
	{
		var thisspan = eval("document.all.bar"+jj);
		thisspan.style.visibility="visible";
		thisspan.style.posTop=document.all.logomorena.style.posTop + startpoint + delta*jj - thisspan.clientHeight;
	}
}

function hideBar(jj)
{
	if (document.layers)
	{
		if (typeof(eval("document.bar"+jj)) != "object") return;
		var thisspan = eval("document.bar"+jj);
	}
	else
	{
		if (typeof(eval("document.all.bar"+jj)) != "object") return;
		var thisspan = eval("document.all.bar"+jj+".style");
	}
	thisspan.visibility="hidden";
}
function test_show()
{
	if (typeof(parent.parent.index.document.mag.raspr)=="object" && parent.parent.index.document.mag.raspr.value == "off")	_hide();
	else								_show();
}
function _show()
{
	if (document.layers)
	{
		if (typeof(document.map1) == "object") document.map1.visibility = "visible";
		if (typeof(document.map2) == "object") document.map2.visibility = "hidden";
	} else
	{
		if (typeof(document.all.map1) == "object") document.all.map1.style.visibility = "visible";
		if (typeof(document.all.map2) == "object") document.all.map2.style.visibility = "hidden";
	}
	if (typeof(parent.parent.index.document.mag.raspr)=="object") parent.parent.index.document.mag.raspr.value = "on"	
}
function _hide(obj)
{
	if (document.layers)
	{
		if (typeof(document.map1) == "object") document.map1.visibility = "hidden";
		if (typeof(document.map2) == "object") document.map2.visibility = "visible";
	} else
	{
		if (typeof(document.all.map1) == "object") document.all.map1.style.visibility = "hidden";
		if (typeof(document.all.map2) == "object") document.all.map2.style.visibility = "visible";
	}
	if (typeof(parent.parent.index.document.mag.raspr)=="object") parent.parent.index.document.mag.raspr.value = "off"	
}