Fascinating..
For javascript this works
viewer.addVariable("ampersand", "&");
For flash you must do this..
viewer.addVariable("ampersand", "%26");
to get a naked ampersand as a variable. to be able to use an ampersand with txtadd for JS.
and if you forget the quotes.. add_js completely EXPLODES into chaos with drupal.