diff --git a/www/sites/all/modules/raphael/graphael/graphael.module b/www/sites/all/modules/raphael/graphael/graphael.module
index b658a08..ed70ca1 100644
--- a/www/sites/all/modules/raphael/graphael/graphael.module
+++ b/www/sites/all/modules/raphael/graphael/graphael.module
@@ -52,8 +52,8 @@ function graphael_add($files = array(), $minified = TRUE, $scope = 'header', $de
   foreach ($files as $file) {
     if (in_array($file, array('raphael', 'bar', 'dot', 'line', 'pie')) && !isset($loaded_files[$file])) {
       $file_name = ($minified) ? "g.$file-min.js" : "g.$file.js";
-      $js_path = RAPHAEL_PATH . '/graphael/js/' . $file_name;
-      drupal_add_js($js_path, 'module', $scope, $defer);
+      $js_path = defined('GRAPHAEL_PATH') ? GRAPHAEL_PATH . '/' : RAPHAEL_PATH . '/graphael/js/';
+      drupal_add_js($js_path . $file_name, 'module', $scope, $defer);
       $loaded_files[$file] = $js_path;
     }
   }
@@ -86,7 +86,7 @@ function template_preprocess_graphael(&$vars) {
   $path = drupal_get_path('module', 'graphael');
   drupal_add_js($path .'/graphael.jquery.js');
   drupal_add_js($path .'/graphael.js');
-  graphael_add($vars['method']);
+  graphael_add($vars['method'], isset($vars['attr']['minified']) ? $vars['attr']['minified'] : TRUE);
 
   // Auto id assignment.
   static $autoid = 0;
