--- guestbook.module.ori	Fri Mar 02 16:10:10 2007
+++ guestbook.module	Sun Jul 29 00:17:16 2007
@@ -1,10 +1,7 @@
 <?php
-if ( module_exists( "spam") == true )
-{
-	if (file_exists("modules/spam/spam.module")) 
-		include_once  "modules/spam/spam.module";
-	else if (file_exists("sites/all/modules/spam/spam.module")) 
-		include_once  "sites/all/modules/spam/spam.module";	
+if ( module_exists( "spam") == true ) {
+  $spam_path = drupal_get_filename('module', 'spam');
+  include_once($spam_path);
 }
 /**
  * Flags for use in the "guestbook_mode" variable.
@@ -547,7 +544,7 @@ function guestbook_delete_entry_confirm(
   $form['uid'] = array('#type' => 'value', '#value' => $uid);
   return confirm_form(
     $form,
-    t('Are you sure you want to delete this guestbook entry?\n'),
+    t('Are you sure you want to delete this guestbook entry?'),
     'guestbook/'. $uid,
     theme('guestbook_entry', $uid, $entry, NULL, true),
     t('Delete'), t('Cancel'));
@@ -580,8 +577,11 @@ function theme_guestbook($uid, $entries,
   $output .= $form_location == 'above' ? guestbook_form_entry($uid) : '';
   $output .= $pager_position & GUESTBOOK_PAGER_ABOVE ? theme('pager', NULL, $limit, 0) : '';
 
+  $i = 0;
   foreach ($entries as $entry) {
-    $output .= theme('guestbook_entry', $uid, $entry, $comment_entry);
+    $zebra = ($i % 2) ? 'odd' : 'even';
+    $output .= theme('guestbook_entry', $uid, $entry, $comment_entry, $zebra);
+    $i++;
   }
   
   // form and pager below entries
@@ -591,12 +591,12 @@ function theme_guestbook($uid, $entries,
   return '<div class="guestbook">'. $output ."</div>\n";
 }
 
-function theme_guestbook_entry($uid, $entry, $comment_entry = NULL, $confirm_delete = false) {
+function theme_guestbook_entry($uid, $entry, $comment_entry = NULL, $zebra, $confirm_delete = false) {
   global $user;
   $output = '';
   $display = (array) variable_get('guestbook_display', array('date', 'email', 'website', 'comments'));
   
-  $output .= "\n<div class=\"comment guestbook-entry\">\n";
+  $output .= "\n<div class=\"comment guestbook-entry ". $zebra ."\">\n";
   if ($comment_entry == $entry['id']) {
     $output .= '<a name="comment-entry"></a>';
   }
