﻿function recordEvents(category, action, label)
{
    try
    {
        _gaq.push(['_trackEvent', category, action, label]);
    }
    catch (err) { }
}

function recordLinks(link, category, action, label)
//inbound or outbound
{
    try
    {
        _gaq.push(['_trackEvent', category, action, label]);
        setTimeout('document.location = "' + link.href + '"', 100);   //strictly to give GA time to record the click
    }
    catch (err) { }
}

function recordFlashLinks(url, category, action, label)
//used for flash and items that don't have <a> tags
{
    try
    {
        _gaq.push(['_trackEvent', category, action, label]);
        setTimeout('document.location = "' + url + '"', 100);   //strictly to give GA time to record the click
    }
    catch (err) { }
}
