Drupal6: Display block for one node type

This is a little snippet I came up with to get a block to show up on a single node type:

<?php
$menu
= menu_get_item();
if (
$menu['path'] == 'node/%' && isset($menu['page_arguments'][0]->type)) {
  return
$menu['page_arguments'][0]->type == 'story';
}
?>

It uses the node type stored in the menu system so you don't have to match arg(0) etc.

clarify

I'm not sure how to use this, but it seems like it might be useful for me. I cannot wrap my mind around how to do the following (also not sure about relationships vs arguments to use to access each of the content types). I hope you can help me!!!

I have artists, artwork, staff, and gallery content types

On the homepage I want to show a block of all the artists (using a thumbnail of their art and name underneath) displayed in a vertical carousel style.

On each artist page I want to show a block of all the artist's artwork (using thumbnails with title underneath) in a vertical carousel style.

On the staff page I want to show a block of all the staff, also in a vertical carousel style

And on the gallery page I want to show a block carousel of thumbnail images of the gallery.

In all 4 cases above the thumbnails of the images link to a detail page of the node, but I also want the same block to appear on that node page. For example, I click on a piece of art on the artist page, I go to the artwork's node, but I also want the same carousel of artwork for that particular artist to appear.

The block in all cases would be in the 3rd column... so it would appear as if the layout was the same on every page just that the content in the vertical carousel was changing.

I started using purely CCK, but am wondering now whether it might have been easier to use taxonomy. I'm also confused about whether I access all these subsets via relationships or arguments, and how.

Also, how do I get the appropriate block on the appropriate page?

It's all too much for my little brain!

I know all this is a lot to ask... but you seem to really know what you're doing!