--- original.issuu.module	di jun  8 11:20:39 2010
+++ issuu.module	di jun  8 11:20:39 2010
@@ -101,6 +101,9 @@
     'issuu_formatter_ffpageflip' => array(
       'arguments' => array('element' => NULL),
     ),
+    'issuu_formatter_issuupres' => array(
+      'arguments' => array('element' => NULL),
+    ),
     'issuu_formatter_issuuthumb' => array(
       'arguments' => array('element' => NULL),
     ),
@@ -415,6 +418,11 @@
       'field types' => array('filefield'),
       'multiple values' => CONTENT_HANDLE_CORE,
     ),
+    'issuupres' => array(
+      'label' => t('Issuu filefield as presentation'),
+      'field types' => array('filefield'),
+      'multiple values' => CONTENT_HANDLE_CORE,
+    ),
     'issuuthumb' => array(
       'label' => t('Issuu thumbnail'),
       'field types' => array('filefield'),
@@ -450,6 +458,34 @@
   return swf(ISSUU_VIEWER, $options);
 }
 
+function theme_issuu_formatter_issuupres($element) {
+  global $base_url;
+  $data = $element['#item']['data']['doc_metadata'];
+  if (empty($data)) {
+    return '';
+  }
+  $options = array(
+    'params' => array(
+      'allowfullscreen' => 'true',
+      'menu' => 'false',
+    ),
+    'flashvars' => array(
+      'mode' => 'embed',
+      'viewMode' => 'presentation',
+      'layout' => ISSUU_LAYOUT,
+      'showFlipBtn' => 'false',
+      'documentId' => $data['documentId'],
+      'docName' => $data['name'],
+      'username' => $data['username'],
+      'loadingInfoText' => $data['title'],
+      'width' => '420',
+      'height' => '297',
+      'jsAPIClientDomain' => $base_url,
+    ),
+  );
+  return swf(ISSUU_VIEWER, $options);
+}
+
 function theme_issuu_formatter_issuuthumb($element) {
   if (empty($element['#item']['data']['doc_metadata'])) {
     return '';
