diff -urp asset_ori/asset.module asset_jk/asset.module
--- asset_ori/asset.module	2008-02-05 17:31:38.000000000 +0100
+++ asset_jk/asset.module	2008-02-10 22:01:12.906250000 +0100
@@ -351,13 +351,31 @@ function asset_lightbox($assets, $previe
   $imgcount   = 0;
   $imgdisplay = 0;
   $firstimg   = "";
+  
   foreach ($assets as $asset) {
     $a = asset_load(array('aid' => $asset['aid']));
     if (in_array($a->extension, $is_image)) {
+      // JK Code: Extract the imagecache namespace from within the views formatter
+      $use_lb2_imagecache = false;
+      if (strpos($preview, 'lightbox2][') !== false) {
+        list($null, $namespace) = explode('][', $preview, 2);
+        $rules = _imagecache_get_presets();
+        if (in_array($namespace, (array) $rules)) {
+          $use_lb2_imagecache = true;
+        }
+        /* JK: Test Print the formatter ImagecacheNamespace */
+        // print $namespace . "<br/>";
+      }
+      // End JK Code
       // If it's an image and imagecache configuration has been done, display the imagecached version
       if (function_exists('theme_imagecache') && variable_get('asset_imagecache', '')) {
         $img  = theme('imagecache', variable_get('asset_imagecache', ''), $a->filepath, $asset['caption'], $asset['caption']);
       }
+      /* JK:  If the Lightbox2/ Imagecache has been set in the Views Option */
+      else if($use_lb2_imagecache == true) {
+        $img  = theme('imagecache', $namespace,$a->filepath, $asset['caption'], $asset['caption']);
+      }
+      /* End JK */
       else {
         $img  = theme('image', $a->filepath, $asset['caption'], $asset['caption']);        
       }
diff -urp asset_ori/modules/asset_content.inc asset_jk/modules/asset_content.inc
--- asset_ori/modules/asset_content.inc	2008-01-29 22:31:48.000000000 +0100
+++ asset_jk/modules/asset_content.inc	2008-02-11 21:43:18.640625000 +0100
@@ -44,15 +44,25 @@ function asset_field_settings($op, $fiel
 }
 
 /**
- * Implementation of cck hook_field_formatter_info()
+ * Implementation of cck hook_field_formatter_info
+* JK: Modified version for use of Imagecache and Lightbox2 in the Views Options
  */
 function asset_field_formatter_info() {
-  return array(
+   $formatters = array(
     'default' => array(
       'label' => 'Default',
       'field types' => array('asset'),
-    ),
-  );
+    ));
+    if (module_exists('asset') && module_exists('imagecache')) {
+    $rules = _imagecache_get_presets();
+    foreach ($rules as $ruleid => $rulename) {
+      $formatters['lightbox2]['. $rulename] = array(
+        'label' => 'Lightbox2: '. $rulename,
+        'field types' => array('asset'),
+      );
+    }
+  }
+  return $formatters;
 }
 
 /**
@@ -60,7 +70,7 @@ function asset_field_formatter_info() {
  */
 function asset_field_formatter($field, $item, $formatter, $node) {
   if(!empty($item['aid'])) {
-    return asset_lightbox(array($item));
+    return asset_lightbox(array($item), $formatter);
   }
 }
 
diff -urp asset_ori/modules/asset_imagecache.inc asset_jk/modules/asset_imagecache.inc
--- asset_ori/modules/asset_imagecache.inc	2008-02-05 16:58:20.000000000 +0100
+++ asset_jk/modules/asset_imagecache.inc	2008-02-08 22:22:25.750000000 +0100
@@ -4,11 +4,13 @@ function imagecache_asset_settings(){
   $form[] = array('#value' => '<p>Select which imagecache presets should be available to use as asset formatters.</p>');
   $presets = _imagecache_get_presets();
   foreach($presets as $id=>$name){
+    
     $formats[$name] = array(
       'name' => $name . ' (imagecache)',
       'types' => array('jpg','gif','png'),
       'description' => _imagecache_asset_description($id),
     );
+    print ($id);
     $form['asset_imagecache_preset_'.$id] = array(
       '#type' => 'checkbox',
       '#title' => $name,
