Thanks to the help of a friend named Matt Hinze, this javascript code can be simplified. Here’s the code:

<script language=”JavaScript” type=”text/javascript”>

var url = window.location.protocol == ‘https:’ ? ‘https://ssl.google-analytics.com/urchin.js’ : ‘http://www.google-analytics.com/urchin.js’;
document.write(‘<scr’+’ipt src=”‘ + url + ‘” type=”text/javascript”>’);
document.write(‘<scr’+’ipt src=”/google.js” type=”text/javascript”>’);

</script>