function switchComments(show)
{
	if(show)
	{
		$('#comments-link').attr('class', 'arr-up');
		$.cookie('commentsVisible', 1, {path: '/'});
		$('#col-right .comm-folding').removeClass('hidden');				
	}
	else
	{
		$('#comments-link').attr('class', 'arr-down');
		$.cookie('commentsVisible', 0, {path: '/'});
		$('#col-right .comm-folding').addClass('hidden');
	}
	
}

$(document).ready(function()
{
	// $('#spamAnswer').val($('#spamHelp').val()/ (6*(1+2+3+1)) );
	// $('#spam-shield').addClass('out');
	
				
	switchComments($.cookie('commentsVisible') == 1)

	
	$('#comments-link').click(function()
	{
				
		if($(this).attr('class') == 'arr-up')
		{		
			$('#header').ScrollTo(800);
			setTimeout( 'switchComments(0)', 820);			
													
		}
		else { 					
			switchComments(1);
			$('#comments-link').ScrollTo(500);					
		}
		
		return false;
	})
	
	
	
});
