<link rel="stylesheet" type="text/css" href="catalog/template/default/css/product.css">
<script type="text/javascript" src="catalog/javascript/ajax/jquery.js"></script>
<script type="text/javascript" src="catalog/javascript/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/javascript/thickbox/thickbox.css" />
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
  <div class="heading">
    <div class="left"><?php echo $heading_title; ?></div>
    <div class="right"><?php echo $price; ?></div>
  </div>
  <div id="product">
    <div class="a"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="thickbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a><br />
      <?php echo $text_enlarge; ?></div>
    <div class="breadcrumb">
      <?php foreach ($breadcrumbs as $breadcrumb) { ?>
      <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
      <?php } ?>
    </div>
    <?php echo $description; ?>
    <?php if ($options) { ?>
    <p><b><?php echo $text_options; ?></b></p>
    <table class="b">
      <?php foreach ($options as $option) { ?>
      <tr>
        <td><?php echo $option['name']; ?>:</td>
        <td><select name="option[<?php echo $option['option_id']; ?>]">
            <?php foreach ($option['value'] as $option_value) { ?>
            <option value="<?php echo $option_value['product_to_option_id']; ?>"><?php echo $option_value['name']; ?>
            <?php if ($option_value['price']) { ?> 
            <?php echo $option_value['prefix']; ?><?php echo $option_value['price']; ?>
            <?php } ?>
            </option>
            <?php } ?>
          </select></td>
      </tr>
      <?php } ?>
    </table>
    <?php } ?>
    <?php if ($images) { ?>
    <div class="heading"><?php echo $text_images; ?></div>
    <?php foreach ($images as $image) { ?>
    <div class="images"><a href="<?php echo $image['popup']; ?>" title="<?php echo $image['title']; ?>" class="thickbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $image['title']; ?>" alt="<?php echo $image['title']; ?>" /></a><br />
      <?php echo $image['title']; ?><br />
      <?php echo $text_enlarge; ?></div>
    <?php } ?>
    <?php } ?>
  </div>
  <div class="buttons">
    <table>
      <tr>
        <td align="left"><input type="button" value="<?php echo $button_reviews; ?>" onclick="location='<?php echo $review; ?>'" /></td>
        <td align="right"><input type="submit" value="<?php echo $button_add_to_cart; ?>" /></td>
      </tr>
    </table>
  </div>
  <input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
</form>
