// JavaScript Document

var tam = 10;

function mudaFonte( tipo ){
  if( tipo == 'mais' ){
    if( tam < 16 ) tam += 1 ;    			 
  } else {
    if( tam > 8 ) tam -= 1 ;
  }
  
  if( document.getElementById( 'mudaFonte' ) )
    mudaFonteRecursiva( tipo , document.getElementById( 'mudaFonte' ) ) ;

  if( document.getElementById( 'mudaFoto' ) )
    mudaFonteRecursiva( tipo , document.getElementById( 'mudaFoto' ) ) ;  
}

function mudaFonteRecursiva( tipo , domElement ){		
  for( var i = 0 ; i < domElement.childNodes.length ; i++ ){
    mudaFonteRecursiva( tipo , domElement.childNodes.item( i )  ) ;
  }
  if( domElement.style )
    domElement.style.fontSize = tam+'px';
}

