var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24593335-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function recordOutboundLink(link, category, action) {
try {
var myTracker=_gat._getTrackerByName();
_gaq.push(['myTracker._trackEvent', category , action ]);
setTimeout('document.location = "' + link.href + '"', 100)
}catch(err){}
}
function addAllLinks() {
var a = document.getElementsByTagName('a');
for(i = 0; i < a.length; i++){
//a[i].href.indexOf(location.host) == -1 &&
if (a[i].href.match(/^http:\/\//i)){
a[i].onclick = function(){_gaq.push(['_trackEvent', 'outgoing_links', this.href.replace(/^http:\/\//i, '')]);}
}
}
}
window.onload = function(){
addAllLinks();
}