
/**
* 弹出窗口。
*
* @author			      王健 <wangjian511325@gmail.com>
* @param   str  url    	  弹出的窗口地址；
* @param   int  width	  窗口宽度
* @param   int  height    窗口高度
*/
function showopenwindow(url,width,height)
{
arg="status:no;help:no;dialogLeft:360px;dialogtop:240px;dialogWidth:"+width+"px;dialogheight:"+height+"px";
window.showModalDialog(url,"",arg);
}
/**
 * 动态显示表格。
 *
 * @author                王健 <wangjian511325@gmail.com>
 * @param  str obj		  窗口名
 * @param  int ID         表格编号。
 * @param  int TotalCount 表格总数。
 */ 
function showIntegral(obj,ID,TotalCount,show)
{
    for (var I = 1; I <= TotalCount; I++)
    {
        if (I == ID)
        {
			//alert(obj+I);
            document.getElementById(obj + I).className = "on";
            document.getElementById(show + I).style.display = "";
        }
        else
        {
            document.getElementById(obj + I).className = "off";
            document.getElementById(show + I).style.display = "none";
        }
    }
}

/**
 * 根据用户的选择显示或者隐藏比赛行
 *
 * @author                 	         Hick <wuyl@okooo.net>
 * @param   String   WorkTable       需要操作的表格
 * @param   String   HomeAway        选择的是主场/客场
 * @param   Integer  DisplayCount    显示比赛的数目
 */



function selectMatch(WorkTable, HomeAway, DisplayCount)
{
    // 修改当前显示的比赛场数
    document.getElementById(WorkTable.substr(0, 4) + "MatchCountId").innerHTML = DisplayCount;
    
    // 标记统计的是球队主场还是客场
    var TeamRole = "";
    
    var MatchTable = document.getElementById(WorkTable);
    // 查看各行的单元格数
    var RowsNum = MatchTable.rows.length;

    // 确定用来比较的球队ID以及比较的单元格（选择主场时为主队ID，客场时为客队ID）
    // 如果只显示主队
    if (HomeAway == "Home")
    {
        // TeamID变量中的格式是 TeamID=[球队ID] 
        TeamID = "TeamID=" + document.getElementById("HomeID").value + "\"";
        // 2表示需要比较的单元格为一行的第三个单元格
        ComparedCell = 2;
        // 标记主队主场
        TeamRole = "主场";
    }
    // 如果只显示客队
    else if(HomeAway == "Away")
    {
        TeamID = "TeamID=" + document.getElementById("AwayID").value + "\"";
        ComparedCell = 4;
        // 标记客队主场
        TeamRole = "客场";
    }
    // 如果是显示全部
    else
    {
        TeamID = "TeamID";  
        ComparedCell = 2;
    }
    
    // 保存显示个数
    var DisplayCountStat = 0;
    
    // 初始化胜平负统计值
     var StatWin = 0; var StatDrawn = 0; var StatLost = 0;
    
    // 从第三行开始对比赛进行过滤 
    for (var IntI = 1; IntI < RowsNum; IntI++)
    {
        // 当前行对象
        CurrentRow = MatchTable.rows[IntI];
        // 如果满足显示的条件，则把该行的display属性设置为 显示，否则设置为隐藏。
        ComparedString = CurrentRow.cells[ComparedCell].innerHTML;
        
        if (ComparedString.indexOf(TeamID) > -1 && DisplayCountStat < DisplayCount)
        {
            CurrentRow.style.display = "";
            
            // 统计胜平负的相关信息
            StrMatchScore = StrAwayInfo = CurrentRow.cells[3].innerText;
            ArrMatchScore = StrMatchScore.split("-");

            // 球队ID字符串
            StrTeamID = "TeamID=" + document.getElementById(WorkTable.substr(0, 4) + "ID").value + "\"";
            
            // 客场信息字符串
            StrAwayInfo = CurrentRow.cells[4].innerHTML;
            
            // 如果当前球队为客场
            if (StrAwayInfo.indexOf(StrTeamID) > -1)
            {
                ArrMatchScore = ArrMatchScore.reverse();
            }
            
            // 统计胜平负
            if (ArrMatchScore[0] > ArrMatchScore[1])
            {
                StatWin++;
            }
            else if (ArrMatchScore[0] == ArrMatchScore[1])
            {
                StatDrawn++;
            }
            else
            {
                StatLost++;
            }
            
            // 比赛场数的累加
            DisplayCountStat ++; 
            
            // 交换显示比赛背景色
            CurrentRow.className = (DisplayCountStat % 2 == 0) ? "historybgcolor" : "historybgcolor";
        }
        else
        {
            CurrentRow.style.display = "none";
        }
    }
    
    // 把统计得到的胜平负值写到表头
    VarHeader = WorkTable.substr(0, 4);
    document.getElementById(VarHeader + "Win").innerHTML = StatWin;
    document.getElementById(VarHeader + "Drawn").innerHTML = StatDrawn;
    document.getElementById(VarHeader + "Lost").innerHTML = StatLost;
    // 标记当前选择的主场/客场
    document.getElementById("If" + VarHeader).innerHTML = TeamRole;
    
}


 /* 根据用户的选择显示或者隐藏比赛行
 * 
 * @author						王健 <wangjian511325@163.com>
 * @param   String	 WorkTable	操作的表ID
 * @param   String   Filter		选择的是主场/客场
 * @param   String   RowsNum	显示比赛的数目
 * @param   String	 League		选择的比赛性质
 * @param   String	 TeamName	参考球队
 * @param   String	 Div		操作的DIV前缀
 *
*/
function fix_tabl(WorkTable,Filter,RowsNum,League,TeamName,Div){
			var maxNum = $("#"+WorkTable+" tr").length;
			var RowsNum = RowsNum==0?maxNum:RowsNum;
			var CurrentRow=$("#"+WorkTable+" tr");
			var HomeWin=0;
			var HomeDrawn=0;
			var HomeLose=0;
			var AwayWin=0;
			var AwayDrawn=0;
			var AwayLose=0;
			if (League!="All"){
				for(Int = 1 , i = 1; Int < maxNum ; Int++){
					CurrentRow.eq(Int).hide();
					if (CurrentRow.eq(Int).children().eq(0).html()==League && i <= RowsNum){
						if(Filter!="All"){ 
							macth=Filter.split("|");
							if (macth[0]=="Home" && CurrentRow.eq(Int).children().eq(2).html()==macth[1] ){
								var Score=CurrentRow.eq(Int).children().eq(3).html();
								var ScoreArr=Score.split("-");
								if (ScoreArr[0]>ScoreArr[1]){
									HomeWin++;
								}else if (ScoreArr[0]==ScoreArr[1]){
									HomeDrawn++;
								}else{
									HomeLose++;
								}
								$("#"+Div+"ScoreWin").html(HomeWin+"胜");
								$("#"+Div+"ScoreDrawn").html(HomeDrawn+"平");
								$("#"+Div+"ScoreLose").html(HomeLose+"负");

								$("#"+Div+"HomeWin").html(HomeWin+"胜");
								$("#"+Div+"HomeDrawn").html(HomeDrawn+"平");
								$("#"+Div+"HomeLose").html(HomeLose+"负");

								$("#"+Div+"AwayWin").html(AwayWin+"胜");
								$("#"+Div+"AwayDrawn").html(AwayDrawn+"平");
								$("#"+Div+"AwayLose").html(AwayLose+"负");
								$("#"+Div+"MacthCount").html(HomeLose+HomeDrawn+HomeWin+"场");

								$("#"+Div+"homeMatchCount").html(RowsNum);
								$("#"+Div+"awayMatchCount").html(RowsNum);
								$("#"+Div+"homeMatchWin").html(HomeWin+"胜");
								$("#"+Div+"awayMatchWin").html(HomeWin+"胜");
								$("#"+Div+"homeMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"awayMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"homeMatchLose").html(HomeLose+"负");
								$("#"+Div+"awayMatchLose").html(HomeLose+"负");
								
								
								CurrentRow.eq(Int).toggle();
								i++;
							}
							else if (macth[0]=="Away" && CurrentRow.eq(Int).children().eq(4).html()==macth[1]){
								var Score=CurrentRow.eq(Int).children().eq(3).html();
								var ScoreArr=Score.split("-");
								if (ScoreArr[0]>ScoreArr[1]){
									AwayLose++;
								}else if (ScoreArr[0]==ScoreArr[1]){
									AwayDrawn++;
								}else{
									AwayWin++;
								}
								$("#"+Div+"ScoreWin").html(AwayWin+"胜");
								$("#"+Div+"ScoreDrawn").html(AwayDrawn+"平");
								$("#"+Div+"ScoreLose").html(AwayLose+"负");

								$("#"+Div+"HomeWin").html(HomeWin+"胜");
								$("#"+Div+"HomeDrawn").html(HomeDrawn+"平");
								$("#"+Div+"HomeLose").html(HomeLose+"负");

								$("#"+Div+"AwayWin").html(AwayWin+"胜");
								$("#"+Div+"AwayDrawn").html(AwayDrawn+"平");
								$("#"+Div+"AwayLose").html(AwayLose+"负");

								$("#"+Div+"homeMatchCount").html(RowsNum);
								$("#"+Div+"awayMatchCount").html(RowsNum);
								$("#"+Div+"homeMatchWin").html(AwayWin+"胜");
								$("#"+Div+"awayMatchWin").html(AwayWin+"胜");
								$("#"+Div+"homeMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"awayMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"homeMatchLose").html(AwayLose+"负");
								$("#"+Div+"awayMatchLose").html(AwayLose+"负");

								$("#"+Div+"MacthCount").html(AwayLose+AwayWin+AwayDrawn+"场");
								
								CurrentRow.eq(Int).toggle();
								i++;

							}
						}
						else{
							//TeamName=$("#"+Div+"TeamName").html();
							var Score=CurrentRow.eq(Int).children().eq(3).html();
							var ScoreArr=Score.split("-");
							var ScoreTeam=CurrentRow.eq(Int).children().eq(2).html();
							if (ScoreArr[0]>ScoreArr[1]){
								if (TeamName==ScoreTeam){
									HomeWin++;
								}else{
									AwayLose++;
								}
							}else if (ScoreArr[0]<ScoreArr[1]){
								if (TeamName==ScoreTeam){
									HomeLose++;
								}
								else{
									AwayWin++;
								}
							}else{
								if (TeamName==ScoreTeam){
									HomeDrawn++;
								}
								else{
									AwayDrawn++;
								}
							}

							$("#"+Div+"HomeWin").html(HomeWin+"胜");
							$("#"+Div+"HomeDrawn").html(HomeDrawn+"平");
							$("#"+Div+"HomeLose").html(HomeLose+"负");

							$("#"+Div+"AwayWin").html(AwayWin+"胜");
							$("#"+Div+"AwayDrawn").html(AwayDrawn+"平");
							$("#"+Div+"AwayLose").html(AwayLose+"负");

							$("#"+Div+"'MacthCount").html(HomeWin+AwayLose+AwayWin+HomeLose+AwayDrawn+HomeDrawn+"场");
							$("#"+Div+"'ScoreWin").html(HomeWin+AwayWin+"胜");
							$("#"+Div+"ScoreDrawn").html(HomeDrawn+AwayDrawn+"平");
							$("#"+Div+"ScoreLose").html(HomeLose+AwayLose+"负");
							$("#"+Div+"homeMatchCount").html(RowsNum);
							$("#"+Div+"awayMatchCount").html(RowsNum);
							$("#"+Div+"homeMatchWin").html(AwayWin+HomeWin+"胜");
							$("#"+Div+"awayMatchWin").html(AwayWin+HomeWin+"胜");
							$("#"+Div+"homeMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
							$("#"+Div+"awayMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
							$("#"+Div+"homeMatchLose").html(AwayLose+HomeLose+"负");
							$("#"+Div+"awayMatchLose").html(AwayLose+HomeLose+"负");
							$("#"+Div+"homeMatchWin").html(AwayWin+HomeWin+"胜");
							
							CurrentRow.eq(Int).toggle();
							i++;
						}
					}
				}
			}
			else{
				if(Filter!="All"){
					macth=Filter.split("|");
					for(Int = 1, i = 1;Int < maxNum;Int++){
						CurrentRow.eq(Int).hide();
							if (macth[0]=="Home" && CurrentRow.eq(Int).children().eq(2).html()==macth[1] && i<=RowsNum){
								var Score=CurrentRow.eq(Int).children().eq(3).html();
								var ScoreArr=Score.split("-");
								if (ScoreArr[0]>ScoreArr[1]){
									HomeWin++;
								}else if (ScoreArr[0]==ScoreArr[1]){
									HomeDrawn++;
								}else{
									HomeLose++;
								}
								$("#"+Div+"ScoreWin").html(HomeWin+"胜");
								$("#"+Div+"ScoreDrawn").html(HomeDrawn+"平");
								$("#"+Div+"ScoreLose").html(HomeLose+"负");

								$("#"+Div+"HomeWin").html(HomeWin+"胜");
								$("#"+Div+"HomeDrawn").html(HomeDrawn+"平");
								$("#"+Div+"HomeLose").html(HomeLose+"负");

								$("#"+Div+"AwayWin").html(AwayWin+"胜");
								$("#"+Div+"AwayDrawn").html(AwayDrawn+"平");
								$("#"+Div+"AwayLose").html(AwayLose+"负");

								$("#"+Div+"homeMatchCount").html(RowsNum);
								$("#"+Div+"awayMatchCount").html(RowsNum);
								$("#"+Div+"homeMatchWin").html(HomeWin+"胜");
								$("#"+Div+"awayMatchWin").html(HomeWin+"胜");
								$("#"+Div+"homeMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"awayMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"homeMatchLose").html(HomeLose+"负");
								$("#"+Div+"awayMatchLose").html(HomeLose+"负");

								$("#"+Div+"MacthCount").html(HomeLose+HomeDrawn+HomeWin+"场");
								if (i%2==0)
								{
								CurrentRow.eq(Int).addClass("zoushi_left_main_s1");
								}
								else{
								CurrentRow.eq(Int).addClass("zoushi_left_main_s2");
								}
								CurrentRow.eq(Int).toggle();
								i++;
							}
							else if (macth[0]=="Away" && CurrentRow.eq(Int).children().eq(4).html()==macth[1] && i<=RowsNum){
								var Score=CurrentRow.eq(Int).children().eq(3).html();
								var ScoreArr=Score.split("-");
								if (ScoreArr[0]>ScoreArr[1]){
									AwayLose++;
								}else if (ScoreArr[0]==ScoreArr[1]){
									AwayDrawn++;
								}else{
									AwayWin++;
								}
								$("#"+Div+"ScoreWin").html(AwayWin+"胜");
								$("#"+Div+"ScoreDrawn").html(AwayDrawn+"平");
								$("#"+Div+"ScoreLose").html(AwayLose+"负");

								$("#"+Div+"HomeWin").html(HomeWin+"胜");
								$("#"+Div+"HomeDrawn").html(HomeDrawn+"平");
								$("#"+Div+"HomeLose").html(HomeLose+"负");

								$("#"+Div+"AwayWin").html(AwayWin+"胜");
								$("#"+Div+"AwayDrawn").html(AwayDrawn+"平");
								$("#"+Div+"AwayLose").html(AwayLose+"负");

								$("#"+Div+"homeMatchCount").html(RowsNum);
								$("#"+Div+"awayMatchCount").html(RowsNum);
								$("#"+Div+"homeMatchWin").html(AwayWin+"胜");
								$("#"+Div+"awayMatchWin").html(AwayWin+"胜");
								$("#"+Div+"homeMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"awayMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"homeMatchLose").html(AwayLose+"负");
								$("#"+Div+"awayMatchLose").html(AwayLose+"负");

								$("#"+Div+"MacthCount").html(AwayLose+AwayWin+AwayDrawn+"场");
								
								CurrentRow.eq(Int).toggle();
								i++;
							}
					}
				}
				else{
					for(Int = 1, i = 1;Int < maxNum;Int++){
						CurrentRow.eq(Int).hide();
							if (i<=RowsNum){
								//var TeamName=$("#"+Div+"TeamName").html();
								var Score=CurrentRow.eq(Int).children().eq(3).html();
								var ScoreTeam=CurrentRow.eq(Int).children().eq(2).html();
								var ScoreArr=Score.split("-");
									if (ScoreArr[0]>ScoreArr[1]){
									if (ScoreTeam==TeamName){
										HomeWin++;
									}
									else{
										AwayLose++;
									}
								}else if(ScoreArr[0]==ScoreArr[1]){
									if (ScoreTeam==TeamName){
										HomeDrawn++;
									}
									else{
										AwayDrawn++;
									}
								}else{
								    if (ScoreTeam==TeamName){
										HomeLose++;
								    }
									else{
										AwayWin++
									}
								}

								

								$("#"+Div+"homeMatchCount").html(RowsNum);
								$("#"+Div+"awayMatchCount").html(RowsNum);
								$("#"+Div+"homeMatchWin").html(AwayWin+HomeWin+"胜");
								$("#"+Div+"awayMatchWin").html(AwayWin+HomeWin+"胜");
								$("#"+Div+"homeMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"awayMatchDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"homeMatchLose").html(AwayLose+HomeLose+"负");
								$("#"+Div+"awayMatchLose").html(AwayLose+HomeLose+"负");
								
								$("#"+Div+"MacthCount").html(HomeWin+HomeDrawn+HomeLose+AwayWin+AwayDrawn+AwayLose+"场");

								$("#"+Div+"HomeWin").html(HomeWin+"胜");
								$("#"+Div+"HomeDrawn").html(HomeDrawn+"平");
								$("#"+Div+"HomeLose").html(HomeLose+"负");

								$("#"+Div+"AwayWin").html(AwayWin+"胜");
								$("#"+Div+"AwayDrawn").html(AwayDrawn+"平");
								$("#"+Div+"AwayLose").html(AwayLose+"负");

								$("#"+Div+"ScoreWin").html(AwayWin+HomeWin+"胜");
								$("#"+Div+"ScoreDrawn").html(AwayDrawn+HomeDrawn+"平");
								$("#"+Div+"ScoreLose").html(AwayLose+HomeLose+"负");
								
								CurrentRow.eq(Int).toggle();
								i++;
							}
				
					}
				}
		}
	}



/*
new year 收缩广告
* @author			      王健 <wangjian511325@gmail.com>
* @param   str  id    	  广告DIV ID
* @param   int  time      广告停顿时间
* slideAd('MyMoveAd',2);
*/
var intervalId = null; 
function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){ 
  this.stayTime=nStayTime*1000 || 1000; 
  this.maxHeigth=nMaxHth || 320; 
  this.minHeigth=nMinHth || 2; 
  this.state=sState || "down" ; 
  var obj = document.getElementById(id); 
  if(intervalId != null)window.clearInterval(intervalId); 
  function openBox(){ 
   var h = obj.offsetHeight; 
   obj.style.height = ((this.state == "down") ? (h + 1) : (h - 1))+"px"; 
    if(obj.offsetHeight>this.maxHeigth){ 
    window.clearInterval(intervalId); 
    intervalId=window.setInterval(closeBox,this.stayTime); 
    }
    if (obj.offsetHeight<this.minHeigth){
    window.clearInterval(intervalId); 
    obj.style.display="none"; 
    } 
  } 
  function closeBox(){ 
   slideAd(id,this.stayTime,"up",nMaxHth,nMinHth); 
  } 
  intervalId = window.setInterval(openBox,1); 
}

/*
首页flash
*/
//var $ = function (id) {
//	return "string" == typeof id ? document.getElementById(id) : id;
//};

var Extend = function(destination, source) {
	for (var property in source) {
		destination[property] = source[property];
	}
	return destination;
}

var CurrentStyle = function(element){
	return element.currentStyle || document.defaultView.getComputedStyle(element, null);
}

var Bind = function(object, fun) {
	var args = Array.prototype.slice.call(arguments).slice(2);
	return function() {
		return fun.apply(object, args.concat(Array.prototype.slice.call(arguments)));
	}
}

var Tween = {
	Quart: {
		easeOut: function(t,b,c,d){
			return -c * ((t=t/d-1)*t*t*t - 1) + b;
		}
	},
	Back: {
		easeOut: function(t,b,c,d,s){
			if (s == undefined) s = 1.70158;
			return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
		}
	},
	Bounce: {
		easeOut: function(t,b,c,d){
			if ((t/=d) < (1/2.75)) {
				return c*(7.5625*t*t) + b;
			} else if (t < (2/2.75)) {
				return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
			} else if (t < (2.5/2.75)) {
				return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
			} else {
				return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
			}
		}
	}
}


//容器对象,滑动对象,切换数量
var SlideTrans = function(container, slider, count, options) {
	this._slider = document.getElementById(slider);
	this._container = document.getElementById(container);//容器对象
	this._timer = null;//定时器
	this._count = Math.abs(count);//切换数量
	this._target = 0;//目标值
	this._t = this._b = this._c = 0;//tween参数
	
	this.Index = 0;//当前索引
	
	this.SetOptions(options);
	
	this.Auto = !!this.options.Auto;
	this.Duration = Math.abs(this.options.Duration);
	this.Time = Math.abs(this.options.Time);
	this.Pause = Math.abs(this.options.Pause);
	this.Tween = this.options.Tween;
	this.onStart = this.options.onStart;
	this.onFinish = this.options.onFinish;
	
	var bVertical = !!this.options.Vertical;
	this._css = bVertical ? "top" : "left";//方向
	
	//样式设置
	var p = CurrentStyle(this._container).position;
	p == "relative" || p == "absolute" || (this._container.style.position = "relative");
	this._container.style.overflow = "hidden";
	this._slider.style.position = "absolute";
	
	this.Change = this.options.Change ? this.options.Change :
		this._slider[bVertical ? "offsetHeight" : "offsetWidth"] / this._count;
};
SlideTrans.prototype = {
  //设置默认属性
  SetOptions: function(options) {
	this.options = {//默认值
		Vertical:	true,//是否垂直方向（方向不能改）
		Auto:		true,//是否自动
		Change:		0,//改变量
		Duration:	50,//滑动持续时间
		Time:		10,//滑动延时
		Pause:		5000,//停顿时间(Auto为true时有效)
		onStart:	function(){},//开始转换时执行
		onFinish:	function(){},//完成转换时执行
		Tween:		Tween.Quart.easeOut//tween算子
	};
	Extend(this.options, options || {});
  },
  //开始切换
  Run: function(index) {
	//修正index
	index == undefined && (index = this.Index);
	index < 0 && (index = this._count - 1) || index >= this._count && (index = 0);
	//设置参数
	this._target = -Math.abs(this.Change) * (this.Index = index);
	this._t = 0;
	this._b = parseInt(CurrentStyle(this._slider)[this.options.Vertical ? "top" : "left"]);
	this._c = this._target - this._b;
	
	this.onStart();
	this.Move();
  },
  //移动
  Move: function() {
	clearTimeout(this._timer);
	//未到达目标继续移动否则进行下一次滑动
	if (this._c && this._t < this.Duration) {
		this.MoveTo(Math.round(this.Tween(this._t++, this._b, this._c, this.Duration)));
		this._timer = setTimeout(Bind(this, this.Move), this.Time);
	}else{
		this.MoveTo(this._target);
		this.Auto && (this._timer = setTimeout(Bind(this, this.Next), this.Pause));
	}
  },
  //移动到
  MoveTo: function(i) {
	this._slider.style[this._css] = i + "px";
  },
  //下一个
  Next: function() {
	this.Run(++this.Index);
  },
  //上一个
  Previous: function() {
	this.Run(--this.Index);
  },
  //停止
  Stop: function() {
	clearTimeout(this._timer); this.MoveTo(this._target);
  }
};