if (!com || typeof(com) == "undefined") {
    var com = {}
}
if (!com._4505meats || typeof(com._4505meats) == "undefined") {
    com._4505meats = {}
}
if (!com._4505meats.events || typeof(com._4505meats.events) == "undefined") {
    com._4505meats.events = {}
}

// Tracker

if (! (com._4505meats.events.Tracker) || typeof(com._4505meats.events.Tracker) == "undefined") {
    com._4505meats.events.Tracker = {}
}

com._4505meats.events.Tracker = function() {
    this.basePath = "/evnt/";
    this.currentPath = "";
}

com._4505meats.events.Tracker.prototype.add = function(valueStr) {
    if ( valueStr.length == 0 ) {
	return false;
    }
    this.currentPath += encodeURIComponent(valueStr) + "/";
}

com._4505meats.events.Tracker.prototype.track = function() {
    var img = new Image();
    var now = new Date();
    img.src = this.basePath + this.currentPath + "?" + encodeURIComponent(now.valueOf());
    this.currentPath = "";
} 

