--- /Users/christian.bruhn/www/dev/printfriendly/printfriendly.module
+++ /Users/christian.bruhn/www/htdocs/web01/measuring-progress.eu/sites/all/modules/printfriendly/printfriendly.module
@@ -153,11 +153,21 @@
     ),
     'external' => TRUE,
   );
+
+  $customCSS = 'var i = 0;';
+  if (file_exists(drupal_get_path('theme',$GLOBALS['theme']) . "/css/printfriendly.css")) {
+    $customCSS = "var pfCustomCSS = '" . drupal_get_path('theme',$GLOBALS['theme']) . "/css/printfriendly.css';";
+  }
+
   if ($popup) {
     return array(
       '#markup' => l($link_content, 'http://www.printfriendly.com/print', $options),
       '#attached' => array(
-        'js' => array($js => array('type' => 'external', 'scope' => 'footer')),
+        'js' => array(
+          $customCSS => array('type' => 'inline', 'scope' => 'footer'),
+          $js => array('type' => 'external', 'scope' => 'footer'),
+        ),
+
       ),
     );
   }
