﻿var aTags= document.getElementsByTagName("a");
for(var i = 0; i < aTags.length; i++)
{
    theLink = aTags[i].href;
    if(theLink != "")
    {
        if(theLink.match("http://"))
        {
            if(!theLink.match("nonlinear.ca") && !theLink.match("nonlinearcreations.com"))
            {
                aTags[i].onclick = function() {
                    theLink = this.href;
                    theLink = theLink.replace("http://","");
                    theLink = theLink.replace("www.","");
 			        pageTracker._trackPageview('/outgoing/' + theLink); // was urchinTracker
		        }
            }
        }
    }
}
