/* 
BEGIN Basline-Configuration Script
(this should be called AFTER the section-specific Configuration scripts) 
*/
// Variable to be populated in function that triggers the click action
//--------------------------------------
function lpUASaction(lpUASvarName, lpUASvarValue){
var currentTime = new Date();
var myTime = currentTime.getTime();
var lpUASimgAction = new Image();
lpUASimgAction.id="LPImageAction";
lpUASimgAction.name="LPImageAction";
lpUASimgAction.src="https://sales.liveperson.net/hc/" + lpNumber + "/cmd/url/?site=" + lpNumber + "&date=" + myTime + "&page=https://sales.liveperson.net/hcp/width/img1.gif&info=ConversionAction&SESSIONVAR!" + lpUASvarName + "=" + lpUASvarValue;
}
//--------------------------------------
var lpNumber;
if (typeof(lpNumber)=="undefined") {
lpNumber = "50549199"; 
}
var lpServerName;
if (typeof(lpServerName)=="undefined") {
lpServerName = "sales.liveperson.net";
}
var tagVars;
var lpUASexistingTagVars=null;
if (typeof(tagVars)=="undefined") {
tagVars = ""; 
} else {
lpUASexistingTagVars = tagVars;
}
var lpUASlanguage;
if (typeof(lpUASlanguage)=="undefined") {
lpUASlanguage="english";
}
var lpUASimagesFolder;
if (typeof(lpUASimagesFolder)=="undefined")
lpUASimagesFolder = lpUASunit + "-" + lpUASlanguage;
if (lpUASimagesFolder.indexOf("((shared))")==0)
lpUASimagesFolder = lpUASimagesFolder.substring("((shared))".length);
var lpUASbuttonImagesFolder;
if (typeof(lpUASbuttonImagesFolder)=="undefined")
lpUASbuttonImagesFolder = lpUASimagesFolder +"/button";
if (typeof(lpUASbuttonType)!="undefined")
lpUASbuttonImagesFolder += "-" + lpUASbuttonType;
var lpUASInvitationImagesFolder;
if (typeof(lpUASInvitationImagesFolder)=="undefined")
lpUASInvitationImagesFolder = lpUASimagesFolder +"/invitation";
var lpUASimageURL;
if (typeof(lpUASimageURL)=="undefined" && typeof(lpUASimagesPath)!="undefined")
lpUASimageURL = lpUASimagesPath + "/" + lpUASInvitationImagesFolder;
var lpPosX = lpUASinvitePositionX;
var lpPosY = lpUASinvitePositionY;
if (typeof(lpUASunit)!="undefined")
tagVars = tagVars + '&PAGEVAR!unit=' + escape(lpUASunit);
if (typeof(lpUASlanguage)!="undefined")
tagVars = tagVars + '&SESSIONVAR!language=' + escape(lpUASlanguage);
if (typeof(lpUASwebsite)!="undefined")
tagVars = tagVars + '&PAGEVAR!UASwebsite=' + escape(lpUASwebsite);
if (typeof(lpUASwebsite)!="undefined" && typeof(lpUASunit)!="undefined")
tagVars = tagVars + '&PAGEVAR!UASwebsiteUnit=' + escape(lpUASwebsite+":"+lpUASunit);
if (typeof(lpUAScontext)!="undefined")
tagVars = tagVars + '&PAGEVAR!UAScontext=' + escape(lpUAScontext);
var lpUAScontext;
if (typeof(lpUAScontext)=="undefined") {
lpUAScontext = document.title;
}
var lpCustomImageURL;
if (typeof(lpCustomImageURL)=="undefined")
lpCustomImageURL = lpUASimageURL + "/";
if (typeof(lpUASinvitationTitle)!="undefined") {
lpCustomInvitationTitle = lpUASinvitationTitle;
} else {
lpCustomInvitationTitle="Invitation popup window for live chat with a representative";
}
if (typeof(lpUASinvitationCloseTitle)!="undefined") {
lpCustomInvitationCloseTitle = lpUASinvitationCloseTitle;
} else {
lpUASinvitationCloseTitle="Close chat invitation";
}
if (typeof(lpUASbuttonTitle)=="undefined") {
lpUASbuttonTitle = "Live Chat";
}
if (typeof(lpSaveRejectStatus)=="undefined") {
lpSaveRejectStatus = true;
}
if (typeof(lpRejectStateTimeout)=="undefined") {
lpRejectStateTimeout = 45;
}
function lpdbButtonAction() {}
/* 
END Configuration Script
*/
