﻿function ToolTip(strText, blnStatus)
{
    var intWidth;
    var strStatusBar;
    intWidth = parseInt(strText.length * 5.6) + 20;
    if(intWidth > 240){
        intWidth = 240;
    }
    if(blnStatus == 0){
        strStatusBar = ''; 
    }else{
        strStatusBar = AUTOSTATUS; 
    }
    return overlib(strText,FGCOLOR,'#FFFFFF',BGCOLOR,'#480808',TEXTCOLOR,'#480808',WIDTH,intWidth,strStatusBar,DELAY,100);
}

function DisplayAbstract(id)
{
    var abstract_text = document.getElementById("abstract_"+id);
    var abstract_button = document.getElementById("button_"+id);
    
    if (abstract_text.style.display == "block")
    {
        abstract_text.style.display ="none";
        abstract_button.src = "/cadernos/icons/16-arrow-down.png";
    }
    else
    {
        abstract_text.style.display ="block";
        abstract_button.src = "/cadernos/icons/16-arrow-up.png";
    }
}
