var winloc = window.location;

function lpVSEventSend(vsTrackAction)
{
	WebTracker.send(vsTrackAction,"click","chat");
}

lpMTagConfig.inviteChatShown = function(objName) {
	var inviteObj = eval(objName);
	try{
	//Visual Sciences tracking call
	lpVSEventSend("CanadaChat_Invite_Window");
	} catch(e){}
	return true;
};

lpMTagConfig.inviteChatAccept = function(objName) {
	var inviteObj = eval(objName);
	try{
	//Visual Sciences tracking call
	lpVSEventSend("CanadaChat_Invite_Accept");
	} catch(e){}
	return true;
}

lpMTagConfig.inviteChatDeclined = function(objName) {
	var inviteObj = eval(objName);
	try{
	//Visual Sciences tracking call
	lpVSEventSend("CanadaChat_Invite_Decline");
	} catch(e){}
	return true;
}

lpMTagConfig.db1 = new Object();
lpMTagConfig.db1.dbClicked = function (objName, status) {
    objRef = eval(objName);	
    if (status == 'online') {
	try{
	//Visual Sciences tracking call
	lpVSEventSend("CanadaChat_DynBut_Accept");
	} catch(e){}
    }
	return true;
};

function visitorHere() {
	var lpUAScurrentTime = new Date();
	var lpUASmyTime = lpUAScurrentTime.getTime();
}

if (typeof(lpMTagConfig.ifVisitorCode)=='undefined') lpMTagConfig.ifVisitorCode = new Array();
lpMTagConfig.ifVisitorCode[lpMTagConfig.ifVisitorCode.length] = visitorHere;

