function mO(src,clrOver) {
 if (!src.contains(event.fromElement)) {
  src.style.cursor = 'hand';
  src.bgColor = clrOver;
 }
}
function mU(src,clrIn) {
 if (!src.contains(event.toElement)) {
  src.style.cursor = 'default';
  src.bgColor = clrIn;
 }
}
function mC(src) {
 if(event.srcElement.tagName=='TD'){
  src.children.tags('A')[0].click();
 }
}

var isDOM = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
function getSty(id) {
return (isNS4 ? getRef(id) : getRef(id).style);
} 
var popTimer = 0;
var litNow = new Array();
function popOver(menuNum, itemNum) {
clearTimeout(popTimer);
hideAllBut(menuNum);
litNow = getTree(menuNum, itemNum);
changeCol(litNow, true);
targetNum = menu[menuNum][itemNum].target;
if (targetNum > 0) {
thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left);
thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(menu[menuNum][itemNum].ref.top);
with (menu[targetNum][0].ref) {
left = parseInt(thisX + menu[targetNum][0].x);
top = parseInt(thisY + menu[targetNum][0].y);
visibility = 'visible';
      }
   }
}
function popOut(menuNum, itemNum) {
if ((menuNum == 0) && !menu[menuNum][itemNum].target)
hideAllBut(0)
else
popTimer = setTimeout('hideAllBut(0)', 500);
}
function getTree(menuNum, itemNum) {

itemArray = new Array(menu.length);

while(1) {
itemArray[menuNum] = itemNum;
if (menuNum == 0) return itemArray;
itemNum = menu[menuNum][0].parentItem;
menuNum = menu[menuNum][0].parentMenu;
   }
}

function changeCol(changeArray, isOver) {
for (menuCount = 0; menuCount < changeArray.length; menuCount++) {
if (changeArray[menuCount]) {
newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol;
with (menu[menuCount][changeArray[menuCount]].ref) {
if (isNS4) bgColor = newCol;
else backgroundColor = newCol;
         }
      }
   }
}
function hideAllBut(menuNum) {
var keepMenus = getTree(menuNum, 1);
for (count = 0; count < menu.length; count++)
if (!keepMenus[count])
menu[count][0].ref.visibility = 'hidden';
changeCol(litNow, false);
}

function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {
this.isVert = isVert;
this.popInd = popInd
this.x = x;
this.y = y;
this.width = width;
this.overCol = overCol;
this.backCol = backCol;
this.borderClass = borderClass;
this.textClass = textClass;
this.parentMenu = null;
this.parentItem = null;
this.ref = null;
}

function Item(text, href, frame, length, spacing, target) {
this.text = text;
this.href = href;
this.frame = frame;
this.length = length;
this.spacing = spacing;
this.target = target;
this.ref = null;
}

function writeMenus() {
if (!isDOM && !isIE4 && !isNS4) return;

for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) {
var str = '', itemX = 0, itemY = 0;

for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {
var itemID = 'menu' + currMenu + 'item' + currItem;

var w = (isVert ? width : length);
var h = (isVert ? length : width);

if (isDOM || isIE4) {
str += '<div id="' + itemID + '" style="position: absolute; left: ' + itemX + '; top: ' + itemY + '; width: ' + w + '; height: ' + h + '; visibility: inherit; ';
if (backCol) str += 'background: ' + backCol + '; ';
str += '" ';
}
if (isNS4) {
str += '<layer id="' + itemID + '" left="' + itemX + '" top="' + itemY + '" width="' +  w + '" height="' + h + '" visibility="inherit" ';
if (backCol) str += 'bgcolor="' + backCol + '" ';
}
if (borderClass) str += 'class="' + borderClass + '" ';

str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">';

str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td align="left" height="' + (h - 7) + '" onClick="mC(this);" onMouseOver="mO(this);" onMouseOut="mU(this);">' + '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>';
if (target > 0) {

menu[target][0].parentMenu = currMenu;
menu[target][0].parentItem = currItem;

if (popInd) str += '<td class="' + textClass + '" align="right">' + popInd + '</td>';
}
str += '</tr></table>' + (isNS4 ? '</layer>' : '</div>');
if (isVert) itemY += length + spacing;
else itemX += length + spacing;
}
if (isDOM) {
var newDiv = document.createElement('div');
document.getElementsByTagName('body').item(0).appendChild(newDiv);
newDiv.innerHTML = str;
ref = newDiv.style;
ref.position = 'absolute';
ref.visibility = 'hidden';
ref.zIndex = '1000000';
}

if (isIE4) {
document.body.insertAdjacentHTML('beforeEnd', '<div id="menu' + currMenu + 'div" ' + 'style="position: absolute; visibility: hidden">' + str + '</div>');
ref = getSty('menu' + currMenu + 'div');
}

if (isNS4) {
ref = new Layer(0);
ref.document.write(str);
ref.document.close();
}

for (currItem = 1; currItem < menu[currMenu].length; currItem++) {
itemName = 'menu' + currMenu + 'item' + currItem;
if (isDOM || isIE4) menu[currMenu][currItem].ref = getSty(itemName);
if (isNS4) menu[currMenu][currItem].ref = ref.document[itemName];
   }
}
with(menu[0][0]) {
ref.left = x;
ref.top = y;
ref.visibility = 'visible';
   }
}

var menu = new Array();

var defOver = '#3A4AB8', defBack = '#6775D5';
var defLength = 21;

menu[0] = new Array();
menu[0][0] = new Menu(false, '<img src="/imagens/setav_001.gif" width="7" height="6" border="0">', 235, 92, 10, '#F3F3FE', '#F3F3FE', '', 'itemText');
menu[0][1] = new Item('Serviços', '#', '', 55, 2, 1);
menu[0][2] = new Item('Profissionais', '#', '', 71, 2, 4);
menu[0][3] = new Item('Empresas', '#', '', 59, 2, 8);
menu[0][4] = new Item('ESTÁGIO FÁCIL', '#', '', 93, 2, 12);
menu[0][5] = new Item('Artigos', '#', '', 49, 2, 16);
menu[0][6] = new Item('Atendimento', '#', '', 74, 2, 17);
menu[0][7] = new Item('Home', 'http://www.fastjob.com.br/entrada/entrada.asp', '', 25, 2, 0);

menu[1] = new Array();
menu[1][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 0, 14, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[1][1] = new Item('Profissionais', '#', '', defLength, 0, 2);
menu[1][2] = new Item('Empresas', '#', '', defLength, 0, 19);

menu[2] = new Array();
menu[2][0] = new Menu(true, '<img src="/imagens/geral/seta_right_menu.gif" width="4" height="8" border="0">', 112, 0, 110, '#64778E', '#8EA0B4', 'crazyBorder', 'crazyText');
menu[2][1] = new Item('Cursos', '#', '', defLength, 0, 18);
menu[2][2] = new Item('Palestras', '#', '', defLength, 0, 3);
menu[2][3] = new Item('Análise Curricular', 'http://www.fastjob.com.br/scripts/prof_analise_curricular_explicacao.asp', '', defLength, 0, 0);
menu[2][4] = new Item('Análise Grafológica', 'JavaScript:AnaliseGrafologica()', '', defLength, 0, 0);
menu[2][5] = new Item('FastCall', 'https://www.fastjob.com.br/servicos/compra.asp?servico=9', '', defLength, 0, 0);
menu[2][6] = new Item('Orient. Profissional', 'JavaScript:OrientacaoProfissional()', '', defLength, 0, 0);
menu[2][7] = new Item('Carta de Apresent...', 'http://www.fastjob.com.br/login/prof.asp?url=http://www.fastjob.com.br/scripts/carta_de_apresentacao.asp', '', defLength, 0, 0);
menu[2][8] = new Item('Entrevista Simulada', 'JavaScript:EntrevistaSimulada()', '', defLength, 0, 0);

menu[3] = new Array();
menu[3][0] = new Menu(true, '<img src="/imagens/geral/seta_right_menu.gif" width="4" height="8" border="0">', 112, 0, 110, '#64778E', '#8EA0B4', 'crazyBorder', 'crazyText');
menu[3][1] = new Item('5S', 'JavaScript:Palestra5S()', '', defLength, 0, 0);
menu[3][2] = new Item('Administrando Mu...', 'JavaScript:PalestraAdministrandoMudancas()', '', defLength, 0, 0);
menu[3][3] = new Item('Como obter suce ...', 'JavaScript:PalestraProcessoSeletivo()', '', defLength, 0, 0);
menu[3][4] = new Item('Como vender sua ...', 'JavaScript:PalestraComoVenderSeuTalento()', '', defLength, 0, 0);
menu[3][5] = new Item('Criatividade - O....', 'JavaScript:PalestraCriatividade()', '', defLength, 0, 0);

menu[4] = new Array();
menu[4][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 0, 14, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[4][1] = new Item('<font color="#FFFF00">Área para Associados</font>', 'http://www.fastjob.com.br/login/prof.asp', '', defLength, 0, 0);
menu[4][2] = new Item('Cadastro', '#', '', defLength, 0, 6);
menu[4][3] = new Item('Visitantes', '#', '', defLength, 0, 5);
menu[4][4] = new Item('Contrato', 'javascript: ContratoPF()', '', defLength, 0, 0);
menu[4][5] = new Item('Área de Apoio', '#', '', defLength, 0, 7);
menu[4][6] = new Item('Depoimentos', 'http://www.fastjob.com.br/scripts/fast_depoimentos.asp?query=profissionais', '', defLength, 0, 0);
menu[4][7] = new Item('Empresas Associadas', 'http://www.fastjob.com.br/login/prof.asp?url=http://www.fastjob.com.br/emp_consultar01.asp&info_empresas_associadas=1', '', defLength, 0, 0);

menu[5] = new Array();
menu[5][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[5][1] = new Item('Incluir Currículo', 'http://www.fastjob.com.br/curriculo/default.asp', '', defLength, 0, 0);
menu[5][2] = new Item('Vagas Disponíveis', 'http://www.fastjob.com.br/scripts/prof_vagas_visitantes01.asp', '', defLength, 0, 0);

menu[6] = new Array();
menu[6][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[6][1] = new Item('Incluir Currículo', 'http://www.fastjob.com.br/curriculo/default.asp', '', defLength, 0, 0);
menu[6][2] = new Item('Renovar', 'http://www.fastjob.com.br/login/prof.asp?url=http://www.fastjob.com.br/prof_renovar_contrato01.asp&info_renovar=1', '', defLength, 0, 0);
menu[6][3] = new Item('Reativar', 'http://www.fastjob.com.br/login/prof.asp?url=http://www.fastjob.com.br/prof_reativar_contrato01.asp&info_reativar=1', '', defLength, 0, 0);

menu[7] = new Array();
menu[7][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[7][1] = new Item('Dúvidas', 'http://www.fastjob.com.br/scripts/duvidas.pl?tp=2', '', defLength, 0, 0);
menu[7][2] = new Item('Dicas', 'http://www.fastjob.com.br/scripts/dicas.pl', '', defLength, 0, 0);

menu[8] = new Array();
menu[8][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 0, 14, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[8][1] = new Item('<font color="#FFFF00">Área para Associadas</font>', 'http://www.fastjob.com.br/login/emp.asp', '', defLength, 0, 0);
menu[8][2] = new Item('Incluir Empresa', 'http://www.fastjob.com.br/scripts/emp_cadastro01.pl', '', defLength, 0, 0);
menu[8][3] = new Item('Visitantes', '#', '', defLength, 0, 9);
menu[8][4] = new Item('Contrato', 'http://www.fastjob.com.br/scripts/emp_contrato.pl', '', defLength, 0, 0);
menu[8][5] = new Item('Área de Apoio', '#', '', defLength, 0, 10);
menu[8][6] = new Item('Publicidade', '#', '', defLength, 0, 11);
menu[8][7] = new Item('Depoimentos', 'http://www.fastjob.com.br/scripts/fast_depoimentos.asp?query=empresas', '', defLength, 0, 0);

menu[9] = new Array();
menu[9][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[9][1] = new Item('Incluir Empresa', 'http://www.fastjob.com.br/scripts/emp_cadastro01.pl', '', defLength, 0, 0);
menu[9][2] = new Item('Consultar Associadas', 'http://www.fastjob.com.br/login/prof.asp?url=http://www.fastjob.com.br/emp_consultar01.asp&info_empresas_associadas=1', '', defLength, 0, 0);

menu[10] = new Array();
menu[10][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[10][1] = new Item('Dúvidas', 'http://www.fastjob.com.br/scripts/duvidas.pl?tp=1', '', defLength, 0, 0);

menu[11] = new Array();
menu[11][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[11][1] = new Item('Anuncie Aqui', 'http://www.fastjob.com.br/scripts/fast_anuncie.asp', '', defLength, 0, 0);
menu[11][2] = new Item('Relatório de Banners', 'https://www.fastjob.com.br/banners/controle/login.asp', '', defLength, 0, 0);

menu[12] = new Array();
menu[12][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 0, 14, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[12][1] = new Item('Quem Somos', 'http://www.fastjob.com.br/estagiofacil/default.asp', '', defLength, 0, 0);
menu[12][2] = new Item('O que é Estágio?', 'http://www.fastjob.com.br/estagiofacil/o_que_e_estagio.asp', '', defLength, 0, 0);
menu[12][3] = new Item('Legislação', 'http://www.fastjob.com.br/estagiofacil/legislacao.asp', '', defLength, 0, 0);
menu[12][4] = new Item('Estagiários', '#', '', defLength, 0, 13);
menu[12][5] = new Item('Empresas', '#', '', defLength, 0, 14);
menu[12][6] = new Item('Inst. de Ensino', '#', '', defLength, 0, 15);
menu[12][7] = new Item('Assespro-Seitac', 'http://www.fastjob.com.br/estagiofacil/assespro_seitac.asp', '', defLength, 0, 0);

menu[13] = new Array();
menu[13][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[13][1] = new Item('Incluir Currículo', 'http://www.fastjob.com.br/bancodetalentos/estagiofacil', '', defLength, 0, 0);
menu[13][2] = new Item('Direitos do Estagiário', 'http://www.fastjob.com.br/estagiofacil/direitos_estagiarios.asp', '', defLength, 0, 0);
menu[13][3] = new Item('Dicas para o sucesso', 'http://www.fastjob.com.br/estagiofacil/dicas_estagiarios.asp', '', defLength, 0, 0);
menu[13][4] = new Item('Avaliação', '#', '', defLength, 0, 0);

menu[14] = new Array();
menu[14][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[14][1] = new Item('Solicitação', 'http://www.fastjob.com.br/estagiofacil/solicitacao.asp', '', defLength, 0, 0);
menu[14][2] = new Item('Como Contratar', 'http://www.fastjob.com.br/estagiofacil/como_contratar.asp', '', defLength, 0, 0);
menu[14][3] = new Item('Vantagens', 'http://www.fastjob.com.br/estagiofacil/vantagens_empresas.asp', '', defLength, 0, 0);
menu[14][4] = new Item('Minutas Contratuais', 'http://www.fastjob.com.br/estagiofacil/minutas_contratuais.asp', '', defLength, 0, 0);
menu[14][5] = new Item('Nossos Clientes', '#', '', defLength, 0, 0);

menu[15] = new Array();
menu[15][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[15][1] = new Item('Convênio', '#', '', defLength, 0, 0);

menu[16] = new Array();
menu[16][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 0, 14, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[16][1] = new Item('Visualizar Artigos', 'http://www.fastjob.com.br/consultoria/artigos_visualizar_todos.asp', '', defLength, 0, 0);
menu[16][2] = new Item('Escrever Artigos', 'http://www.fastjob.com.br/consultoria/articulistas_visualizar.asp', '', defLength, 0, 0);

menu[17] = new Array();
menu[17][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 0, 14, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[17][1] = new Item('Dúvidas', 'http://www.fastjob.com.br/scripts/duvidas.pl?tp=2', '', defLength, 0, 0);
menu[17][2] = new Item('On-line', 'JavaScript:AtendimentoOnLine()', '', defLength, 0, 0);

menu[18] = new Array();
menu[18][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[18][1] = new Item('Auto-Estima', 'javascript:CursoAutoEstima()', '', defLength, 0, 0);

menu[19] = new Array();
menu[19][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');
menu[19][1] = new Item('Cursos', '#', '', defLength, 0, 20);

menu[20] = new Array();
menu[20][0] = new Menu(true, '<img src="/imagens/top/002/setah.gif" width="4" height="9" border="0">', 122, 0, 120, '#3A4AB8', '#6775D5', 'crazyBorder', 'crazyText');

var popOldWidth = window.innerWidth;
nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');

if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;

function clickHandle(evt)
{
 if (isNS4) document.routeEvent(evt);
 hideAllBut(0);
}

