﻿// JScript File
function showPost(ID)
{
    if(ID!=-1)
    {
	    var PostBody = $('#PostBody' + ID);
    //	var plusImg = document.getElementById('postPlus' + ID);
        var PostRow = document.getElementById('PostRow' + ID);
        var PostAuthor = document.getElementById('PostAuthor' + ID);
        var PostDivider = document.getElementById('PostDivider' + ID);
        var PostTitle = $('#PostRow' + ID + ' .Title');
        
	    PostTitle.toggleClass('Open');

	    if (PostBody.css('display') == 'none')
	    {
		    PostBody.slideDown();
    //		plusImg.src = '/images/gui/forum/bullet-lightblue.gif';
    // 		PostRow.className = 'PostOpened';
 		    PostRow.style.backgroundColor = '#F5F6F9';
 		    PostDivider.style.display = 'none';
 		    PostDivider.style.backgroundColor = '#F5F6F9';
 		    //PostTitle.css({'fontWeight': 'normal'});
    // 		PostAuthor.style.color = ''
	    }
	    else
	    {
		    PostBody.slideUp();
 		    PostDivider.style.display = 'block';
    //		plusImg.src = '/images/gui/forum/bullet-blue.gif';
            PostArrow.src = '/Style/Site/yellow_arrow.png';
	    }
	}
}
function hideAbout(ID)
{
    var ForumsAboutManager = document.getElementById(ID);
    ForumsAboutManager.style.display = 'none';
}

