var companyId = 18750;
var kf_openurl="http://chat.5251.net/client.jsp?flag=1&companyId=18750&style=40514&locate=cn" +"&refer="+ escape(window.location.href)+"&username="+encodeURIComponent("")+"&conn_word="+encodeURIComponent("");
/*
 * Compressed by JSA(www.xidea.org)
 */
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(),ss=kf_now.getTime(),temp_d=parseInt(Math.random()*10000),user_str=""+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 screen_w=0,screen_h=0;function getSreenAttr(){ if(document.compatMode=='BackCompat'){if(document.body){screen_w=document.body.clientWidth;screen_h=document.body.clientHeight}}else{if(document.documentElement){screen_w=document.documentElement.clientWidth;screen_h=document.documentElement.clientHeight}};if(screen_w == 0 || screen_h == 0){if(document.body){ screen_w=document.body.clientWidth;screen_h=document.body.clientHeight}	else if(document.documentElement){ screen_w=document.documentElement.clientWidth;screen_h=document.documentElement.clientHeight}}};getSreenAttr();

kf_openurl+=("&keyword="+escape(getCookie('kf51_referrer')) + "&userid="+userid);
var is_kf_online = 0;
var kf_workids = "";
var workids = "";

function open_pic_chat()
{
	var chat_win= window.open(kf_openurl,'chat_18750','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();
	try{sendAndRecieve("/js/recieve.jsp?state=4&companyId="+18750+"&sessionId="+userid);}catch(e){}
}

function open_chat_person(workerid)
{
	var chat_win = window.open(kf_openurl+'&workId='+workerid+'&flag=3','chat_18750','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();
	try{sendAndRecieve("/js/recieve.jsp?state=4&companyId="+companyId+"&sessionId="+userid);}catch(e){}
}
function open_tel_chat(wiseid,seat)
{
    var etel_url = "http://etel.5251.net/etel/dial.jsp?wiseid=" + wiseid + "&seat=" + seat+"&com_name="+encodeURIComponent("&#x4e1c;&#x5317;&#x5927;&#x5b66;&#x543e;&#x601d;&#x7279;&#x57f9;&#x8bad;&#x4e2d;&#x5fc3;%>");
	var wins = 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');
	wins.focus();
}
var judge_kf_isonline=function(workerid){if(kf_workids.indexOf(","+workerid+",")>-1)return true; else return false}
var kftype=2, isonline = 0, myid="client",onliner_id=1, img_hight = 0,img_width = 0, hasOpen= false,closeButton = false,closeIMG ="http://img.5251.net/images/close.gif";
		var img_on = "http://img.5251.net/upload/2008-09-02/1088215854.gif",img_off = "http://img.5251.net/upload/2008-09-02/10882158160.gif",alignx = 1,alignW =1,alignH =-1,alignHStr ="";
 var float_flag = 0,isIE = (document.all) ? true: false, isIE8=(navigator.userAgent.indexOf("MSIE 8")>0) ? true:false,isFF = (navigator.userAgent.indexOf("Firefox")>0) ?true:false,icon_cssMode=(isIE&&document.compatMode=="BackCompat")?true:false;
/*
 * Compressed by JSA(www.xidea.org)
 */
function IconClass(){this.property=new Array();this.imgsrc=(isonline==1)?img_on:img_off;this.left=0;this.top=0;this.show="";this.scrollTimer=null;this.floatHtml=null;this.autoScroll=iconAutoScroll;this.imageTimer=onliner_imageTimer;this.get_tip_str=onliner_get_tip_str;this.win_open=onliner_win_open;this.start=icon_start;this.initialize=icon_init;this.get_clost_str=onliner_get_close_str;this.hidden=hidden_div;this.icon_css_st=get_icon_css_str}function icon_init(){getImageProperty();icon.start();icon.scrollTimer=window.setInterval("icon.autoScroll()",3)}function icon_start(){if(float_flag==1&&icon_cssMode&&document.body){if(document.body.currentStyle.backgroundImage=="none"||(document.body.currentStyle.backgroundImage=="url(about:blank)"&&document.body.currentStyle.backgroundAttachment!="fixed"))document.body.style.background="url(about:blank) no-repeat fixed";}var $=document.createElement("DIV");$.id="kf_icon_div";this.left=alignW;if(alignx==2)this.left=screen_w-this.property["width"]-alignW;this.top=alignH;if(alignH<0)this.top=screen_h-this.property["height"]-2;alignHStr="left:"+this.left+"px;";if(isIE){document.write("<div id='kf_icon_div' ></div>");try{var n=document.getElementById("kf_icon_div").parentNode}catch(t){}if(null!=n)if(n.currentStyle.position=="relative"||n.currentStyle.position=="fixed"||n.currentStyle.position=="absolute"){var t=n.removeChild(document.getElementById("kf_icon_div"));try{document.body.insertBefore(t,n)}catch(x){try{n.previousSibling.insertAdjacentElement("afterEnd",$)}catch(I){}}}}else if(document.getElementsByTagName("BODY").item(0))document.getElementsByTagName("BODY").item(0).appendChild($);else document.write("<div id='kf_icon_div' ></div>")}function onliner_get_close_str(){if(closeButton)return"<img onclick='icon.hidden()' style='position:absolute; right:7px; top:7px; cursor:hand;' src='"+closeIMG+"'/>";return""}function hidden_div(){this.show="none";document.getElementById("kf_icon").style.display="none";try{clearInterval(icon.scrollTimer)}catch($){}}function onliner_win_open(){hasOpen=true;open_pic_chat()}function onliner_imageTimer(){try{if(document.getElementById("kf_icon_div").innerHTML.indexOf(".gif")==-1&&document.getElementById("kf_icon_div").innerHTML.indexOf(".jpg")==-1&&document.getElementById("kf_icon_div").innerHTML.indexOf(".swf")==-1){this.get_tip_str();document.getElementById("kf_icon_div").innerHTML=this.floatHtml}}catch($){}}function onliner_get_tip_str(){var $="";	var _="<img src='"+this.imgsrc+"' border='0' style='cursor:pointer' onclick='icon.win_open()'/>";$+="<DIV id='kf_icon' style='"+this.icon_css_st()+"'>"+this.get_clost_str()+_+"</div>";this.floatHtml=$}function get_icon_css_str(){var $="z-index:7998;display:"+this.show+";"+alignHStr+"width:"+this.property["width"]+"px;height:"+this.property["height"]+"px;overflow:hidden;top:"+this.top+"px;";if(float_flag==1)if(icon_cssMode){return $+"top:expression( ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop )+"+this.top+"+\"px\");position: absolute;"}else return $+"position: fixed !important;';";return $+"position: absolute;"}var icon_lastDiffY=0;function iconAutoScroll(){try{showKFDiv();}catch($){}getImageProperty();if(document.compatMode=='BackCompat'){if(document.body){screen_w=document.body.clientWidth;screen_h=document.body.clientHeight}}else{if(document.documentElement){screen_w=document.documentElement.clientWidth;screen_h=document.documentElement.clientHeight}};this.left=alignW;if(alignx==2)this.left=screen_w-this.property["width"]-alignW;this.top=alignH;if(alignH<0)this.top=screen_h-this.property["height"]-2;if(document.getElementById("kf_icon_div").innerHTML=="")this.imageTimer();if(float_flag==0){try{var B=document.documentElement.scrollTop,A=document.documentElement.scrollLeft;if(B==0)B=document.body.scrollTop;if(A==0)A=document.body.scrollLeft;var _=0.1*(B-icon_lastDiffY);if(_>0)_=Math.ceil(_);else _=Math.floor(_);icon_lastDiffY=icon_lastDiffY+_;if(_==0)document.getElementById("kf_icon").style.top=parseInt(B+this.top)+"px"; else document.getElementById("kf_icon").style.top=parseInt(_+document.getElementById("kf_icon").offsetTop)+"px"; if(document.getElementById("kf_icon").offsetTop<=0)document.getElementById("kf_icon").style.top=parseInt(B+this.top)+"px";document.getElementById("kf_icon").style.left=parseInt(A+this.left)+"px"}catch($){}}}function getImageProperty(){if(img_hight>0&&img_width>0)return;var _=img_off;if(isonline==1)_=img_on;if(_.indexOf(".txt")>-1)return;if(_.indexOf("10913144096.jpg")>0||_.indexOf("en_offline.gif")>0){img_hight=88;img_width=171;icon.property["height"]=img_hight;icon.property["width"]=img_width;return}if(_.indexOf("1088215854.gif")>0||_.indexOf("10882158160.gif")>0){img_hight=62;img_width=143;icon.property["height"]=img_hight;icon.property["width"]=img_width;return}if(_.indexOf("10882158490.gif")>0||_.indexOf("1088215996.gif")>0){img_hight=125;img_width=93;icon.property["height"]=img_hight;icon.property["width"]=img_width;return}if(_.indexOf("10882157269.gif")>0||_.indexOf("10882156495.gif")>0){img_hight=73;img_width=119;icon.property["height"]=img_hight;icon.property["width"]=img_width;return}if(_.indexOf("108841759233.gif")>0||_.indexOf("108841759409.gif")>0){img_hight=111;img_width=82;icon.property["height"]=img_hight;icon.property["width"]=img_width;return}var B=_.indexOf("_");if(B>0){var $=_.indexOf("_",B+1);img_width=parseInt(_.substr(B+1,$));img_hight=parseInt(_.substr($+1));icon.property["height"]=img_hight;icon.property["width"]=img_width;return}if(companyId==11328){img_hight=159;img_width=120;icon.property["height"]=img_hight;icon.property["width"]=img_width;return}if(companyId==7114){img_hight=77;img_width=160;icon.property["height"]=img_hight;icon.property["width"]=img_width;return}var A=new Image();if(isonline)A.src="\"+img_on+\"";else A.src="\"+img_off+\"";A.onerror=function(){};if(!A.complete){setTimeout("getImageProperty()",100);return}img_hight=A.height;img_width=A.width;icon.property["height"]=img_hight;icon.property["width"]=img_width}var icon=new IconClass();icon.initialize();


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=18750&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);
}





