// Set up LiveChat

initLiveChat = function ()
{

	try
	{
		if (typeof(lpUnit)=='undefined')
		{
			var lpUnit='estore-consumer';
		}
		
		lpAddVarsPost('page','unit',lpUnit);
		
		if (typeof(lpLanguage)=='undefined')
		{
			var lpLanguage='english';
		}
		
		lpAddVarsPost('session','language',lpLanguage);
		lpAddVarsPost('page','Section','estore');
		lpMTagConfig.defaultInvite = "chat-" + lpUnit+"-"+lpLanguage;
	}
	catch(e){}

	//lpMTagConfig.flashMovie = $('flsh_movie');
	lpMTagConfig.flashMovie = (navigator.appName.indexOf("Microsoft") != -1) ? document.getElementById("flsh_movie") : document["flsh_movie"];
	var lpButtonName = "chat-estore-consumer-english";
	if ( typeof (lpMTagConfig) != "undefined" )
	{
		lpMTagConfig.dynButton[lpMTagConfig.dynButton.length] = {'name': lpButtonName ,'pid':'bt_placeholder','ovr':'lpMTagConfig.db1'};
	}
}