| 
 
				 Re: {literal} or no {literal} with Javascript code? 
 You don't technically need it around all JavaScript.  Just JavaScript that has brackets {} that will interfere the Smarty parsing engine.  However, most code does have {}, so you generally need the {literal} tags. |