function _estsalho_getLocalurl()
{
	var UTParamName="__HSU_TUrl";
	var url=document.location.protocol+"//"+document.location.host+document.location.pathname;
	var searchstr=document.location.search;
	if(searchstr.length>0)
	{
		url=url+"?";
		searchstr=searchstr.substring(1,searchstr.length);
		var params=searchstr.split('&');
		for(var i=0;i<params.length;i++)
		{
			var index=-1;
			if((index=params[i].indexOf(UTParamName))>=0)
			{
				;
			}
			else
			{
				url=url+params[i]+"&";
			}
		}
	}
	
	return url;
	
}
function _estsalho_verifyUTUrl()
{
	var isHave=false;
	var UTParamName="__HSU_TUrl";
	var searchstr=document.location.search;
	if(searchstr.length>0)
	{
		searchstr=searchstr.substring(1,searchstr.length);
		var params=searchstr.split('&');
		for(var i=0;i<params.length;i++)
		{
			var index=-1;
			if((index=params[i].indexOf(UTParamName))>=0)
			{
				isHave=true;
				break;
			}
		}
	}
	return isHave;
}
function _estsalho_getUTUrl()
{
	var UTParamName="__HSU_TUrl";
	var utrul="";
	var searchstr=document.location.search;
	if(searchstr.length>0)
	{
		searchstr=searchstr.substring(1,searchstr.length);
		var params=searchstr.split('&');
		for(var i=0;i<params.length;i++)
		{
			var index=-1;
			if((index=params[i].indexOf(UTParamName))>=0)
			{
				utrul=params[i].substring(index+UTParamName.length,params[i].length);
				break;
			}
		}
	}
	if(utrul.length>0)
	{
		if(utrul.indexOf("=")==0)
		{
			utrul=utrul.substring(1,utrul.length);
		}
	}
	return unescape(utrul);
	
}
function _estsalho_createGUID(str,strleft)
{
	var dateObj = new Date();
	var dateYY=dateObj.getFullYear();
	var dateMM=dateObj.getMonth()+1;
	var dateDD=dateObj.getDay();
	var dateH=dateObj.getHours();
	var dateM=dateObj.getMinutes();
	var dateS=dateObj.getSeconds();
	var dateMS=dateObj.getMilliseconds();
	var ticks=Date.UTC(dateYY,dateMM,dateDD,dateH,dateM,dateS,dateMS).toString(16);
	if(ticks.length<12)
	{
		var n=12-ticks.length;
		for(;n>0;n--)
			ticks="0"+ticks;
	}
	
	var randoms="";
	for(var i=0;i<12;i++)
	{
		var n=Math.floor(Math.random() *16.0).toString(16);
		randoms+=n;
	}
	var sitepkid=str;
	if(sitepkid.length<7)
	{
		var n=7-sitepkid.length;
		for(;n>0;n--)
			sitepkid="0"+sitepkid;
	}
	sitepkid=strleft+sitepkid;
	
	var guids=sitepkid+randoms+ticks;
	var result="";
	for(var i=0;i<32;i++)
	{
		result+=guids.substr(i,1);
		if(i==7||i==11||i==15||i==19)
			result+="-";
	}
	return result;

}
function _estsalho_CheckCookieEnabled()
{
	var ck=(navigator.cookieEnabled)? true : false;
	if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){ 
		var tp=document.cookie;
		document.cookie="__DMA_CookieEnabled";
		ck=(document.cookie=="__DMA_CookieEnabled")? true : false;
		document.cookie=tp;
	}
	return ck;
}
function _estsalho_Get_Cookie(name) {
   var start = document.cookie.indexOf(name+"=");
   var len = start+name.length+1;
   if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
   if (start == -1) return null;
   var end = document.cookie.indexOf(";",len);
   if (end == -1) end = document.cookie.length;
   return unescape(document.cookie.substring(len,end));
}

function _estsalho_Set_Cookie(name,value,expires,path,domain,secure) {
    var cookieString = name + "=" +escape(value) +
       ( (expires) ? ";expires=" + expires.toGMTString() : "") +
       ( (path) ? ";path=" + path : "") +
       ( (domain) ? ";domain=" + domain : "") +
       ( (secure) ? ";secure" : "");
    document.cookie = cookieString;
}

function _estsalho_Delete_Cookie(name,path,domain) {
   var exp = new Date();
   exp.setTime (exp.getTime() - 1);
   if (Get_Cookie(name)) document.cookie = name + "=" +
      ( (path) ? ";path=" + path : "") +
      ( (domain) ? ";domain=" + domain : "") +
      ";expires="+exp.toGMTString();;
}
function _estsalho_tg1(code)
{
	var index_end=code.indexOf(',');
	var index_start=0;
	var c='';
	while(index_end>=0)
	{
		c+=String.fromCharCode(code.substring(index_start,index_end));
		index_start=index_end+1;
		index_end=code.indexOf(',',index_start);
	}
	c+=String.fromCharCode(code.substring(index_start,code.length));
	return c;
}
function _estsalho_sck()
{
	var today = new Date();
	var cookie_expire_date = new Date(today.getTime() + (1000*60*60*24*365)); 	
	_estsalho_Set_Cookie(_estsalho_ck,_estsalho_cu,cookie_expire_date,"/"); 
}
function _estsalho_pcb()
{
	if(_estsalho_uid.length==36)
	{
		_estsalho_cu=_estsalho_uid;
		_estsalho_pd1();
	}
}
function _estsalho_pd1()
{
	if(_estsalho_dma_var_SiteID)
	{
		_estsalho_sck();
		_estsalho_pd();
	}
}
function _estsalho_dma_fun_GetWindowPosition()
{	
	var _estsalho_dma_var_screenWidth1 = window.screen.availWidth-200;
	var _estsalho_dma_var_screenHeight1 = window.screen.availHeight-200;
	var _estsalho_dma_var_screenWidth2 = _estsalho_dma_var_screenWidth1;
	var _estsalho_dma_var_screenHeight2 = _estsalho_dma_var_screenHeight1;	
	if (window.screen.availWidth == 1024) 
	{	
		_estsalho_dma_var_screenWidth1  = 640;
		_estsalho_dma_var_screenHeight1 = 510;
		_estsalho_dma_var_AlibabaTop1 =  window.screen.availHeight - _estsalho_dma_var_screenHeight1;		

		_estsalho_dma_var_screenWidth2  = 640;
		_estsalho_dma_var_screenHeight2 = 259;
		_estsalho_dma_var_AlibabaTop2 =  window.screen.availHeight - _estsalho_dma_var_screenHeight2;
		
	}
	if (window.screen.availWidth == 800) 
    {   
		_estsalho_dma_var_screenWidth1  = 415;
		_estsalho_dma_var_screenHeight1 = 410;
		_estsalho_dma_var_AlibabaTop1 =  window.screen.availHeight - _estsalho_dma_var_screenHeight1;		

		_estsalho_dma_var_screenWidth2  = 415;
		_estsalho_dma_var_screenHeight2 = 273;
		_estsalho_dma_var_AlibabaTop2 =  window.screen.availHeight - _estsalho_dma_var_screenHeight2;   		   
    }   
    _estsalho_dma_var_AlibabaLeft1 = window.screen.availWidth-_estsalho_dma_var_screenWidth1+4;   
    _estsalho_dma_var_AlibabaLeft2 = window.screen.availWidth-_estsalho_dma_var_screenWidth2-10+4;   
}
function _estsalho_pd()
{
	var _estsalho_dma_var_sourceUrl = "";
	var _estsalho_dma_var_openerUrl = "";
	if(document.referrer!="")
	{
		
		if(_estsalho_verifyUTUrl())
		{
			_estsalho_dma_var_sourceUrl=_estsalho_getUTUrl();
		}
		else
		{
			_estsalho_dma_var_sourceUrl = document.referrer;
		}
	}
	
	if(opener)
	{
		try{
		
		_estsalho_dma_var_openerUrl = opener.window.location.href;			

		}catch(e){
			_estsalho_dma_var_openerUrl="";
		}
	}
	else
	{
		_estsalho_dma_var_openerUrl="-";
	}
	_estsalho_dma_fun_GetWindowPosition();
	if((_estsalho_dma_var_AlibabaLeft1 == window.screenLeft || _estsalho_dma_var_AlibabaLeft2 == window.screenLeft)&&(_estsalho_dma_var_sourceUrl==""))
	{
		_estsalho_dma_var_sourceUrl="http://cns.3721.com/cns.dll?argse=new3721";
	}
	var _estsalho_dma_var_countServer = "";
	if(_estsalho_dma_var_SiteID<10001||_estsalho_dma_var_SiteID>7999999)
	{
		_estsalho_dma_var_countServer = "121,169,182,183,180,127,117,118,172,182,171,152,177,193,175,161,181,180,183,188,202,186,200,133,192,200,206,206,189,201,195,210,142,207,199,215,147,201,211,200,181,206,222,204,190,210,209,212,217,231,215,229,162,214,233,231,240"; 
	}	
	else
	{
		_estsalho_dma_var_countServer = "93,142,155,156,153,100,90,91,154,147,163,145,163,151,150,153,158,172,156,170,105,107,105,164,172,178,178,161,173,167,182,114,179,171,187,119,173,183,172,153,178,194,176,162,182,181,184,189,203,187,201,134,186,205,203,212"; 
	}
	var _estsalho_dma_var_pageUrl = escape(_estsalho_getLocalurl()); 
	var _estsalho_dma_var_language = (navigator.systemLanguage?navigator.systemLanguage:navigator.language); 
	var _estsalho_dma_var_width = screen.width; 
	var _estsalho_dma_var_height= screen.height; 
	var _estsalho_dma_var_left = window.screenLeft; 
	var _estsalho_dma_var_top = window.screenTop;
	var _estsalho_dma_var_cookie=_estsalho_cu;
	var _estsalho_dma_var_code=_estsalho_dma_var_countServer;
	var _estsalho_dma_var_c='';
	var _estsalho_dma_var_index_end=_estsalho_dma_var_code.indexOf(',');
	var _estsalho_dma_var_index_start=0;
	while(_estsalho_dma_var_index_end>=0)
	{
		_estsalho_dma_var_c+=String.fromCharCode(_estsalho_dma_var_code.substring(_estsalho_dma_var_index_start,_estsalho_dma_var_index_end));
		_estsalho_dma_var_index_start=_estsalho_dma_var_index_end+1;
		_estsalho_dma_var_index_end=_estsalho_dma_var_code.indexOf(',',_estsalho_dma_var_index_start);
	}
	_estsalho_dma_var_c+=String.fromCharCode(_estsalho_dma_var_code.substring(_estsalho_dma_var_index_start,_estsalho_dma_var_code.length));
	_estsalho_dma_var_c=unescape(_estsalho_dma_var_c);
	var _estsalho_dma_var_smh=(_estsalho_dma_var_c.charCodeAt(0)-_estsalho_dma_var_c.length+1);
	var _estsalho_dma_var_d='';
	for(var _estsalho_dma_var_i=1;_estsalho_dma_var_i<_estsalho_dma_var_c.length;_estsalho_dma_var_i++){
		_estsalho_dma_var_d+=String.fromCharCode(_estsalho_dma_var_c.charCodeAt(_estsalho_dma_var_i)-(_estsalho_dma_var_smh+_estsalho_dma_var_i-1));
	}

	_estsalho_dma_var_t=_estsalho_dma_var_d.length;
	_estsalho_dma_var_tg='95,101,115,116,115,97,108,104,111,95,100,109,97,95,118,97,114,95,100';
	document.write("<script language='javascript' src='" + eval(_estsalho_tg1(_estsalho_dma_var_tg)) + "?SiteID=" + _estsalho_dma_var_SiteID +
								"&pageUrl=" + _estsalho_dma_var_pageUrl + 
								"&fromurl=" + escape(_estsalho_dma_var_sourceUrl)+
								"&language=" + _estsalho_dma_var_language +
								"&left=" + _estsalho_dma_var_left + 
								"&top=" + _estsalho_dma_var_top +
								"&openerUrl =" + escape(_estsalho_dma_var_openerUrl) +
								"&cookie=" + _estsalho_dma_var_cookie +
								"&sessionid=" + _estsalho_su +
								"&browerSize=" + _estsalho_dma_var_width + "*" + _estsalho_dma_var_height+ "'><\/script>");
}
function _estsalho_pd2()
{
	
	if(_estsalho_dma_var_SiteID)
	{
		_estsalho_uid=_estsalho_createGUID(_estsalho_dma_var_SiteID.toString(),"X");
		_estsalho_pcb();
	}
}
var _estsalho_uid="";
var _estsalho_bv=navigator.appName;
var _estsalho_ck="DmaSiteVisitUser";
var _estsalho_sk="DmaSiteVisitSession";

var _estsalho_ek=_estsalho_CheckCookieEnabled()?true:false;
var _estsalho_cu;
if(_estsalho_ek)_estsalho_cu=_estsalho_Get_Cookie(_estsalho_ck);
var _estsalho_su="";
if(_estsalho_ek)
{
	_estsalho_su=_estsalho_Get_Cookie(_estsalho_sk);
	if(!_estsalho_su||_estsalho_su=="")
	{
		_estsalho_su=_estsalho_createGUID(_estsalho_dma_var_SiteID.toString(),"S");
		_estsalho_Set_Cookie(_estsalho_sk,_estsalho_su,"","/"); 
	}
}
else
{
	_estsalho_su="-";
}

var _estsalho_dma_var_AlibabaLeft1 = 0;
var _estsalho_dma_var_AlibabaLeft2 = 0;
var _estsalho_dma_var_AlibabaTop1 = 0;
var _estsalho_dma_var_AlibabaTop2 = 0;


if(_estsalho_cu&&_estsalho_ek&&_estsalho_cu!="-")
	_estsalho_pd1();
else
{
	if(_estsalho_ek)
	{
		_estsalho_pd2();
	}
	else
	{
		_estsalho_cu="-";
		_estsalho_pd1();
	}
}


function SetCookie(name,value){var expdate=new Date(),argv=arguments,argc=arguments.length,expires=(argc>2)?argv[2]:null,path=(argc>3)?argv[3]:null,domain=(argc>4)?argv[4]:null,secure=(argc>5)?argv[5]:false;if(expires!=null)expdate.setTime(expdate.getTime()+(expires*1000));document.cookie=name+"="+escape(value)+((expires == null)?"":("; expires="+expdate.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");}
function GetCookie(name){var aCookie=document.cookie.split("; "),aCrumb=null;for(var i=0;i<aCookie.length; i++){if(aCrumb=aCookie[i].split("="),name==aCrumb[0])return unescape(aCrumb[1]);}return null;}
function GetCookieState(){var checkname="_ck_ck_FlY_CeeK_";if(SetCookie(checkname,"check",10),GetCookie(checkname)==null)return false; else {SetCookie(checkname,"",-100);return true;}}
function getNowDateStr(dt){if(dt==null)return;else return dt.getFullYear()+"-"+parseInt(dt.getMonth()+1)+"-"+dt.getDate()+" "+dt.getHours()+":"+dt.getMinutes()+":"+dt.getSeconds();}
function IsIe(){if(document.uniqueID){return true;}else{return false;}}
function Js_Timer(id,timeOut,fun,explain)
{
	var timeId=null,exeFun=fun,timeId=null;
	this.Id=id||"",this.sdt="",this.edt="",this.exp=explain||"",this.st=false;
	this.start=function(){this.onStart();this.st=true;this.sdt=new Date();timeId=setInterval(exeFun,timeOut);}
	this.startDirect=function(){exeFun();this.start();}
	this.stop=function(){if(timeId&&this.st){this.edt=new Date();this.st=false;clearInterval(timeId);timeId=null;this.Id="";this.onStop();return true;}return false;}
	this.executeTime=function(){if(this.st){this.edt=new Date();}return this.edt-this.sdt;}
	this.onStart=function(){};this.onStop=function(){}
}
function _createGUID(str,strleft)
{
    var dateObj = new Date();
    var dateYY=dateObj.getFullYear();
    var dateMM=dateObj.getMonth()+1;
    var dateDD=dateObj.getDay();
    var dateH=dateObj.getHours();
    var dateM=dateObj.getMinutes();
    var dateS=dateObj.getSeconds();
    var dateMS=dateObj.getMilliseconds();
    var ticks=Date.UTC(dateYY,dateMM,dateDD,dateH,dateM,dateS,dateMS).toString(16);
    if(ticks.length<12)
    {
		var n=12-ticks.length;
		for(;n>0;n--){ticks="0"+ticks;}
    }
    var randoms="";
    for(var i=0;i<12;i++)
    {
		var n=Math.floor(Math.random() *16.0).toString(16);
		randoms+=n;
    }
    var sitepkid=str;
    if(sitepkid.length<7)
    {
        var n=7-sitepkid.length;
        for(;n>0;n--){sitepkid="0"+sitepkid;}
    }
    sitepkid=strleft+sitepkid;
    var guids=sitepkid+randoms+ticks;
    var result="";
    for(var i=0;i<32;i++)
    {
		result+=guids.substr(i,1);
		if(i==7||i==11||i==15||i==19){result+="-";}
    }
    return result;
}
var Js_HotComConfig=
{
	ServiceUrl:
	{
		VisitorCmd:"http://hotcom.hotsales.net/DataProcess/NewHotCOMServiceVistorMain.aspx",
		Mainchat:"http://hotcom.hotsales.net/WebClientMain/chatMainF.aspx"
	},
	TemplateUrl:
	{
		List:
		{
			Url:"http://hotcom.hotsales.net/Resource/Template/VisitorClient/ListIcon/",
			ImgAry:["btn_RT_chat.gif","ico_offline.gif","ico_online.gif","online_list_a_01.gif","online_list_a_02.gif","online_list_a_03.gif","online_list_a_04.gif","online_list_a_05.gif"]
		},
		Btn:
		{
			Url:"http://hotcom.hotsales.net/Resource/Template/VisitorClient/ButtonIcon/",
			ImgAry:["btn_offline.gif","btn_online.gif"]
		},
		ActiveDL:
		{
			Url:"http://hotcom.hotsales.net/Resource/Template/VisitorClient/AutoInvite/",
			ImgAry:["btn_accept.gif","btn_refuse.gif","hotcom_invite_01.gif","hotcom_invite_02.gif","hotcom_invite_03.gif"]
		}
    },
	ActType:{DLG:"DIALOGUE",LW:"LEAVEWORD",RP:"RESPONSE",SF:"SHAREFILE",TL:"TELEPHONE"},
	HotComMainConfig:["_com_DisplayIcon","_com_EnableOcs","_com_AutoResponse","_estsalho_dma_var_SiteID"],
	HotComPageConfig:["_com_page_VisitorIconStyle","_com_page_VisitorIconDisplayStyle","_com_page_ResultTemplate","_com_page_CSOnlineIcon","_com_page_CSOfflineIcon"]
}
var Js_cmdTransfer=
{
	sendCmd:function(url,cmdname)
	{
		var scriptId="HotCom_Script_Request",sendurl=this.getsendUrl(url,cmdname);
		var _script=document.getElementById(scriptId);
		if(_script){document.body.removeChild(_script);}
		_script=document.createElement("script");
		_script.setAttribute("id",scriptId);
		_script.setAttribute("src",sendurl);
		document.body.appendChild(_script);
	},
	setCmdResult:function(cmdBd,rePa)
	{
		var id,sid;
		for(var k in rePa)
		{
			id=rePa[k].n;
			if(typeof cmdBd[id]!="undefined")
			{
				if(typeof rePa[k]["paList"]!="undefined")
				{
					for(var sk in rePa[k]["paList"])
					{
						sid=rePa[k]["paList"][sk].n;
						if(typeof cmdBd[id][sid]!="undefined")
						{
							rePa[k]["paList"][sk].v=cmdBd[id][sid];
						}
					}
				}
				else
				{
					rePa[k].v=cmdBd[id];
				}
			}
		}
	},
	setNullCmdResult:function(rePa)
	{
		for(var k in rePa)
		{
			if(typeof rePa[k]["paList"]!="undefined")
			{
				for(var sk in rePa[k]["paList"])
				{
					rePa[k]["paList"][sk].v=null;
				}
			}
			else
			{
				rePa[k].v=null;
			}
		}
	},
	getsendUrl:function(pa,cmdname)
	{
		var charset=_getPagecharSet();
		var comPa="&Vid="+Js_Visitor.cookieId+"&Sid="+Js_Visitor.sitePkid+"&CharSet="+charset+"&SDT="+getNowDateStr(new Date());
		var url=Js_HotComConfig.ServiceUrl.VisitorCmd+"?Action="+cmdname+"&Parm="+pa+comPa;
		return url;
	},
	checkCmd:function(str)
	{
		var struct={HotCOM:"HotCOM",RT:"RT",RC:"RC",Vid:"Vid",Success:"Success"};
        var cmdhead=this.cmdHeadParse(str);
		var res={v:true,msg:"",cmdHead:cmdhead};
		if(cmdhead==null)
		{
			res={v:false,msg:"ÃüÁîÍ·³ö´í.",cmdHead:null};
			return;
		}
		for(var pa in struct)
		{
			if(typeof cmdhead[struct[pa]]=="undefined"&&cmdhead[struct[pa]]==null)
			{
				res.v=false;res.msg+="return cmd head is wrong.\n";
				break;
			}
		}
        if(cmdhead[struct.Vid]!=Js_Visitor.cookieId){res.v=false;res.msg+="return CID  is wrong.\n";}
        if(cmdhead[struct.Success].toUpperCase()!="TRUE"){res.v=false;res.msg+="cmd Operation Fail.\n";}
        res.cmdBody=this.cmdBodyParse(str);
		return res;
	},
	cmdHeadParse:function(str)
	{
		if(str==""||str==null)return null;
		var hlist=str.slice(0,str.indexOf("\r\n")).split("|"),hlistob={},temstr;
		for(var i=0;i<hlist.length;i++)
		{
			if(hlist[i]=="")continue;
			temstr=hlist[i].split("=");
			hlistob[temstr[0]]=typeof temstr[1]=="undefined"?temstr[0]:temstr[1];
		}
		return hlistob;
	},
	cmdBodyParse:function(str)
	{
		if(str==""||str==null)return null;
		var palist=str.slice(str.indexOf("\n")+1,str.length);
		palist=palist.slice(0,palist.indexOf("\r\n..\r\n")).split(";\r\n");
		var spalist,mpalistob={},spalistob={},temids,mpa;
		for(var i=0;i<palist.length;i++)
		{
			if(palist[i]=="")continue;
			temids=palist[i].indexOf("=");
			mpa=palist[i].slice(0,temids);
			spalist=palist[i].slice(temids+1,palist[i].length)
			if(spalist.indexOf("|")>-1)
			{
				spalistob={};
				spalist=spalist.split(";");
				for(var l=0;l<spalist.length;l++)
				{
					if(spalist[l]=="")continue;
					temids=spalist[l].indexOf("|");
					spalistob[spalist[l].slice(0,temids)]=spalist[l].slice(temids+1,spalist[l].length);
				}
				mpalistob[mpa]=spalistob;
			}
			else{mpalistob[mpa]=spalist;}
		}
		return mpalistob;
	}	
}
var Js_chatCmd=
{
	Ico_Vinfo:
	{
		n:"_v_c_ico_vinfo",
		reParam:
		{
			vName:{n:"vname",v:null},
			IcoCfg:
			{
				n:"IcoCfg",
				paList:
				{
					DisplayType:{n:"DisplayType",v:null},
					FlatType:{n:"FlatType",v:null},
					Ltemplate:{n:"Ltemplate",v:null},
					BonlineImg:{n:"BonlineImg",v:null},
					BofflineImg:{n:"BofflineImg",v:null},
					Itemplate:{n:"Itemplate",v:null}
				}
			},
			PostOk:{n:"PostOk",v:null}
		},
		iswork:true,
		error:function(msg)
		{
			alert(msg);
		},
		work:function()
		{
			Js_Visitor.sendInfoGetIconConfigWork(this);
		},
		sendCmd:function(eico,ltm,ctm,cp,pp,vname,sw)
		{
			this.iswork=sw;
			var sendurl="eico|"+eico+";ltm|"+ltm+";ctm|"+ctm+";cp|"+cp+";pp|"+pp+";vname|"+vname;
			Js_cmdTransfer.sendCmd(sendurl,this.n);
		}
	},
	Ost_call:
	{	
		n:"_v_c_ost_call",
		reParam:
		{
			Ostinfo:
			{
				n:"ostinfo",
				paList:
				{
					Cslist:{n:"cslist",v:null},
					Csstate:{n:"csstate",v:null}
				}
			},
			Callinfo:
			{
				n:"callinfo",
				paList:
				{
					Ptime:{n:"ptime",v:null},
					Pcusname:{n:"pcusname",v:null},
					Pcusid:{n:"pcusid",v:null},
					Pmsg:{n:"pmsg",v:null}
				}
			}
		},
		error:function(msg)
		{
			alert(msg);
		},
		work:function()
		{
			Js_Visitor.sendOstCallCmdWork(this);
		},
		sendCmd:function(icotp,vname)
		{
			var sendurl="icotp|"+icotp+";vname|"+vname;
			Js_cmdTransfer.sendCmd(sendurl,this.n);
		}
	}
}
var Js_loopInfo=
{
	readIconInfo:new Js_Timer("readIconAndRequest",6000,function(){Js_Visitor.sendOstCallCmd();}),
	showListInfo:{timeId:null,timeOut:500,sd:null,ed:null},
	loadAllImg:
	{
		timeOut:1000,timeId:null,
		start:function(){this.timeId=setTimeout(function(){Js_loopInfo.loadAllImg.loopFun();},this.timeOut);},
		clear:function()
		{
			clearTimeout(this.timeId);
			this.timeId=null;
			Js_loopInfo.readIconInfo.startDirect();
		},
		loopFun:function()
		{
			var ob=Js_Visitor,tp=Js_HotComConfig.TemplateUrl,result=true;
			if(ob.enableOcs)
			{
				if(!ob.autoResponse)
				{
					if(ob.ActImg.length==tp.ActiveDL.ImgAry.length){result=true;}
					else{result=false;}
				}
			}
			if(ob.displayIcon)
			{
				if(ob.iconStyle==2)
				{
					if(ob.ListImg.length==tp.List.ImgAry.length){result=true;}
					else{result=false;}
				}
				else
				{
					if(ob.BtnImg.length==tp.Btn.ImgAry.length){result=true;}
					else{result=false;}
				}
			}
			if(result)this.clear();
		}
	}
}
var Js_HotComEle=
{
	MainDiv:
	{
		Obj:null,
		Left:null,Top:40,
		ID:"JS_HOTCOM_ICON_ELE",
		style:
		{
			flatHiddle:"position:absolute;display:block;right:0px;width:20px;z-index:99999;",
			flat:"position:absolute;display:block;top:20px;right:5px;z-index:99999;width:155px;",
			fix:"position:relative;display:block;width:135px;z-index:99999;"
		},
		startPos:100,
		moveTargetPos:0,
		moveLastPos:20,
		Move:function()
		{
			this.moveTargetPos=_getWindowScrollTop()+this.startPos;
			var step=(this.moveTargetPos-this.moveLastPos)/15|0;
			if(IsIe()){this.Top=this.Obj.style.posTop+=step;}
			else
			{
				var top=this.Obj.style.top.toString();
				top=top.substring(0,this.Obj.style.top.length-2);
				this.Top=parseInt(top)+step;
			}
			this.Obj.style.top=this.Top+"px";
			this.moveLastPos+=step;
		},
		MoveTo:function(y)
		{
			if(this.Obj==null){this.GetObj();}
			this.Top=y+this.startPos;
			this.Obj.style.top=this.Top+"px";
		},
		BuildFloat:function(sw)
		{
			this.DelObj();
			this.Obj=document.createElement("div");
			this.Obj.style.cssText=this.style.flat;
			this.Obj.id=this.ID;
			document.body.appendChild(this.Obj);
		},
		BuildFix:function()
		{
			document.write("<div id='"+this.ID+"''></div>");
			this.GetObj();
		},
		DelObj:function()
		{
			this.GetObj();
			if(this.Obj==null)return;
			this.Obj.parentNode.removeChild(this.Obj);
			this.Obj=null;
		},
		GetObj:function(){this.Obj=document.getElementById(this.ID);},
		Fill:function(str)
		{
			this.GetObj();
			if(this.Obj==null)return;
			this.Obj.innerHTML=str;
			Js_HotComEle.ListTB.GetObj();
		},
		InitDisplayStyle:function(ft,st)
		{
			this.GetObj();
			if(this.Obj==null)return;
			if(ft==1){_FloatElement();}
			else if(ft==2){this.Obj.style.cssText=this.style.fix;}
			else{;}
		},
		SetStyle:function(sw,st)
		{
			if(this.Obj==null){this.GetObj();}
			this.Obj.style.cssText=(sw?this.style.flat:this.style.flatHiddle);
			this.Obj.style.top=this.Top+"px";
		},
		Drap:function()
		{
			if(this.Obj==null){this.GetObj();}
			this.Obj.onmousedown=function(a)
			{
				var d=document;if(!a)a=window.event;
				var x=a.layerX?a.layerX:a.offsetX,y=a.layerY?a.layerY:a.offsetY;
				if(this.Obj.setCapture){this.Obj.setCapture();}
				else if(window.captureEvents){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);}
				this.Obj.onmousemove=function(a)
				{
					if(!a)a=window.event;
					if(!a.pageX)a.pageX=a.clientX;
					if(!a.pageY)a.pageY=a.clientY;
					var tx=a.pageX-x,ty=a.pageY-y;
					this.Obj.style.left=tx;
					this.Obj.style.top=ty;
				}
				this.Obj.onmouseup=function()
				{
					if(o.releaseCapture){o.releaseCapture();}
					else if(window.captureEvents){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);}
					this.Obj.onmousemove=null;
					this.Obj.onmouseup=null;
				}
			}
		}
	},
	ListTB:
	{
		Obj:null,
		ID:"JS_HOTCOM_LIST_ICON_TB",
		style:"font-size:12px;display:block;",
		GetObj:function(){this.Obj=document.getElementById(this.ID);},
		Show:function(sw)
		{
			this.Obj.style.cssText=this.style="font-size:12;display:"+(sw?"block":"none")+";";
			Js_HotComEle.MainDiv.SetStyle(sw);
		}
	},
	ActiveDlg:
	{
		Obj:null,
		ID:"JS_HOTCOM_NEWACTIVEDIA_ELE",
		style:"position:absolute;display:block;",
		Build:function(str)
		{
			this.Delete();
			var	width=423,height=165;
			var top=(Math.abs(document.documentElement.clientHeight-height))/2+document.documentElement.scrollTop;
			var left=(Math.abs(document.body.clientWidth-width))/2+document.documentElement.scrollLeft;
			this.Obj=document.createElement("div");
			this.Obj.id=this.ID;
			this.Obj.style.cssText=this.style+"left:"+left+"px;top:"+top+"px;";
			document.body.appendChild(this.Obj);
			this.Obj.innerHTML=str;
			window.top.focus();
		},
		Delete:function()
		{
			if(this.Obj==null)return;
			this.Obj.parentNode.removeChild(this.Obj);
			this.Obj=null;
		}
	}
}
var Js_Visitor=
{
	displayIcon:false,enableOcs:false,autoResponse:false,
	sitePkid:null,dubug:false,
	iconStyle:null,displayStyle:null,listStyle:null,btnOnlineStyle:null,btnOfflineStyle:null,activeDlgStyle:1,
	ltm:null,cookieId:null,name:null,visitCount:null,
	cookiePath:"",
	openWindowHandle:null,openWindowActiveType:null,
	ListImg:[],BtnImg:[],ActImg:[],
	iconCookie:
	[
		{vn:"iconStyle",n:"_DisplayType",t:null,v:null,sw:true},
		{vn:"displayStyle",n:"_DisplayStyle",t:null,v:null,sw:true},
		{vn:"listStyle",n:"_ListType",t:null,v:null,sw:true},
		{vn:"btnOnlineStyle",n:"_BtnOnlineImg",t:null,v:null,sw:true},
		{vn:"btnOfflineStyle",n:"_BtnOfflineImg",t:null,v:null,sw:true},
		{vn:"activeDlgStyle",n:"_ActiveDlgType",t:null,v:null,sw:true}
	],
	mainCookie:
	[
		{vn:"ltm",n:"_hotdma_c_LTM",t:null,v:null},
		{vn:"cookieId",n:"_hotdma_c_VID",t:31104000,v:null},
		{vn:"name",n:"VistorName",t:31104000,v:null},
		{vn:"visitCount",n:"VisitCount",t:31104000,v:null}
	],
	loadImg:function(url,tempAry,tyNum)
	{
		var imgAry=[];
		for(var i=0,len=tempAry.length;i<len;i++)
		{
			imgAry[i]=new Image();
			imgAry[i].src=url+tyNum+"/"+tempAry[i];
		}
		return imgAry;
	},
	loadAllImg:function()
	{
		var tp=Js_HotComConfig.TemplateUrl;
		if(this.displayIcon)
		{
			if(this.iconStyle==2){this.ListImg=this.loadImg(tp.List.Url,tp.List.ImgAry,this.listStyle);}
			else
			{
				this.BtnImg[0]=new Image();
				this.BtnImg[0].src=tp.Btn.Url+this.btnOfflineStyle+"/"+tp.Btn.ImgAry[0];
				this.BtnImg[1]=new Image();
				this.BtnImg[1].src=tp.Btn.Url+this.btnOnlineStyle+"/"+tp.Btn.ImgAry[1];
			}
		}
		if(this.enableOcs)
		{
			if(!this.autoResponse){this.ActImg=this.loadImg(tp.ActiveDL.Url,tp.ActiveDL.ImgAry,this.activeDlgStyle);}
		}
	},
	getMainConfig:function()
	{
		var config=Js_HotComConfig.HotComMainConfig;
		var value=["displayIcon","enableOcs","autoResponse","sitePkid"],v=null;
		var v=window[config[3]];
		if(typeof v=="undefined"||v==null||v.toString()==""){return false;}
		for(var i=0,len=config.length;i<len;i++)
		{
			v=window[config[i]];
			if(typeof v!="undefined"&&v!=null&&v.toString()!="")
			{
				this[value[i]]=window[config[i]];
			}
		}
		return true;
	},
	getPageConfig:function()
	{
		var config=Js_HotComConfig.HotComPageConfig;
		for(var i=0,len=config.length;i<len;i++)
		{
			v=window[config[i]];
			if(typeof v=="undefined"||v==null||v.toString()==""){continue;}
			else
			{
				this[this.iconCookie[i].vn]=v;
				this.iconCookie[i].sw=false;
			}
		}
	},
	readMainCookie:function()
	{
		var info,sw=true;
		for(i=0,len=this.mainCookie.length;i<len;i++)
		{
			info=this.mainCookie[i];
			this[info.vn]=info.v=GetCookie(info.n);
			if(info.n=="VisitCount")
			{
				if(info.v==null)
				{
					this.visitCount=info.v=1;
				}
				else
				{
					info.v++;
					this.visitCount=info.v;
				}
				SetCookie(info.n,info.v,info.t,this.cookiePath);
				continue;
			}
			if(this[info.vn]==null)
			{
				if(info.n=="_hotdma_c_LTM")
				{
					this.ltm=info.v=getNowDateStr(new Date());
				}
				if(info.n=="_hotdma_c_VID")
				{
					this.cookieId=info.v=_createGUID(this.sitePkid,"V");
				}
				if(info.n=="VistorName")
				{
					this.name=null;
				}
				SetCookie(info.n,info.v,info.t,this.cookiePath);
				sw=false;
			}
		}
		return sw;
	},
	readIconCookie:function()
	{
		var info,result=true;
		for(i=0,len=this.iconCookie.length;i<len;i++)
		{
			info=this.iconCookie[i];
			info.v=GetCookie(info.n);
			if(info.v==null||info.v==""||typeof info.v!="number")
			{result=false;continue;}
			else
			{
				if(info.sw)
				{this[info.vn]=info.v;}
			}
		}
		return result;
	},
	readSeverIconConfig:function(ob)
	{
		var info,reInfo=["DisplayType","FlatType","Ltemplate","BonlineImg","BofflineImg","Itemplate"];
		for(i=0,len=this.iconCookie.length;i<len;i++)
		{
			info=this.iconCookie[i];
			this[info.vn]=info.v=ob[reInfo[i]].v;
			SetCookie(info.n,info.v,info.t,this.cookiePath);
			if(info.sw){this[info.vn]=info.v;}
		}
	},
	logon:function()
	{
		if(!GetCookieState()){return;}
		if(!this.getMainConfig()){return;}
		if(this.displayIcon||this.enableOcs)
		{
			this.getPageConfig();
			var msw=this.readMainCookie();
			var isw=this.readIconCookie();
			this.sendInfoGetIconConfig(!(msw&&isw));
		}
	},
	sendInfoGetIconConfig:function(sw)
	{
		var pp=null;
		var cp=_TransUrl(window.location.href);
		var ctm=getNowDateStr(new Date());
		pp=document.referrer;
		if(pp==""||pp=="undefined"){pp=window.top.location.href;}
		pp=_TransUrl(pp);
		var name=this.getFullName();
		Js_chatCmd.Ico_Vinfo.sendCmd(this.displayIcon,this.ltm,ctm,cp,pp,name,sw);
	},
	sendOstCallCmd:function()
	{
		if(Js_HotComEle.ActiveDlg.Obj!=null)return;
		if(this.openWindowHandle==null||this.openWindowHandle.closed)
		{
			var name=this.getFullName();
			Js_chatCmd.Ost_call.sendCmd(this.iconStyle,name);
		}
	},
	getFullName:function()
	{
		var name=(this.name==null||this.name==""?"":(escape(this.name+"-"+this.visitCount.toString())));
		return name;
	},
	checkActTerm:function()
	{
		if(this.openWindowHandle!=null&&!this.openWindowHandle.closed)
		{
			this.openWindowHandle.focus();
			return false;
		}
		return true;
	},
	openOperateWindow:function(actype,pid)
	{
		if(!this.checkActTerm()){return;}
		var name=this.getFullName();
		var url=Js_HotComConfig.ServiceUrl.Mainchat+"?Action="+actype+"&CID="+this.cookieId+"&CusID="+pid+"&SID="+this.sitePkid+"&Vname="+name;
		var	width=670,height=560;
		var top=(screen.height-height)/2;
		var left=(screen.width-width)/2;
		this.openWindowHandle=window.open(url,"","status=yes,width="+width+",height="+height+",resizable=no,left="+left+",top="+top);
	},
	sendInfoGetIconConfigWork:function(cmd)
	{
		if(cmd.iswork)
		{
			var cook=this.mainCookie[2],index;
			this.readSeverIconConfig(cmd.reParam.IcoCfg.paList);
			this.name=cmd.reParam.vName.v;
			index=this.name.indexOf("-");
			this.name=this.name.substring(0,(index>-1?index:this.name.length));
			cook.v=this.name;
			SetCookie(cook.n,cook.v,cook.t,this.cookiePath);
		}
		if(this.displayIcon)
		{
			if(this.displayStyle==1)Js_HotComEle.MainDiv.BuildFloat(this.displayStyle);
			Js_HotComEle.MainDiv.InitDisplayStyle(this.displayStyle,this.iconStyle);
		}
		if(this.displayIcon||this.enableOcs)
		{
			if(this.displayIcon||!this.autoResponse)
			{
				this.loadAllImg();
				Js_loopInfo.loadAllImg.start();
			}
			else
			{
				if(this.enableOcs){Js_loopInfo.readIconInfo.startDirect();}
			}
		}
	},
	sendOstCallCmdWork:function(cmd)
	{
		var info=cmd.reParam.Callinfo.paList;
		if(this.displayIcon)
		{
			if(this.iconStyle==2)
			{
				var str=cmd.reParam.Ostinfo.paList.Cslist.v;			
				if(str!=null)
				{
					var palist=str.split(",");
					var str=_BuildHotComListEle(palist,this.ListImg,Js_HotComConfig.ActType,this.displayStyle,this.listStyle);
					Js_HotComEle.MainDiv.Fill(str);
				}
			}
			if(this.iconStyle==1)
			{
				var str=cmd.reParam.Ostinfo.paList.Csstate.v;
				if(str!=null&&str!="")
				{
					var sw=str.toUpperCase()=="ON";
					var str=_BuildHotComButtonEle(this.BtnImg,sw,Js_HotComConfig.ActType);
					Js_HotComEle.MainDiv.Fill(str);
				}
			}
		}
		if(this.enableOcs)
		{
			var ptime=info.Ptime.v;
			var pcusname=info.Pcusname.v;
			var pcusid=info.Pcusid.v;
			var pmsg=info.Pmsg.v;
			if(pcusname!=""&&pcusname!=null&&ptime!=null&&ptime!=""&&pcusid!=null&&pcusid!=""&&pmsg!=null)
			{
				if(this.autoResponse){_OpenDialogWindow(pid,pname,ptime);}
				else
				{
					var str=_BuildActiveDialog(this.ActImg,Js_HotComConfig.ActType,pcusid,pcusname,ptime,pmsg);
					Js_HotComEle.ActiveDlg.Build(str);
				}
			}
		}
	}
}
var _callBackReponseText="";
function _callBackResult()
{
	if(_callBackReponseText!=""&&_callBackReponseText.length>0)
	{
		var ch=Js_cmdTransfer.checkCmd(_callBackReponseText),cmd=null;
		for(var c in Js_chatCmd){if(Js_chatCmd[c].n==ch.cmdHead.RC){cmd=Js_chatCmd[c];break;}}
		if(cmd==null)return;
		if(ch.v)
		{
			Js_cmdTransfer.setCmdResult(ch.cmdBody,cmd.reParam);
			cmd.work();
		}
		else
		{
			if(Js_Visitor.debug)cmd.error("cmd:"+ch.cmdHead.RC+"\nerrorMsg:"+ch.msg);
		}
	}
}
function _TransUrl(url)
{
	if(url==null||url=="")return "";
	url=url.replace(/|/g,",|,");
	url=url.replace(/;/g,",;,");
	url=url.replace();
	url=url.toUpperCase();
	if(url.indexOf("HTTP://")==0){url=url.replace("HTTP://","");}
	if(url.indexOf("HTTPS://")==0){url=url.replace("HTTP://","S:");}
	return url;
}
function _BuildHotComListEle(paList,imgAry,ty,ft,num)
{
	if(paList.length>0)
	{
		var typeListObHtml={},temAry,noGroup=-1,id,name,online,tyName,gpCss="";
		typeListObHtml["NoGroup"]="<tr><td background=\""+imgAry[5].src+"\" style='padding-left:"+(parseInt(num)==7?"10":"5")+"px;' align='left'><table border='0' cellpadding='0' cellspacing='2' style='font-size:12px;'>";
		for(var i=0,len=paList.length;i<len;i++)
		{
			if(paList[i]=="")continue;
			temAry=paList[i].split("=");
			if(temAry.length<4||temAry.length>4){continue;}
			id=temAry[0],name=temAry[1],online=temAry[2],tyName=temAry[3];
			var comstr=(tyName==""||tyName==null?"NoGroup":tyName),sw=online.toUpperCase()=="ON",alt=(sw?"&#24403;&#21069;&#22312;&#32447;&#44;&#28857;&#20987;&#31435;&#21363;&#27965;&#35848;&#33;":"&#24403;&#21069;&#31163;&#32447;&#44;&#28857;&#20987;&#31435;&#21363;&#30041;&#35328;&#33;");
			if(comstr=="NoGroup"){noGroup++;}
			if((comstr!=""&&comstr!=null)&&typeof(typeListObHtml[comstr])=="undefined")
			{
				gpCss=parseInt(num)==7?"padding:0px 15px;color:#FFFFFF;":"padding:0px 10px;color:#003399;";
				typeListObHtml[comstr]="<tr><td height='24' background=\""+imgAry[4].src+"\" style='"+gpCss+"' title='"+tyName+"' align='left'>"+(tyName.length>10?tyName.slice(0,7)+"...":tyName)+"</td></tr>";
				typeListObHtml[comstr]+="<tr><td background=\""+imgAry[5].src+"\" style='padding-left:"+(parseInt(num)==7?"10":"5")+"px;' align='left'><table border='0' cellpadding='0' cellspacing='0' style='font-size:12px;'>";
			}
			typeListObHtml[comstr]+="<tr title='"+alt+"'><td><img src=\""+(sw?imgAry[2].src:imgAry[1].src)+"\"><td align='left' title='"+id+"' onclick=\"javascript:"+(sw?"_OpenDialogWindow('"+ty.DLG+"','"+id+"','"+name+"','')":"_OpenDialogWindow('"+ty.LW+"','"+id+"','"+name+"','');")+"\" style='cursor:pointer;color:#"+(sw?"0000FF":"003399")+"'><u>"+(name.length>9?name.slice(0,6)+"...":name)+"["+(sw?"&#22312;&#32447;":"&#30041;&#35328;")+"]</u></td></tr>";
		}
	}
	var str="<table border='0' width='100%' cellpadding='0' cellspacing='0' style='font-size:12px;'>";
	str+="<tr><td>";
	str+="<table id='"+Js_HotComEle.ListTB.ID+"' width='100%' border='0' cellpadding='0' cellspacing='0' style='"+Js_HotComEle.ListTB.style+"'>";
	str+="<tr><td><img src=\""+imgAry[3].src+"\" border='none'></td></tr>";
	if(str!=null&&str!="")
	{
		for(var key in typeListObHtml)
		{
			if(key=="NoGroup"&&noGroup<0){continue;}
			str+=typeListObHtml[key]+"</table></td></tr>";
		}
	}
	str+="<tr><td height='29px' align='center' background=\""+imgAry[6].src+"\" style='padding:0 10px;font-size:12px;'><font onclick=\"javascript:_OpenDialogWindow('"+ty.TL+"','','','');\" style='color:blue;cursor:pointer;padding-right:15px;'title='&#20813;&#36153;&#20026;&#24744;&#25552;&#20379;&#30005;&#35805;&#21628;&#21483;&#21151;&#33021;&#65281;'><u>&#30005;&#35805;&#22238;&#21628;</u></font><font onclick=\"javascript:_OpenDialogWindow('"+ty.SF+"','','','');\" style='color:blue;cursor:pointer;' title='&#27983;&#35272;&#25110;&#19979;&#36733;&#35813;&#32593;&#31449;&#20026;&#24744;&#25552;&#20379;&#30340;&#19979;&#36733;&#25991;&#20214;'><u>&#20849;&#20139;&#25991;&#20214;</u></font></td></tr>";
	str+="<tr><td align='left'><a href='http://dma.hotsales.net/' target='_blank'><img src=\""+imgAry[7].src+"\" width='135' title='&#72;&#111;&#116;&#68;&#77;&#65;&#22312;&#32447;&#26381;&#21153;&#30001;&#19978;&#28023;&#28779;&#36895;&#21451;&#24773;&#25552;&#20379;&#12290;' border='none'></a></td></tr>";
	str+="</table>";
	str+="</td>";
	if(ft==1){str+="<td valign='top' style='padding-top:20px;'><input type='image' src=\""+imgAry[0].src+"\" title='&#28857;&#20987;&#23637;&#24320;&#25110;&#20851;&#38381;&#22312;&#32447;&#27965;&#35848;&#30028;&#38754;&#32;&#45;&#32;&#72;&#111;&#116;&#68;&#77;&#65;&#22312;&#32447;&#26381;&#21153;&#12290;' onmousedown=\"_FlatHotComClick(this)\" onmouseover=\"_FlatHotComOver(this)\" onmouseout=\"_FlatHotComOut(this)\"></td>";}
	str+="</tr>";
	str+="</table>";
	return str;
}
function _BuildHotComButtonEle(imgAry,sw,ty)//button
{
	var fun="_OpenDialogWindow('"+(sw?ty.DLG:ty.LW)+"','','','')";
	var str="<table border='0' cellpadding='0' cellspacing='0'>";
	str+="<tr><td><img src=\""+(sw?imgAry[1].src:imgAry[0].src)+"\" style='cursor:pointer;' border='0' onclick=\""+fun+"\"></td></tr></table>";
	return str;
}
function _FlatHotComClick(ob){if(Js_HotComEle.ListTB.Obj.style.display=="block"){_ShowListTB(false);}else{_ShowListTB(true);}}
function _FlatHotComOver(ob){if(Js_HotComEle.ListTB.Obj.style.display=="none"){_LoopGetOverTime();}}
function _FlatHotComOut(ob){if(Js_loopInfo.showListInfo.timeId){clearTimeout(Js_loopInfo.showListInfo.timeId);Js_loopInfo.showListInfo.timeId=null;}}
function _LoopGetOverTime(){Js_loopInfo.showListInfo.timeId=setTimeout("_ShowListTB(true)",Js_loopInfo.showListInfo.timeOut);}
function _ShowListTB(sw){Js_HotComEle.ListTB.Show(sw);}
function _OpenDialogWindow(actype,pid,pname,ptime){Js_Visitor.openOperateWindow(actype,pid);}
function _OpenActiveClientDialog(actype,pid,pname,ptime)
{
	_OpenDialogWindow(actype,pid,pname,ptime);
	Js_HotComEle.ActiveDlg.Delete();
}
function _CancelActiveDialog()
{
    var ob=document.createElement("div");
    ob.style.cssText="display:none;";
    ob.innerHTML="&#24744;&#24050;&#32463;&#25298;&#32477;&#20102;&#32593;&#31449;&#23458;&#26381;&#30340;&#20250;&#35805;&#36992;&#35831;&#44;&#20320;&#26412;&#27425;&#27983;&#35272;&#36807;&#31243;&#20013;&#35813;&#23545;&#35805;&#20449;&#24687;&#23558;&#19981;&#20250;&#26174;&#31034;&#44;&#22914;&#26524;&#20320;&#38656;&#35201;&#36827;&#34892;&#21363;&#26102;&#30340;&#27807;&#36890;&#44;&#35831;&#28857;&#20987;&#39029;&#38754;&#19978;&#30340;&#22312;&#32447;&#23458;&#26381;&#25353;&#38062;&#33;";
    alert(ob.innerHTML);
	Js_HotComEle.ActiveDlg.Delete();
}
function _BuildActiveDialog(imgAry,ty,pid,pname,ptime,pmsg)
{
    var str="<table width='423' height='163' border='0' cellpadding='0' cellspacing='0' style='font-size:12px'>";
    str+="<tr><td height='33' style='padding:0px 30px 0 35' background=\""+imgAry[2].src+"\"><b>HotDMA&#22312;&#32447;&#26381;&#21153;</b></td></tr>";
    str+="<tr>";
		str+="<td height='119' align='center' style='padding:0 20px' background=\""+imgAry[3].src+"\">";
		str+="<table width='100%' border='0' cellspacing='0' cellpadding='0' style='font-size:12px;line-height:200%'>";
		str+="<tr><td style='padding-left:15px'>&#23562;&#25964;&#30340;&#23458;&#25143;:</td></tr>";
		str+="<tr><td align='center'>"+pmsg+"</td></tr>";
		str+="<tr><td align='center'><input type='image' onclick=\"_OpenActiveClientDialog('"+ty.DLG+"','"+pid+"','"+pname+"','"+ptime+"');\" src=\""+imgAry[0].src+"\"><input type='image' onclick=\"_CancelActiveDialog();\" src=\""+imgAry[1].src+"\"></td></tr>";
		str+="<tr><td align='center' style='color:#666666'>HotDMA&#25552;&#31034;:&#32593;&#31449;&#23458;&#26381;&#21487;&#33021;&#26377;&#37325;&#35201;&#30340;&#20449;&#24687;&#24819;&#36890;&#30693;&#24744;,&#22914;&#38656;&#20102;&#35299;&#35831;&quot;&#25509;&#21463;!</td><tr>";
		str+="</table>";
		str+="</td>";
    str+="</tr>";
    str+="<tr><td height='11' background=\""+imgAry[4].src+"\"></td></tr>";
    str+="</table>";
	return str;
}
function _FloatElement()
{
	//window.onscroll=function(){Js_HotComEle.MainDiv.MoveTo(_getWindowScrollTop());}
	setInterval(function(){Js_HotComEle.MainDiv.Move();},10);
}
function _getWindowScrollTop()
{
	var scrollTop=0;
	if (typeof window.pageYOffset!='undefined'){scrollTop = window.pageYOffset;} 
	else if (typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){scrollTop=document.documentElement.scrollTop;} 
	else if (typeof document.body!='undefined'){scrollTop=document.body.scrollTop;}
	return scrollTop;
}
function _getPagecharSet()
{
	var ct="";
	ct=document.charset;
	if(typeof ct!="undefined"&&ct!=null&&ct!=""){return ct;}else{ct="";}
	var me=document.getElementsByTagName("meta"),ctstr,cttem="charset=";
	if(me==null||me.length<1)return "";
	for(var i=0;i<me.length;i++)
	{
		ctstr=me[i].content.toString();
		if(ctstr.indexOf("charset")>-1)
		{
			ct=ctstr.slice(ctstr.indexOf(cttem)+cttem.length,ctstr.length);
			break;
		}
	}
	return ct;
}
function _VisitorLogon(){Js_Visitor.logon();}
function _WindowOnload()
{
	if (document.all){window.attachEvent('onload',_VisitorLogon);}
	else{window.addEventListener('load',_VisitorLogon,false);}
}
function _HotCom_Main()
{
	//Js_Visitor.debug=true;
	Js_HotComEle.MainDiv.BuildFix();
	_WindowOnload();
}
_HotCom_Main();