Getting the content type in Template.php
You can put hook_preprocess_node() in your template.php.

function THEMENAME_preprocess_node(&amp;$variables) {
  $node = $variables['node'];
  if ($node-&gt;type == 'your_type') {
    //Add the JavaScript file.
    drupal_add_js('/path/to/jsfile.js')
  }
}