myFocus.pattern.extend({//*********************淘宝商城风格******************
	'mF_taobaomall':function(settings,$){
		var $focus=$(settings);
		var $picBox=$focus.find('.pic');
		var $picUl=$picBox.find('ul');
		var $txtList=$focus.addListTxt().find('li');
		$picUl[0].innerHTML+=$picUl[0].innerHTML;//无缝复制
		//CSS
		var n=$txtList.length,dir=settings.direction,prop=dir==='left'?'width':'height',dis=settings[prop];
		$picUl.addClass(dir)[0].style[prop]=dis*n*2+'px';
		$picUl.find('li').each(function(){//消除上下li间的多余间隙
			$(this).css({width:settings.width,height:settings.height});
		});
		var txtH=settings.txtHeight;
		$focus.css({height:settings.height+txtH+1});
		$picBox.css({width:settings.width,height:settings.height});
		$txtList.each(function(){this.style.width=(settings.width-n-1)/n+1+'px'});
		$txtList[n-1].style.border=0;
		//PLAY
		var param={};
		$focus.play(function(i){
			$txtList[i>=n?(i-n):i].className = '';
		},function(i){
			param[dir]=-dis*i;
			$picUl.slide(param,settings.duration,settings.easing);
			$txtList[i>=n?(i-n):i].className = 'current';
		},settings.seamless);
		//Control
		$focus.bindControl($txtList);
	}
});
myFocus.config.extend({
	'mF_taobaomall':{//可选个性参数
		txtHeight:28,//默认标题按钮高度
		seamless:true,//是否无缝：true(是)| false(否)
		duration:600,//过渡时间(毫秒)，时间越大速度越小
		direction:'top',//运动方向，可选：'top'(向上) | 'bottom'(向下) | 'left'(向左) | 'right'(向右)
		easing:'easeOut'//运动形式，可选：'easeOut'(快出慢入) | 'easeIn'(慢出快入) | 'easeInOut'(慢出慢入) | 'swing'(摇摆运动) | 'linear'(匀速运动)
	}
});