function SwitchMsgState(mesId)
{
    if($j("#msgB"+mesId).css('display')=='none')
    {
        $j("#msgA"+mesId).animate({opacity: 'toggle'}, 'fast',function(){
                            $j("#msgB"+mesId).animate({ opacity: 'toggle'}, 'fast');   
                        });
        $j("#msgC"+mesId).animate({opacity: 'toggle'}, 'fast',function(){
                            $j("#msgD"+mesId).animate({ opacity: 'toggle'}, 'fast');   
                        });
    }
    else
    {
        $j("#msgB"+mesId).animate({opacity: 'toggle'}, 'fast',function(){
                            $j("#msgA"+mesId).animate({ opacity: 'toggle'}, 'fast');   
                        });
        $j("#msgD"+mesId).animate({opacity: 'toggle'}, 'fast',function(){
                            $j("#msgC"+mesId).animate({ opacity: 'toggle'}, 'fast');   
                        });
    }
}    
