Unable to add JavaScript on a page I am using this, but I don't understand why it's not working.

if ($_SERVER['REQUEST_URI'] == '/node/1') { 
  drupal_add_js(drupal_get_path('theme', 'sanskrit').'/sites/all/themes/sanskrit/scripts/jquery-1.4.3.min.js', 'inline'); 
  drupal_add_js('/sites/all/themes/sanskrit/scripts/scripts/jquery.nivo.slider.pack.js');   
} 


What I want to do is adding specific JavaScript files when the user is viewing the front page.
This should do it:

function MYTHEME_preprocess_page(&amp;$vars) {
  if (drupal_is_front_page()) {
    drupal_add_js(drupal_get_path('theme', 'MYTHEME') . '/MYSCRIPTS/myscript.js');
    $vars['scripts'] = drupal_get_js();
  }
}


FYI:  You'd use drupal_get_js in case any modules are also using hook_preprocess_page and setting new scripts themselves.

Also, I wouldn't just add a newer version of jQuery in willy nilly.  Try either jQuery Update or jQuery Multi