I'm having issues trying to track each link in my banner rotater with google analytics. Here is the code the outbound links are now set up with an outbound link tracking site, but when I try to add the event tracking code it makes the banner rotator not show up on the site. Here is the code and thanks for helping.

<script language="Javascript" type="text/JavaScript">
var ad = new Array()
ad[0]='<a href="http://9nl.be/i7ru/" target="_blank" ><img src="http://2.bp.blogspot.com/-O13FJcD1-IM/UsH01MpTv1I/AAAAAAAAHH0/WDNBxteFbbk/s1600/motoheaven.jpgE" height="300" width="300" border="0"></a>'
ad[1]='<a href="http://9nl.be/lbw4" target="_blank"><img src="http://4.bp.blogspot.com/-ng3ZWRf5kFQ/UrS5VqEwMgI/AAAAAAAAHFc/-RdJploZvOI/s1600/double+take+banner+(1).jpg" height="300" width="300" border="0"></a>'
ad[2]='<a href="http://9nl.be/uljj" target="_blank"><img src="http://3.bp.blogspot.com/-Hf6snT4Q88Q/Uqu-_ROqBAI/AAAAAAAAHDU/hqMhcJ_qyrs/s1600/tuggerdis.png" height="300" width="300"border="0"></a>'
ad[3]='<a href="http://9nl.be/uagj" target="_blank"><img src="http://1.bp.blogspot.com/-c7H56Y8-f4w/UoJ6awEMySI/AAAAAAAAGwE/xSHJaSCUkwM/s320/SEPT_2007_LOGO.gif" height="300" width="300" border="0"></a>'
ad[4]='<a href="http://9nl.be/vg90" target="_blank"><img src="http://i.picasion.com/pic76/c57c3611609250678e66630b11fce4b8.gif" height="300" width="300" border="0"></a>'


function randomorder(targetarray, spacing){

var randomorder=new Array()
var the_one
var z=0
for (i=0;i<targetarray.length;i++)
randomorder[i]=i

while (z<targetarray.length){
the_one=Math.floor(Math.random()*targetarray.length)
if (targetarray[the_one]!="_selected!"){
document.write(targetarray[the_one]+spacing)
targetarray[the_one]="_selected!"
z++
}
}
}

</script>
<script language="Javascript" type="text/javascript" ></script>
<script>
randomorder(ad, ' ')
</script>