function abreFoto(caminho){

	Wwidth  = 520;
	Wheight = 400;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";

	window.open(caminho,'foto',params);
}

function abreFoto2(caminho){

	Wwidth  = 520;
	Wheight = 700;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",scrollbars=0,status=0";

	window.open(caminho,'foto',params);
}

function abreManutencao(caminho){

  if(screen.width == "800"){

    window.open(caminho,'intranet','width=792,height=550,top=0,left=0,status=0,scrollbars=0');

  }else{

    Wwidth  = 792;
    Wheight = 550;

    tamW = screen.width;
    tamH = screen.height;

    posW = (tamW/2) - (Wwidth/2);
    posH = (tamH/2) - (Wheight/2);
    params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",status=0,scrollbars=0";

    window.open(caminho,'manutencao',params);

  }
}


function abreIntranet(caminho){

  if(screen.width == "800"){

    window.open(caminho,'intranet','width=792,height=550,top=0,left=0,status=0,scrollbars=0');

  }else{

    Wwidth  = 792;
    Wheight = 550;

    tamW = screen.width;
    tamH = screen.height;

    posW = (tamW/2) - (Wwidth/2);
    posH = (tamH/2) - (Wheight/2);
    params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",status=0,scrollbars=0";

    window.open(caminho,'intranet',params);

  }


}

function abreLoginIntranet(){

  Wwidth  = 250;
  Wheight = 100;

  tamW = screen.width;
  tamH = screen.height;

  posW = (tamW/2) - (Wwidth/2);
  posH = (tamH/2) - (Wheight/2);
  params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",toolbar=0,menubar=0,scrollbars=0,status=0";

  window.open('intranet/login.php','login_intranet',params);

}

function abreEndereco(caminho){

  Wwidth  = 300;
  Wheight = 200;

  tamW = screen.width;
  tamH = screen.height;

  posW = (tamW/2) - (Wwidth/2);
  posH = (tamH/2) - (Wheight/2);
  params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",toolbar=0,menubar=0,scrollbars=0,status=0";

  window.open(caminho,'endereco',params);

}

function abreCurriculo(){

  Wwidth  = 600;
  Wheight = 500;

  tamW = screen.width;
  tamH = screen.height;

  posW = (tamW/2) - (Wwidth/2);
  posH = (tamH/2) - (Wheight/2);
  params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",toolbar=0,menubar=0,scrollbars=1,status=1";

  window.open('curriculo/index_curriculo.php','curriculo',params);

}

function abreContato(){

  Wwidth  = 420;
  Wheight = 470;

  tamW = screen.width;
  tamH = screen.height;

  posW = (tamW/2) - (Wwidth/2);
  posH = (tamH/2) - (Wheight/2);
  params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",toolbar=0,menubar=0,scrollbars=0,status=0";

  window.open('contato/index_contato.php','contato',params);

}

function abreVisita(){

  Wwidth  = 420;
  Wheight = 470;

  tamW = screen.width;
  tamH = screen.height;

  posW = (tamW/2) - (Wwidth/2);
  posH = (tamH/2) - (Wheight/2);
  params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",toolbar=0,menubar=0,scrollbars=0,status=0";

  window.open('visita/index_visita.php','visita',params);
}

function abreRelatorio(caminho){
	Wwidth  = 770;
	Wheight = 550;

	tamW = screen.width;
	tamH = screen.height;

	posW = (tamW/2) - (Wwidth/2);
	posH = (tamH/2) - (Wheight/2);	

	params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",toolbar=0,menubar=0,scrollbars=0,status=0";
	
	window.open(caminho,'Relatorio',params);
}

  function sicoob(){
  
    window.open('https://www.sicoobnet.com.br/ibank/LoginPrincipal.aspx');      
	
    Wwidth  = 300;
    Wheight = 150;

    tamW = screen.width;
    tamH = screen.height;

    posW = (tamW/2) - (Wwidth/2);
    posH = (tamH/2) - (Wheight/2);
    params = ",left="+posW+",top="+posH+",width="+Wwidth+",height="+Wheight+",toolbar=0,menubar=0,scrollbars=0,status=0";

    window.open('conteudo/aviso.htm','instrucao',params);
	  	
  }
