//var xmlhttp = null;

function loadAjaxDataAsyn(url,gofun,parameters,errback,ishowerr){
   var errmsg = "";
   var paramet="";
   for(var i=0;i<parameters.length;i++){
	  paramet += paramet=="" ? "parameters["+i+"]" : ",parameters["+i+"]";
   }
   var xmlhttp = CreateRequestObj();
   if(xmlhttp == null){
   	   errmsg = "加载ActiveXObject[xmlhttp]失败";
   	   if(ishowerr){alert(errmsg);}
   	   if(errback!=""){eval(errback+"(errmsg"+(paramet!=""?","+paramet:"")+");");}
   }else{
       xmlhttp.open("get",url,true);
       xmlhttp.onreadystatechange = function(){ 
          var html="";
          try{
             if(xmlhttp.readyState==4){
	            if(xmlhttp.status==200){
	               html = xmlhttp.responseText;
	               xmlhttp = null;
	               eval(gofun+"(html"+(paramet!=""?","+paramet:"")+");");
                }else if(xmlhttp.status==500){
	     	       xmlhttp = null;
	     	       errmsg = "数据加载失败[status=500]";
	     	       if(ishowerr){alert(errmsg);}
	     	       if(errback!=""){eval(errback+"(errmsg"+(paramet!=""?","+paramet:"")+");");}
                }else{
	     	       errmsg = "数据加载失败[status="+xmlhttp.status+"]";
	     	       xmlhttp = null;
	     	       if(ishowerr){alert(errmsg);}
	     	       if(errback!=""){eval(errback+"(errmsg"+(paramet!=""?","+paramet:"")+");");}
                }
             }
          }catch(e){
          	 errmsg = "Try xmlhttp.open 失败";
   	         if(ishowerr){alert(errmsg);}
   	         if(errback!=""){eval(errback+"(errmsg"+(paramet!=""?","+paramet:"")+");");}
          }
       }
       xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
       xmlhttp.send(null);
   }
} 

function PostAjaxDataAsyn(url,gofun,parameters,sendate,errback){
   var paramet="";
   for(var i=0;i<parameters.length;i++){
	  paramet += paramet=="" ? "parameters["+i+"]" : ",parameters["+i+"]";
   }
   var xmlhttp = CreateRequestObj();
   if(xmlhttp == null){
   	   alert("加载ActiveXObject[xmlhttp]失败[POST]");
   	   if(errback!=""){eval(errback+"("+paramet+");");}
   }else{
       xmlhttp.open("post",url,true);
       xmlhttp.onreadystatechange = function(){ 
          var html="";
          try{
             if(xmlhttp.readyState==4){
	            if(xmlhttp.status==200){
	               html = xmlhttp.responseText;
	               xmlhttp = null;
	               eval(gofun+"(html"+(paramet!=""?","+paramet:"")+");");
                }else if(xmlhttp.status==500){
	     	       xmlhttp = null;
	     	       alert("数据加载失败[status=500][POST]");
	     	       if(errback!=""){eval(errback+"("+paramet+");");}
                }
             }
          }catch(e){
   	         alert("Try xmlhttp.open 失败[POST]");
   	         if(errback!=""){eval(errback+"("+paramet+");");}
          }
       }
       xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
       xmlhttp.send(sendate);
   }
} 

function loadAjaxDataAsynchronousV(url,gofun){
   var xmlhttp = CreateRequestObj();
   if(xmlhttp == null){
   	   alert("加载ActiveXObject失败1");
   }else{
       xmlhttp.open("get",url,true);
       xmlhttp.onreadystatechange = function(){ 
          var html="";
          try{
             if(xmlhttp.readyState==4){
	            if(xmlhttp.status==200){
	               html = xmlhttp.responseText;
	               xmlhttp = null;
	               eval(gofun+"(html);");
                }else if(xmlhttp.status==500){
	     	       xmlhttp = null;
	     	       alert("数据加载失败");
                }
             }
          }catch(e){
   	         alert("加载ActiveXObject失败2");
          }
       }
       xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
       xmlhttp.send(null);
   }
}

function loadAjaxDataSynchronization(url){
   var html = "";
   var request = CreateRequestObj();
   if(request == null){
   	   return "加载AXO失败";
   }else{
       request.onreadystatechange = function(){
          if(request.readyState==4){
	         if(request.status==200){
	            html = request.responseText;
	         }else if(request.status==500){
	            html = "数据加载失败";
	         }
          }
       };
       request.open("get",url,false);
       request.send(null);
       request = null;
       return html;
   }
} 

function CreateRequestObj(){
   var objXMLHttp = null;
   if (window.XMLHttpRequest){
      objXMLHttp = new XMLHttpRequest();
   }else{
      var MSXML = ['MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP'];
      for(var n=0; n<MSXML.length; n++){
         try{
            objXMLHttp = new ActiveXObject(MSXML[n]);
            break;
         }catch(e){}
      }
   }
   return objXMLHttp;
}

function GetRands(){
   var now= new Date(); 
   var year=now.getYear(); 
   var month=now.getMonth()+1; 
   var day=now.getDate(); 
   var hour=now.getHours(); 
   var minute=now.getMinutes(); 
   var second=now.getSeconds(); 
   return year+""+month+""+day+""+hour+""+minute+""+second;
}

function iframeAuto(){
  try{
     if(window!=parent){//定位需要调整的frame框架（在父级窗口中查找）
       var a = parent.document.getElementsByTagName("IFRAME");
       for(var i=0; i<a.length; i++){
          if(a[i].contentWindow==window){
             var h1=0, h2=0;
             a[i].parentNode.style.height = a[i].offsetHeight +"px";
             a[i].style.height = "10px";              //首先设置高度为10px,后面会修改
             if(document.documentElement&&document.documentElement.scrollHeight){
                h1=document.documentElement.scrollHeight;
             }
             if(document.body) h2=document.body.scrollHeight;
             var h=Math.max(h1, h2);               //取两者中的较大值
             if(document.all) {h += 4;}
             if(window.opera) {h += 1;}//调整框架的大小
             h+=100;
             a[i].style.height = a[i].parentNode.style.height = h +"px";
          } 
       } 
     }
  }catch (ex){}
}

function IframeAutoHeight(){
  //事件绑定的方法，支持IE5以上版本
  if(window.attachEvent){
    window.attachEvent("onload", iframeAuto);
  }else if(window.addEventListener){
    window.addEventListener('load', iframeAuto, false);
  }
}

function writeLkecnCookie(arg_CookieName,arg_CookieValue,arg_ExpireType,arg_CookieExpire){
  var todayDate=new Date();
  if(arg_ExpireType == 'years'){
      todayDate.setFullYear(todayDate.getFullYear()+arg_CookieExpire);
  }else if(arg_ExpireType == 'days'){
      todayDate.setDate(todayDate.getDate()+arg_CookieExpire); 
  }else if(arg_ExpireType == 'months'){
  	  todayDate.setMonth(todayDate.getMonth()+arg_CookieExpire); 
  }else if(arg_ExpireType == 'hours'){
  	  todayDate.setHours(todayDate.getHours()+arg_CookieExpire); 
  }else if(arg_ExpireType == 'minutes'){
  	  todayDate.setMinutes(todayDate.getMinutes()+arg_CookieExpire); 
  }else if(arg_ExpireType == 'seconds'){
  	  todayDate.setSeconds(todayDate.getSeconds()+arg_CookieExpire); 
  }
  document.cookie=arg_CookieName+"="+arg_CookieValue+";path=/;expires="+todayDate.toGMTString()+";";
}

function setLkecnCookie(arg_CookieName,arg_CookieValue,arg_CookieExpireDays){
  var todayDate=new Date();
  todayDate.setDate(todayDate.getDate()+arg_CookieExpireDays); 
  document.cookie=arg_CookieName+"="+arg_CookieValue+";path=/;expires="+todayDate.toGMTString()+";";
}

function getLkecnCookie(arg_CookieName){
  var aCookie = document.cookie.split("; ");
  for(var i=0; i < aCookie.length; i++){
      var aCrumb = aCookie[i].split("=");
      if(arg_CookieName == aCrumb[0]){return decodeURIComponent(aCrumb[1]);}
  }
  return '';
}

/*swfobject.js*/

/**
 * SWFObject v1.4.2: Flash Player detection and embed - http://blog.deconcept_flashcook.com/swfobject/
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 */
if(typeof deconcept_flashcook=="undefined"){var deconcept_flashcook=new Object();}
if(typeof deconcept_flashcook.util=="undefined"){deconcept_flashcook.util=new Object();}
if(typeof deconcept_flashcook.SWFObjectUtil=="undefined"){deconcept_flashcook.SWFObjectUtil=new Object();}
deconcept_flashcook.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept_flashcook.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept_flashcook.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept_flashcook.SWFObjectUtil.getPlayerVersion();
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept_flashcook.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){_16.push(key+"="+_18[key]);}
return _16;
},getSWFHTML:function(){
var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=key+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
_19+="/>";
}else{if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}
_19+="</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept_flashcook.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept_flashcook.SWFObjectUtil.getPlayerVersion=function(){
var _23=new deconcept_flashcook.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_23=new deconcept_flashcook.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{
try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
_23=new deconcept_flashcook.PlayerVersion([6,0,21]);
axo.AllowScriptAccess="always";}
catch(e){
if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}
if(axo!=null){_23=new deconcept_flashcook.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return _23;};
deconcept_flashcook.PlayerVersion=function(_27){
this.major=_27[0]!=null?parseInt(_27[0]):0;
this.minor=_27[1]!=null?parseInt(_27[1]):0;
this.rev=_27[2]!=null?parseInt(_27[2]):0;
};
deconcept_flashcook.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}
return true;
};
deconcept_flashcook.util={getRequestParameter:function(_29){
var q=document.location.search||document.location.hash;
if(q){
var _2b=q.substring(1).split("&");
for(var i=0;i<_2b.length;i++){
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return "";}};
deconcept_flashcook.SWFObjectUtil.cleanupSWFs=function(){
var _2d=document.getElementsByTagName("OBJECT");
for(var i=0;i<_2d.length;i++){
_2d[i].style.display="none";
for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=null;}}}};
if(typeof window.onunload=="function"){
var oldunload=window.onunload;
window.onunload=function(){
deconcept_flashcook.SWFObjectUtil.cleanupSWFs();
oldunload();};
}else{window.onunload=deconcept_flashcook.SWFObjectUtil.cleanupSWFs;}
if(Array.prototype.push==null){
Array.prototype.push=function(_30){
this[this.length]=_30;
return this.length;};}

var getQueryParamValue_flashck=deconcept_flashcook.util.getRequestParameter;
var FlashObject_flashck=deconcept_flashcook.SWFObject; // for legacy support
var SWFObject_flashck=deconcept_flashcook.SWFObject;



/*swfobject.js*/

/*FloatingLayer.js*/

function hasdoctype(){
   var ret=false;
   try{
        if(document.compatMode=="BackCompat")
          ret=false;
        else if (document.compatMode=="CSS1Compat")
          ret=true;
        else
          ret=true;
    }catch(e){ ret=false }
    return ret;
}

// ie8 =  IE8_Partner_Build [2008-12-11] 
function detectBrowser(){ 
   var ret="ie6"; // default 
   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";
      if(user_agent.indexOf("360") > -1)
      {
        ret="360";
      }
   }else if(user_agent.indexOf("Gecko") > -1){
        ret="firefox";
   }
   if(""=="TheWorld"){
      ret="TheWorld";
   }
   return ret;
}
    
// 间距小于步进，则移动间距的距离 
function smoothMove(start,end){
   var step=Math.abs(end-start);
   var forword = end-start;
   if(step>2){
      step=Math.ceil(step*0.2)*(forword/Math.abs(forword));
   }else{
      step=step*(forword/Math.abs(forword));
   }
   posi=start+step;
   if(step>0){
      if(posi>end)
        posi=end;
   }else{
      if(posi<end)
        posi=end;
   }
   return posi;
}

var hasdoctype=hasdoctype();
var browser=detectBrowser();

if (typeof(kf_icons)=="undefined")
{
	
var kf_icons=new Array();

function kfIcon(TocreateIconDivMain){ 
   this.config=new Array();
   this.left=-200;//图标需要到达的 left 
   this.top=0;
   this.width=0;//图标宽度 
   this.height=0;//图标宽度 
   this.offsetLeft=0;//距离左侧宽度，包括滚动过的距离 
   this.scrolledX=0;//图标水平滚动条滚动过的距离 
   this.scrolledY=0;
   this.issmooth=false;//是否平滑移动 
   if(browser=="360" || browser=="TheWorld"){
       this.loopmillisecond=500;
   }else{
       this.loopmillisecond=10;//图标循环定位的毫秒，数值越大越慢，对CPU影响越小 
   }
   this.Xstep=4;//水平步进基数,数字越大越平滑，也越慢 
   this.Ystep=4;
   this.pageW=0;//页面总宽度 
   this.pageH=0;
   this.display="";//是否显示图标,值 "none"|"" 
   this.iconDiv=null;
   this.iconDivMain=null;
   this.autoScrollTimer=null;

   this.init=_init;
   this.autoScroll=scroll;
   this.showdiv=_showdiv;
   this.createIconDivMain=eval(TocreateIconDivMain);
   //this.setParameter=_setParameter;//在 createIconDivMain 中调用 
   this.wopen=_wopen;//同上 
   this.closeIcon=_closeIcon; //同上 
   this.hidden=_hidden; //同上 
};

function scroll(){
   /*if(document.getElementById(this.config["iconDiv"])){
   	   document.getElementById(this.config["iconDiv"]).style.display="block";
   }*/
   try{
       this.offsetLeft=this.iconDivMain.offsetLeft;
       this.width=parseInt(this.iconDivMain.style.width.replace("px",""));
       this.height=parseInt(this.iconDivMain.style.width.replace("px",""));
   }catch(e){
       //this.iconDivMain=document.getElementById(this.config["iconDivMain"]);
       return;
   }

   this.scrollbarW=this.config["leftpadding"];// scrollbar width in ie6,ie7,ie8 = 20px
   this.scrolledY = document.body.scrollTop;
   this.scrolledX = document.body.scrollLeft;
   if(this.scrolledY==0)
     this.scrolledY = document.documentElement.scrollTop;
   if(this.scrolledX==0)
     this.scrolledX = document.documentElement.scrollLeft;

   if(browser=="ie6"){   
      this.pageH = document.documentElement.offsetHeight;
      this.pageW = document.documentElement.offsetWidth;
   }else if(browser=="ie7"){
      this.pageH = document.documentElement.offsetHeight;
      if(hasdoctype)
        this.pageW = document.documentElement.offsetWidth+21;
      else
        this.pageW = document.documentElement.offsetWidth;
   }else if(browser=="ie8"){
      this.pageH = document.documentElement.offsetHeight;
      this.pageW = document.documentElement.offsetWidth;
   }else if(browser=="firefox"){
      this.pageH = window.innerHeight;
      // 21=17+4 
      // 17 for document.documentElement.clientWidth in firefox 3
      // 4 for document.documentElement.scrollLeft in firefox 3 differently from ie6,ie7
      //
      this.pageW = document.documentElement.clientWidth+21; 
   }else{   
      this.pageH = document.documentElement.offsetHeight;
      this.pageW = document.documentElement.offsetWidth;
   }

   if(this.top!=(this.scrolledY+this.config["offsetH"])){
      this.top=this.scrolledY+this.config["offsetH"];
   }

   if(this.config["showmodel"]==1){
      if(this.left!=(this.scrolledX+this.pageW)){
         var iconDivWidth=this.scrolledX+this.config["offsetW"]-this.offsetLeft;
         iconDivWidth=(iconDivWidth>0?1:-1)*Math.ceil(Math.abs(iconDivWidth));
         this.left=this.offsetLeft+iconDivWidth;
      }
   }else{
      if(this.left!=(this.scrolledX+this.pageW-this.width-this.config["offsetW"]-this.scrollbarW)){
          var iconDivWidth=this.scrolledX+this.pageW-this.width-this.config["offsetW"]-this.scrollbarW-this.offsetLeft;
          iconDivWidth=(iconDivWidth>0?1:-1)*Math.ceil(Math.abs(iconDivWidth));
          this.left=this.offsetLeft+iconDivWidth;
       }
   }
   //set kf_icon postiotn
   //超出窗口边界，直接移动到窗口边界再平滑移动 
   var left=parseInt(this.iconDivMain.style.left.replace("px",""));
   var top=parseInt(this.iconDivMain.style.top.replace("px",""));
   if(this.issmooth==true){
      if(left!=this.left){
          if(left<(this.scrolledX-this.width))
            left=this.scrolledX-this.width;
          if(left>this.scrolledX+this.pageW)
            left=this.scrolledX+this.pageW;

          if(browser=="360" || browser=="TheWorld"){
              left=this.left;
              if(this.iconDivMain.style.display=="none"){
                 this.recover = false;
              }else{
                 this.iconDivMain.style.display = "none";
                 this.recover = true;
              }
              this.iconDivMain.style.left=left+"px";
              if(this.recover==true){
                 this.iconDivMain.style.display = "block";
              }
          }else{
              left=smoothMove(left,this.left);
          }
      }
      if(top!=this.top){
          if(top<(this.scrolledY-this.height))
            top=this.scrolledY-this.height;
          if(top>this.scrolledY+this.pageH)
            top=this.scrolledY+this.pageH;

          if(browser=="360" || browser=="TheWorld"){
              top=this.top;
              if(this.iconDivMain.style.display=="none"){
                 this.recover = false;
              }else{
                 this.iconDivMain.style.display = "none";
                 this.recover = true;
              }
              this.iconDivMain.style.top=top+"px";
              if(this.recover==true){
                 this.iconDivMain.style.display = "block";
              }
          }else{
              top=smoothMove(top,this.top);
          }
      }
   }else if(this.issmooth==false){
       left=this.left;
       top=this.top; 
       this.issmooth=true;
   }
   if(this.config["iscenter"] == true){
   	  left = parseInt((this.pageW-this.config["width"]) / 2);
   	  if(browser=="360"){this.iconDivMain.style.left=left+"px";}
   }
   if(this.config["isbuttom"] == true){
      if(document.documentElement.scrollTop>0){
   	    top = document.documentElement.scrollTop + document.documentElement.clientHeight - document.getElementById(this.config["iconDivMain"]).offsetHeight - 5;
      }else{
        top = document.body.scrollTop + document.documentElement.scrollTop + document.documentElement.clientHeight - document.getElementById(this.config["iconDivMain"]).offsetHeight - 5;
      }
      if(browser=="360"){this.iconDivMain.style.top=top+"px";}
   }
   if(browser!="360"){
      this.iconDivMain.style.left=left+"px";
      this.iconDivMain.style.top=top+"px";
   }
}


function _wopen(com) {
   
};

function _hidden(){
   this.display="none";
   document.getElementById(this.config["iconDivMain"]).style.display="none";
   try{
        clearInterval(kf_icons[this.config["kf_icon_id"]].autoScrollTimer);
   }catch(e){}
};

function _showdiv(){
   this.display="block";
   document.getElementById(this.config["iconDiv"]).style.display="block";
}

function _closeIcon(){
   return "<img onclick='kf_icons["+this.config["id"]+"].hidden()' style='position:absolute; right:7px;top:4px; cursor:hand;' src='/Images/close.gif'/>";
};

function _init(){
   document.write('<div id="'+this.config["iconDiv"]+'" ></div>');
   this.iconDiv=document.getElementById(this.config["iconDiv"]);
   this.createIconDivMain();
};
 
} //if (typeof(kf_icons)=="undefined")

/*FloatingLayer.js*/

/*Slides.js*/
var Class = {
  create: function() {
	return function() {
	  this.initialize.apply(this, arguments);
	}
  }
}

Object.extend = function(destination, source) {
	for (var property in source) {
		destination[property] = source[property];
	}
	return destination;
}

var TransformView = Class.create();
TransformView.prototype = {
  //容器对象,滑动对象,切换参数,切换数量
  initialize: function(container, slider, parameter, count, options) {
	if(parameter <= 0 || count <= 0) return;
	var oContainer = document.getElementById(container), oSlider = document.getElementById(slider), oThis = this;

	this.Index = 0;//当前索引
	
	this._timer = null;//定时器
	this._slider = oSlider;//滑动对象
	this._parameter = parameter;//切换参数
	this._count = count || 0;//切换数量
	this._target = 0;//目标参数
	
	this.SetOptions(options);
	
	this.Up = !!this.options.Up;
	this.Step = Math.abs(this.options.Step);
	this.Time = Math.abs(this.options.Time);
	this.Auto = !!this.options.Auto;
	this.Pause = Math.abs(this.options.Pause);
	this.onStart = this.options.onStart;
	this.onFinish = this.options.onFinish;
	
	oContainer.style.overflow = "hidden";
	oContainer.style.position = "relative";
	
	oSlider.style.position = "absolute";
	oSlider.style.top = oSlider.style.left = 0;
  },
  //设置默认属性
  SetOptions: function(options) {
	this.options = {//默认值
		Up:			true,//是否向上(否则向左)
		Step:		5,//滑动变化率
		Time:		10,//滑动延时
		Auto:		true,//是否自动转换
		Pause:		10000,//停顿时间(Auto为true时有效)
		onStart:	function(){},//开始转换时执行
		onFinish:	function(){}//完成转换时执行
	};
	Object.extend(this.options, options || {});
  },
  //开始切换设置
  Start: function() {
	if(this.Index < 0){
		this.Index = this._count - 1;
	} else if (this.Index >= this._count){ this.Index = 0; }
	
	this._target = -1 * this._parameter * this.Index;
	this.onStart();
	this.Move();
  },
  //移动
  Move: function() {
	clearTimeout(this._timer);
	var oThis = this, style = this.Up ? "top" : "left", iNow = parseInt(this._slider.style[style]) || 0, iStep = this.GetStep(this._target, iNow);
	
	if (iStep != 0) {
		this._slider.style[style] = (iNow + iStep) + "px";
		this._timer = setTimeout(function(){ oThis.Move(); }, this.Time);
	} else {
		this._slider.style[style] = this._target + "px";
		this.onFinish();
		if (this.Auto) { this._timer = setTimeout(function(){ oThis.Index++; oThis.Start(); }, this.Pause); }
	}
  },
  //获取步长
  GetStep: function(iTarget, iNow) {
	var iStep = (iTarget - iNow) / this.Step;
	if (iStep == 0) return 0;
	if (Math.abs(iStep) < 1) return (iStep > 0 ? 1 : -1);
	return iStep;
  },
  //停止
  Stop: function(iTarget, iNow) {
	clearTimeout(this._timer);
	this._slider.style[this.Up ? "top" : "left"] = this._target + "px";
  }
};

SlidesStart=function(SlidesHeight, SlidesPicNum){
	function Each(list, fun){
		for (var i = 0, len = list.length; i < len; i++) { fun(list[i], i); }
	};
	
	var objs = document.getElementById("idNum").getElementsByTagName("li");
	
	var tv = new TransformView("idTransformView", "idSlider", SlidesHeight, SlidesPicNum, {
		onStart : function(){ Each(objs, function(o, i){ o.className = tv.Index == i ? "on" : ""; }) }//按钮样式
	});
	
	tv.Start();
	
	Each(objs, function(o, i){
		o.onmouseover = function(){
			o.className = "on";
			tv.Auto = false;
			tv.Index = i;
			tv.Start();
		}
		o.onmouseout = function(){
			o.className = "";
			tv.Auto = true;
			tv.Start();
		}
	})
}
/*Slides.js*/

/*ImpactBox.js*/

var adDiv_ip;
var ns_ip=(document.layers);
var ie_ip=(document.all);
var w3_ip=(document.getElementById && !ie_ip);
function initPopup_ip(){
	if(!ns_ip && !ie_ip && !w3_ip){
		return;
	}
	if(ie_ip){
		adDiv_ip=eval('document.getElementById("BuycurrencyipWin").style');
	}else if(ns_ip){
		adDiv_ip=eval('document.layers["BuycurrencyipWin"]');
	}else if(w3_ip){
		adDiv_ip=eval('document.getElementById("BuycurrencyipWin").style');
	}
	if (ie_ip || w3_ip){
		adDiv_ip.visibility="visible";
	}else{
		adDiv_ip.visibility ="show";
	}
	showPopup_ip();
}
function showPopup_ip(){
		if (ie_ip){
			documentWidth  =ietruebody_ip().offsetWidth/2+ietruebody_ip().scrollLeft-20;
			documentHeight =ietruebody_ip().offsetHeight/2+ietruebody_ip().scrollTop-20;
		} else if (ns_ip){
			documentWidth=window.innerWidth/2+window.pageXOffset-20;
			documentHeight=window.innerHeight/2+window.pageYOffset-20;
		} else if (w3_ip){
			documentWidth=self.innerWidth/2+window.pageXOffset-20;
			documentHeight=self.innerHeight/2+window.pageYOffset-20;
		}
		adDiv_ip.left=documentWidth-300 + 'px';
		adDiv_ip.top =documentHeight-310 + 'px';
		//document.getElementById("showresults").innerHTML= documentHeight-250 + 'px';
		//setTimeout("showPopup_ip()",100);
}
function closePopup_ip(){
	if (ie_ip || w3_ip){
		adDiv_ip.display="none";
	}else{
		adDiv_ip.visibility ="hide";
	}
}
function ietruebody_ip(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
} 

function hideSelectBoxes_ip(){
	selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "hidden";
	}
}

function showSelectBoxes_ip(){
	selects = document.getElementsByTagName("select");
	for (i = 0; i != selects.length; i++) {
		selects[i].style.visibility = "visible";
	}
}

function getPageSize_ip(){
	var xScroll, yScroll;
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}
	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}
    screenwidth=window.screen.width-20;
    screenheight=window.screen.height;
    if(pageWidth>screenwidth){screenwidth=pageWidth;}
    if(pageHeight>screenwidth){screenheight=pageHeight;}
	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight,screenwidth,screenheight) 
	return arrayPageSize;
}

function BuycurrencyipWin(){
   hideSelectBoxes_ip();
   var arrayPageSize = getPageSize_ip();
   document.getElementById("overplay_ipbg").style.height=(arrayPageSize[1]+100)+"px";
   document.getElementById("overplayip").style.display="block";
   document.getElementById("overplayip").style.height=arrayPageSize[5]+"px";
   document.getElementById("overplayip").style.width=arrayPageSize[4]+"px";
   document.getElementById("BuycurrencyipWin").style.display="block";
   initPopup_ip();
} 

function CloseBuycurrencyipWin(ishow){
   showSelectBoxes_ip();
   document.getElementById("overplayip").style.display="none";
   document.getElementById("groupcred").style.display = 'block';
   document.getElementById("impactbox").innerHTML = '';
   if(ishow == 0){try{onloadopendiv();}catch(e){}}
} 

function ShowBuycurrencyipWin(ishow){
	if(ishow == 1){
		if(document.getElementById("dajiashowopens")){
			if(document.getElementById("groupcred").style.display == 'none'){
				CloseBuycurrencyipWin(ishow);
				return;
			}
		}
	}
	if(getLkecnCookie("impactnbox") != 'yes' || ishow == 1){
		var stable = '<div id="overplayip">'+
			         '  <div id="overplay_ipbg"></div>'+
			         '  <div class="daji" id="BuycurrencyipWin">'+
			         '    <div class="daji0"><img src="/images/jia0.jpg" /></div>'+
			         '    <div class="daji1" style="line-height:18px;font-size:13px;"><font style="font-size:13px;font-weight:800">'+
			         '      &nbsp;&nbsp;&nbsp;&nbsp;尊敬的消费者您好，为了确保您能购买到原装正品的林卡尔系列产品，请务必留意我们以下的郑重声明。<br />'+
			         '      &nbsp;&nbsp;&nbsp;&nbsp;我公司近日连续接到消费者的反映，网络上出现了众多销售假冒林卡尔系列产品的网站。<br />'+
			         '      &nbsp;&nbsp;&nbsp;&nbsp;经我司调查发现，这类假冒网站通过伪造香港注册公司资料，打着香港注册公司的旗号，进行一系列销售假冒产品的诈骗活动，更有部分网站通过复制我司网站内容，冒充我司名义进行销售假冒林卡尔系列产品，这一系列欺骗消费者的恶劣行为严重影响我司声誉，给我司造成极大的负面影响。为了打击不法分子的欺骗行为，我司已依法向当地工商部门进行举报，并保留向人民法院起诉和追究法律责任的权利。<br />'+
			         '      &nbsp;&nbsp;&nbsp;&nbsp;在此我公司再次重申，我司旗下的林卡尔系列产品代购网网址为：WWW.LKECN.COM和WWW.SUGIYAMA.NET.CN，我司的免费服务热线为：8008881878（仅限固定电话拨打）和4006660440。由于现在400电话的不断普及且开通门槛较低（费用只需几百元），假冒网站和非法商家为了更好地骗取消费者的信任都纷纷开通400电话，造成鱼目混珠的效果以达到欺骗客户的目的。特此为了区分我司与假冒代购网站的企业形象，我司开通了企业级800电话供消费者使用，实现更正规的沟通渠道。<br />'+
			         '      &nbsp;&nbsp;&nbsp;&nbsp;此外根据了解我司旗下WWW.LKECN.COM目前是唯一国内代购渠道最正规、资质认证最权威的林卡尔系列产品代购网站，一直是行内公认最具代表性的优秀企业，因此使用非本公司旗下网站代购的林卡尔系列产品所造成的后果，本公司一律不予负责。<br />'+
			         '      &nbsp;&nbsp;&nbsp;&nbsp;最后提醒广大消费者，现今网络上假冒林卡尔系列产品的销售活动猖獗，有部分网站利用低廉的价钱和各种花言巧语诱惑消费者，进行销售假冒产品和非法经营等违法活动，更有部分网站采用伪造香港公司资料这种挂羊头卖狗肉的卑劣行为，对广大消费者造成严重损害。因此提醒广大需要购买林卡尔系列产品的消费者务必通过正规公司代购，或直接在日本本土购买。选择正规代购公司时必须确保代购方具备有效的工商营业执照和相关资质证明。如发现售卖假冒产品或非法经营的网站，请及时向当地工商部门投诉或联络我们，我们将与您共同打击所有损害消费者利益的不法行为。<br />'+
			         '      &nbsp;&nbsp;&nbsp;&nbsp;我们真诚的祝愿每位意向购买的朋友都能买到正品林卡尔，实现你们的家庭梦想！'+
			         '      </font><div class="daji2"></div>'+
			         '      <div class="daji3">我公司在网上交易保障中心、政府工商局、食品药品监督局、支付宝资质证明：</div>'+
			         '      <div class="daji4">'+
			         '        &nbsp;中国电子商务协会政策法律委员会： <a target="_blank" href="http://www.315online.com.cn/member/315100115.html">http://www.315online.com.cn/member/315100115.html</a><br />'+
			         //'        &nbsp;工商局企业资料登记系统：<a target="_blank" href="http://cx.fsaic.gov.cn/qycx/thread.php?regno=440682000076824">http://cx.fsaic.gov.cn/qycx/thread.php?regno=440682000076824</a><br />'+
			         //'        &nbsp;支付宝特约商家：<a target="_blank" href="https://www.alipay.com/aip/aip_validate_list.htm?trust_id=AIP01056030">https://www.alipay.com/aip/aip_validate_list.htm?trust_id=AIP01056030</a><br />'+
			         '	      &nbsp;广东省食品药品监督管理局颁发证件：<a target="_blank" href="/images/wsxh.jpg">http://www.lkecn.com/images/wsxh.jpg</a><br />'+
			         '      </div>'+
			         '      <div class="daji5">'+
			         '        <div style="float:right;width:250px;height:50px;">'+
			         '	        <div style="width:163px;height:38px;float:right;margin-top:5px;margin-right:5px;" id="buysound"></div>'+
			         '	      </div>'+
			         '	      <img src="/images/jiabutton.jpg" onclick="CloseBuycurrencyipWin('+ishow+')" style="float:right;" />'+
			         '	    </div>'+
			         '    </div>'+ //<div class="daji1">
			         '    <div class="daji6"></div>'+
			         '  </div>'+  //<div class="daji" id="BuycurrencyipWin">
			         '</div><div style="display:none;" id="dajiashowopens">'+ishow+'</div>'; //<div id="overplayip">
	    document.getElementById("impactbox").innerHTML = stable;
		BuycurrencyipWin();
		Createbuysound();
		writeLkecnCookie('impactnbox','yes','hours',3);
		document.getElementById("groupcred").style.display = 'none';
	}else{
		try{onloadopendiv();}catch(e){}
	}
}

function Createbuysound(){
   var mp3url = '/flash/niftyplayer.swf?file=/flash/20110303.mp3&as=1';
   var somp = new SWFObject_flashck(mp3url, "niftyPlayer1", "163", "38", "8", "#ffffff");
   somp.addParam("allowScriptAccess", "always"); 
   somp.addParam("wmode", "opaque");
   somp.write("buysound");
   somp.addParam("menu", "false");
}

function resendsms(){
	document.getElementById('tosubmit').disabled=true;
	document.getElementById('upmobile').disabled=true;
	document.getElementById('resend').disabled=true;
    document.getElementById('modiymobile').style.display='none';
    document.getElementById('resend').value='正发送短信校验码。。。';
	var url="/ajax.aspx?action=impactmobile&id="+id+"&mobile="+mobile+"&randtime="+GetRands();
	loadAjaxDataAsyn(url,"ResultReSend",new Array(),"ErrReSend",false);
	try{clearInterval(sendtodbtimer);}catch(e){}
	sendtodbtimer = setInterval(ReSendTimer,20000);
}

function ReSendTimer(){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('resend').value='重新获取短信';
	alert("重新获取失败！！！");
}

function ResultReSend(html){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('resend').value='重新获取短信';
	html=unescape(html);
	if(html.indexOf('sendyes') > -1){
		alert("校验码发送成功，请待会收到后输入校验码进行验证");
	}else{
		alert(html);
	}
}

function ErrReSend(errmsg){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('resend').value='重新获取短信';
	if(errmsg != ''){alert(errmsg);}
}

function toupmobile(m){
	var umobile = jstrim(document.getElementById('mmobile').value);
	if(m == 0){
		document.getElementById('modiymobile').style.display='block';
		if(umobile == ''){document.getElementById('mmobile').value = mobile;}
	}else{
 	    if(checkmobile(umobile)){
   	       alert("手机号码不能为空或手机号码格式不正确");
 	    }else if(umobile == mobile){
   	       resendsms();//alert("你没有修改原手机号码("+mobile+")");
 	    }else{
   	       document.getElementById('tosubmit').disabled=true;
   	       document.getElementById('upmobile').disabled=true;
   	       document.getElementById('resend').disabled=true;
   	       document.getElementById('upphone').disabled=true;
   	       document.getElementById('upphone').value='正处理...';
	       var url="/ajax.aspx?action=impactupmobile&id="+id+"&mobile="+umobile+"&randtime="+GetRands();
	       var p = new Array();
	       p[0] = umobile;
	       loadAjaxDataAsyn(url,"ResultReUpMobileSend",p,"ErrReUpMobileSend",false);
	       try{clearInterval(sendtodbtimer);}catch(e){}
	       sendtodbtimer = setInterval(ReUpMobileSendTimer,20000);
 	    }
	}
}

function ReUpMobileSendTimer(){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('upphone').disabled=false;
	document.getElementById('upphone').value='修改';
	alert("修改失败！！！");
}

function ResultReUpMobileSend(html,umobile){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('upphone').disabled=false;
	document.getElementById('upphone').value='修改';
	html=unescape(html);
	if(html.indexOf('sendyes') > -1){
		mobile = umobile;
		document.getElementById('tsendmobile').innerHTML = umobile;
		alert("修改手机号码成功，请待会收到后输入校验码进行验证");
	}else if(html.indexOf('！') > -1){
		mobile = umobile;
		document.getElementById('tsendmobile').innerHTML = umobile;
		alert(html);
	}else{
		alert(html);
	}
}

function ErrReUpMobileSend(errmsg,umobile){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('upphone').disabled=false;
	document.getElementById('upphone').value='修改';
	if(errmsg != ''){alert(errmsg);}
}

function toupsubmit(){
	var code = jstrim(document.getElementById('dcode').value);
	if(code.length != 6 || !checkisnumber(code,0)){
		alert('校验码是6位数字');
	}else{
	    document.getElementById('tosubmit').disabled=true;
	    document.getElementById('upmobile').disabled=true;
  	    document.getElementById('resend').disabled=true;
        document.getElementById('modiymobile').style.display='none';
        document.getElementById('tosubmit').value='正校验。。。';
	    var url="/ajax.aspx?action=checkimpactcode&id="+id+"&code="+code+"&randtime="+GetRands();
	    loadAjaxDataAsyn(url,"ResultUpSubmit",new Array(),"ErrUpSubmit",false);
	    try{clearInterval(sendtodbtimer);}catch(e){}
	    sendtodbtimer = setInterval(UpSubmitTimer,20000);
	}
}

function UpSubmitTimer(){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('tosubmit').value=' 确 定 ';
	alert("校验失败！！！");
}

function ResultUpSubmit(html){
	try{clearInterval(sendtodbtimer);}catch(e){};
	html=unescape(html);
	if(html.indexOf('sendyes') > -1){
		document.getElementById('dosend').style.display='none';
		document.getElementById('csend').style.display='block';
	}else{
        document.getElementById('tosubmit').disabled=false;
	    document.getElementById('upmobile').disabled=false;
    	document.getElementById('resend').disabled=false;
	    document.getElementById('tosubmit').value=' 确 定 '
		alert(html);
	}
}

function ErrUpSubmit(errmsg){
	try{clearInterval(sendtodbtimer);}catch(e){}
	document.getElementById('tosubmit').disabled=false;
	document.getElementById('upmobile').disabled=false;
	document.getElementById('resend').disabled=false;
	document.getElementById('tosubmit').value=' 确 定 ';
	if(errmsg != ''){alert(errmsg);}
}

/*ImpactBox.js*/
