//Carrega previamente as imagens no cache
function PreloadImagens()
{
	//Checa se o browser suporta o preload
	if(document.images)
	{
		for(i=0; i < arguments.length; i++)
		{		
			window['pic' + i] = new Image();
			window['pic' + i].src = arguments[i];
		}
	}
}

//Faz a troca de imagens no mouseover
function Swap($nome, $arquivo)
{
	document.images[$nome].src = $arquivo;
}

function center_popup(doc, nome, w, h)
{
        center_x = (screen.width - w)/2;
        center_y = (screen.height - h)/2;

        window.open(doc, nome, 'top=' + center_y + ',left=' + center_x + ',width=' + w + ',height=' + h + ',status=no,scrollbars=yes');
}

//Faz o carregamento de imagens a serem mostradas posteriormente
PreloadImagens("img/bot_sobre_on.gif", "img/bot_gestao_on.gif", "img/bot_treinamentos_on.gif", "img/bot_pesquisa_on.gif", "img/bot_designweb_on.gif", "img/bot_clientes_on.gif", "img/bot_faleconosco_on.gif");