/* ----------------------------------------------------------------
 * toggles visibility of code blocks in C/C++ related posts
 * or any other posts with a blockquote.
 * requires "prototype" and "scriptaculous" js libraries.
 * ----------------------------------------------------------------
 */
function toggleCodeBlock(codeBlockId)
{
    var toggleLink = document.getElementById('toggle_' + codeBlockId);
    //var codeBlock  = document.getElementById(codeBlockId);

    if (toggleLink.innerHTML == 'show')
    {
        //codeBlock.style.display = '';
		Effect.BlindDown(codeBlockId);
		//Effect.SlideDown(codeBlockId);
		//Effect.Appear(codeBlockId);
        toggleLink.innerHTML = 'hide';
    }
    else
    {
        //codeBlock.style.display = 'none';
		Effect.BlindUp(codeBlockId);
		//Effect.SlideUp(codeBlockId);
		//Effect.Fade(codeBlockId);
        toggleLink.innerHTML = 'show';
    }
} // toggleCodeBlock()
