

var  ss =new Date().getTime() ;var companyId = 25168;
var auto_agent = window.navigator.userAgent.toLowerCase();   
var client_kf = {
	 isQuirks:	document.compatMode == 'BackCompat',   
	 isOpera:   auto_agent.indexOf('opera') > -1,   
	 isIE:		auto_agent.indexOf('msie') > -1,   
	 isIE6:      auto_agent.indexOf('msie 6') > -1,    
	 isIE7:		auto_agent.indexOf('msie 7') > -1,  
	 isIE8:      auto_agent.indexOf('msie 8') > -1,   
	 is360:		false
 }; 
var is360Strict = client_kf.is360 && !client_kf.isQuirks && !client_kf.isIE6;
var isIE =	client_kf.isIE;
var isIE8 = client_kf.isIE8;
var isIE6 =  client_kf.isIE6;
var isFF =	auto_agent.indexOf("firefox")>-1;
var host = "http://kf.5251.net"; 
var img_host = "http://img.5251.net";
var kf_openurl_float="http://www.woho.com.cn/chat.html?companyId=25168&style=52542&username=&locate=cn" +"&refer="+encodeURIComponent(window.location.href)+"&username="+encodeURIComponent("");
var route=escape(window.location.href);var kdocTitle = "";if(companyId != 17700){kdocTitle=document.title;if(kdocTitle==null){var t_titles=document.getElementByTagName("title");if(t_titles&&t_titles.length>0)kdocTitle=t_titles[0];else kdocTitle=""}}function setCookie($,C,B,A){var _=$+"="+escape(C)+"; expires=Thu, 6 Jan 2100 12:01:01 UTC"+((B)?"; path="+B:"")+((A)?"; domain="+A:"");document.cookie=_}function getCookie(A){var $=document.cookie,_=A+"=",C=$.indexOf("; "+_);if(C==-1){C=$.indexOf(_);if(C!=0)return""}else C+=2;var B=document.cookie.indexOf(";",C);if(B==-1)B=$.length;return unescape($.substring(C+_.length,B))}var kf_now=new Date(),icon_ss=kf_now.getTime(),temp_d=parseInt(Math.random()*10000),user_str= icon_ss+"_"+temp_d,userid=getCookie("kf51_userid");if(userid==""||userid==null){setCookie("kf51_userid",user_str);userid=user_str}var ref=document.referrer,local_host=document.domain;if(ref.indexOf(local_host)<0)setCookie("kf51_referrer",ref);var icon_isIE=(document.all)?true:false,isOpera=navigator.userAgent.indexOf("Opera")>-1, isBackCompat=(document.compatMode=="BackCompat"),getScreenAttr=function(){var $=0,_=0;if(isBackCompat){if(document.body){$=document.body.clientWidth;_=document.body.clientHeight}}else if(document.documentElement){$=document.documentElement.clientWidth; _=document.documentElement.clientHeight}if($==0||_==0)if(document.body){$=document.body.clientWidth;_=document.body.clientHeight}else if(document.documentElement){$=document.documentElement.clientWidth; _=document.documentElement.clientHeight}if($==0||_==0)return[window.screen.availWidth-24,window.screen.availHeight-160];else return[$,_]},temp_screen=getScreenAttr();
var screen_w=temp_screen[0];
var screen_h=temp_screen[1];
kf_openurl_float+=("&keyword="+escape(getCookie('kf51_referrer')) + "&userid="+userid);

var Class={create:function(){return function(){this.initialize.apply(this,arguments)}}},Extend=function($,_){for(var A in _)$[A]=_[A]},Bind=function(_,$){return function(){return $.apply(_,arguments)}},BindAsEventListener=function(_,$){return function(A){return $.call(_,(A||window.event))}},CurrentStyle=function(A,_){if(A.style[_])return A.style[_];else if(A.currentStyle)return A.currentStyle[_];else if(document.defaultView&&document.defaultView.getComputedStyle){_=_.replace(/([A-Z])/g,"-$1").toLowerCase();var $=document.defaultView.getComputedStyle(A,"");return $&&$.getPropertyValue(_)}return null};function addEventHandler($,_,A){if($.addEventListener)$.addEventListener(_,A,false);else if($.attachEvent)$.attachEvent("on"+_,A);else $["on"+_]=A}function removeEventHandler($,_,A){if($.removeEventListener)$.removeEventListener(_,A,false);else if($.detachEvent)$.detachEvent("on"+_,A);else $["on"+_]=null}var KF_Drag=Class.create();KF_Drag.prototype={initialize:function(A,_,$){this.Drag=document.getElementById(A);this._x=this._y=0;this._marginLeft=this._marginTop=0;this._fM=BindAsEventListener(this,this.Move);this._fS=Bind(this,this.Stop);this._Lock=false;this.SetOptions(_,$);this._playRoller=null;this._lastDiffy=0;this._lastSW=0;this._lastSH=0;this.RollInit();addEventHandler(this.Drag,"mousedown",BindAsEventListener(this,this.Start))},SetOptions:function(dragargs,rollargs){this.dragargs={Handle:"",Lock:false,pos:"absolute",top:0,left:0};this.rollargs={Able:false,Lock:false,KeepX:0,KeepX_px:0,KeepY:0,Freq:5,Step:0.1};Extend(this.dragargs,eval("("+dragargs+")")||{});Extend(this.rollargs,eval("("+rollargs+")")||{})},RollInit:function(){if(this.dragargs.left>=0)this.Drag.style.left=this.dragargs.left+"px";if(this.dragargs.pos=="fixed"){this.rollargs.KeepY=0;if(isBackCompat&&icon_isIE){this.Drag.style.position="absolute";var $="#"+this.Drag.id+"{left:"+this.dragargs.left+"px;top:expression((ignoreMe=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"+(this.dragargs.top)+" +'px');}\n";if(document.body)if(document.body.style.backgroundImage==""||document.body.style.backgroundImage=="none"||(document.body.style.backgroundImage=="url(about:blank)"&&document.body.style.backgroundAttachment!="fixed"))$+="*html body{background:url(about:blank)  fixed;}";
if(!this._css){this.Drag.style["top"]="";for(var D=0;D<document.styleSheets.length;D++){var A=document.styleSheets[D];if(A.title=="css_5251"&&A.rules)for(var C=0;C<A.rules.length;C++)if(A.rules[C].selectorText.toLowerCase()=="#"+this.Drag.id)A.rules[C].style.top=""}this._css=document.createStyleSheet();this._css.cssText=$;this._css.title="css_5251"}}else{this.Drag.style.position="fixed";if(this.dragargs.top>=0)this.Drag.style.top=this.dragargs.top+"px"}this.rollargs.Able=true}else if(this.dragargs.pos=="absolute"){this.Drag.style.position="absolute";if(this.dragargs.top>=0)this.Drag.style.top=this.dragargs.top+"px"}this._marginTop=parseInt(CurrentStyle(this.Drag,"marginTop"))||0;this._marginLeft=parseInt(CurrentStyle(this.Drag,"marginLeft"))||0;if(this.rollargs.Able){if(this.rollargs.Freq<=0)this.rollargs.Freq=5;if(this.rollargs.Step<=0||this.rollargs.Step>=1)this.rollargs.Step=0.1;if(this.rollargs.KeepX<0||this.rollargs.KeepX>=100)this.rollargs.KeepX=0;if(this.rollargs.KeepX_px<0)this.rollargs.KeepX_px=0;if(this.rollargs.KeepX_px>0)this.rollargs.KeepX=0;if(this.rollargs.KeepX<0||this.rollargs.KeepX>=100)this.rollargs.KeepX=0;if(this.rollargs.KeepX_px>0||this.rollargs.KeepX>0||this.rollargs.KeepY>0){var B=getScreenAttr();this._lastSW=B[0];this._lastSH=B[1]}var _=this;_._playRoller=window.setInterval(function(){_.Roller()},this.rollargs.Freq)}},Start:function($){if(isOpera&&this.dragargs.pos=="fixed"){this.Drag.style.position="absolute";this.Drag.style.top=(this.Drag.offsetTop+this.getDiffY())+"px"}if(this.dragargs.Handle!="")try{var A=null;if($.srcElement)A=$.srcElement;else A=$.target;if(A.parentNode.id!=this.dragargs.Handle&&A.id!=this.dragargs.Handle)this._Lock=true;else this._Lock=false}catch(_){}if(this._Lock||this.dragargs.Lock)return;this._x=$.clientX-this.Drag.offsetLeft;this._y=$.clientY-this.Drag.offsetTop;addEventHandler(document,"mousemove",this._fM);addEventHandler(document,"mouseup",this._fS);if(icon_isIE){if(this.dragargs.pos=="fixed")for(var D=0;D<document.styleSheets.length;D++){var A=document.styleSheets[D];if(A.title=="css_5251"&&A.rules)for(var C=0;C<A.rules.length;C++)if(A.rules[C].selectorText.toLowerCase()=="#"+this.Drag.id)A.rules[C].style.top=(this.Drag.offsetTop)+"px"}addEventHandler(this.Drag,"losecapture",this._fS);this.Drag.setCapture()}else{addEventHandler(window,"blur",this._fS);$.preventDefault()}this.setRoll()},Move:function($){window.getSelection?window.getSelection().removeAllRanges():document.selection.empty();var A=$.clientX-this._x,_=$.clientY-this._y;this.Drag.style.left=A-this._marginLeft+"px";this.Drag.style.top=_-this._marginTop+"px"},Stop:function(){if(this._Lock||this.dragargs.Lock)return;removeEventHandler(document,"mousemove",this._fM);removeEventHandler(document,"mouseup",this._fS);if(icon_isIE){removeEventHandler(this.Drag,"losecapture",this._fS);this.Drag.releaseCapture()}else removeEventHandler(window,"blur",this._fS);if(this.rollargs.KeepX>0)this.rollargs.KeepX=(this.Drag.offsetLeft/(this._lastSW-this.Drag.offsetWidth)*100).toFixed(2);if(this.rollargs.KeepY>0)this.rollargs.KeepY=((this.Drag.offsetTop-this.getDiffY())/(this._lastSH-this.Drag.offsetHeight)*100).toFixed(2);if(this.dragargs.pos=="fixed")if(isBackCompat&&icon_isIE)if(this._css){var $=this._css.cssText;$=$.replace(/(\+.+\+)/gm,"+"+(this.Drag.offsetTop-this.getDiffY())+"+");this._css.cssText=$;this.Drag.style["top"]=""}if(isOpera&&this.dragargs.pos=="fixed"){this.Drag.style.top=(this.Drag.offsetTop-this.getDiffY())+"px";this.Drag.style.position="fixed"}this.cancelRoll()},Roller:function(){var $=this,A=0;if($.rollargs.Lock)return;try{var _=getScreenAttr();if(_[0]!=$._lastSW&&$.rollargs.KeepX_px>0){$.Drag.style.left=parseInt(_[0]-$.rollargs.KeepX_px-$.Drag.offsetWidth)+"px";$._lastSW=_[0];return}
if(_[0]!=$._lastSW&&$.rollargs.KeepX>0){$.Drag.style.left=parseInt((_[0]-$.Drag.offsetWidth)*$.rollargs.KeepX/100)+"px";$._lastSW=_[0];return}A=$.getDiffY();if(_[1]!=$._lastSH){
if($.rollargs.KeepY==100){$.Drag.style.top=(_[1]-$.Drag.offsetHeight+A)+"px";} else if($.rollargs.KeepY>0){$.Drag.style.top=parseInt((_[1]-$.Drag.offsetHeight)*$.rollargs.KeepY/100+A)+"px";}$._lastSH=_[1];return}if($.dragargs.pos !="absolute")return;var B=$.rollargs.Step*(A-$._lastDiffy); if(B>0)B=Math.ceil(B);else B=Math.floor(B);$._lastDiffy=$._lastDiffy+B;$.Drag.style.top=parseInt(B+ $.Drag.offsetTop-$._marginTop)+"px"}catch(C){$._playRoller=null}},getDiffY:function(){if(window.innerHeight)return window.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;else if(document.body)return document.body.scrollTop;else return 0},setRoll:function(){this.rollargs.Lock=true},cancelRoll:function(){this.rollargs.Lock=false}};var alignx_float = 2;
var alignW_float =25;
var alignH_float =50;
var alignLeft = alignW_float;
if(alignx_float == 2)	alignLeft = (screen_w - alignLeft - 110);
if(alignH_float < 0) alignH_float = 0;
var cssStr="<style type=\"text"+"\/css\"  rel=\"stylesheet\">\n";
cssStr+="#kf_51_list div img{ margin:0 auto;  padding:0}\n";
cssStr+=" #kf_51_list{text-align:center; border:1px #FC9 solid; width:126px; visibility:visible; z-index:9999; height:auto; position:absolute; font-family:\"&#24494; &#36719; &#38597; &#40657; \",Verdana,Tahoma; font-size:12px;background-color:#fff}\n";
cssStr+=" #kf_51_list_header{cursor:move;width:126px; height:22px; background:transparent url(http://img.5251.net/images/float_tiger/top.jpg) no-repeat; position:relative;  margin:0 auto}\n";
cssStr+="#kf_51_list_header img{cursor:pointer; position:absolute; top:6px; right:6px}\n";
cssStr+="#kf_51_list_content{width:126px; height:auto; position:relative; text-align:center; background-color:#FFF}\n";
 cssStr+="#kf_51_list_footer{width:126px; height:84px; cursor:pointer; margin:0 auto; background:transparent url(http://img.5251.net/images/float_tiger/bottom.jpg) no-repeat}\n";
cssStr+="#kf_51_list ul.kf_list_body{background:transparent; list-style:none; margin:5px auto 5px;*margin:5px 0; padding:0; width:126px}\n";
cssStr+="#kf_51_list ul div{background:none; overflow:hidden; line-height:15px; text-align:left; white-space:nowrap; cursor:pointer; margin:0 auto}\n";
cssStr+="#kf_51_list li{height:22px; vertical-align:middle; width:auto; overflow:hidden; position:relative}\n";
cssStr+="#kf_51_list li div{height:20px; cursor:pointer; left:20px; top:1px; position:absolute; line-height:20px; color:#000; width:70px}\n";
cssStr+="#kf_51_list li p{height:20px; line-height:20px; display:block; width:35px; margin:0px; right:3px; top:1px; position:absolute; cursor:pointer}\n";
cssStr+="#kf_51_list li img{left:5px; top:3px; position:absolute; color:#000;border:none}\n";
cssStr+="#kf_51_list li.kf_list_group{color:#fff; letter-spacing:2px; text-align:left; font-weight:bold}\n";
cssStr+="#kf_51_list li.kf_offline{color:#F00; width:auto}\n";
cssStr+="#kf_51_list li.kf_online{color:#000; width:auto}\n";
cssStr+="#kf_51_list li.kf_offline p{color:#000}\n";
cssStr+="#kf_51_list li.kf_online p{color:#FFA827}\n";
cssStr+="#kf_51_list li.kf_qq div{height:20px; left:35px; top:1px; position:absolute; line-height:20px; color:#000; width:85px; white-space:nowrap}\n";
cssStr+="#kf_51_list li.kf_msn div{height:20px; left:35px; top:1px; position:absolute; line-height:20px; color:#000; width:85px; white-space:nowrap}\n";
cssStr+="#kf_51_list li.kf_msn img{left:12px;}\n";
cssStr+="#kf_51_list li a:link{color:#000; text-decoration:none}\n";
cssStr+="#kf_51_list li a:visited{color:#000; text-decoration:none}\n";
cssStr+="#kf_51_list li a:hover{color:#000; text-decoration:none}\n";
cssStr+="#kf_51_list ul img.kf_alww_img{position:static;}\n";
cssStr+="\/\/-->\n";
cssStr+="<\/st"+"yle>";
document.write(cssStr);
var showStr='<div id="kf_51_list">\n';
showStr += '<div  id="kf_51_list_header">';

showStr +='<img src="http://img.5251.net/images/float_tiger/close.gif" border="0" onclick="javascript:hidden_float_div();"/>';

showStr += '</div>\n';
showStr += '<div  id="kf_51_list_content">\n';
showStr += '<img src="http://img.5251.net/images/float_tiger/tel.jpg"><ul class="kf_list_body">\n';

					showStr += '<li  class="kf_online"><img src="http://img.5251.net/images/float_tiger/online.gif"><div onclick="javascript:open_chat_person(\'25174\')">&#x5c0f;&#x5b54;</div><p onclick="javascript:open_chat_person(\'25174\')">&#x8054;&#x7cfb;</p></li>\n';
			
					showStr += '<li  class="kf_online"><img src="http://img.5251.net/images/float_tiger/online.gif"><div onclick="javascript:open_chat_person(\'25175\')">&#x5c0f;&#x865e;</div><p onclick="javascript:open_chat_person(\'25175\')">&#x8054;&#x7cfb;</p></li>\n';
			
					showStr += '<li  class="kf_offline"><img src="http://img.5251.net/images/float_tiger/offline.gif"><div onclick="javascript:open_chat_person(\'25203\')">&#x5c0f;&#x4e54;</div><p onclick="javascript:open_chat_person(\'25203\')">&#x7559;&#x8a00;</p></li>\n';		
				
					showStr += '<li  class="kf_online"><img src="http://img.5251.net/images/float_tiger/online.gif"><div onclick="javascript:open_chat_person(\'25173\')">&#x5c0f;&#x5218;</div><p onclick="javascript:open_chat_person(\'25173\')">&#x8054;&#x7cfb;</p></li>\n';
			
					showStr += '<li  class="kf_online"><img src="http://img.5251.net/images/float_tiger/online.gif"><div onclick="javascript:open_chat_person(\'25204\')">&#x5c0f;&#x5f20;</div><p onclick="javascript:open_chat_person(\'25204\')">&#x8054;&#x7cfb;</p></li>\n';
			
showStr +='</ul></div>\n';
showStr +='<div  id="kf_51_list_footer" onclick="javascript:open_chat()"></div>\n';
showStr +='</div>\n';
document.write(showStr);
function hidden_float_div(){document.getElementById("kf_51_list").style.visibility="hidden"};
var kf_drag=new KF_Drag("kf_51_list","{Handle:'kf_51_list_header',pos:'absolute',top:"+alignH_float+",left:"+alignLeft+"}","{Able:true,Lock:false,KeepX_px:"+(alignx_float==2?alignW_float:0)+"}");

function open_chat()
{
	try{
		var chat_win= window.open(kf_openurl_float,'chat_'+companyId,'height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no');
		chat_win.focus();
		sendAndRecieve("/js/recieve.jsp?state=3&companyId="+companyId+"&sessionId="+userid);
	}catch(e){}	
}
function open_chat_person(workerid)
{
	try{
	var chat__win = window.open(kf_openurl_float+'&workId='+workerid+'&flag=3','chat_'+companyId,'height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no');
	chat__win.focus();
	sendAndRecieve("/js/recieve.jsp?state=4&companyId="+companyId+"&sessionId="+userid);}catch(e){}
}
function open_tel_chat(wiseid,seat)
{
	try{
		 var etel_url = "http://etel.5251.net/etel/dial.jsp?wiseid=" + wiseid + "&seat=" + seat +"&com_name=%E4%BA%94%E8%99%8E%E9%80%9A%E8%AE%AF";
		var win = window.open(etel_url,'e_tel_chat','height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,location=no,titlebar=no');
		win.focus();
	}catch(e){}
}

function y_gVal(iz)
{var endstr=document.cookie.indexOf(";",iz);if(endstr==-1) endstr=document.cookie.length;return document.cookie.substring(iz,endstr);}
function y_g(name)
{var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;var j;while(i<clen) {j=i+alen;if(document.cookie.substring(i,j)==arg) return y_gVal(j);i=document.cookie.indexOf(" ",i)+1;if(i==0) break;}return null;}
function cc_k()
{var y_e=new Date();var y_t=31104000000;var yesvisitor=1000*36000;var yesctime=y_e.getTime();y_e.setTime(y_e.getTime()+y_t);var yesiz=document.cookie.indexOf("cck_lasttime");if(yesiz==-1){document.cookie="cck_lasttime="+yesctime+"; expires=" + y_e.toGMTString() +  "; path=/";document.cookie="cck_count=0; expires=" + y_e.toGMTString() +  "; path=/";return 0;}else{var y_c1=y_g("cck_lasttime");var y_c2=y_g("cck_count");y_c1=parseInt(y_c1);y_c2=parseInt(y_c2);y_c3=yesctime-y_c1;if(y_c3>yesvisitor){y_c2=y_c2+1;document.cookie="cck_lasttime="+yesctime+"; expires="+y_e.toGMTString()+"; path=/";document.cookie="cck_count="+y_c2+"; expires="+y_e.toGMTString()+"; path=/";}return y_c2;}}
var yesdata;
yesdata='companyId=25168&userid='+userid+'&refe='+escape(document.referrer)+'&location='+escape(document.location)+'&color='+screen.colorDepth+'x&resolution='+screen.width+'x'+screen.height+'&returning='+cc_k()+'&language='+navigator.systemLanguage+'&ua='+escape(navigator.userAgent)+'&ip=';
var host_stat = document.domain;
var refe_stat = document.referrer;
if(refe_stat == null)refe_stat= "";
var pos = refe_stat.indexOf(host_stat);

if( refe_stat == "" || pos == -1 )
{
	js_src = "http://etel.5251.net/stat.jsp?" +yesdata;
	var script=document.createElement("script");
	script.type='text/javascript';
	script.language='javascript';
	script.src=js_src;
	document.getElementsByTagName("head")[0].appendChild(script);
}
	

var work_id=0;

//code over