// JavaScript Document

// Início do código de Aumentar/ Diminuir a letra
 
// Para usar coloque o comando: "javascript:mudaTamanho('tag_ou_id_alvo', -1);" para diminuir
// e o comando "javascript:mudaTamanho('tag_ou_id_alvo', +1);" para aumentar
 
var tagAlvo = new Array('p','div', 'h2'); //pega todas as tags p//
 
// Especificando os possíveis tamanhos de fontes, poderia ser: x-small, small...
var tamanhos = new Array('10px','11px','12px','13px','14px','15px','16px' );
var tamanhoInicial = 2;
 
function mudaTamanho( idAlvo,acao ){
  if (!document.getElementById) return
  var selecionados = null,tamanho = tamanhoInicial,i,j,tagsAlvo;
  tamanho += acao;
  if ( tamanho < 0 ) tamanho = 0;
  if ( tamanho > 6 ) tamanho = 6;
  tamanhoInicial = tamanho;
  if ( !( selecionados = document.getElementById( idAlvo ) ) ) selecionados = document.getElementsByTagName( idAlvo )[ 0 ];
  
  selecionados.style.fontSize = tamanhos[ tamanho ];
  
  for ( i = 0; i < tagAlvo.length; i++ ){
    tagsAlvo = selecionados.getElementsByTagName( tagAlvo[ i ] );
    for ( j = 0; j < tagsAlvo.length; j++ ) tagsAlvo[ j ].style.fontSize = tamanhos[ tamanho ];
  }
}
// Fim do código de Aumentar/ Diminuir a letra
 
 
 $(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('#sidebar_content a[@href$="' + path + '"]').attr('class', 'current');
 });
 
function cabecalho(){
document.write('<object type="application/x-shockwave-flash" width="945" height="258" data="images/cabecalho_secundario.swf" >');
document.write ('<param name="movie" value="images/cabecalho_secundario.swf" />')
document.write ('<param name="wmode" value="Transparent"/>');
document.write ('</object>');
}

function cabecalho_principal(){
document.write('<object type="application/x-shockwave-flash" width="945" height="340" data="images/cabecalho_principal.swf" >');
document.write ('<param name="movie" value="images/cabecalho_principal.swf" />')
document.write ('<param name="wmode" value="Transparent"/>');
document.write ('</object>');
}

function login(){
document.write('<object type="application/x-shockwave-flash" width="175" height="175" data="images/login_unoesc_virtual.swf" >');
document.write ('<param name="movie" value="images/login_unoesc_virtual.swf" />')
document.write ('<param name="wmode" value="Transparent"/>');
document.write ('</object>');
}

