Fade out function problem

Fade out function problem

Hi Dears,
How  I can  make a fade Out function that works on three separated Div , it have to get the Id of Div as an argument , I tried to do that but it couldn't maintain the status of previous Div ,