﻿// JScript File
function Agrandar()
{
    var textosDiv = document.getElementById('textoscontenidos').getElementsByTagName('div');
    var textosP = document.getElementById('textoscontenidos').getElementsByTagName('p');
    var tma3;
     
    for(var i=0;i<textosDiv.length;i++)
    {
        
        if (textosDiv[i].style.fontSize=='') {textosDiv[i].style.fontSize = '11px'}; 
        //alert(textosDiv[i] + ' ' + textosDiv[i].style.fontSize);
        tma3 = parseInt(textosDiv[i].style.fontSize.replace('px',''));                             
        if (tma3 < 20)
        {textosDiv[i].style.fontSize = tma3 + 3 + 'px';}
        
        
    }
    for(var i=0;i<textosP.length;i++)
    {
        if (textosP[i].style.fontSize=='') {textosP[i].style.fontSize = '11px'}; 
        //alert(textosDiv[i] + ' ' + textosDiv[i].style.fontSize);
        tma3 = parseInt(textosP[i].style.fontSize.replace('px',''));                             
        if (tma3 < 20)
        {textosP[i].style.fontSize = tma3 + 3 + 'px';}
        
    }
}
function Achicar()
{
    var textosDiv = document.getElementById('textoscontenidos').getElementsByTagName('div');
    var textosP = document.getElementById('textoscontenidos').getElementsByTagName('p');
    var tma3;
     
    for(var i=0;i<textosDiv.length;i++)
    {
        
        if (textosDiv[i].style.fontSize=='') {textosDiv[i].style.fontSize = '11px'}; 
        //alert(textosDiv[i] + ' ' + textosDiv[i].style.fontSize);
        tma3 = parseInt(textosDiv[i].style.fontSize.replace('px',''));                             
        if (tma3 > 11)
        {textosDiv[i].style.fontSize = tma3 - 3 + 'px';}
        
        
    }
    for(var i=0;i<textosP.length;i++)
    {
        if (textosP[i].style.fontSize=='') {textosP[i].style.fontSize = '11px'}; 
        //alert(textosDiv[i] + ' ' + textosDiv[i].style.fontSize);
        tma3 = parseInt(textosP[i].style.fontSize.replace('px',''));                             
        if (tma3 > 11)
        {textosP[i].style.fontSize = tma3 - 3 + 'px';}
        
    }
}






