    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-16963581-2']);
    _gaq.push(['_setDomainName', '.valueline.com']);
    _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);
    })();

    jQuery('a').click(function () {
            var $a = jQuery(this);
            var href = $a.attr('href');

            if (href == null) href = '';

            if ((href.match(/^http/i)) && (!href.match(document.domain))) {
                var category = 'outgoing';
                var event = 'click';
                var label = href;
		_gaq.push(['_trackEvent', category, event, href]);
            }
            else {
                if (href.match(/\.(doc|docx|pdf|xls|xlsx|ppt|pptx|zip|rar|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3|swf|exe)$/i)) {
                    var category = 'download';
                    var event = 'click';
                    var label = href;
		    _gaq.push(['_trackEvent', category, event, href]);
                }
                else {
                    if (href.match(/^mailto:/i)) {
                        var category = 'email';
                        var event = 'click';
                        var label = href;
			_gaq.push(['_trackEvent', category, event, href]);
                    }
                }
            }
    });
