﻿function HelpClose()
{
    $( 'HelpPanel' ).className = "HelpPanelHidden";
    $( 'HelpText' ).innerHTML = "";
}

function HelpShowTitleCopy( title, div_id )
{
    $( 'HelpPanelTitle' ).innerHTML = title;
    $( 'HelpPanel' ).className = "HelpPanelVisible";
    $( 'HelpText' ).innerHTML = $( div_id ).innerHTML;
}

function HelpShowTitleString( title, str )
{
    $( 'HelpPanelTitle' ).innerHTML = title;
    $( 'HelpPanel' ).className = "HelpPanelVisible";
    HelpSetText( str );
}

function HelpSetText( str )
{
    $( 'HelpText' ).innerHTML = str;
}

function ShowNewsDescription( i )
{
    var elt = $( 'NewsDescription' + i );
    if( elt != null )
    {
        if( elt.className == "NewsDescriptionVisible" )
            elt.className = "NewsDescriptionHidden";
        else    
            elt.className = "NewsDescriptionVisible";
    }
}

