So this is what I've done so far:

<script type="text/javascript" src=""></script>
<script type="text/javascript">
_uacct = "UA-<uaid>";
Nifty(...); // rounded edges calls that i want done before i do my sometimes slow tracking js calls

// tracking calls
var mybloglogurl = "<mblid>";
var mybloglogscript = document.createElement("script");
mybloglogscript.setAttribute("type", "text/javascript");
mybloglogscript.setAttribute("src", mybloglogurl);

However, I would like to move the google analytics urchin.js to load in my windows.onload function. However, when I move it there and do the document.body.append thing, it doesn't look like it blocks until the JS is loaded. So if I try to call the urchinTracker() function immediately after, I get a JS error. Any thoughts on how I can load google analytics and then call the function in my windows.onload?