
// *** START CONFIGURATION PARAMETERS ***
var xronosHostId = "chat1.askmoses.com"; // The host id or IP address of the Xronos Live2u server.
var theSiteId = "0"; // Your unique account id.
var theDeptId = "6"; // The department id associated with this button.  -1=No Specific Department.
var showNumWaiting = 0; // 1=Show the number of users waiting; 0=Don't show.
var leaveMessage = 1; // 1=Allow users to leave a message if no agents are online; 0=Don't allow.  Synchronize with server configuration.
var httpMode = "http://"; // http:// or https:// (for inclusion on secure pages)
var updateTime = 30; // How often (in seconds) to check for agent online/offline status changes.
// *** END CONFIGURATION PARAMETERS - DO NOT EDIT BELOW THIS LINE ***

var theAppName = navigator.appName;
var thePlatform = navigator.platform;

function launchChat (Q) {
	Q=escape(Q);
	var loginUrl = httpMode + xronosHostId + "/servlets/at?fn=13&topic=" + Q + "&siteId=" + theSiteId + "&deptId=" + theDeptId + "&ref=" + escape(document.URL);
	window.open(loginUrl, "userWin", "width=530,height=500,scrollbars=no,menubar=no,resizable=no,status=no");
}

function leaveMessage (Q) {
	Q=escape(Q);
	var leaveMessageUrl = "http://" + xronosHostId + "/servlets/leavemsg?Q=" + Q;  // The default 'Leave A Message' URL.
	window.open(leaveMessageUrl, "leaveMsg", "width=530,height=500,scrollbars=no,menubar=no,resizable=no,status=no");
}
