How to add new script to <head> section

Hi, im looking to add additional scripts to my cs-cart section.



Heres the scripts id like to add

<br />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script><br />
<script type="text/javascript"><br />
$(document).ready(function () {$('#tabs').tabify();});(function($){$.fn.extend({tabify:function(){function getHref(a){hash=$(a).find('a').attr('href');if(hash)return hash.substring(0,hash.length-4);else return false}function setActive(a){$(a).addClass('active');if(getHref(a))$(getHref(a)).show();else return false;$(a).siblings('li').each(function(){$(this).removeClass('active');$(getHref(this)).hide()})}return this.each(function(){var a=this;$(this).find('li a').each(function(){$(this).attr('href',$(this).attr('href')+'-tab')});function handleHash(){if(location.hash)setActive($(a).find('a[href='+location.hash+']').parent())}if(location.hash)handleHash();setInterval(handleHash,100);$(this).find('li').each(function(){if($(this).hasClass('active'))$(getHref(this)).show();else $(getHref(this)).hide()})})}})})(jQuery);<br />
</script><br />
<script type="text/javascript"><br />
function profile_menu(id) {<br />
  var d = document.getElementById(id);<br />
  if(d.style.display == 'none') {<br />
    d.style.display = 'block';<br />
  } else {<br />
    d.style.display = 'none';<br />
  }<br />
}<br />
</script><br />

```<br />
<br />
if i add the scripts to my index.tpl in [skin_name]/customer/index.tpl i get the following smarty error "Fatal error: Smarty error: [in index.tpl line 18]: syntax error: unrecognized tag: $('#tabs').tabify(); (Smarty_Compiler.class.php, line 445) in /home/tigeris/public_html/lib/templater/Smarty.class.php on line 1095" and if i add the scripts to the meta.tpl nothing at all changes, the scripts dont load nor are they listed. Im really lost with this, just cant figure it out :/ Ive also tried adding them to the scripts.tpl file in common_templates but to no avail. Any help is apprecaited on this im just as lost as can be, never guessed adding a few scripts to cs-cart would be this difficult !<br />
<br />
If its any help heres my edited index.tpl (the head section)<br />
```php
<br />
{* $Id: index.tpl 7454 2009-05-14 08:42:13Z angel $ *}<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml" lang="{$smarty.const.CART_LANGUAGE|lower}"><br />
<head><br />
{strip}<br />
<title><br />
{if $page_title}<br />
	{$page_title}<br />
{else}<br />
	{foreach from=$breadcrumbs item=i name="bkt"}<br />
		{if !$smarty.foreach.bkt.first}{$i.title}{if !$smarty.foreach.bkt.last} :: {/if}{/if}<br />
	{/foreach}<br />
	{if !$skip_page_title}{if $breadcrumbs|count > 1} - {/if}{$lang.page_title_text}{/if}<br />
{/if}<br />
</title><br />
{/strip}<br />
<script type="text/javascript"><br />
$(document).ready(function () {$('#tabs').tabify();});(function($){$.fn.extend({tabify:function(){function getHref(a){hash=$(a).find('a').attr('href');if(hash)return hash.substring(0,hash.length-4);else return false}function setActive(a){$(a).addClass('active');if(getHref(a))$(getHref(a)).show();else return false;$(a).siblings('li').each(function(){$(this).removeClass('active');$(getHref(this)).hide()})}return this.each(function(){var a=this;$(this).find('li a').each(function(){$(this).attr('href',$(this).attr('href')+'-tab')});function handleHash(){if(location.hash)setActive($(a).find('a[href='+location.hash+']').parent())}if(location.hash)handleHash();setInterval(handleHash,100);$(this).find('li').each(function(){if($(this).hasClass('active'))$(getHref(this)).show();else $(getHref(this)).hide()})})}})})(jQuery);<br />
</script><br />
<script type="text/javascript"><br />
function profile_menu(id) {<br />
  var d = document.getElementById(id);<br />
  if(d.style.display == 'none') {<br />
    d.style.display = 'block';<br />
  } else {<br />
    d.style.display = 'none';<br />
  }<br />
}<br />
</script><br />
{include file="meta.tpl"}<br />
<link href="{$images_dir}/icons/favicon.ico" rel="shortcut icon" /><br />
{include file="common_templates/styles.tpl" include_dropdown=true}<br />
{include file="common_templates/scripts.tpl"}<br />
<br />
</head><br />
<br />

```<br />
<br />
Also, im on the latest version of cs-cart.

I was also frustrated in this until I found the solution somewhere in the forum. Try wrapping your javascript in {literal}