﻿lpMTagConfig.inviteChatStart = function (objName) {
    var inviteObj = eval(objName);
    if (inviteObj==null) {
        return true;
    }

    var divObj = inviteObj.GetObj(inviteObj.divID);
    if (divObj==null) {
        return true;
    }

var inviteHTML = '';
inviteHTML += '<!--MASTHEAD_BEGIN -->';
inviteHTML += '<table border="0" cellpadding="0" cellspacing="0" id="v14-pop-mast" width="311" style="margin:0px;padding:0px 0px 0px;">';
inviteHTML += '<tr><td class="bbg"><img alt="IBM&reg;" border="0" height="30" src="//www.ibm.com/i/v14/t/ibm-logo-small.gif" width="55"/></td><td align="right" class="bbg"><h1>Chat Now</h1></td></tr></table>';
inviteHTML += '<!--MASTHEAD_END -->';
inviteHTML += '<!--CONTENT_BEGIN -->';
inviteHTML += '<img src="/shop/americas/content/home/liveperson_power/power_v15.jpg" alt="" width="311" height="90" border="0"/>';
inviteHTML += '<table width="311" border="0" cellspacing="0" cellpadding="0" id="v14-body-table" style="background:#FFF;color:#000;margin:0px;padding:0px 0px 0px;">';
inviteHTML += '<tr></tr>';
inviteHTML += '<tr><td width="20"><img alt="" height="1" src="//www.ibm.com/i/c.gif" width="10"/></td><td><img alt="" height="6" src="//www.ibm.com/i/c.gif" width="1"/><br />';
inviteHTML += '<!-- POPUP_TEXT_BEGIN -->';
inviteHTML += '<br />An IBM sales representative can assist you with selecting the products and services that best suit your needs.&nbsp;&nbsp;Click "Start Chat" for a live text chat with an IBM representative.<br /><br />';
inviteHTML += '<table width="240" border="0" cellspacing="0" cellpadding="0"><tr valign="middle"><td colspan="4"><img alt="" height="6" src="//www.ibm.com/i/c.gif" width="10"/></td></tr>';
inviteHTML += '<td><img src="//www.ibm.com/i/v14/buttons/arrow_rd.gif" border="0" width="21" height="21" alt="" align="middle" /></td>';
inviteHTML += '<td>&nbsp;&nbsp;<b><a class="fbox" name="needRef" id="needRef" href="#" onclick="return ' + inviteObj.objName + '.AcceptInvite();">Start&nbsp;Chat</a></b></td>';
inviteHTML += '<td width="10"><img alt="" height="1" src="//www.ibm.com/i/c.gif" width="60"/></td>';
inviteHTML += '<td><img src="//www.ibm.com/i/v14/buttons/cancel_rd.gif" border="0" width="21" height="21" alt="" align="middle" /></td>';
inviteHTML += '<td>&nbsp;&nbsp;<b><a class="fbox" href="#" onclick="return ' + inviteObj.objName + '.CloseInvite();">No&nbsp;Thanks</a></b></td></tr></table>';
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;" />';
inviteHTML += '<br />';
inviteHTML += '<!-- POPUP_TEXT_END -->';
inviteHTML += '<img alt="" height="13" src="//www.ibm.com/i/c.gif" width="1"/></td>';
inviteHTML += '<td width="10"><img alt="" height="1" src="//www.ibm.com/i/c.gif" width="10"/></td></tr></table>';
inviteHTML += '<!--FOOTER_BEGIN-->';
inviteHTML += '<table summary="" border="0" cellpadding="0" cellspacing="0" width="311"/> <tr class="bbg"> <td height="19"> &nbsp; </td>';
// inviteHTML += '<td align="right"><a href="" class="mainlink" onclick="return ' + inviteObj.objName + '.CloseInvite();">Close [x]</a><span class="spacer">&nbsp;&nbsp;</span></td>';
inviteHTML += '</tr></table>';

	divObj.innerHTML = inviteHTML;
	divObj.style.width = "311px";
	divObj.style.visibility = "visible";
	
return true;
};
 