window.VDCtoTL = function () {
	
	var TLexists = function () {
		return window.TeaLeaf != null && window.TeaLeaf != 'undefined' && window.TeaLeaf != undefined;
	};
	
	return {
		tlQueueKey : function (e) {
			if (TLexists() && TeaLeaf.Client && TeaLeaf.Client.tlQueueKey)  {
				if (!e) e = window.event;
				TeaLeaf.Client.tlQueueKey(e);
				
			}
		},
	
		tlAddEvent : function (e) {
			if (TLexists() && TeaLeaf.Client && TeaLeaf.Client.tlAddEvent) {
				if (!e) e = window.event;
				TeaLeaf.Client.tlAddEvent(e);
			}
		},
	
		tlProcessNode : function (el) {
			if (TLexists() && TeaLeaf.Client && TeaLeaf.Client.tlProcessNode)
				TeaLeaf.Client.tlProcessNode(el);
		}
	};
}();
