*** amazon.module.orig	Tue Sep  5 12:22:23 2006
--- amazon.module	Wed Sep  6 11:15:00 2006
***************
*** 530,535 ****
--- 530,537 ----
                       'callback' => 'amazon_search_page');
    }
    else {
+     theme('add_style', drupal_get_path('module', 'amazon') . '/amazon.css');
+ 
      $items[] = array('path' => 'node/add/amazon_node', 'title' => t('amazon node'),
        'access' => user_access('create amazon_node'));
    }
***************
*** 1235,1241 ****
      $blockcontent .= '</a>';
      $blockcontent .= "<a href=\"$selected_book->detailpageurl\" target=\"_blank\">";
      $blockcontent .= $selected_book->title;
!     $blockcontent .= '</a>';
      $blockcontent .= "<a href=\"$review_url\">";
      $blockcontent .= t('Read the review');
      $blockcontent .= '</a>';
--- 1237,1243 ----
      $blockcontent .= '</a>';
      $blockcontent .= "<a href=\"$selected_book->detailpageurl\" target=\"_blank\">";
      $blockcontent .= $selected_book->title;
!     $blockcontent .= '</a><br />';
      $blockcontent .= "<a href=\"$review_url\">";
      $blockcontent .= t('Read the review');
      $blockcontent .= '</a>';
***************
*** 1251,1257 ****
    }
    if ($selected_book->rating) {
      $module_dir = dirname(drupal_get_filename('module', 'amazon'));
!     $output .= "rating: <img src=\"$module_dir/images/rating$selected_book->rating.gif\" alt=\"$selected_book->rating\" /><br />";
    }
    $blockcontent .= '</div>';
    return $blockcontent;
--- 1253,1259 ----
    }
    if ($selected_book->rating) {
      $module_dir = dirname(drupal_get_filename('module', 'amazon'));
!     $output .= "rating: <span class=\"amazon-rating-$selected_book->rating\">$selected_book->rating<span></span></span><br />";
    }
    $blockcontent .= '</div>';
    return $blockcontent;
***************
*** 1260,1266 ****
  function theme_amazon_node($node) {
    $module_dir = dirname(drupal_get_filename('module', 'amazon'));
    $output = '';
!   $output .= '<table>';
    $output .= '<tr>';
    $output .= "<td><a href=\"$node->detailpageurl\" target=\"_blank\">";
    if ($node->mediumimageurl) {
--- 1262,1268 ----
  function theme_amazon_node($node) {
    $module_dir = dirname(drupal_get_filename('module', 'amazon'));
    $output = '';
!   $output .= '<table class="amazontools">';
    $output .= '<tr>';
    $output .= "<td><a href=\"$node->detailpageurl\" target=\"_blank\">";
    if ($node->mediumimageurl) {
***************
*** 1284,1290 ****
    }
  
    if ($node->rating) {
!     $output .= "rating: <img src=\"$module_dir/images/rating$node->rating.gif\" alt=\"\" /><br />";
    }
  
    if ($node->asin) {
--- 1286,1292 ----
    }
  
    if ($node->rating) {
!     $output .= "rating: <span class=\"amazon-rating-$node->rating\">$node->rating<span></span></span><br />";
    }
  
    if ($node->asin) {
