function setHeight2() {
	maxHeight = getMaxHeight(arguments) 
	for(i=0;i<arguments.length;i++)
		if (document.getElementById(arguments[i]) && maxHeight != 0 && bFs != 0){
			document.getElementById(arguments[i]).style.height = (maxHeight - findPos(arguments[i]))/bFs +'em';
			}
}

var old = null; // guarda o objeto a ser mostrado / ocultado
var old2 = null; // guarda o objeto clicado (para mudar a cor)
bws = (navigator.userAgent.indexOf('MSIE')==-1) ? 'table-row' : 'block';

function ficha(obj) {

  obj.className = (obj.className == 'JogoClicado') ? 'JogoFechado' : 'JogoClicado';

  /* muda a cor da linha */
  if(old2 != null)
      if(old2!=obj)
    	  old2.className = 'JogoFechado';

  old2 = obj;
  /* // */


  /* laço para pular espaço */
  while(obj.nextSibling.nodeType != 1)
  	obj = obj.nextSibling;

  dsp = obj.nextSibling.style.display;
  /* // */
  
  /* esconde as 'fichas' abertas */
  if(old!=null)
      old.nextSibling.style.display = 'none';
  /* // */
  
  /* abre ou fecha a 'ficha' clicada */
  obj.nextSibling.style.display = (dsp==''||dsp=='none') ? bws : 'none';
  /* // */
  
  
  old = obj;



}


function sublinha(table)
{
  table.style.textDecoration = 'underline';
}

function notSublinha(table)
{
  table.style.textDecoration = 'none';
}

