
slidePlayer.prototype.iNum;slidePlayer.prototype.sWidth;slidePlayer.prototype.sHeight;slidePlayer.prototype.sSpeed;slidePlayer.prototype.sStyle;slidePlayer.prototype.sContainer;slidePlayer.prototype.dPanel;slidePlayer.prototype.nPanel;slidePlayer.prototype.dImg;slidePlayer.prototype.LinkTarget="_blank";slidePlayer.prototype.iArr;slidePlayer.prototype.lArr;slidePlayer.prototype.sImg;slidePlayer.prototype.sLink;slidePlayer.prototype.bWidth;slidePlayer.prototype.sTime;slidePlayer.prototype.isStart;slidePlayer.prototype.cNum;slidePlayer.prototype.initDisplayPanel=function(){var that=this;var sC=this.sContainer;var nP=this.nPanel;var ul,li,n,i,tmp;sC.style.display="block";sC.style.width=(this.sWidth+this.bWidth*2)+"px";sC.style.height=this.sHeight+"px";this.iArr=this.dImg.getElementsByTagName("img");this.lArr=this.dImg.getElementsByTagName("a");this.iNum=this.iArr.length;this.dPanel=document.createElement("div");var dP=this.dPanel;dP.className="slideDisplayPannel";this.sLink=document.createElement("a");this.sLink.setAttribute("href",this.lArr[0].href);this.sLink.setAttribute("target",this.LinkTarget);this.sImg=document.createElement("img");this.sImg.style.display="block";this.sImg.setAttribute("src",this.iArr[0].src);this.sImg.setAttribute("alt",this.iArr[0].alt);this.sImg.setAttribute("width",this.sWidth);this.sImg.setAttribute("height",this.sHeight);this.sLink.appendChild(this.sImg);dP.style.width=this.sWidth+"px";dP.style.Height=this.sHeight+"px";nP.style.width=dP.style.width;dP.appendChild(this.sLink);var over=function(){that.isStart=false;};var out=function(){that.isStart=true;};var changeNum=function(e){var nb=(e)?e:window.event;if(nb.target){var ne=(nb.target.nodeType===3)?nb.target.parentNode:nb.target;}else{var ne=nb.srcElement;}
that.cNum=parseInt(ne.innerHTML)-1;clearTimeout(that.sTime);that.changeSlideAction(that.cNum,that);that.cNum++;that.sTime=setTimeout(slidePlay,that.sSpeed);};ycnui.event.addEvent(dP,"mouseover",over);ycnui.event.addEvent(dP,"mouseout",out);ul=document.createElement("ul");ul.className="slideNumber";for(i=0;i<this.iNum;i++){li=document.createElement("li");if(i===0){li.className="curSlideNumber";}
n=document.createTextNode(i+1);li.appendChild(n);ul.appendChild(li);ycnui.event.addEvent(li,"click",changeNum);}
sC.insertBefore(dP,this.nPanel);nP.appendChild(ul);this.isStart=true;var slidePlay=function(){if(that.sTime)clearTimeout(that.sTime);var iN=that.iNum;var nT=that.nPanel.getElementsByTagName("li");var sI=that.sImg;var sL=that.sLink;if(that.isStart){if(that.cNum<iN){that.cNum++;}else{that.cNum=1;}
that.changeSlideAction(that.cNum-1,that);that.sTime=setTimeout(slidePlay,that.sSpeed);}else{that.sTime=setTimeout(slidePlay,that.sSpeed);}};this.sTime=setTimeout(slidePlay,this.sSpeed);}
slidePlayer.prototype.changeSlideAction=function(cn,o){var dP=o.dPanel;var iN=o.iNum;var nT=o.nPanel.getElementsByTagName("li");var transdivid="slideNextImgId"+Math.floor(Math.random()*1000);var nimgdiv=document.createElement("div");nimgdiv.id=transdivid
nimgdiv.style.position="absolute";nimgdiv.style.top=0;nimgdiv.style.left=0;nimgdiv.style.zIndex=1;nimgdiv.style.filter="alpha(opacity=0)";nimgdiv.style.opacity=0;nimgdiv.style.MozOpacity=0;nimgdiv.style.width=o.sWidth+"px";nimgdiv.style.height=o.sHeight+"px";var nimg=document.createElement("img");nimg.setAttribute("src",o.iArr[cn].src);nimg.setAttribute("width",o.sWidth);nimg.setAttribute("height",o.sHeight);nimgdiv.appendChild(nimg);dP.appendChild(nimgdiv);var transdiv=document.getElementById(transdivid);if(o.isIE5()){o.sImg.setAttribute("src",o.iArr[cn].src);o.sImg.setAttribute("alt",o.iArr[cn].alt);o.sLink.setAttribute("href",o.lArr[cn].href);dP.removeChild(transdiv);}else{var trans=0;var act=function(){if(t)clearTimeout(t);trans+=10;if(trans<=100){transdiv.style.filter="alpha(opacity="+trans+")";transdiv.style.opacity=trans/100;transdiv.style.MozOpacity=trans/100;var t=setTimeout(act,50);}else{o.sImg.setAttribute("src",o.iArr[cn].src);o.sImg.setAttribute("alt",o.iArr[cn].alt);o.sLink.setAttribute("href",o.lArr[cn].href);dP.removeChild(transdiv);}};var t=setTimeout(act,50);}
for(i=0;i<iN;i++){if(i===(cn)){nT[i].className="curSlideNumber";}else{nT[i].className="";}}
if(typeof(slidCallBack)!='undefined')slidCallBack.endChangeSlidePic(cn,o);}
slidePlayer.prototype.isIE5=function(){return navigator.userAgent.toLowerCase().indexOf('msie 5.0')>0;};function slidePlayer(sc,dp,np,sw,sh,sp,bw,st){this.sContainer=ycn.common.getEl(sc);this.dImg=ycn.common.getEl(dp);this.nPanel=ycn.common.getEl(np);this.sWidth=sw;this.sHeight=sh;this.sSpeed=sp*1000;this.bWidth=bw;this.cNum=1;this.initDisplayPanel();}