var estagioCorpo = 3;
var DOM= document.getElementById;
var obb;
var obb10 = new Array;
var obb11 = new Array;
var botaoaumentadiminui1,botaoaumentadiminui2,textoaumentadiminui1,textoaumentadiminui2;

function iniciaObjetosTamanhoLetra()
{
  obb = document.getElementById("text");
  botaoaumentadiminui1 = document.getElementById("botaoaumentadiminui1");
  botaoaumentadiminui2 = document.getElementById("botaoaumentadiminui2");
  textoaumentadiminui1 = document.getElementById("textoaumentadiminui1");
  textoaumentadiminui2 = document.getElementById("textoaumentadiminui2");
}

function setaCorpo()
{
  expirateDate = new Date;
  expirateDate.setMonth(expirateDate.getMonth()+6)
  document.cookie="estagioCorpo="+estagioCorpo;expires=expirateDate    
} 

        
function iniciaCorpo()
{
estagioCorpo=3
}

function estagioCorpo1()
{
	if (obb) obb.style.fontSize="70%";
	if (obb) obb.style.lineHeight="110%";
	
	estagioCorpo=1;
} 		

function estagioCorpo2()
{
   	if (obb) obb.style.fontSize="80%";
	if (obb) obb.style.lineHeight="120%";
	
    estagioCorpo=2;
}

function estagioCorpo3()
{
   	if (obb) obb.style.fontSize="100%";
		if (obb) obb.style.lineHeight="100%";
	
	estagioCorpo=3;
}

function estagioCorpo4()
{
	if (obb) obb.style.fontSize="110%";
	if (obb) obb.style.lineHeight="130%";
	
	estagioCorpo=4;
}

function estagioCorpo5()
{
	if (obb) obb.style.fontSize="130%";
	if (obb) obb.style.lineHeight="150%";
	
	estagioCorpo=5;
}

function estagioCorpo6()
{
	if (obb) obb.style.fontSize="150%";
	if (obb) obb.style.lineHeight="160%";
	
	estagioCorpo=6;
}

		
function aumentaCorpo()
		{if (estagioCorpo==1){estagioCorpo2();}
		else{if (estagioCorpo==2){estagioCorpo3();}
		else{if (estagioCorpo==3){estagioCorpo4();}
		else{if (estagioCorpo==4){estagioCorpo5();}
		else{if (estagioCorpo==5){estagioCorpo6();}
		}
		}
		}
		}
  setaCorpo();	
}

function diminuiCorpo()
		{if (estagioCorpo==6){estagioCorpo5();}
		else{if (estagioCorpo==5){estagioCorpo4();}
		else{if (estagioCorpo==4){estagioCorpo3();}
		else{if (estagioCorpo==3){estagioCorpo2();}
		else{if (estagioCorpo==2){estagioCorpo1();}
		}
		}
		}
		}
  setaCorpo();
}

function mostraAumentaDiminui()
{
     // botaoaumentadiminui1.style.visibility="visible";
     // botaoaumentadiminui2.style.visibility="visible";
      //textoaumentadiminui1.style.visibility="visible";
      //textoaumentadiminui2.style.visibility="visible";
}

function fontsizestart()
{
  if (DOM)
  {	
       iniciaObjetosTamanhoLetra();
       iniciaCorpo();
       mostraAumentaDiminui();
  }	  	
}