function reposicionarmenu()
{
// Posicao do primeiro menu
var posicaohorizontal=(document.body.clientWidth/2)-220;
var posicaovertical=(document.body.clientHeight/2)-250;



// Vamos posicionar os menus horizontalmente
document.getElementById('container').style.left=posicaohorizontal+'px';


// Vamos posicionar os menus verticalmente
//if (document.body.clientHeight <= 597)
	//{
	// Temos de definir as posições verticais fixas para quando o conteúdo
	// não couber verticalmente na janela (nao esquecer o 'px' no fim)
	document.getElementById('container').style.top='331px';

//	}
//else
//	{
//	document.getElementById('container').style.top=posicaovertical+'px';
	
//	}
//}

sfHover = function()
{
var quantidade_menus=1;
for (var x=1; x <= quantidade_menus; x++)
	{
	if (x == 1)
		{
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		}
	else
		{
		var sfEls = document.getElementById("nav"+x).getElementsByTagName("LI");
		}

	for (var i=0; i < sfEls.length; i++)
		{
		sfEls[i].onmouseover=function()
			{
			this.className+=" sfhover";
			}

		sfEls[i].onmouseout=function()
			{
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}

if (window.attachEvent)
	{
	window.attachEvent("onload", sfHover);
	}
	}
	
	
	
function mostrar_selects()
{	
if (window.createPopup && document.all) // Detectar IE 6 e anteriores
{
if (document.getElementsByTagName)
{
var sel=document.getElementsByTagName("SELECT")
for(i=0;i < sel.length;i++)
{
sel[i].style.visibility="visible";
}
}
} 
}


function esconder_selects()
{	
if (window.createPopup && document.all) // Detectar IE 6 e anteriores
{
if (document.getElementsByTagName)
{
var sel=document.getElementsByTagName("SELECT")
for(i=0;i < sel.length;i++)
{
sel[i].style.visibility="hidden";
}
}
} 
}

