/* $Id: webapp.tracker.min.js 6328 2009-09-29 15:34:12Z mseckert $ */
function WebAppTracker(b){var a=this;b=typeof b=="function"?b(this):{};this.sent={};this.send={};this.addEvent=function(e,d,c){if(!(e in this.send)){this.send[e]={};}if(!(c in this.send[e])){this.send[e][c]=[];}if(!(e in this.sent)){this.sent[e]={};}if(!(c in this.sent[e])){this.sent[e][c]=[];}$.merge(this.send[e][c],d.replace(/[ ]*,[ ]*/g,",").split(","));};this.eventAlreadySent=function(e,c,d){d=d||"events";return $.inArray(c,this.sent[e][d])>-1;};this.call=function(c){$("<img>").attr("src",c);};this.omniture=(function(){var c="omniture";return{eventAlreadySent:function(d,e){e=e||"events";return $.inArray(d,a.sent[c][e])>-1;},addEvent:function(e,d){d=d||"events";a.addEvent(c,e,d);},track:function(d){d=d||"tl";if(typeof s=="object"&&$.isFunction(s[d])){for(sVarName in a.send[c]){s[sVarName]=a.send[c][sVarName].join(",");$.unique($.merge(a.sent[c][sVarName],a.send[c][sVarName]));}s[d]();for(sVarName in a.send[c]){s[sVarName]="";a.send[c][sVarName]=[];}}}};})(),this.isConfigured=function(c){return c in b&&$.isFunction(b[c]);};this.setTrackingEvent=function(d,c){if(this.isConfigured(d)){b[d](c);}};}