﻿/// <reference path="../../../Scripts/jquery-1.3.2-vsdoc.js" />
// analytics object, where all external functions 
// are registered and later are executed when the click event happend
var analytics = {
    //    funcs: [],
    //    register: function(fn) {
    //        this.funcs.push(fn);
    //    },
    //    click: function(obj) {
    //        $.each(this.funcs, function() {
    //            this(obj);
    //        });
    //    }
    settings: { url : ''},
    init: function(obj) {
        $.extend(this.settings, obj);
    },
    tracking: function(obj) {
        var d = {
            url: document.URL,
            link: '',
            tag: ''
        };

        $.extend(d, obj);
        $.ajax({
            type: 'POST',
            url: this.settings.url,
            data: d,
            dataType: 'json',
            cache: false,
            async: true,
            success: function(ret) { }
        });
    }
}