function SymError(){return true;}
window.onerror = SymError;
document.writeln("");
var Fookie={isReady:false,swf:null,swfId:"fookie_swf_"+Math.round(Math.random()*100),swfUrl:"http://www.kf.yingwl.cn/fookie.swf",application:"Ykf_fookie_data",path:"/",expires:1000,secure:false,onready:function(){},imReady:function(){this.isReady=true;this.swf=document[this.swfId]?document[this.swfId]:window[this.swfId];this.onready()},init:function(b,a){if(b){this.swfUrl=b}a=a||{};this.onready=a.onready?a.onready:this.onready;this.application=a.application?a.application:this.application;this.path=a.path?a.path:this.path;this.expires=a.expires?a.expires:this.expires;this.secure=a.secure?true:this.secure;this._waitDomReady()},write:function(d,g,c){c=c||{};var b=c.application?c.application:this.application;var i=c.path?c.path:this.path;var h=c.expires?c.expires:this.expires;var f=c.secure?true:this.secure;if(this.swf&&this.swf.write){return this.swf.write(d,g,b,i,h,f)}return null},read:function(d,c){c=c||{};var b=c.application?c.application:this.application;var f=c.path?c.path:this.path;var e=c.secure?true:this.secure;if(this.swf&&this.swf.read){return this.swf.read(d,b,f,e)}},remove:function(d,c){c=c||{};var b=c.application?c.application:this.application;var f=c.path?c.path:this.path;var e=c.secure?true:this.secure;if(this.swf&&this.swf.remove){return this.swf.remove(d,b,f,e)}},clear:function(c){c=c||{};var b=c.application?c.application:this.application;var e=c.path?c.path:this.path;var d=c.secure?true:this.secure;if(this.swf&&this.swf.clear){return this.swf.remove(b,e,d)}},_writeSwf:function(){var a=['"].join("");var b=document.createElement("div");b.style.cssText="display:block;border:none;width:1px;height:1px;overflow:hidden;";document.body.appendChild(b);b.innerHTML=a},_waitDomReady:function(){var c=navigator.userAgent.toLowerCase();var b={safari:/webkit/.test(c),opera:/opera/.test(c),msie:/msie/.test(c)&&!/opera/.test(c),mozilla:/mozilla/.test(c)&&!/(compatible|webkit)/.test(c)};if(b.mozilla||b.opera){document.addEventListener("DOMContentLoaded",Fookie._domready,false)}else{if(b.msie){document.write("");var a=document.getElementById("__ie_onload");if(a){a.onreadystatechange=function(){if(this.readyState=="complete"){Fookie._domready()}}}a=null}else{if(b.safari){Fookie.safariTimer=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(Fookie.safariTimer);Fookie.safariTimer=null;Fookie._domready()}},10)}}}},_domready:function(){Fookie._writeSwf()}};
function readCookie(name)
{
var cookieValue = "";
var search = name + "=";
if(document.cookie.length > 0)
{
offset = document.cookie.indexOf(search);
if (offset != -1)
{
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
cookieValue = unescape(document.cookie.substring(offset, end))
}
}
return cookieValue;
}
function writeCookie(name, value, years)
{
var expire = "";
if(years != null)
{
expire = new Date((new Date()).getTime() + years * 3600000 * 8760 );
expire = "; expires=" + expire.toGMTString();
}
document.cookie = name + "=" + escape(value) + expire;
}
// ie8 = IE8_Partner_Build [2008-12-11]
function detectBrowser()
{
var ret="ie6";
var user_agent = navigator.userAgent;
if(user_agent.indexOf("compatible")>-1)
{
if(user_agent.indexOf("MSIE 6.0") > -1)
ret="ie6"
else if(user_agent.indexOf("MSIE 7.0") > -1)
ret="ie7";
else if(user_agent.indexOf("MSIE 8.0") > -1)
ret="ie8";
}
else if(user_agent.indexOf("Gecko") > -1)
ret="firefox";
return ret;
}
var browser=detectBrowser();
function comptime(beginTime,endTime){
var beginTimes=beginTime.substring(0,10).split('-');
var endTimes=endTime.substring(0,10).split('-');
beginTime=beginTimes[1]+'-'+beginTimes[2]+'-'+beginTimes[0]+' '+beginTime.substring(10,19);
endTime=endTimes[1]+'-'+endTimes[2]+'-'+endTimes[0]+' '+endTime.substring(10,19);
var a =(Date.parse(endTime)-Date.parse(beginTime))/3600/1000;
if(a<0){
return -1;
}else if (a>0){
return 1;
}else if (a==0){
return 0;
}else{
return 'exception'
}
}
function today(){
var dd, ss="";
dd = new Date();
ss += dd.getYear()+"-";
ss += (dd.getMonth() + 1) + "-";
ss += dd.getDate();
return ss;
}
var scrollPos;
if(typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
scrollPos = document.documentElement;
}else if (typeof document.body != 'undefined') {
scrollPos = document.body;
}
function $(id){return document.getElementById(id);}
var bodyfrm = ( document.compatMode.toLowerCase()=="css1compat" ) ? document.documentElement : document.body;
document.writeln("");
var ykf_lan= "";
var owner = "lingen";
var ip = "38.107.191.96";
var ykf_zx = 2;
var ykf_zid=0;
var ykf_zuse="";
var VisitID = readCookie("VisitID");
var ykf_kuse = readCookie("ykf_kuse");
var ykf_browser = readCookie("ykf_browser");
if(ykf_kuse!=owner){
writeCookie("ykf_kuse",owner,3);
VisitID="";
}
if(ykf_browser!=browser){
writeCookie("ykf_browser",browser,3);
VisitID="";
}
function esc_flt(){
$("ykfoLayer1").style.display="none";
}
function ycshow(tt){
yclx1();
}
var adminUin,comTimes,badClick,TalkTimes,LastVisitTime,LastTalkTime,LastTalkUin,get_key,ss_f,ischk;
var FCk_ow="YingKefu_HouGaoFeng_ly";
var day = new Date();
var keyj=0;
var my_sign=1;
var vsid=16184920;
var time = day.getYear()+"-"+(day.getMonth()+1)+"-"+day.getDate()+" "+day.getHours()+":"+day.getMinutes()+":"+day.getSeconds();
var msgbox='{"adminUin":"'+owner+'","vsid":'+vsid+',"comTimes":1,"badClick":0,"TalkTimes":0,"LastVisitTime":"'+time+'","LastTalkTime":"","LastTalkUin":""}';
function rewiteFookie(){newstr='{"adminUin":"'+owner+'","vsid":'+vsid+',"comTimes":'+comTimes+',"badClick":0,"TalkTimes":'+TalkTimes+',"LastVisitTime":"'+time+'","LastTalkTime":"'+LastTalkTime+'","LastTalkUin":"'+LastTalkUin+'"}';
Fookie.write(escape(owner),newstr);
}
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("");
//if(owner=="yingkf"){alert(readCookie("VisitID"));}
function tan(){
window.open(talkurl,owner,"top=0,left=100,width=700,height=460,scrollbars=no,resizable=no,status=yes,z-look=yes,alwaysRaised=yes,location=no,depended=no,center:yes");
yclxc();
}
function tana(s){//window.location.href=s;
window.open(s,owner,"top=0,left=100,width=700,height=460,scrollbars=no,resizable=no,status=yes,z-look=yes,alwaysRaised=yes,location=no,depended=no,center:yes");}
document.write("");
document.write("");
function ycshow(tt){yclx1();}
document.writeln("");
document.writeln("");
document.writeln("");
function SearchKey() {
if (!document.createElement) return;
ref = document.referrer;
if (ref.indexOf("?") == -1) return;
qs = ref.substr(ref.indexOf("?")+1);
qsa = qs.split("&");
for (i=0;i ggtx){yk_ky(strgg);}
}
}
else if (ss_f=="bd"){
if(bdjj==1){
if(comTimes==bdtx){ keyj=1; alert(w1c);window.location.href=unescape(w2c);}
else if(comTimes > bdtx){yk_ky(strbd); }
}else{}
}
else{}
}
function yk_ky(s){
var k_ary = rep_str(s).split(",");
for(var i=0;i<\/script>");
}
function ready(){
myCk=Fookie.read(FCk_ow);
if (!myCk){
Fookie.clear;
Fookie.write(FCk_ow,'{"Create":""}');
}
str=Fookie.read(owner);
if (!str){
Fookie.write(escape(owner),msgbox);
ready();//从新载入一下
}
//str=str.substr(1,str.length-2);
$("y_tid").value=str;
}
Fookie.init('',{'onready':ready});
function ykfjsnn(){
my_sign = my_sign+1;
var y_mm=$("y_tid").value;
if(y_mm=="init"){
if(my_sign > 10){ //alert(my_sign);
//return false;
}else{
setTimeout("ykfjsnn()",1000);
}
}
badClick = JSON.parse(y_mm).badClick;
comTimes = parseInt(JSON.parse(y_mm).comTimes+1);
TalkTimes = parseInt(JSON.parse(y_mm).TalkTimes);
vsid = JSON.parse(y_mm).vsid;
$("y_vid").value=vsid;
$("y_kj").value=keyj;
$("y_cnum").value=comTimes;
writeCookie("VisitID",vsid,0);
ischk=JSON.parse(y_mm).adminUin;
LastVisitTime=JSON.parse(y_mm).LastVisitTime;
LastTalkTime=JSON.parse(y_mm).LastTalkTime;
LastTalkUin=JSON.parse(y_mm).LastTalkUin;
if(owner!=ischk){
Fookie.clear;
//Fookie.init('',{'onready':ready});
}
SearchKey();
if((ykf_key_jj[0]=="on")&&(comptime(today(),ykf_key_jj[1])>=0)){IsOver();}
rewiteFookie();
}
setTimeout("ykfjsnn();",1000);
function line(){
vvid=$("y_vid").value;
vkj=$("y_kj").value;
ycnum=$("y_cnum").value;
if (vvid=="init"){vvid=""}
if (vkj=="init"){vkj=0}
if (ycnum=="init"){ycnum=0}
/*if (ip=="123.14.90.230" && owner=="yingkf"){
mmm1='/line_nt.asp?lailu='+escape(document.referrer)+'&ip='+ip+'&urll='+escape(document.location.href)+'&kuse='+owner+'&VisitID='+vvid+'&keyj='+vkj+'&cts='+ycnum+'';
alert(mmm1);
}*/
//$("pt_ss").src='/line_nt_lyf.asp?lailu='+escape(document.referrer)+'&ip='+ip+'&urll='+escape(document.location.href)+'&kuse='+owner+'&VisitID='+vvid+'&keyj='+vkj+'&cts='+ycnum+'';
var node = document.createElement("script");
node.src = 'http://www.kf.yingwl.cn/line_nt_lyf.asp?lailu='+escape(document.referrer)+'&ip='+ip+'&urll='+escape(document.location.href)+'&kuse='+owner+'&VisitID='+vvid+'&keyj='+vkj+'&cts='+ycnum+'';
document.getElementsByTagName("head")[0].appendChild(node);
}
setTimeout("line();",1500);
function onner(){
//$("ycc").src="/kf/yc_lyf.asp?ip="+ip+"&kuse="+owner+"&VisitID="+vvid;
var node1 = document.createElement("script");
node1.src = "http://www.kf.yingwl.cn/kf/yc_lyf.asp?ip="+ip+"&kuse="+owner+"&VisitID="+vvid;
document.getElementsByTagName("head")[0].appendChild(node1);
setTimeout("onner()", 30000);
}
if(ykf_zx==1){setTimeout("onner()", 3000);}