var m_crMessage=new Image();var m_crbNewMsg=false;var m_crbPopupInit=false;var m_crbShowingPopup=false;var m_crbInitChat=false;var m_crbNS=document.layers?true:false;var m_crbIE=document.all?true:false;var m_crbStd=(document.getElementById&&!m_crbIE);var m_crPopupTimer=0;var m_crState=0;var m_crIn=false;var m_crbInviteSetup=false;var m_crSID="053c665b436b457ba0f3f888c2b46944";var m_crMonitor=true;function CRFindObject(C,B){var A=null;if(!B){B=document}if(B.all){if(!(A=B[C])){A=B.all[C]}}if(A!=null){return A}if(B.layers){for(i=0;i"){return }var A=CRFindObject("crMsgData",document);if(A){var D=CRFindObject("crMsgAuthor",document);if(D){if(B.auth){D.innerHTML=B.auth}}if(B.crmsg!=""){A.innerHTML=B.crmsg}var C=CRFindObject("crAgentImg",document);if(C!=null){C.src="http://cr.goodlifellc.com/crvc.dll?gid=100&t=AIE&sid=053c665b436b457ba0f3f888c2b46944&dt="+escape(new Date())}CRShowInvite()}return false}function CRSetupPopup(){if(m_crbPopupInit){return }m_crbPopupInit=true;var B="";document.write(B)}CRSetupPopup();function OnCloseInvite(){var A=CRFindObject("crInviteEng",document);A.style.visibility=m_crbNS?"hide":"hidden";m_crState=1;m_crbShowingPopup=false;var B=new Image;B.src=CRGetURL()}function CRSetupInvite(){if(m_crbInviteSetup){return }m_crbInviteSetup=true;var A="";document.write(A)}CRSetupInvite();function GetCRTextMainFrm(){if(m_crbIE){return document.crTranscriptFrm}else{return window.frames["crTranscriptFrm"]}}function NoMonitor(){m_crMonitor=false}function CROpenChat(){m_crbShowingPopup=false;if(m_crPopupTimer){clearInterval(m_crPopupTimer)}var D=CRFindObject("crPopup",document);D.style.visibility=m_crbNS?"hide":"hidden";m_crbInitChat=true;var B=false;if((typeof (A)!="undefined")){if(A){A.focus();B=true}}if(B==false){var A=window.open("http://cr.goodlifellc.com/crvc.dll?gid=100&page="+document.location+"&sid="+escape(m_crSID)+"&dt="+escape(new Date()),"crWnd100","toolbar=0,location=no,status=0,scrollbars=no,resizable=0,width=460,height=433,top=50,left=50")}var C=CRFindObject("crInviteEng",document);if(C){C.style.visibility=m_crbNS?"hide":"hidden"}m_crbShowingPopup=false}function CRIsValid(A){return((typeof (A)!="undefined")&&(A!=null)&&(A!=""))}function CRGetURL(){var A="?t=crvt&scver=5";A+="&gid=100";A+="&title="+escape(document.title);A+="&crvDT=1265699493&crvPID=119cb0ca3d7b4b1ebb2a80bdbc5927a8&crDept=&url="+escape(window.document.URL);A+="&crdate="+escape(new Date());A+="&crvS="+m_crState;A+="&appname="+escape(navigator.appName);A+="&userAgent="+escape(navigator.userAgent);A+="&referrer="+escape(window.document.referrer);A+="&appversion="+escape(navigator.appVersion);A+="&userLanguage="+(navigator.appName=="Netscape"?navigator.language:navigator.userLanguage);A+="&platform="+navigator.platform;if(CRIsValid(m_crSID)){A+="&sid="+m_crSID}return"http://cr.goodlifellc.com/crvc.dll"+A}function CRMovePopup(A){var C=CRFindObject(A,document);if(C==null){return }var B=120;if((typeof (crPopupBottom)!="undefined")){B=crPopupBottom}if((parseInt(C.style.top)<(B+CRGetTop()))){C.style.top=(parseInt(C.style.top)+35)+"px"}else{clearInterval(m_crPopupTimer)}}function CRShowInvite(){if(!m_crbNS&&!m_crbIE&&!m_crbStd){return }m_crState=2;CRSwitchImg("imgOpenChat","http://cr.goodlifellc.com/customerreach/rounded/livechat_rnd_bk_invite.gif");CRSwitchImg("imgCloseOpenChat","http://cr.goodlifellc.com/customerreach/imgs/rounded/rnd_close.gif");CRSwitchImg("crAgentImg","http://cr.goodlifellc.com/customerreach/imgs/prechat.gif");m_crbShowingPopup=false;if(m_crPopupTimer){clearInterval(m_crPopupTimer)}var B=CRFindObject("crPopup",document);B.style.visibility=m_crbNS?"hide":"hidden";var A=CRFindObject("crInviteEng",document);if(A){A.style.visibility=m_crbNS?"show":"visible"}if((typeof (crNoSlide)!="undefined")){if(crNoSlide!=true){A.style.top=CRGetTop()+(ns?"px":"px");m_crPopupTimer=setInterval("CRMovePopup('crInviteEng')",50)}}else{A.style.top=CRGetTop()+"px";m_crPopupTimer=setInterval("CRMovePopup('crInviteEng')",50)}m_crbShowingPopup=true}function CRShowPopup(){if(!m_crbNS&&!m_crbIE&&!m_crbStd){return }if(m_crbShowingPopup==true){return }var A=CRFindObject("crInviteEng",document);if(A){A.style.visibility=m_crbNS?"hide":"hidden"}CRSwitchImg("imgInvite","http://cr.goodlifellc.com/themes/clean/invite.jpg");CRSwitchImg("imgCloseInvite","http://cr.goodlifellc.com/themes/clean/bar.jpg");m_crState=2;m_crbShowingPopup=true;StartInvitation()}function StartInvitation(){var A=CRFindObject("crPopup",document);if(A==null){return }A.style.visibility=m_crbNS?"show":"visible";if((typeof (crNoSlide)!="undefined")){if(crNoSlide!=true){A.style.top=CRGetTop()+"px";m_crPopupTimer=setInterval("CRMovePopup('crPopup')",50)}}else{A.style.top=CRGetTop()+"px";m_crPopupTimer=setInterval("CRMovePopup('crPopup')",50)}}function CRGetTop(){var A=0;if(m_crbIE){A=document.body.scrollTop}else{if(m_crbNS||m_crbStd){A=window.pageYOffset}}return A}function CRClosePopup(A){m_crbShowingPopup=false;if(m_crPopupTimer){clearInterval(m_crPopupTimer)}var B=CRFindObject(A,document);B.style.visibility=m_crbNS?"hide":"hidden";m_crState=1;var C=new Image;C.src=CRGetURL()}function CRHandleMsg(){m_crbNewMsg=false;if(m_crMessage.width==1){CRShowPopup()}else{if(m_crMessage.width==3){NoMonitor()}else{if(m_crMessage.width==4){GetInviteText()}}}return 0}function CRCheckMsgs(){if(!m_crMonitor){return }if(m_crbNewMsg){if(m_crMessage.complete&&m_crMessage.width!=0){CRHandleMsg()}}else{m_crMessage=new Image();m_crMessage.src=CRGetURL();m_crMessage.onload=CRHandleMsg;m_crbNewMsg=true}setTimeout("CRCheckMsgs()",10000)}CRCheckMsgs()