﻿// JScript File
function expand(which)
{
    var stringWhich = "blurb" + String(which);
    var doc = document.getElementById(stringWhich);
    if (doc.style.display == "inline")
    {
        doc.style.display = "none";
    }
    else
    {
        doc.style.display = "inline";
        
        var hid = 0;
        var pos = 0;
        
        if (which == 0)
        {
                pos = 1;
        }
        while (hid == 0)
        {    
            if (pos == which) 
            {
                pos++;
            }
            
            var tempWhich = "blurb" + String(pos);
            
            if (document.getElementById(tempWhich)) 
            {
               document.getElementById(tempWhich).style.display = "none";
               pos++;
            }else{
                hid = 1;
            }
        }
    }
}
