document.write('<div id="rightchatdivid" style="position:absolute;display:none; z-index:1000; left:1px; top:200px; width:250px;   border:1px solid #999; background-color:#FFF; "><div style="text-align:right;"><a href="javascript:closeChatBox();"><strong>X</strong></a>&nbsp;</div><div id="lpButDivID-1283445391676"></div></div>');
function closeChatBox(){
	var d=document.getElementById('rightchatdivid');
	d.style.display="none";
	setCookie22("chatBoxClosed",1,1);
}
function setCookie22(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
}
function getCookie22(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + c_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    }
  }
return "";
}
function delayedOnResizeChat(){
		var d=document.getElementById('rightchatdivid');

		d.style.left=((document.body.clientWidth)-400)+"px";
	}
	function delayedOnScrollChat(){
			var d=document.getElementById('rightchatdivid');
			//alert(d.style.top+":"+document.body.scrollTop+":"+document.documentElement.scrollTop);
			if(document.body.scrollTop && document.body.scrollTop !=0){
				d.style.top=(document.body.scrollTop+200)+"px";
			}else{
				d.style.top=(document.documentElement.scrollTop+200)+"px";
			}
		}
function bodyLoadChatThing(){
	var v=getCookie22("chatBoxClosed");
	if(v==1) return;
	var d=document.getElementById('rightchatdivid');
	d.style.display="block";
	isIE6 = navigator.userAgent.toLowerCase().indexOf('msie 6') != -1;
	d.style.left=((document.body.clientWidth)-400)+"px";
	window.onresize=function(){setTimeout('delayedOnResizeChat();',200);}
	window.onscroll=function(){setTimeout('delayedOnScrollChat();',200);}
	window.onresize();
	window.onscroll();
}
bodyLoadChatThing();
