

var csliveW=null;
var wGreeter=null;
var csliveBtnUp164=new Image;
var csliveBtnDwn164=new Image;
function csliveGetTime164(){
 var d=new Date;
 return d.getTime();
}

function csliveSetBtnDown164(){
 window.document.csliveBtn164.src=csliveBtnDwn164.src;
}
function csliveSetBtnUp164(){
 window.document.csliveBtn164.src=csliveBtnUp164.src;
}
function csliveDisplayProact164(){

 if(window.name == "")window.name="CS";
 var l="";
 if(l=="")l=window.name;
 var encodedUrl='http://server10.cs-live.com/csl-dandh/jsp/greeter.jsp';
 if (wGreeter==null || wGreeter.closed)
  wGreeter=window.open(encodedUrl+'?PushLocation='+l+'&ReqId='+csliveGetTime164(),'csliveGreeter','directories=0,location=0,menubar=0,resizable=1,toolbar=0,status=0,scrollbars=0,width=400,height=300');
 else if(wGreeter!=null)
  wGreeter.focus();

}
function csliveDisplay(){
 if(window.name == "")window.name="CS";
 var l="";
 if(l=="")l=window.name;
 var st='';
 if (st==''){
  st=document.title;
  if (st==''){
   var page=new String(document.location);
   var f=page.lastIndexOf("/");
   var l=page.lastIndexOf(".");
   st=page.substring(f+1,l);
  }
 }
 var encodedUrl='http://server10.cs-live.com/csl-dandh/jsp/cslivewindow.jsp?Referrer='+escape(document.referrer);
 if (csliveW==null || csliveW.closed)
  csliveW=window.open(encodedUrl+'&PushLocation='+l+'&From='+escape(st)+'&ReqId='+csliveGetTime164(),'cslive','directories=0,location=0,menubar=0,resizable=1,toolbar=0,status=0,scrollbars=1,width=600,height=450');
 else if(csliveW!=null)
  csliveW.focus();
}

var myImage164=null;
function csliveGetImage164(first){
 var encodedUrl='http://server10.cs-live.com/csl-dandh/jsp/image.jsp';
 var page=new String(document.location);
 var groups='rite2u.com';
 var phone='';
 var email='';
 var name='Visitor';
 var st='';
 if (st==''){
  st=document.title;
  if (st==''){
   var f=page.lastIndexOf("/");
   var l=page.lastIndexOf(".");
   st=page.substring(f+1,l);
  }
 }

 myImage164=new Image();

 myImage164.onload=oncsliveImageLoad164;
 if (first) {
  myImage164.src=encodedUrl+'?ReqId='+csliveGetTime164()+'&FirstTime=1&Page='+
    escape(page)+'&Referrer='+escape(document.referrer)+'&RouteTo='+
    escape(groups)+'&From='+escape(st)+'&Phone='+escape(phone)+'&DefName=1'+
    '&EMail='+escape(email)+'&ConnectOnLoadName='+escape(name);
 } else {
  myImage164.src=encodedUrl+'?ReqId='+csliveGetTime164()+'&Page='+escape(page)+
    '&Referrer='+escape(document.referrer)+'&RouteTo='+
    escape(groups)+'&From='+escape(st)+'&Phone='+escape(phone)+'&DefName=1'+
    '&EMail='+escape(email)+'&ConnectOnLoadName='+escape(name);
 }
}
function oncsliveImageLoad164(){

 if (myImage164.width==2)
 {
  if (myImage164.height==2)
   window.open('http://server10.cs-live.com/csl-dandh/jsp/redirect.jsp?ReqId='+csliveGetTime164());
  else
   return;
 }
 else if (myImage164.height==2)
  csliveDisplayProact164();
 setTimeout('csliveGetImage164(false)',10000);
}

csliveBtnUp164.src="http://server10.cs-live.com/htmlfiles/integration/rd_w_oval_chat.gif";
csliveBtnDwn164.src="http://server10.cs-live.com/htmlfiles/integration/rd_w_oval_chat.gif";

setTimeout('csliveGetImage164(true)',500);


