if (!GATracker) var GATracker = {

    Initialize: function() {
        if (typeof DO_GOOGLE_ANALYTICS_TRACKING != "undefined" && DO_GOOGLE_ANALYTICS_TRACKING == true) {
            $("a[rel='trk'], a[rel='ext'], a.trk, a.ext").click(function() {
            GATracker.TrackPageView($(this).attr("href"));
            });
        }
    },

    SetCustomVar: function(slot_number, var_name, value, scope) {
        if (typeof _gaq != "undefined") {
            _gaq.push(['_setCustomVar', slot_number, var_name, value, scope]);
        } else {
            if (typeof pageTracker != "undefined") {
                pageTracker._setCustomVar(slot_number, var_name, value, scope);
            }
        }
    },

    TrackEvent: function(category, action, optional_value) {
        if (typeof _gaq != "undefined") {
            _gaq.push(['_trackEvent', category, action, optional_value]);
        } else {
            if (typeof pageTracker != "undefined") {
                pageTracker._trackEvent(category, action, optional_value);
            }
        }
    },

    TrackPageView: function(page) {
        if (typeof _gaq != "undefined") {
            _gaq.push(['_trackPageview', page]);
        } else {
            if (typeof pageTracker != "undefined") {
                pageTracker._trackPageview(page);
            }
        }
    }

};

$(document).ready(function() { GATracker.Initialize(); })

