/* Fases MAN-130 */
detalheFaseInvisivel = true
function mostraDetalheFase(id,numFases){
for(i = 1 ; i <=numFases ; i++){
if(document.all['fase_'+i]!=null){
document.all['fase_'+i].style.display='none'
document.images['verDetalhe'+i].src='/imagens/vazio.gif'
}
}
if(document.all['fase_'+id]!=null){
document.all['fase_'+id].style.display=''
document.images['verDetalhe'+id].src='/imagens/verdetalhe_over.gif'
}
detalheFaseInvisivel = false
}
/* Fases MAN-130 */
function maxmiza(id,numOpcoes){
for(i = 1 ; i <=numOpcoes ; i++){
if(document.all['opcao_'+i]!=null){
document.all['opcao_'+i].style.display='none'
document.all['tr_'+i].style.display='none'
document.all['tr1_'+i].style.display=''
}
}
if(document.all['opcao_'+id]!=null){
document.all['opcao_'+id].style.display=''
document.all['tr_'+id].style.display=''
document.all['tr1_'+id].style.display='none'
}
}
function minimiza(id){
if(document.all['opcao_'+id]!=null){
document.all['opcao_'+id].style.display='none'
document.all['tr_'+id].style.display='none'
document.all['tr1_'+id].style.display=''
}
}
function cellImg(idCell, imgName) {
document.getElementById(idCell).style.background = "url(" + imgName + ")";
}
function mudaMenu(idImagem,imagem){
eval("document.images['"+idImagem+"'].src='/img/"+imagem+"'")
}
function mudaImagem(idImagem,imagem){
eval("document.images['"+idImagem+"'].src='/imagens/"+imagem+"'")
}
function mudaImg(idImagem,imagem){
eval("document.images['"+idImagem+"'].src='/img/"+imagem+"'")
}
function openWinPostBackup( windowURL, windowName, width, height ) {
largura=0
altura=0
if (!document.all){
largura=window.innerWidth
altura=window.innerHeight
}else{
largura=screen.width
altura=screen.height
}
esquerda=(largura/2)-(width/2)
topo=(altura/2)-(height/2)
comScroll="0"
argv = openWinPost.arguments
if (argv.length>=5) comScroll="1"
indexForm=0
argv = openWinPost.arguments
if (argv.length>=6) indexForm=argv[5]
windowFeatures="width="+width+",height="+height+",left="+esquerda+",top="+topo+",toolbar=0,location=0,directories=0,status=0,menuBar=1,scrollBars="+comScroll+",resizable=0"
var janela = window.open('',windowName,windowFeatures);
janela.focus();
document.forms[indexForm].method='POST';
document.forms[indexForm].action=windowURL;
document.forms[indexForm].target=windowName;
document.forms[indexForm].submit();
}
function openWinPost( windowURL, windowName, width, height ) {
largura=0
altura=0
if (!document.all){
largura=780
altura=window.innerHeight
}else{
largura=780
altura=screen.height
}
esquerda=(largura/2)-(width/2)
topo=(altura/2)-(height/2)
comScroll="0"
argv = openWinPost.arguments
if (argv.length==5) comScroll="1"
windowFeatures="width="+width+",height="+height+",left="+esquerda+",top="+topo+",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars="+comScroll+",resizable=1"
janela=window.open( windowURL, windowName, windowFeatures )
janela.focus()
}
function abreJanela( windowURL, windowName, width, height ) {
largura=0
altura=0
if (!document.all){
largura=780
altura=window.innerHeight
}else{
largura=780
altura=screen.height
}
esquerda=(largura/2)-(width/2)
topo=(altura/2)-(height/2)
comScroll="0"
argv = abreJanela.arguments
if (argv.length==5) comScroll="1"
windowFeatures="width="+width+",height="+height+",left="+esquerda+",top="+topo+",toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars="+comScroll+",resizable=1"
janela=window.open( windowURL, windowName, windowFeatures )
janela.focus()
}
function abreLink(url){
parent.location.href=url
}
function abreJanelaDestaques( windowURL, windowName, width, height ) {
argv = abreJanelaDestaques.arguments
windowFeatures="width="+width+",height="+height+",left=100,top=100,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1"
var janelaDestaques=window.open( windowURL, windowName, windowFeatures )
janelaDestaques.focus()
}
//esta função trata os links que são inseridos no Publishing
function escreveLinkPublishing(link,texto,classe) {
argv = escreveLinkPublishing.arguments
if (argv.length==5) {
corOver=argv[3]
corOut=argv[4]
}
if (argv.length==7) {
corOver=argv[3]
corOut=argv[4]
largura=argv[5]
altura=argv[6]
}
if (argv.length==10) {
corOver=argv[3]
corOut=argv[4]
largura=argv[5]
altura=argv[6]
imagemOn=argv[7]
imagemOff=argv[8]
nomeImagem=argv[9]
}
var linkExterior=false;
var abreJanela=false;
if (link!=null){
if (link.indexOf("http")!=-1) linkExterior=true;
if (link.indexOf("#1")!=-1 ) abreJanela=true;
link=link.substring(0,link.indexOf("#"));
if (!linkExterior && !abreJanela){
if (argv.length==10)
document.write(""+texto+"")
else{
if (argv.length==7)
document.write(""+texto+"")
else{
if (argv.length==5)
document.write(""+texto+"")
else
document.write(""+texto+"")
}
}
}
if (linkExterior && !abreJanela){
if (argv.length==10)
document.write(""+texto+"")
else{
if (argv.length==7)
document.write(""+texto+"")
else{
if (argv.length==5)
document.write(""+texto+"")
else
document.write(""+texto+"")
}
}
}
if (!linkExterior && abreJanela){
if (argv.length==10)
document.write(""+texto+"")
else{
if (argv.length==7 )
document.write(""+texto+"")
else{
if (argv.length==5)
document.write(""+texto+"")
else
document.write(""+texto+"")
}
}
}
if (linkExterior && abreJanela){
if (argv.length==10)
document.write(""+texto+"")
else{
if (argv.length==7 )
document.write(""+texto+"")
else{
if (argv.length==5)
document.write(""+texto+"")
else
document.write(""+texto+"")
}
}
}
}
}
//escreve link DOCUMENTOS
function escreveLinkDocumentos(link,texto) {
argv = escreveLinkDocumentos.arguments
if (argv.length==7) {
classe=argv[2]
corOver=argv[3]
corOut=argv[4]
largura=argv[5]
altura=argv[6]
}
if (argv.length==5) {
nomeImagem=argv[2]
imagemOn=argv[3]
imagemOff=argv[4]
}
if (argv.length==3) {
classe=argv[2]
}
if (argv.length==7)
document.write(""+texto+"")
else
if (argv.length==5)
document.write(""+texto+"")
else{
if (argv.length==3)
document.write(""+texto+"")
}
}