// Show Bio Functions
var strSelectedBio_executive = String( "" );
var strSelectedBio_shareholders = String( "" );
function GetBio( strBio )
{
    if ( eval( 'strSelectedBio_' + strSelectedFeature ) != strBio )
    {	
        // Hide/show Bios
        if (  eval( 'strSelectedBio_' + strSelectedFeature ) != "" )
        {
            DocumentObject( strSelectedFeature + '_' + eval( 'strSelectedBio_' + strSelectedFeature ), true ).display = "none";
            
            // change background color for executive section
            if ( strSelectedFeature == "executive" )
                document.getElementById('executive_table' + strSelectedBio_executive ).style.backgroundColor = "#ffffff";
        }		
        DocumentObject( strSelectedFeature + '_' + strBio, true ).display = "inline";
        
        // change background color for executive section
        if ( strSelectedFeature == "executive" )
            document.getElementById('executive_table' + strBio ).style.backgroundColor = "#f3f6f1";
        
        // Write name as selected
        reWriteName( strBio );
		
		if ( strSelectedFeature == "executive" )
		{
		    strSelectedBio_executive = strBio
		}
		else
		{
		    strSelectedBio_shareholders = strBio
		}			
    }

}

function reWriteName( strBio )
{
    if ( eval( 'strSelectedBio_' + strSelectedFeature ) != strBio )
        DocumentObject( strSelectedFeature + '_name_' + strBio , false ).innerHTML = "<a href=\"Javascript:CloseBio('" + strBio + "')\" class=\"subhead_orange\">" + eval('a' + strSelectedFeature + '[strBio]') + "</a>"; 

    if ( eval( 'strSelectedBio_' + strSelectedFeature ) != "" )
        DocumentObject( strSelectedFeature + '_name_' + eval( 'strSelectedBio_' + strSelectedFeature ) , false ).innerHTML = "<a href=\"Javascript:GetBio('" + eval( 'strSelectedBio_' + strSelectedFeature ) + "')\" class=\"" + (strSelectedFeature=="executive"?"subhead_" + strSectionColor:"subhead_gray") + "\">" + eval('a' + strSelectedFeature + '[strSelectedBio_' + strSelectedFeature + ']') + "</a>"; 
}

function CloseBio( strBio )
{
    DocumentObject( strSelectedFeature + '_' + eval( 'strSelectedBio_' + strSelectedFeature ), true ).display = "none";
    reWriteName( strBio )
    
    // change background color for executive section
    if ( strSelectedFeature == "executive" )
    {
        document.getElementById('executive_table' + strSelectedBio_executive ).style.backgroundColor = "#ffffff";
        strSelectedBio_executive = ""
    }
    else
    {
        strSelectedBio_shareholders = ""
    }
}
            
// Show Shareholder Subsection Functions
var strSelectedSubsection = String( "" );
function GetSubsection( strSubsection )
{
    // Hide/show subsection
    if ( strSelectedSubsection != strSubsection )
    {	
        if ( strSelectedSubsection != "" )
        {
            DocumentObject( strSelectedFeature + '_sub' + strSelectedSubsection, true ).display = "none";	
            // change background color for selected subsection
            document.getElementById('shareholders_table' + strSelectedSubsection ).style.backgroundColor = "#ffffff";
            document.getElementById('subsection_table' + strSelectedSubsection ).style.backgroundColor = "#ffffff";
        }		
        DocumentObject( strSelectedFeature + '_sub' + strSubsection, true ).display = "inline";
        
        // change background color for selected subsection
        document.getElementById('shareholders_table' + strSubsection ).style.backgroundColor = "#f3f6f1";
        document.getElementById('subsection_table' + strSubsection ).style.backgroundColor = "#f3f6f1";
        
        // Write subsection name as selected
        reWriteSubsection( strSubsection );
					
        strSelectedSubsection = strSubsection
    }
}

function reWriteSubsection( strSubsection )
{
    DocumentObject( 'subsection_' + strSubsection , false ).innerHTML = "<a href=\"Javascript:GetSubsection('" + strSubsection + "')\" class=\"subhead_orange\">" + aSubsection[strSubsection] + "</a>"; 

    if ( strSelectedSubsection != "" )
        DocumentObject( 'subsection_' + strSelectedSubsection , false ).innerHTML = "<a href=\"Javascript:GetSubsection('" + strSelectedSubsection + "')\" class=\"subhead_blue\">" + aSubsection[strSelectedSubsection] + "</a>"; 
}