How do I embed sharethis javascript into another javascript file?
<p>Basically here is the code I have, it adds the share buttons to the existing page. Now what I want to do, is add the sharethis button(which gets called via javascript) next to the twitter image(on the right)</p>

<p>Share javascript:    </p>

<pre><code> &lt;script type="text/javascript"&gt;
  (function() { 
   function replaceAll(text,strA,strB){while ( text.indexOf(strA) != -1)
  {text = text.replace(strA,strB);} return text;}
  var share = {"html":"&lt;div class=\"share\" style=\"text-align: left;\"&gt;\n\
  &lt;table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"&gt;\n\t\t&lt;tr&gt;\n\t\t\t
   &lt;td colspan=\"16\" style=\"padding: 0px;\"&gt;\n\t\t\t\t&lt;h4 style=\"margin-bottom:   
   0px\"&gt;Share this with others! &lt;\/h4&gt;\n\t\t\t&lt;\/td&gt;\n\t\t&lt;\/tr&gt;\n\t\t&lt;tr&gt;\n\t\t\t\n\t
   \t\t&lt;td align=\"center\" style=\"padding: 0px 0px 0px 0px;\"&gt;
   &lt;a href=\"http:\/\/twitter.com\/home?status=TTIITTLLEE (UURRLL)\" title=\"Click to 
   share this page on Twitter\"&gt;&lt;img src=\"http:\/\/img.site.com\/images\/sm\/16
   \/Twitter%2001.png\" border=\"0\"\/&gt;&lt;\/a&gt;&lt;\/td&gt;\n\t\t\t&lt;td width=\"0\"&gt;   &lt;\/td&gt;
   \n\t\t&lt;\/tr&gt;\n\t&lt;\/table&gt;\n&lt;\/div&gt;"}; 


        share.html = replaceAll(share.html, "UURRLL", location.href);
        share.html = replaceAll(share.html, "TTIITTLLEE", document.title);

        $(function() {
            $("#question .post-taglist").append("&lt;div style='float:right'&gt;"+share.html+"&lt;/div&gt;");
        });
    })();
    &lt;/script&gt;
</code></pre>

<p>Sharethis  button javascript that I'm trying to add:</p>

<pre><code>&lt;script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=394f24b1-b257-4daf-a92d-334c05a91b58&amp;amp;type=website&amp;amp;buttonText=More%20Services&amp;amp;post_services=email%2Csms%2Caim%2Cmyspace%2Clinkedin%2Cfriendfeed%2Cwordpress%2Cblogger%2Ctypepad%2Cbebo%2Clivejournal%2Cxanga"&gt;&lt;/script&gt;
</code></pre>

<p>Can anyone help me do this? Thanks</p>

<p>Can you guys also tell me where the new code should go? </p>
