How to include jplayer.js on all pages I am using module - jplayer (http://drupal.org/project/jplayer), in the jplayer.module i've found this piece of code, since i am very weak in php i need a help :)

/**
 * Add the jPlayer library to the page.
 *
 * @param $add
 *   By default this function will add jPlayer to the page JavaScript array
 *   directly. If wanting to store the jPlayer file as an #attached property,
 *   set this to FALSE and jplayer_add() will only return the needed array
 *   suitable for use as an #attached property.
 */
function jplayer_add($add = TRUE) {
  static $added = FALSE;

  $directory = variable_get('jplayer_directory', 'sites/all/libraries/jplayer');
  $return = FALSE;
  if (file_exists($directory . '/jquery.jplayer.min.js')) {
    $filepath = $directory . '/jquery.jplayer.min.js';
  }
  elseif (file_exists($directory . '/jquery.jplayer.js')) {
    $filepath = $directory . '/jquery.jplayer.js';
  }

  if (isset($filepath)) {
    $jplayer_js = jplayer_get_file_path('jplayer.js');    
    $jplayer_css = jplayer_get_file_path('jplayer.css'); 
    $settings = array('jPlayer' =&gt; array(
      'swfPath' =&gt; base_path() . variable_get('jplayer_directory', 'sites/all/libraries/jplayer'),
      'autoPlay' =&gt; (int) variable_get('jplayer_autoplay', ''),
    ));
    if ($add) {
      drupal_add_js($filepath);
      drupal_add_js($jplayer_js);
      drupal_add_css($jplayer_css);
      if (!$added) {
        drupal_add_js($settings, 'setting');
        $added = TRUE;
      }
    }
    $return = array(
      'js' =&gt; array(
        array('data' =&gt; $filepath),
        array('data' =&gt; $jplayer_js),
        array('data' =&gt; $settings, 'type' =&gt; 'setting'),
      ),
      'css' =&gt; array(
        array('data' =&gt; $jplayer_css),
      ),
    );
  }

  return $return;
}


What should i modify in this code to show .js files on every page, not only when a node with a player loaded.

UPDATED. The question is - what to modify in this code to attach jplayer js files on every page, not when im viewing a node with a jquery player.
The easiest way to add a JS file to your theme is to add it in the .info file:

scripts[] = js/my_script.js


Be sure to put your js file in a js folder inside your folder's theme.

Reference: Adding JavaScript to your theme or module  (works in D7 too)