//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 Found=false;
  var start,end;
  var i=0;
  while(i <=document.cookie.length){
   start=i;end=start+arg_CookieName.length;
   if(document.cookie.substring(start,end)==arg_CookieName){
    Found=true;break;
   }
  i++;
  }
  
  if(Found==true){
   start=end+1;
   end=document.cookie.indexOf(";",start);
   if(end < start)end=document.cookie.length;
   return document.cookie.substring(start,end);
  }
  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*/