Index: lf_statistics/loopfusestatistics.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/loopfuse/lf_statistics/loopfusestatistics.js,v
retrieving revision 1.1
diff -u -p -r1.1 loopfusestatistics.js
--- lf_statistics/loopfusestatistics.js	22 Jul 2008 05:50:24 -0000	1.1
+++ lf_statistics/loopfusestatistics.js	5 Nov 2008 20:05:11 -0000
@@ -1,8 +1,7 @@
-// $Id: loopfusestatistics.js,v 1.1 2008/07/22 05:50:24 mindlace Exp $
+// $Id$
 
 if (Drupal.jsEnabled) {
   $(document).ready(function() {
-
     $('a').click( function() {
       var lf = Drupal.settings.loopfusestatistics;
       // Extract the domain from the location (the domain is in domain[2]).
@@ -19,18 +18,21 @@ if (Drupal.jsEnabled) {
       if (isInternal.test(this.href)) {
         // Is download tracking activated and the file extension configured for download tracking?
         if ((lf.trackDownload && isDownload.test(this.href)) || isInternalSpecial.test(this.href)) {
-          // Keep the internal URL for LoopFuse website overlay intact.
-            pageTracker._trackPageview(this.href.replace(isInternal, ''));
+          // Notify loopfuse of the download.  This is similar to adding an
+          // onClick attribute to the anchor tag as described in the
+          // documentation at:
+          // http://www.loopfuse.org/wiki/index.php/UserGuide:Administration#File_Download_Tracking
+          _lf_remora_tracker(this.href);
         }
       }
       else {
         if (lf.trackMailto && this.href.indexOf('mailto:') == 0) {
           // Mailto link clicked.
-          pageTracker._trackPageview('/mailto/' + this.href.substring(7));
+          _lf_remora_tracker('/mailto/' + this.href.substring(7));
         }
         else if (lf.trackOutgoing) {
           // External link clicked. Clean and track the URL.
-            pageTracker._trackPageview('/outgoing/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--'));
+          _lf_remora_tracker('/outgoing/' + this.href.replace(/^(https?|ftp|news|nntp|telnet|irc|ssh|sftp|webcal):\/\//i, '').split('/').join('--'));
         }
       }
     });
