﻿// This function will display an explination of public/private computers and enable the "hide explanation" hyper
// link instead of the "show explanation" link.
function ShowExplanation( )
{       
    //Shap "Show Explanation" for "Hide Explanation"
    DisplayHyperlink( $get( 'lnkHideExplanation' ) );    
    HideHyperlink( $get ( 'lnkShowExplanation' ) );       
    
    //Show the explanation divs  
    DisplayObject( $get ( 'trPublicCompExplanation' ) );
    DisplayObject( $get ( 'trPrivateCompExplanation' ) );
    
    var MoreInfoTr = document.getElementById('MoreInfoTr');
    
    DisplayObject ( MoreInfoTr );
}

// This function will hide the explination of public/private computers and enable the "show explanation" hyper
// link instead of the "hide explanation" link.
function HideExplanation( )
{    
    //Shap "Hide Explanation" for "Show Explanation"    
    DisplayHyperlink( $get('lnkShowExplanation') );        
    HideHyperlink( $get('lnkHideExplanation') );
    
    //Hide the explanation divs
    HideObject( $get('trPublicCompExplanation') );
    HideObject( $get('trPrivateCompExplanation') );
    
    var MoreInfoTr = document.getElementById('MoreInfoTr');
    HideObject ( MoreInfoTr );
}

function DisplayHyperlink( hyperlink )
{
    if ( hyperlink != null )
    {        
        hyperlink.className = "hyperlinkVisible"       
    }
}

function HideHyperlink ( hyperlink )
{
    if ( hyperlink != null )
    { 
        hyperlink.className = "hyperlinkHidden"       
    } 
}
