var LSM_FullPath = "http://livesiteman.liveoffice.com/lpchat/"; var LSM_Hide = 0; var LSM_SiteUID = "3046594C-C22F-4F25-9CD2-433005739E00"; var LSM_TextLink = ""; var LSM_TimeOut = 10*1000; var LSM_CoBrowseDisable = ""; function LSM_IsCobrowse() { return ((location.href.indexOf('&cobrowse=yes') != -1) || (location.href.indexOf('?cobrowse=yes') != -1)) } var hwnd = null; function LSM_EnterChat() { //if (hwnd == null) hwnd = window.open(LSM_FullPath + "default.asp?SiteName=" + LSM_SiteUID, "LSM_Chat", "width=500,height=325,resizable=0,scrollbars=no,menubar=no,status=no"); //else // hwnd.focus(); return false; } function LSM_EnterForceChat(Name) { //if (hwnd == null) hwnd = window.open(LSM_FullPath + "default.asp?SiteName=" + LSM_SiteUID + "&Name=" + escape(Name),"LSM_Chat","width=500,height=325,resizable=0,scrollbars=no,menubar=no,status=no"); //else // hwnd.focus(); return false; } function LSM_Refresh() { if ((document.LSM_Image.width == 2) && (document.LSM_Image.height == 2)) { LSM_EnterForceChat("Guest"); } document.LSM_Image.src = LSM_FullPath + "MonitorRefresh.asp?Hide=" + LSM_Hide +"&SiteUID=" + escape(LSM_SiteUID); setTimeout("LSM_Refresh()", LSM_TimeOut); } function LSM_WriteLink() { if(!LSM_IsCobrowse()) { var src = LSM_FullPath + "MonitorRefresh.asp?Hide=" + LSM_Hide +"&SiteUID=" + escape(LSM_SiteUID) + "&Referer=" + escape(document.referrer) + "&Cookie=" + escape(document.cookie) + "&First=1&PageTitle=" + escape(document.title) + "&CoBrowseDisable=" + LSM_CoBrowseDisable; document.write(''); if(LSM_TextLink != "") document.write("
"+LSM_TextLink); document.write('
'); setTimeout("LSM_Refresh()", LSM_TimeOut); } } function getCenter(_x,_y) { if(!_x) _x = 300; if(!_y) _y = 50; if (window.screen) { if(screen.availWidth) { x = (screen.availWidth - _x) / 2; y = (screen.availHeight - _y) / 2; } else if (screen && screen.width) { x = (screen.width - _x) / 2; y = (screen.height - _y) / 2; } } if (x < 0) { x = 10; } else if (x > 800) { x = 500; } if (y < 0) { y = 10; } else if (y > 600) { y = 500; } return 'screenX='+x+ ',left='+x+ ',screenY='+y+ ',top='+y; } function popup(_url, _ttl, _wid, _hig, _lft, _top, _sbr, _tbr, _lbr, _stt, _mbr, _rsz) { if(!_url) _url=""; if(!_ttl) _ttl="popup"; if(!_wid) _wid="200"; if(!_hig) _hig="200"; if(!_lft) _pos=getCenter(_wid,_hig); else _pos=",screenX=" + _lft + ",left=" + _lft + ",screenY=" + _top + ",top=" + _top; if(!_sbr) _sbr="yes"; if(!_tbr) _tbr="no"; if(!_lbr) _lbr="no"; if(!_stt) _stt="no"; if(!_mbr) _mbr="no"; if(!_rsz) _rsz="no"; popupWin = window.open(_url, _ttl, "width=" + _wid + ",height=" + _hig + "," + _pos + ",scrollbars=" + _sbr + ",toolbar=" + _tbr + ",location=" + _lbr + ",status=" + _stt + ",menubar=" + _mbr + ",resizable=" + _rsz); setTimeout('popupWin.focus()', 200); return false; } LSM_WriteLink();