function _phptemplate_variables($hook, $vars) { if ($hook == 'page') { drupal_add_js(base_path() . path_to_theme().'/js/common.js', 'theme'); drupal_add_css(base_path() . path_to_theme() . '/nicemenus.css', 'theme', 'screen'); } return array(); }