/*
 * Live person doesn't appear to have a setting to extend the life of the
 * window being shown. This script makes a small modification to their display
 * image function, which begins the timer to hide the image.
 */

// Hide the image after 10 seconds
var lpHide = 10*1000;

function hcShowTheImage()
{
	visitorStatus = "ENGAGE_STATUS";
    var channel = (lpVoiceEngageFlag) ? "voice" : "web";
    setTimeout("inviteShown('" + channel + "')", lpHide);

	hcShowImage = true;

	hcSetImage("need_help","need_help_off.gif");
	hcSetImage("need_close","close_off.gif");

	hcAnimate = true;

    if (hcOrigHcPos == null) hcOrigHcPos = hcPos;
    if (hcOrigHumanStep == null) hcOrigHumanStep = HumanStep;

    hcPos = hcOrigHcPos;
    HumanStep = hcOrigHumanStep;
    hcDir = HumanStep;

    hcPreload();

	hcAnimateStart();
}


