Where should one add the js file (D7) to be attached to the custom theme's template.php file I have js file which needs to be attached to template.php file. 
Can I directly add the js file in template.php file ?
I am using drupal_add_js() but 
should I add it inside the functions of template.php 
or 
should I add it directly into template.php file
I have the code in d6 which has added the drupal_add_js() in template.php file 
without including it in any of the functions?
Quick example of use in your theme's template.php 

function MYTHEME_preprocess_page(&amp;$variables) {
    drupal_add_js(drupal_get_path('theme', 'MYTHEME') .'/mytheme.js', 'file');
}


Reference : https://api.drupal.org/comment/14344#comment-14344