[jQuery] Need

[jQuery] Need

Hi, I recently started learning about jQuery and I have not worked much on javascript. I am basically a server side java developer.
I need some help from experienced jQuery developers for below issue..
I have a table which has 6 menu items (anchor tags)... Selected Menu Item will have
black.jpg image in <td> tag's background while all the other tabs will have red background. There is blackl.jpg and blackr.jpg image in case of first and last selected menu and redl.jpg and redr.jpg in other cases....
What should I write in my jQuery function?
<table width="632" border="0" cellspacing="0" cellpadding="0">      
          <tr>
            <td width="7" height="26" align="right"><img src="images/blackl.jpg" width="7" height="26" /></td-->
            <td width="70" align="center" background="images/blackbg.jpg" ><a href="<s:url value="url"/>" class="menu">A</a></td>                   
            <td width="90" align="center" background="images/rboxbg.jpg" ><a href="<s:url value="url"/>" class="menu">B</a></td>
                    
            <td width="90" align="center" background="images/rboxbg.jpg" class="menu"><a href="<s:url value="url"/>" class="menu">C</a></td>        
               
            <td width="129" align="center" background="images/rboxbg.jpg"><a href="<s:url value="url"/>" class="menu">D</a></td>
        
            <td width="100" align="center" background="images/rboxbg.jpg"><a href="<s:url value="url"/>"  class="menu">E</a></td>
     
            <td width="83" align="center" background="images/rboxbg.jpg"><a href="<s:url value="F"/>" class="menu">F</a></td>
           
            <td width="10" align="left"><img src="images/menur.jpg" width="7" height="26" /></td>
           
          </tr>       
         
     </table>
<span class="HcCDpe"><span class="JDpiNd"></span></span>