$(function() {
 $('tr.parent').css("cursor","pointer").attr("title","").click(function(){
   $(this).siblings('.child-'+this.id).toggle();
	var	isOpen = $(this).attr('rev');	
	if( isOpen == 'open'){
		$(this).find('img:first-child').attr('src','img/bkgr_arrow_right_table.gif');
		$(this).attr('rev','');
	} else {
		$(this).find('img:first-child').attr('src','img/bkgr_arrow_bottom_active.gif');
		$(this).attr('rev','open');
	}
  });
 $('tr[@class^=child-]').hide().children('td');
});
