﻿function articleExpandMoreText(oElem){
    var oNextElem;
    
    oNextElem = oElem.nextSibling;
    if (oNextElem == null)  // could be null because splitter is with in a tag and details is outside of this tag.
        oNextElem = oElem.parentNode.nextSibling;
    oNextElem.style.display = 'block';
    oElem.style.display='none';
}
function bioExpandMoreText(oElem){
    var oNextElem;
    
    oNextElem = oElem.nextSibling;
    if (oNextElem == null)  // could be null because splitter is with in a tag and details is outside of this tag.
        oNextElem = oElem.parentNode.nextSibling;
    oNextElem.style.display = 'block';
    oElem.style.display='none';
}
function expandPublications(iBlockID, iInterface, iItemCount){
    var i;
    var oElem;
    for (i = 1; i <= iItemCount; i++){
        oElem = document.getElementById("blockHidden_" + iBlockID + "_" + iInterface + "_" + i);
        if (oElem != null)
            oElem.style.display = "block";
    }
    document.getElementById("blockExtra_" + iBlockID).style.display = "none";
}
function showBioExtra(obj){
    for (var i=0; i<obj.parentNode.parentNode.childNodes.length; i++)
        if (obj.parentNode.parentNode.childNodes[i].className=="bioExtra" && obj.parentNode.parentNode.childNodes[i].style)
            obj.parentNode.parentNode.childNodes[i].style.display='block';           
    obj.style.display='none';
}
function showCityExtra(obj, fran){
    var items = document.getElementsByTagName("LI");
    for (var i=0; i<items.length; i++)
        if (items[i].name==fran)
            items[i].style.display='block';           
    obj.style.display='none';
}