<!--
/*MSClass (Class Of Marquee Scroll通用不间断滚动JS封装类) Ver 1.65*\

　制作时间:2006-08-29 (Ver 0.5)
　发布时间:2006-08-31 (Ver 0.8)
　更新时间:2007-12-28 (Ver 1.65)
　更新说明: + 加入功能 * 修正、完善
	1.65.071228
		* 横向、纵向滚动格式调整 (解决横向滚动换行的问题，无需特殊设置)
		* 彻底解决由于IE问题导致上下滚动页面留白的问题 (本次更新主要解决此问题,感谢天上的书生参与测试)
	1.6.070131
		+ 禁止鼠标控制暂停或继续 (将第9个参数设置为-1或者动态赋值将ScrollSetp设置为-1)
		+ 判断是否可以滚动 (若内容区域小于显示区域,则自动取消滚动)
		+ 跳过初始化错误 (避免引起其它滚动的停止)
		+ 默认值 (除容器ID必选外，其他参数均可根据情况进行选择设置)
		+ 参数动态赋值 (方向可用英文表示top|up|bottom|down|left|right,使其更直观、方便)
		* 文字滚动不准确 (本次更新主要目的解决此Bug,感谢周珺参与测试)
	1.4.061211
		+ 鼠标悬停改变滚动方向 (鼠标悬停控制左右滚动)
		* 由于文档下载过慢而导致获取的高度/宽度不准确
		* 浏览器兼容问题 (IE、FF、Opera、NS、MYIE)
	1.2.060922
		+ 指定范围间歇滚动
		* 程序调整
		* 连续间歇滚动停止的错误
	1.0.060901
		+ 向下、向右滚动
		+ 开始等待时间
		+ 连续滚动
		* 调整时间单位
		* 滚动误差
		* 随机死循环
		* 加强性能
		* 程序优化
	0.8.060829
		  翻屏不间断向上、向左滚动

　演示地址:http://www.popub.net/script/MSClass.html
　下载地址:http://www.popub.net/script/MSClass.js

　应用说明:页面包含<script type="text/javascript" src="MSClass.js"></script>
	
	创建实例:
		//参数直接赋值法
		new Marquee("marquee")
		new Marquee("marquee","top")
		......
		new Marquee("marquee",0,1,760,52)
		new Marquee("marquee","top",1,760,52,50,5000)
		......
		new Marquee("marquee",0,1,760,104,50,5000,3000,52)
		new Marquee("marquee",null,null,760,104,null,5000,null,-1)

		//参数动态赋值法
		var marquee1 = new Marquee("marquee")	*此参数必选
		marquee1.Direction = "top";	或者	marquee1.Direction = 0;
		marquee1.Step = 1;
		marquee1.Width = 760;
		marquee1.Height = 52;
		marquee1.Timer = 50;
		marquee1.DelayTime = 5000;
		marquee1.WaitTime = 3000;
		marquee1.ScrollStep = 52;
		marquee1.Start();

	参数说明:
		ID		"marquee"	容器ID		(必选)
		Direction	(0)		滚动方向	(可选,默认为0向上滚动) 可设置的值包括:0,1,2,3,"top","bottom","left","right" (0向上 1向下 2向左 3向右)
		Step		(1)		滚动的步长	(可选,默认值为2,数值越大,滚动越快)
		Width		(760)		容器可视宽度	(可选,默认值为容器初始设置的宽度)
		Height		(52)		容器可视高度	(可选,默认值为容器初始设置的高度)
		Timer		(50)		定时器		(可选,默认值为30,数值越小,滚动的速度越快,1000=1秒,建议不小于20)
		DelayTime	(5000)		间歇停顿延迟时间(可选,默认为0不停顿,1000=1秒)
		WaitTime	(3000)		开始时的等待时间(可选,默认或0为不等待,1000=1秒)
		ScrollStep	(52)		间歇滚动间距	(可选,默认为翻屏宽/高度,该数值与延迟均为0则为鼠标悬停控制,-1禁止鼠标控制)

　使用建议:
		1、建议直接赋予容器的显示区域的宽度和高度，如(<div id="marquee" style="width:760px;height:52px;">......</div>)
		2、建议为容器添加样式overflow = auto，如(<div id="marquee" style="width:760px;height:52px;overflow:auto;">......</div>)
		3、为了更准确的获取滚动区域的宽度和高度，请尽可能将各滚动单位直接赋予正确宽高度
		4、对于TABLE标记的横向滚动，需要对TABLE添加样式display = inline，如(<div id="marquee" style="width:760px;height:52px;overflow:auto;"><table style="display:inline">......</table></div>)
		5、对于翻屏滚动或间歇滚动，要注意各滚动单位间的间距，同时需要对容器的可视高度和可视宽度做好准确的设置，对于各滚动单位间的间距可以通过设置行间距或者单元格的高宽度来进行调整
		6、对于LI自动换行的问题暂时没有更好的解决办法，建议将其转换成表格(TABLE)的形式来达到同等的效果
		7、针对横向滚动的文字段落，如果最末端是以空格" "结束的，请将空格" "转换成"&nbsp;"
		8、鼠标悬停滚动思想源自Flash，所以有一定的局限性（容器内仅允许用图片<img>或者带链接的图片<a><img></a>的形式，并需要禁止其自动换行）

　感　　谢:
	天上的书生(QQ:30370740) (IE页面留白的Bug) 2007/12/22
	周珺 zhoujun#yuchengtech.com (文字滚动跳行的bug) 2007/01/31
	自本程序发布以来，收到不少朋友的邮件，提出了很多意见和建议，感谢大家的支持！

\***程序制作/版权所有:崔永祥(333) E-Mail:zhadan007@21cn.com 网址:http://www.popub.net***/


function Marquee()
{
	this.ID = document.getElementById(arguments[0]);
	if(!this.ID)
	{
		alert("您要设置的\"" + arguments[0] + "\"初始化错误\r\n请检查标签ID设置是否正确!");
		this.ID = -1;
		return;
	}
	this.Direction = this.Width = this.Height = this.DelayTime = this.WaitTime = this.CTL = this.StartID = this.Stop = this.MouseOver = 0;
	this.Step = 1;
	this.Timer = 30;
	this.DirectionArray = {"top":0 , "up":0 , "bottom":1 , "down":1 , "left":2 , "right":3};
	if(typeof arguments[1] == "number" || typeof arguments[1] == "string"){this.Direction = arguments[1];}
	if(typeof arguments[2] == "number"){this.Step = arguments[2];}
	if(typeof arguments[3] == "number"){this.Width = arguments[3];}
	if(typeof arguments[4] == "number"){this.Height = arguments[4];}
	if(typeof arguments[5] == "number"){this.Timer = arguments[5];}
	if(typeof arguments[6] == "number"){this.DelayTime = arguments[6];}
	if(typeof arguments[7] == "number"){this.WaitTime = arguments[7];}
	if(typeof arguments[8] == "number"){this.ScrollStep = arguments[8];}
	this.ID.style.overflow = this.ID.style.overflowX = this.ID.style.overflowY = "hidden";
	this.ID.noWrap = true;
	this.IsNotOpera = (navigator.userAgent.toLowerCase().indexOf("opera") == -1);
	if(arguments.length >= 7){this.Start();}
}

Marquee.prototype.Start = function()
{
	if(this.ID == -1){return;}
	if(this.WaitTime < 800){this.WaitTime = 800;}
	if(this.Timer < 20){this.Timer = 20;}
	if(this.Width == 0){this.Width = parseInt(this.ID.style.width);}
	if(this.Height == 0){this.Height = parseInt(this.ID.style.height);}
	if(typeof this.Direction == "string"){this.Direction = this.DirectionArray[this.Direction.toString().toLowerCase()];}
	this.HalfWidth = Math.round(this.Width / 2);
	this.HalfHeight = Math.round(this.Height / 2);
	this.BakStep = this.Step;
	this.ID.style.width = this.Width + "px";
	this.ID.style.height = this.Height + "px";
	if(typeof this.ScrollStep != "number")this.ScrollStep = this.Direction > 1 ? this.Width : this.Height;
	var templateLeft = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;display:inline;'><tr><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td></tr></table>";
	var templateTop = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;'><tr><td>MSCLASS_TEMP_HTML</td></tr><tr><td>MSCLASS_TEMP_HTML</td></tr></table>";
	var msobj = this;
	msobj.tempHTML = msobj.ID.innerHTML;
	if(msobj.Direction <= 1)
	{
		msobj.ID.innerHTML = templateTop.replace(/MSCLASS_TEMP_HTML/g,msobj.ID.innerHTML);
	}
	else
	{
		if(msobj.ScrollStep == 0 && msobj.DelayTime == 0)
		{
			msobj.ID.innerHTML += msobj.ID.innerHTML;
		}
		else
		{
			msobj.ID.innerHTML = templateLeft.replace(/MSCLASS_TEMP_HTML/g,msobj.ID.innerHTML);
		}
	}
	var timer = this.Timer;
	var delaytime = this.DelayTime;
	var waittime = this.WaitTime;
	msobj.StartID = function(){msobj.Scroll();}
	msobj.Continue = function()
				{
					if(msobj.MouseOver == 1)
					{
						setTimeout(msobj.Continue,delaytime);
					}
					else
					{	clearInterval(msobj.TimerID);
						msobj.CTL = msobj.Stop = 0;
						msobj.TimerID = setInterval(msobj.StartID,timer);
					}
				}

	msobj.Pause = function()
			{
				msobj.Stop = 1;
				clearInterval(msobj.TimerID);
				setTimeout(msobj.Continue,delaytime);
			}

	msobj.Begin = function()
		{
			msobj.ClientScroll = msobj.Direction > 1 ? msobj.ID.scrollWidth / 2 : msobj.ID.scrollHeight / 2;
			if((msobj.Direction <= 1 && msobj.ClientScroll <= msobj.Height + msobj.Step) || (msobj.Direction > 1 && msobj.ClientScroll <= msobj.Width + msobj.Step))			{
				msobj.ID.innerHTML = msobj.tempHTML;
				delete(msobj.tempHTML);
				return;
			}
			delete(msobj.tempHTML);
			msobj.TimerID = setInterval(msobj.StartID,timer);
			if(msobj.ScrollStep < 0)return;
			msobj.ID.onmousemove = function(event)
						{
							if(msobj.ScrollStep == 0 && msobj.Direction > 1)
							{
								var event = event || window.event;
								if(window.event)
								{
									if(msobj.IsNotOpera)
									{
										msobj.EventLeft = event.srcElement.id == msobj.ID.id ? event.offsetX - msobj.ID.scrollLeft : event.srcElement.offsetLeft - msobj.ID.scrollLeft + event.offsetX;
									}
									else
									{
										msobj.ScrollStep = null;
										return;
									}
								}
								else
								{
									msobj.EventLeft = event.layerX - msobj.ID.scrollLeft;
								}
								msobj.Direction = msobj.EventLeft > msobj.HalfWidth ? 3 : 2;
								msobj.AbsCenter = Math.abs(msobj.HalfWidth - msobj.EventLeft);
								msobj.Step = Math.round(msobj.AbsCenter * (msobj.BakStep*2) / msobj.HalfWidth);
							}
						}
			msobj.ID.onmouseover = function()
						{
							if(msobj.ScrollStep == 0){return;}
							msobj.MouseOver = 1;
							clearInterval(msobj.TimerID);
						}
			msobj.ID.onmouseout = function()
						{
							if(msobj.ScrollStep == 0)
							{
								if(msobj.Step == 0){msobj.Step = 1;}
								return;
							}
							msobj.MouseOver = 0;
							if(msobj.Stop == 0)
							{
								clearInterval(msobj.TimerID);
								msobj.TimerID = setInterval(msobj.StartID,timer);
							}
						}
		}
	setTimeout(msobj.Begin,waittime);
}

Marquee.prototype.Scroll = function()
{
	switch(this.Direction)
	{
		case 0:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollTop += this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollTop >= this.ClientScroll)
				{
					this.ID.scrollTop -= this.ClientScroll;
				}
				this.ID.scrollTop += this.Step;
			}
		break;

		case 1:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollTop -= this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollTop <= 0)
				{
					this.ID.scrollTop += this.ClientScroll;
				}
				this.ID.scrollTop -= this.Step;
			}
		break;

		case 2:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollLeft += this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollLeft >= this.ClientScroll)
				{
					this.ID.scrollLeft -= this.ClientScroll;
				}
				this.ID.scrollLeft += this.Step;
			}
		break;

		case 3:
			this.CTL += this.Step;
			if(this.CTL >= this.ScrollStep && this.DelayTime > 0)
			{
				this.ID.scrollLeft -= this.ScrollStep + this.Step - this.CTL;
				this.Pause();
				return;
			}
			else
			{
				if(this.ID.scrollLeft <= 0)
				{
					this.ID.scrollLeft += this.ClientScroll;
				}
				this.ID.scrollLeft -= this.Step;
			}
		break;
	}
}

/*翻页图*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([3-59f-hj-mp-ru-yCG-NP-RT-Z]|[1-4]\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5 $$,$$B,$$A,$$F,$$D,$$E,$$C,$$S;(4(){5 O,B,A,F,D,E,C,S;O=4(id){9"3s"==2T id?1j.getElementById(id):id};O.emptyFunction=4(){};O.1D=4(1e,1E,2m){f(2m===1q)2m=1k;14(5 1l W 1E){f(2m||!(1l W 1e)){1e[1l]=1E[1l]}}9 1e};O.deepextend=4(1e,1E){14(5 1l W 1E){5 1Y=1E[1l];f(1e===1Y)continue;f(2T 1Y==="h"){1e[1l]=Q.callee(1e[1l]||{},1Y)}K{1e[1l]=1Y}}9 1e};O.wrapper=4(me,3u){5 2U=4(){me.1b(3,Q)};5 2V=4(){};2V.N=3u.N;2U.N=3v 2V;9 2U};B=(4(ua){5 b={1F:/1F/.L(ua)&&!/2W/.L(ua),2W:/2W/.L(ua),3w:/webkit/.L(ua)&&!/2X/.L(ua),3x:/3x/.L(ua),2X:/2X/.L(ua)};5 2n="";14(5 i W b){f(b[i]){2n="3w"==i?"1Z":i;2Y}}b.1Z=2n&&1G("(?:"+2n+")[\\\\/: ]([\\\\d.]+)").L(ua)?1G.$1:"0";b.ie=b.1F;b.3y=b.1F&&30(b.1Z,10)==6;b.ie7=b.1F&&30(b.1Z,10)==7;b.3z=b.1F&&30(b.1Z,10)==8;9 b})(31.navigator.userAgent.32());A=4(){5 y={isArray:4(3A){9 Object.N.toString.1n(3A)==="[h 33]"},2o:4(15,1r,q){f(15.2o){9 2p(q)?15.2o(1r):15.2o(1r,q)}K{5 17=15.1s;q=2p(q)?0:q<0?18.3B(q)+17:18.3C(q);14(;q<17;q++){f(15[q]===1r)9 q}9-1}},2q:4(15,1r,q){f(15.2q){9 2p(q)?15.2q(1r):15.2q(1r,q)}K{5 17=15.1s;q=2p(q)||q>=17-1?17-1:q<0?18.3B(q)+17:18.3C(q);14(;q>-1;q--){f(15[q]===1r)9 q}9-1}}};4 1v(h,I){f(1q===h.1s){14(5 p W h){f(J===I(h[p],p,h))2Y}}K{14(5 i=0,17=h.1s;i<17;i++){f(i W h){f(J===I(h[i],i,h))2Y}}}};1v({21:4(h,I,M){1v(h,4(){I.1b(M,Q)})},34:4(h,I,M){5 y=[];1v(h,4(){y.3D(I.1b(M,Q))});9 y},1H:4(h,I,M){5 y=[];1v(h,4(3E){I.1b(M,Q)&&y.3D(3E)});9 y},every:4(h,I,M){5 y=1k;1v(h,4(){f(!I.1b(M,Q)){y=J;9 J}});9 y},some:4(h,I,M){5 y=J;1v(h,4(){f(I.1b(M,Q)){y=1k;9 J}});9 y}},4(1f,p){y[p]=4(h,I,M){f(h[p]){9 h[p](I,M)}K{9 1f(h,I,M)}}});9 y}();F=(4(){5 1I=33.N.1I;9{1w:4(2r,M){5 1J=1I.1n(Q,2);9 4(){9 2r.1b(M,1J.3F(1I.1n(Q)))}},bindAsEventListener:4(2r,M){5 1J=1I.1n(Q,2);9 4(m){9 2r.1b(M,[E.22(m)].3F(1J))}}}})();D={2s:4(k){5 1K=k?k.3G:1j;9 1K.3H.3I||1K.3J.3I},2t:4(k){5 1K=k?k.3G:1j;9 1K.3H.3K||1K.3J.3K},3L:1j.23?4(a,b){9!!(a.3M(b)&16)}:4(a,b){9 a!=b&&a.3L(b)},Y:4(k){5 v=0,1c=0,Z=0,11=0;f(!k.3N||B.3z){5 n=k;while(n){v+=n.offsetLeft,1c+=n.offsetTop;n=n.offsetParent};Z=v+k.3O;11=1c+k.3P}K{5 Y=k.3N();v=Z=D.2t(k);1c=11=D.2s(k);v+=Y.v;Z+=Y.Z;1c+=Y.1c;11+=Y.11};9{"v":v,"1c":1c,"Z":Z,"11":11}},clientRect:4(k){5 Y=D.Y(k),35=D.2t(k),36=D.2s(k);Y.v-=35;Y.Z-=35;Y.1c-=36;Y.11-=36;9 Y},1L:1j.23?4(R){9 1j.23.3Q(R,T)}:4(R){9 R.37},3R:1j.23?4(R,p){5 g=1j.23.3Q(R,T);9 p W g?g[p]:g.getPropertyValue(p)}:4(R,p){5 g=R.g,1L=R.37;f(p=="1x"){f(/38\\(1x=(.*)\\)/i.L(1L.1H)){5 1x=parseFloat(1G.$1);9 1x?1x/2u:0}9 1}K f(p=="3S"){p="3T"}5 y=1L[p]||1L[S.39(p)];f(!/^-?\\d+(?:px)?$/i.L(y)&&/^\\-?\\d/.L(y)){5 v=g.v,2w=R.runtimeStyle,3U=2w.v;2w.v=1L.v;g.v=y||0;y=g.pixelLeft+"px";g.v=v;2w.v=3U}9 y},3V:4(24,g,1M){f(!24.1s){24=[24]}f(2T g=="3s"){5 s=g;g={};g[s]=1M}A.21(24,4(R){14(5 p W g){5 1M=g[p];f(p=="1x"&&B.ie){R.g.1H=(R.37.1H||"").3W(/38\\([^)]*\\)/,"")+"38(1x="+1M*2u+")"}K f(p=="3S"){R.g[B.ie?"3T":"cssFloat"]=1M}K{R.g[S.39(p)]=1M}}})}};E=(4(){5 1g,1t,U=1,3a=4(l,j,r){f(!r.$$U)r.$$U=U++;f(!l.X)l.X={};5 12=l.X[j];f(!12){12=l.X[j]={};f(l["on"+j]){12[0]=l["on"+j]}}};f(31.3c){5 25={"3d":"3X","3e":"3Y"};1g=4(l,j,r){f(j W 25){3a(l,j,r);5 3Z=l.X[j][r.$$U]=4(m){5 2x=m.26;f(!2x||(l!=2x&&!(l.3M(2x)&16))){r.1n(3,m)}};l.3c(25[j],3Z,J)}K{l.3c(j,r,J)}};1t=4(l,j,r){f(j W 25){f(l.X&&l.X[j]){l.40(25[j],l.X[j][r.$$U],J);3f l.X[j][r.$$U]}}K{l.40(j,r,J)}}}K{1g=4(l,j,r){3a(l,j,r);l.X[j][r.$$U]=r;l["on"+j]=2y};1t=4(l,j,r){f(l.X&&l.X[j]){3f l.X[j][r.$$U]}};4 2y(){5 2z=1k,m=22();5 12=3.X[m.j];14(5 i W 12){3.$$2y=12[i];f(3.$$2y(m)===J){2z=J}}9 2z}}4 22(m){f(m)9 m;m=31.m;m.pageX=m.clientX+D.2t(m.3g);m.pageY=m.clientY+D.2s(m.3g);m.1y=m.3g;m.3h=3h;m.3i=3i;5 26={"3Y":m.toElement,"3X":m.fromElement}[m.j];f(26){m.26=26}9 m};4 3h(){3.cancelBubble=1k};4 3i(){3.2z=J};9{"1g":1g,"1t":1t,"22":22}})();C=(4(){5 U=1;9{1g:4(h,j,r){f(!r.$$$U)r.$$$U=U++;f(!h.V)h.V={};f(!h.V[j])h.V[j]={};h.V[j][r.$$$U]=r},1t:4(h,j,r){f(h.V&&h.V[j]){3f h.V[j][r.$$$U]}},19:4(h,j){f(!h.V)9;5 1J=33.N.1I.1n(Q,2),12=h.V[j];14(5 i W 12){12[i].1b(h,1J)}},41:4(h){f(!h.V)9;14(5 j W h.V){5 12=h.V[j];14(5 i W 12){12[i]=T}h.V[j]=T}h.V=T}}})();S={39:4(s){9 s.3W(/-([a-z])/ig,4(all,42){9 42.toUpperCase()})}};f(B.3y){try{1j.execCommand("BackgroundImageCache",J,1k)}catch(e){}};$$=O;$$B=B;$$A=A;$$F=F;$$D=D;$$E=E;$$C=C;$$S=S})();5 1z=4(1h,x){3.1N(1h,x);3.43();3.44();3.1O(3.x.45)};1z.N={1N:4(1h,x){5 1h=3.1P=$$(1h);3.1A=T;3.2A=T;3.1Q=0;3.1R=0;5 P=3.46(x);3.2B=P.2B|0;3.27=P.27|0;3.1S=P.1S|0;3.28=P.28;3.29=!!P.29;3.2a=P.2a;3.2C=P.2C;5 1u=3.2b=/^(11|1c|Z|v)$/.L(P.47.32())?1G.$1:"v";3.48=/Z|v/.L(3.2b);3.2c=/11|Z/.L(3.2b);5 1a=P.1a?$$A.34(P.1a,4(n){9 n}):$$A.1H(1h.childNodes,4(n){9 n.nodeType==1});3.1T=$$A.34(1a,4(k){5 g=k.g;9{"k":k,"g":g[1u],"13":g.13,"1B":g.1B}});3.3j=$$F.1w(3.3k,3);5 49=$$F.1w(3.2d,3);3.2D=$$F.1w(4(){1o(3.1A);$$C.19(3,"4a");f(3.29){3.1A=2E(49,3.27)}},3);$$C.19(3,"1C")},46:4(x){3.x={1a:T,47:"v",G:0,H:0,27:2u,2B:20,1S:20,45:T,29:1k,28:4(t,b,c,d){9-c*((t=t/d-1)*t*t*t-1)+b},2a:4(w){},2C:4(){}};9 $$.1D(3.x,x||{})},43:4(){5 1h=3.1P,g=1h.g,13=$$D.3R(1h,"13");3.4b={"13":g.13,"2F":g.2F};f(13!="4c"&&13!="3l"){g.13="4c"}g.2F="4d";$$E.1g(1h,"3e",3.2D);5 1B=2u,4e=3.2c?-1:1;3.1i(4(o){5 g=o.k.g;g.13="3l";g.1B=1B+=4e});$$C.19(3,"initContainer")},44:4(){5 17=3.1T.1s,1d=17-1,j=3.48?"Width":"Height",2e="2e"+j,1p=3.1P["client"+j],1U=18.3m(1p/17),4f=3.2c?4(i){9 1U*(1d-i)}:4(i){9 1U*i},G=3.x.G,H=3.x.H,2G,2H;f(G>0||H>0){f(G>0){G=18.G(G<=1?G*1p:18.H(G,1p),1U);H=(1p-G)/1d}K{H=18.H(H<1?H*1p:H,1U);G=1p-1d*H}2G=4(){9 G};2H=4(){9 H}}K{2G=4(o){9 18.G(18.H(o.k[2e],1p),1U)};2H=4(o){9(1p-o.G)/1d}}3.1i(4(o,i){5 k=o.k,1V=$$F.1w(3.2f,3,i);o.1V=$$F.1w(4(){1o(3.1A);3.1A=2E(1V,3.27);$$C.19(3,"4g",i)},3);$$E.1g(k,"3d",o.1V);o.2g=o.3n=4f(i);o.G=2G(o);o.H=2H(o)});$$C.19(3,"4h")},2f:4(w){3.2I(w|0);3.2a(3.1R);3.3o()},2d:4(){3.2I();3.2C();3.3o()},1O:4(w){1o(3.1A);f(w==1q){3.4i()}K{3.2I(w);3.2a(3.1R);3.3p()}},2I:4(w){5 setTarget;f(w==1q){2h=4(o){9 o.3n}}K{5 1a=3.1T,1d=1a.1s-1;3.1R=w=w<0||w>1d?0:w|0;5 3q=1a[w],H=3q.H,G=3q.G;2h=4(o,i){9 i<=w?H*i:H*(i-1)+G};f(3.2c){5 4j=2h;w=1d-w;2h=4(o,i){9 4j(o,1d-i)}}}3.1i(4(o,i){o.1y=2h(o,i);o.1W=o.2g;o.2J=o.1y-o.1W});$$C.19(3,"4k",w)},3o:4(){3.1Q=0;3.3k()},3k:4(){f(3.1Q<3.1S){3.4l();3.1Q++;3.2A=2E(3.3j,3.2B)}K{3.3p();$$C.19(3,"4m")}},4l:4(){3.2K(4(o){9 3.28(3.1Q,o.1W,o.2J,3.1S)});$$C.19(3,"4n")},3p:4(){3.2K(4(o){9 o.1y});$$C.19(3,"4o")},4i:4(){3.2K(4(o){9 o.3n});$$C.19(3,"4p")},2K:4(1f){1o(3.2A);5 1u=3.2b;3.1i(4(o,i){o.k.g[1u]=(o.2g=18.3m(1f.1n(3,o)))+"px"})},1i:4(I){$$A.21(3.1T,I,3)},2L:4(){1o(3.1A);1o(3.2A);$$C.19(3,"2L");5 1u=3.2b;3.1i(4(o){5 g=o.k.g;g[1u]=o.g;g.1B=o.1B;g.13=o.13;$$E.1t(o.k,"3d",o.1V);o.1V=o.k=T});$$E.1t(3.1P,"3e",3.2D);$$D.3V(3.1P,3.4b);3.1P=3.1T=3.3j=3.2D=T;$$C.41(3)}};1z.N.1N=(4(){5 1C=1z.N.1N,1O=1z.N.1O,2M={"1C":4(){3.2N=3.x.2N|0;3.2i=T;3.2O=J;3.4q=$$F.1w(4(){3.2f(3.1R+1)},3)},"4a":4(){3.29=3.2O=J;3.2P()},"4g":4(){1o(3.2i);3.2O=1k},"4m":4(){3.2P()},"2L":4(){1o(3.2i)}},N={2P:4(){f(!3.2O){1o(3.2i);3.2i=2E(3.4q,3.2N)}},1O:4(w){1O.1n(3,w==1q?3.1R:w);3.2P()}};9 4(){5 x=Q[1];f(x&&x.auto){$$.1D(x,{2N:2000},J);$$.1D(3,N);$$A.21(2M,4(1f,p){$$C.1g(3,p,1f)},3)}1C.1b(3,Q)}})();1z.N.1N=(4(){5 1C=1z.N.1N,2M={"1C":4(){3.3r=/^(11|1c|Z|v)$/.L(3.x.4r.32())?1G.$1:"11"},"4h":4(){5 P=3.x,2Q=P.2Q,1X=P.1X,re=1X&&3v 1G("(^|\\\\s)"+1X+"(\\\\s|$)"),4t=4(k){5 1a=k.getElementsByTagName(2Q);f(1X){1a=$$A.1H(1a,4(n){9 re.L(n.className)})}9 1a[0]};5 2j=P.2j,2k=P.2k,2e=/Z|v/.L(3.3r)?"3O":"3P";3.1i(4(o){5 k=o.k,2R=4t(k);k.g.2F="4d";2R.g.13="3l";o.u={"k":2R,"2f":2j!=1q?2j:0,"2d":2k!=1q?2k:-2R[2e]}})},"4k":4(w){5 1d=3.1T.1s-1;3.1i(4(o,i){5 u=o.u;f(3.2c){i=1d-i}u.1y=w==1q||w!=i?u.2d:u.2f;u.1W=u.2g;u.2J=u.1y-u.1W})},"4n":4(){3.2S(4(u){9 3.28(3.1Q,u.1W,u.2J,3.1S)})},"4o":4(){3.2S(4(u){9 u.1y})},"4p":4(){3.2S(4(u){9 u.2d})},"2L":4(){3.1i(4(o){o.u=T})}},N={2S:4(1f){5 1u=3.3r;3.1i(4(o,i){5 u=o.u;u.k.g[1u]=(u.2g=18.3m(1f.1n(3,u)))+"px"})}};9 4(){5 x=Q[1];f(x&&x.u==1k){$$.1D(x,{4r:"11",2Q:"*",1X:"",2j:T,2k:T},J);$$.1D(3,N);$$A.21(2M,4(1f,p){$$C.1g(3,p,1f)},3)}1C.1b(3,Q)}})();',[],278,'|||this|function|var||||return||||||if|style|object||type|node|element|event|||name|from|handler|||tip|left|index|options|ret||||CE||||max|min|callback|false|else|test|thisp|prototype||opt|arguments|elem||null|guid|cusevents|in|events|rect|right||bottom|handlers|position|for|array||len|Math|fireEvent|nodes|apply|top|maxIndex|destination|method|addEvent|container|_each|document|true|property||call|clearTimeout|clientSize|undefined|elt|length|removeEvent|pos|each|bind|opacity|target|SlideView|_timerDelay|zIndex|init|extend|source|msie|RegExp|filter|slice|args|doc|curStyle|value|_initialize|reset|_container|_time|_index|duration|_nodes|defaultSize|SHOW|begin|tipClass|copy|version||forEach|fixEvent|defaultView|elems|fix|relatedTarget|delay|tween|autoClose|onShow|_pos|_reverse|close|offset|show|current|getTarget|_autoTimer|tipShow|tipClose||override|vMark|indexOf|isNaN|lastIndexOf|fun|getScrollTop|getScrollLeft|100||rtStyle|related|handleEvent|returnValue|_timerMove|interval|onClose|_LEAVE|setTimeout|overflow|getMax|getMin|_setMove|change|_setPos|dispose|methods|autoDelay|_autoPause|_autoNext|tipTag|tipNode|_setTipPos|typeof|ins|subclass|opera|chrome|break||parseInt|window|toLowerCase|Array|map|sLeft|sTop|currentStyle|alpha|camelize|storage||addEventListener|mouseenter|mouseleave|delete|srcElement|stopPropagation|preventDefault|_MOVE|_move|absolute|round|defaultTarget|_easeMove|_targetMove|nodeShow|_tipPos|string||parent|new|safari|firefox|ie6|ie8|obj|ceil|floor|push|item|concat|ownerDocument|documentElement|scrollTop|body|scrollLeft|contains|compareDocumentPosition|getBoundingClientRect|offsetWidth|offsetHeight|getComputedStyle|getStyle|float|styleFloat|rsLeft|setStyle|replace|mouseover|mouseout|fixhandler|removeEventListener|clearEvent|letter|_initContainer|_initNodes|defaultIndex|_setOptions|mode|_horizontal|CLOSE|leave|_style|relative|hidden|gradient|getDefaultTarget|enter|initNodes|_defaultMove|get|setMove|_tweenMove|finish|tweenMove|targetMove|defaultMove|_NEXT|tipPos||getTipNode'.split('|'),0,{}))
//-->