﻿function MenosZoomNoticia(){

    if(tamanho == -8)
        return;
        
    var data = $('ctl00_ContentPlaceHolder1_lblData');
    var titulo = $('ctl00_ContentPlaceHolder1_lblTitulo');
    var resumo = $('ctl00_ContentPlaceHolder1_lblResumo');
    var usuario = $('ctl00_ContentPlaceHolder1_lblUsuario');
    var texto = $('texto');
    
    
    var tam = "11";
    if(data.style.fontSize.replace('px','') != "" && !isNaN(data.style.fontSize.replace('px','')))
        tam = data.style.fontSize.replace('px','');
    data.style.fontSize = (parseInt(tam) - 1) + "px";
    
    
    tam = "17";
    if(titulo.style.fontSize.replace('px','') != "" && !isNaN(titulo.style.fontSize.replace('px','')))
        tam = titulo.style.fontSize.replace('px','');
    titulo.style.fontSize = (parseInt(tam) - 1) + "px";
    
    tam = "11";
    if(resumo.style.fontSize.replace('px','') != "" && !isNaN(resumo.style.fontSize.replace('px','')))
        tam = resumo.style.fontSize.replace('px','');
    resumo.style.fontSize = (parseInt(tam) - 1) + "px";
    
    tam = "10";
    if(usuario.style.fontSize.replace('px','') != "" && !isNaN(usuario.style.fontSize.replace('px','')))
        tam = usuario.style.fontSize.replace('px','');
    usuario.style.fontSize = (parseInt(tam) - 1) + "px";
    
    tam = "11";
    if(texto.style.fontSize.replace('px','') != "" && !isNaN(texto.style.fontSize.replace('px','')))
        tam = texto.style.fontSize.replace('px','');
    texto.style.fontSize = (parseInt(tam) - 1) + "px";


    tamanho = tamanho - 1;

}

var tamanho = 0;
function MaisZoomNoticia(){

    if(tamanho == 8)
        return;

    var data = $('ctl00_ContentPlaceHolder1_lblData');
    var titulo = $('ctl00_ContentPlaceHolder1_lblTitulo');
    var resumo = $('ctl00_ContentPlaceHolder1_lblResumo');
    var usuario = $('ctl00_ContentPlaceHolder1_lblUsuario');
    var texto = $('texto');
    
    
    var tam = "11";
    if(data.style.fontSize.replace('px','') != "" && !isNaN(data.style.fontSize.replace('px','')))
        tam = data.style.fontSize.replace('px','');
    data.style.fontSize = (parseInt(tam) + 1) + "px";
    
    
    tam = "17";
    if(titulo.style.fontSize.replace('px','') != "" && !isNaN(titulo.style.fontSize.replace('px','')))
        tam = titulo.style.fontSize.replace('px','');
    titulo.style.fontSize = (parseInt(tam) + 1) + "px";
    
    tam = "11";
    if(resumo.style.fontSize.replace('px','') != "" && !isNaN(resumo.style.fontSize.replace('px','')))
        tam = resumo.style.fontSize.replace('px','');
    resumo.style.fontSize = (parseInt(tam) + 1) + "px";
    
    tam = "10";
    if(usuario.style.fontSize.replace('px','') != "" && !isNaN(usuario.style.fontSize.replace('px','')))
        tam = usuario.style.fontSize.replace('px','');
    usuario.style.fontSize = (parseInt(tam) + 1) + "px";
    
    tam = "11";
    if(texto.style.fontSize.replace('px','') != "" && !isNaN(texto.style.fontSize.replace('px','')))
        tam = texto.style.fontSize.replace('px','');
    texto.style.fontSize = (parseInt(tam) + 1) + "px";

    tamanho = tamanho + 1;
}
