">Printable Version</a></li>
          <?php 
}
?>
          <li class="share-this"><!-- AddThis Button BEGIN --><script type="text/javascript">addthis_pub  = 'seekingmichigan'; addthis_offset_top = -10; addthis_offset_left = 5; addthis_options = 'delicious, email, digg, facebook, google, technorati, twitter, myspace,  more';</script><a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()">Share This</a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script><!-- AddThis Button END --></li>
          <li class="view-collection"><a href="/custom/seek_results.php?CISOROOT=<?php 
echo $alias;
?>
">View Collection</a></li>
        </ul>
      </div>
    </div>
    <?php 
if ($_GET['show_all']) {
    for ($i = 1; $i < count($compound_items); $i++) {
        $current_item = get_sub_item($alias, $compound_items, $i, $requested_itnum);
        Partial::basic_view($alias, $current_item, $parent_item, $isImage, $seek_search_params, $search_position, $seek_search_params, $isthisCompoundObject, $previous_item, $next_item, $current_item_num, $totalitems);
    }
} else {
    if ($isthisImage) {
        include "discover/pan_view.php";
    } else {
        Partial::basic_view($alias, $display_item, $parent_item, $isImage, $seek_search_params, $search_position, $seek_search_params, $isthisCompoundObject, $previous_item, $next_item, $current_item_num, $totalitems);
    }
}
?>
  </div>
</div>
<div id="main-whitebox-left"></div>
<div id="main-whitebox-right"></div>
<?php 
if ($rc == -1) {
    print "No permission to access this item<br>\n";
    exit;
}
$compound_items = parseCPD($alias, $parent_itnum, $data, $type);
$current_item_index_num = 0;
$current_item_num = 0;
if (isset($_GET["CISOSHOW"])) {
    for ($n = 0; $n < count($compound_items); $n++) {
        if ($_GET["CISOSHOW"] == $compound_items[$n]["ptr"]) {
            $current_item_index_num = $compound_items[$n]["index"];
            $current_item_num = $n;
            break;
        }
    }
} else {
    for ($n = 0; $n < count($compound_items); $n++) {
        if ($compound_items[$n]["ptr"] != "") {
            $current_item_index_num = $compound_items[$n]["index"];
            $current_item_num = $n;
            break;
        }
    }
}
$previous_item_num = $current_item_num - 1;
$next_item_num = $current_item_num + 1;
$totalitems = count($compound_items) - 1;
$current_item = get_sub_item($alias, $compound_items, $current_item_num, $requested_itnum);
$previous_item = $previous_item_num >= 1 ? get_sub_item($alias, $compound_items, $previous_item_num, $parent_itnum) : null;
$next_item = $next_item_num <= $totalitems ? get_sub_item($alias, $compound_items, $next_item_num, $parent_itnum) : null;
    <body>
      <?php 
    if ($base_type == 'image') {
        ?>
        <img src="<?php 
        echo $display_item['settings']['full_image'];
        ?>
" />
      <?php 
    } elseif ($base_type == 'compound') {
        ?>
        <?php 
        for ($i = 1; $i < count($compound_items); $i++) {
            ?>
          <?php 
            $item = get_sub_item($alias, $compound_items, $i, $compound_items[$i]['ptr']);
            ?>
          <?php 
            if ($item['settings']) {
                ?>
            <img src="<?php 
                echo $item['settings']['full_image'];
                ?>
" />
          <?php 
            }
            ?>
        <?php 
        }
        ?>
      <?php