function copyrightmain()
{
document.write('        <div align="center">');
document.write('        <center>');
document.write('        <style>.RodapeMain { font-family: Arial; font-size: 8pt; color: #003399; text-decoration: none; text-align:center}</style>');
document.write('          <table width="750" border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" cellspacing="0">');
document.write('            <tr><td class="RodapeMain"><img border="0" src="images/geral/lineaqua.jpg" width="100%" height="4" align="center"></td></tr>');
document.write('            <tr><td class="RodapeMain">copyright© 2000 - 2005, TechVale® Informática e Automação<br>');
document.write('                  Rua Romeu Carnevalli, 200 CS03 - Centro<br>');
document.write('                  São José dos Campos - SP - Brasil - 12209-490<br>');
document.write('                  Tel/Fax (12) 3204.6475<br>');
document.write('                  Todos os direitos reservados</td></tr>');
document.write('            <tr><td class="RodapeMain"><img border="0" src="images/geral/lineaqua.jpg" width="100%" height="4" align="center"></td></tr>');
document.write('          </table>');
document.write('        </center>');
document.write('        </div>');
}

function copyrightaboutus()
{
  copyrightmain();
}

function copyrightproducts()
{
  copyrightmain();
}

function copyrightcostumers()
{
  copyrightmain();
}

function copyrightservices()
{
  copyrightmain();
}

function copyrightfiles()
{
  copyrightmain();
}

function copyrightapp()
{
  copyrightproducts();
}

function EnviarEmail(AName)
{
  switch(AName)
  {
    case 'bianconi' :
      document.location = "mailto:bianconi@techvale.com.br?subject=Bianconi";
      break;
    case 'comercial' :
      document.location = "mailto:dep.comercial@techvale.com.br?subject=Comercial";
      break;
    case 'suporte' :
      document.location = "mailto:dep.suporte@techvale.com.br?subject=Suporte";
      break;
  }
}

function LerEmail(AName)
{
  switch(AName)
  {
    case 'bianconi' :
      document.write('bianconi@techvale.com.br');
      break;
    case 'comercial' :
      document.write('dep.comercial@techvale.com.br');
      break;
    case 'suporte' :
      document.write('dep.suporte@techvale.com.br');
      break;
  }
}

function apptreeview()
{
  // Este código deve ser atualizado na pagina projetos.php (principal) e copiado para esta function
  // a fim de ficar disponivel em todas as paginas
document.write('<!--');
document.write('*******************************************************************************');
document.write('**  Inicio TreeView. ');
document.write('**  Código fonte fica na pagina projetos. ');
document.write('**  Toda alteração deve ser feita nesta pagina');
document.write('*******************************************************************************');
document.write('!-->');
document.write('        <div align="center">');
document.write('          <center>');
document.write('          <table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="100%" height="19">');
document.write('            <tr>');
document.write('              <td width="100%" bgcolor="#0000FF" align="center" style="font-family: Verdana; color: #FFFFFF; font-weight: bold; padding: 2" valign="top" height="21">');
document.write('                <FONT SIZE="2">Aplicativos </FONT>');
document.write('              </td>');
document.write('            </tr>');
document.write('          </table>');
document.write('          </center>');
document.write('        </div>');
document.write('');
document.write('        <FONT SIZE="1">');
document.write('  <!--');
document.write('  *******************************************************************************');
document.write('  **  Inicio');
document.write('  *******************************************************************************');
document.write('  !-->');
document.write('          <span class="trigger" onClick="showBranch(\'inicio\');">');
document.write('            <img src="images/geral/bolagray.gif" id="Idinicio" width="13" height="13" hspace="2" vspace="2" align="absmiddle" ><A HREF="projetos.php">Inicio</A><br>');
document.write('          </span>');
document.write('');
document.write('  <!--');
document.write('  *******************************************************************************');
document.write('  **  Automação Comercial');
document.write('  *******************************************************************************');
document.write('  !-->');
document.write('          <span class="trigger" onClick="showBranch(\'autocom\');">');
document.write('            <img src="images/geral/bolagray.gif" id="Idautocom" width="13" height="13" hspace="2" vspace="2" align="absmiddle" >Automação Comercial<br>');
document.write('          </span>');
document.write('      ');
document.write('          <span class="branch" id="autocom">');
document.write('            <span class="trigger" onClick="showBranch(\'acougues\');">');
document.write('              <img src="images/geral/bolagray.gif" id="Idacougues" width="13" height="13" hspace="2" vspace="2" align="absmiddle" >Açougues<br>');
document.write('            </span>');
document.write('      ');
document.write('            <span class="branch" id="acougues">');
document.write('              <img src="images/geral/nodeitem.gif" width="18" height="16" hspace="2" vspace="2" align="absmiddle"><a href="app_boipontonet.php">Sistema Boi.Net</a><br>');
document.write('            </span>');
document.write('          </span>');
document.write('        </FONT>');
document.write('<!--');
document.write('*******************************************************************************');
document.write('**  Fim do TreeView. ');
document.write('*******************************************************************************');
document.write('!--> ');
}

function showBranch(branch)
{
  if( branch != 'inicio' )
  {
    objImg =   document.getElementById('Idinicio');
    if( objImg.src = "images/geral/bolagreen.gif" )
    {
      objImg.src = "images/geral/bolagray.gif";
    }
  
    var objBranch =   document.getElementById(branch).style;
    if(objBranch.display=="block")
      objBranch.display="none";
    else
      objBranch.display="block";

    objImg =   document.getElementById('Id' + branch);
    if(objImg.src.indexOf('images/geral/bolagray.gif')>-1)
      objImg.src = "images/geral/bolagreen.gif";
    else
      objImg.src = "images/geral/bolagray.gif";
  }
  else
  {
    objImg =   document.getElementById('Idinicio');
    if( objImg.src = "images/geral/bolagray.gif" )
    {
      objImg.src = "images/geral/bolagreen.gif";
    }
  }  
}
