function openWin(URL,TITLE,largura,altura)
	{
	altura2 = altura/2;
	largura2 = largura/2;
    posx = (screen.width/2)-(largura2);
	posy = (screen.height/2)-(altura2); 
	semx = window.open(URL,TITLE,'width='+largura+',height='+altura);
	semx.moveTo(posx,posy);
	semx.focus();
	}

function fundos()
{
fundos = new Array("fundo_radio_777x661.png","fundo_observatorio_777x661.png","fundo_medicina_777x661.png","fundo_eletrotecnica_777x661.png","fundo_direito_777x661.png","fundo_veterinaria_777x661.png");
posicao = parseInt(Math.random()*fundos.length);
fundo = "http://www.ufrgs.br/ufrgs/img/fundos/"+fundos[posicao];
document.body.style.background = 'url('+fundo+') no-repeat '+((document.body.clientWidth - 777)/2)+'px 0px';
}

function listImagens()
{
menu = document.getElementById("esquerda");
elem = menu.childNodes;
j=0;
for(i=0;i<elem.length;i++)
	{
elem_lista = elem[i];
	if(elem_lista.nodeName == "LI")
		{
		j++;
	elem_lista.style.background = "url(http://www.ufrgs.br/ufrgs/img/img_esquerda/principal/set_"+(j)+"_15x15.gif) 0% 50% no-repeat";
		}
	}
}

function listImagensServidor()
{
menu = document.getElementById("esquerda");
elem = menu.childNodes;
j=0;
for(i=0;i<=elem.length;i++)
	{
elem_lista = elem[i];
	if(elem_lista.nodeName == "LI")
		{
		j++;
	elem_lista.style.background = "url(img/img_esquerda/servidor/seta_"+(j)+"_15x15.gif) 0% 50% no-repeat";
		}
	}
}

function listImagensAluno()
{
menu = document.getElementById("esquerda");
elem = menu.childNodes;
j=0;
for(i=0;i<=elem.length;i++)
	{
elem_lista = elem[i];
	if(elem_lista.nodeName == "LI")
		{
		j++;
	elem_lista.style.background = "url(img/img_esquerda/aluno/seta_"+(j)+"_15x15.gif) 0% 50% no-repeat";
		}
	}
}