lpMTagConfig.inviteChatStart = function (objName) {
    var inviteObj = eval(objName);
    if (inviteObj==null) {
        return true;
    }

    var divObj = inviteObj.GetObj(inviteObj.divID);
    if (divObj==null) {
        return true;
    }
	
	// localisation config - texts/links
    var cc = 'us';
	var lc = 'en';
	var h1 = 'Chat with an IBM representative';
	var h2 = 'Live Chat now available!';
	var p1 = 'Click the "Chat now" button to begin your text chat session with an IBM representative now.';
	var btnYes = 'Chat&nbsp;now';
	var btnNo = 'No&nbsp;thanks';
	var p3 = '';
	var p4 = 'Chat service provided by IBM in conjunction with LivePerson';
	var lblLegal = 'Terms of use';
	var lblPrivacy = 'Privacy';
	var lblClose = 'Close';
    
    // start of popup body definition
	var inviteHTML = '';

    // popup masthead part
	inviteHTML += '<div id="top" style="height:30px; width:311px; float:left; ;background-color:#000000"> <img alt="IBM&reg;" border="0" height="30" src="http://www.ibm.com/i/v14/t/ibm-logo-small.gif" width="55" style="float:left"/>';
    inviteHTML += '<h1 style="color:#FFFFFF; font-size:16px; font-family:arial,helvetica,sans-serif; float:right; padding-top:6px; padding-right:6px;">'+h1+'<\/h1>';
    inviteHTML += '<\/div>';

	// popup brand/intro image
	if (screen.height >= 768) {
    	inviteHTML += '<img src="http://www-304.ibm.com/shop/americas/content/home/liverperson_sysz/lp-z-v15-image.jpg" alt="" width="311" height="90" border="0"/>';
		}

	
    // popup main body - content DIV start
    inviteHTML += '<div id="content" style="border-left:1px solid #000000; border-right:1px solid #000000; width:291px; float:left; padding-left:9px; padding-right:9px; text-align:left; background-color:#FFFFFF; padding-bottom:30px;">';

	
	// popup main body - headers, intro text and buttons
    inviteHTML += '<p style="margin-top:20px;"><strong>'+h2+'<\/strong>';
    inviteHTML += '<br /><br />'+p1+'<\/p>';
    inviteHTML += '<p> <\/p>';
    inviteHTML += '<div id="buttons" style="width:291px; height:25px; margin-bottom:10px; display:block; padding-left:-1px;">';
    inviteHTML += '<div id="button2" style="width:140px; float:left;">';
    inviteHTML += '<img style="float:left;" src="//www.ibm.com/i/v14/buttons/chat_rd.gif" border="0" width="21" height="21" alt="" />';
    inviteHTML += '<strong>';
    inviteHTML += '<a style="float:left; height:16px; width:60px; padding-top:3px; padding-left:10px;" class="fbox" name="needRef" id="needRef" href="#" onclick="return ' + inviteObj.objName + '.AcceptInvite()">'+btnYes+'<\/a>';
    inviteHTML += '<\/strong>';
    inviteHTML += '<\/div>';
    inviteHTML += '<div id="button1" style="width:100px; float:left; margin-right:10px;">';
    inviteHTML += '<img style="float:left;" src="//www.ibm.com/i/v14/buttons/cancel_rd.gif" border="0" width="21" height="21" alt="" /> <strong>';
    inviteHTML += '<a style="float:left; height:16px; width:60px; padding-top:3px; padding-left:10px;" class="fbox" href="#" onclick="return ' + inviteObj.objName + '.CloseInvite();">'+btnNo+'<\/a>';
    inviteHTML += '<\/strong>';
    inviteHTML += '<\/div>';
    inviteHTML += '<\/div>';
	
	// popup - legal text
	inviteHTML += '<div id="text4"><p>'+p4+'</p><\/div>';
	
	// popup - mandatory init objects - DO NOT DARE TO REMOVE THESE!!!!
	inviteHTML += '<img name="'+ inviteObj.imgCloseID +'" id="'+ inviteObj.imgCloseID +'" alt="" src="//www.ibm.com/i/c.gif" border="0" height="1" width="1" style="display:none;" />';
	inviteHTML += '<img name="'+ inviteObj.imgNeedHelpID +'" id="'+ inviteObj.imgNeedHelpID +'" alt="" src="//www.ibm.com/i/c.gif" border="0" height="1" width="1" style="display:none;" />';
	
	// popup main body - content DIV end
	inviteHTML += '<\/div>';
	
    // popup footer part
	inviteHTML += '<div id="bottom" style="height:19px; width:311px; float:left; background-color:#000000;">';
    inviteHTML += '<div id="bottom1" style="height:19px; width:203px; float:left; text-align:left; padding-left:8px;"> <a style="float:left; height:16px; width:109px; padding-top:3px; font-size:9px ! important;" href="javascript:void(window.open(\'http://www.ibm.com/legal/'+cc+'/'+lc+'/\'))" class="ur-link">'+lblLegal+'<\/a> <img style="margin-left:10px; margin-right:10px; margin-top:5px; float:left;" width="1" height="10" src="http://www.ibm.com/i/v14/t/footer-divider.gif" alt="" /> <a style="float:left; height:16px; width:60px; padding-top:3px; font-size:9px ! important;" href="javascript:void(window.open(\'http://www.ibm.com/privacy/'+cc+'/'+lc+'/\'))" class="ur-link">'+lblPrivacy+'<\/a><\/div>';
    inviteHTML += '<div id="bottom1" style="height:19px; width:90px; float:left; padding-left:7px;">';
    inviteHTML += '<a style="float:right; height:19px; width:65px; padding-top:3px; font-size:9px ! important;" href="#" onClick="return ' + inviteObj.objName + '.CloseInvite();" class="mainlink">'+lblClose+' [x]<\/a>';
    inviteHTML += '<\/div>';
    inviteHTML += '<\/div>';
    inviteHTML += '<\/div>';
	
    divObj.innerHTML = inviteHTML;
	divObj.style.width = "311px";
	
    return true;
};

lpMTagConfig.InviteOpenChat = function (url, name, params) {
    params = 'top=90,left=170,width=390,height=450,menubar=no,scrollbars=0';
    window.open(url, name, params);
}

// *****************************************************************
