--- C:/Users/Miris/Downloads/Drupal/inline/inline.theme.inc.orig	Wed May 19 17:18:08 2010
+++ C:/Users/Miris/Downloads/Drupal/inline/inline.theme.inc	Wed May 19 17:17:10 2010
@@ -44,8 +44,36 @@
   }
 
   if (variable_get('inline_link_img', '1')) {
+    $img_display = variable_get('inline_img_display', 'none');
+    switch ($img_display) {
+      case 'lightbox2':
+        $class = '';
+		     $rel = 'lightbox';
+        break; 
+      case 'thickbox':
+        $class = ' thickbox';
+        $rel = 'thickbox';
+        break;
+      case 'colorbox':
+        $class = ' colorbox';
+        $rel = 'colorbox';
+        break;
+      case 'fancybox':
+        $class = ' fancy_box';
+        $rel = 'colorbox';
+        break;
+      case 'shadowbox':
+        $class = ' shadowbox';
+        $rel = 'shadowbox';
+        break;
+      default:
+        $class = '';
+        $rel = 'none';
+      }
+
     $attributes = array(
-      'class' => 'inline-image-link',
+      'class' => 'inline-image-link' . $class,
+      'rel' => $rel,
       'title' => t("View") .': '. $title,
     );
     $html = l($image, $file->filepath, array('attributes' => $attributes, 'html' => TRUE));
