window.defaultStatus='FASTJOB - As melhores oportunidades estão aqui!';

function MM_preloadImages(){ 
//v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function OpenPopup (a,b,x,y,z) {
 window.open (a,b,'width=' + x + ',height=' + y + ',resizable=0,status=0,menubar=0,scrollbars=' + z + '');
}

function Palestra5S() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/5s','Palestra5s','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraComoVenderSeuTalento() {
  window.open ('http://www.fastjob.com.br/cursos/como_vender_seu_talento.asp','PalestraComoVenderSeuTalento','width=550,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraMotivaAcao() {
  window.open ('http://www.fastjob.com.br/cursos/motiva_acao.asp','PalestraMotivaAcao','width=550,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function OrientacaoProfissional() {
  //window.open("http://www.fastjob.com.br/orientacao/default.asp","_blank")
  window.open("http://www.fastjob.com.br/servicos/orientacao_profissional/default.asp","_blank")
}

function CursoAutoEstima() {
  window.open ('http://www.fastjob.com.br/cursos/auto_estima.asp','CursoAutoEstima','width=700,height=470,left=50,top=30,resizable=0,status=0,menubar=0,scrollbars=no');
}

function CursoAArteDeSelecionarPessoas() {
  window.open ('http://www.fastjob.com.br/servicos/cursos/a_arte_de_selecionar_pessoas','CursoAArteDeSelecionarPessoas','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function EntrevistaSimulada() {
  window.open ('http://www.fastjob.com.br/servicos/entrevistasimulada','EntrevistaSimulada','width=700,height=353,left=45,top=100,resizable=0,status=0,menubar=0,scrollbars=no');
}

function PalestraMeuPrimeiroEmprego() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/primeiroemprego','PalestraMeuPrimeiroEmprego','width=700,height=433,left=45,top=50,resizable=0,status=0,menubar=0,scrollbars=no');
}

function PalestraEmpregabilidade() {
  window.open ('http://www.fastjob.com.br/cursos/empregabilidade_palestra.asp','PalestraEmpregabilidade','width=610,height=450,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraAdministrandoMudancas() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/administrandomudancas','AdministrandoMudancas','width=550,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraDespertandoSeuPotencial() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/despertandoseupotencial','DespertandoSeuPotencial','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraGestaoDoTempo() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/gestaodotempo','PalestraGestaoDoTempo','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraPessoasTrabalhoSucesso() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/pessoas_trabalho_sucesso','PalestraPessoasTrabalhoSucesso','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraCriatividade() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/criatividade','PalestraCriatividade','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraProcessoSeletivo() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/processoseletivo','PalestraProcessoSeletivo','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraVendasVarejo() {
  window.open ('http://www.fastjob.com.br/servicos/palestras/vendasnovarejo','PalestraVendasVarejo','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function PalestraDinamicasSimuladas() {
  window.open ('http://www.fastjob.com.br/servicos/dinamicassimuladas','PalestraDinamicasSimuladas','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function AtendimentoOnLine() {
  window.open ('http://www.fastjob.com.br/atendimento/default.asp','AtendimentoOnLine','width=450,height=330,left=200,top=50,resizable=0,status=0,menubar=0,scrollbars=no');
}

function FaleConosco() {
  window.open ('http://www.fastjob.com.br/atendimento/alert.asp','AtendimentoOnLine','width=450,height=330,left=200,top=50,resizable=0,status=0,menubar=0,scrollbars=no');
}

function MapaDoSite() {
  window.open ('http://www.fastjob.com.br/scripts/fast_mapa.asp','MapaDoSite','width=255,height=400,left=0,top=0,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function CursoEmpregabilidade() {
  window.open ('http://www.fastjob.com.br/cursos/empregabilidade.asp','CursoEmpregabilidade','width=610,height=450,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function CursoComunicacaoInterpessoal() {
  window.open ('http://www.fastjob.com.br/servicos/cursos/comunicacao_interpessoal/default.asp','CursoComunicacaoInterpessoal','width=650,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function CursoRelacoesInterpessoaisNoTrabalho() {
  window.open ('http://www.fastjob.com.br/servicos/cursos/relacoes_interpessoais_no_trabalho/','CursoRelacoesInterpessoaisNoTrabalho','width=670,height=400,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function AnaliseGrafologica() {
  window.open ('http://www.fastjob.com.br/servicos/analisegrafologica/default.asp','AnaliseGrafologica','width=790,height=440,left=100,top=50,resizable=0,status=0,menubar=0,scrollbars=yes');
}

function CestaDosDesejos() {
  window.open ('/desejos/pascoa/desejos.asp','desejo_entrada','width=550,height=365,scrollbars=0,maximized=1,resizable=0,toolbar=0,location=0,status=0,menubar=0,left=120,top=40');
}

function OJogo() {
  window.open ('http://www.fastjob.com.br/banners/asp/redirect.asp?id=161','OJogo','width=780,height=450,scrollbars=0,maximized=1,resizable=0,toolbar=0,location=0,status=0,menubar=0,left=5,top=50');
}

function ContratoPF() {
  window.open ('http://www.fastjob.com.br/curriculo/contrato_popup.asp?deficiencia=','ContratoPF','width=500,height=390,scrollbars=0,maximized=1,resizable=0,toolbar=0,location=0,status=0,menubar=0,left=5,top=50');
}

function ContratoPJ() {
  window.open ('http://www.fastjob.com.br/empresas/cadastro/contrato_popup.asp','ContratoPJ','width=500,height=390,scrollbars=0,maximized=1,resizable=0,toolbar=0,location=0,status=0,menubar=0,left=5,top=50');
}

if (document.all || document.layers) {
	IE4 = (document.all);
	NS4 = (document.layers);
	NS6 = false;
} else if (document.getElementById) {
	IE4 = false;
	NS4 = false;
	NS6 = (document.getElementById);
}
if ( navigator.userAgent.indexOf("Mozilla") != -1 ) {
	mozilla = true;
}

ver4 = (NS4 || IE4);

IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
isMac = (navigator.appVersion.indexOf("Mac") != -1);
isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));
if (!ver4) event=null;

var netscape = NS4, explorer = IE4;

function HideLayer(layer) {
	if (netscape) document[layer].visibility="hide";
	if (explorer) document.all[layer].style.visibility="hidden";
	if (NS6) document.getElementById(layer).style.visibility="hidden";
	if (mozilla) document.getElementById(layer).style.visibility="hidden";
}

function ShowLayer(layer) {
	if (netscape) document[layer].visibility = "show";
	if (explorer) document.all[layer].style.visibility = "visible";
	if (NS6) document.getElementById(layer).style.visibility = "visible";
	if (mozilla) document.getElementById(layer).style.visibility = "visible";
}

function BalaoAjudaFixo(texto, condicao, x, y) {
	//Texto: ID referente ao nome da DIV
	//Condicao: se é 1 ou 0 para exibir ou ocultar.
	//var cx = (document.layers) ? this.pageX : event.clientX;
	//var cy = (document.layers) ? this.pageY : event.clientY;
	var cx = x
	var cy = y
	document.getElementById('BalaoAjudaDiv').style.left = cx;
	document.getElementById('BalaoAjudaDiv').style.top = cy;
	if (condicao==1) { 
		document.getElementById('BalaoAjudaDiv').style.display = "";
		document.getElementById('BalaoAjudaTexto').innerHTML = texto;
	}
	else {
		document.getElementById('BalaoAjudaDiv').style.display = "none"; 
		document.getElementById('BalaoAjudaTexto').innerHTML = '';
	}
}