Is there a better, more jQuery-ish way of handling this image substitution?
var image = $(obj).children(\"img\"); if ($(image).attr(\"src\") == \"Images/TreeColl
Why set a variable when it isn't needed?
$(obj).children("img").toggle( function(){ $(this).attr("src", "Images/TreeExpand.gif"); }, function(){ $(this).attr("src", "Images/TreeCollapse.gif"); } );