diff -ruNP itweak_upload.orig/itweak_upload.admin.inc itweak_upload/itweak_upload.admin.inc
--- itweak_upload.orig/itweak_upload.admin.inc	2009-09-17 13:46:00.000000000 +0400
+++ itweak_upload/itweak_upload.admin.inc	2009-11-30 10:00:43.000000000 +0300
@@ -40,6 +40,9 @@
   if (module_exists('thickbox')) {
     $ret['thickbox'] = t('Thickbox');
   }
+  if (module_exists('fancy_box')) {
+    $ret['fancybox'] = t('Fancybox');
+  }
   return $ret;
 }
 
diff -ruNP itweak_upload.orig/itweak_upload.module itweak_upload/itweak_upload.module
--- itweak_upload.orig/itweak_upload.module	2009-09-17 13:46:00.000000000 +0400
+++ itweak_upload/itweak_upload.module	2009-11-30 10:01:39.000000000 +0300
@@ -188,6 +188,9 @@
   if (module_exists('thickbox')) {
     return 'thickbox';
   }
+  if (module_exists('fancy_box')) {
+    return 'fancybox';
+  }
   return 'none';
 }
 
@@ -241,6 +244,14 @@
         break;
     }
   }
+  if (module_exists('fancy_box')) {
+    switch ($link_option) {
+      case 'fancybox':
+        $handler = ($group ? 'node_' . $group : 'node');
+        $options['attributes'] = array('class' => 'fancy_box', 'rel' => $handler);
+        break;
+    }
+  }
   return $options;
 }
 
