/**
 * @author Poly 89490364a@gmail.com
 * @version 0.1
 * @projectDescription  简单的分标签
 * 默认会在对象元素内寻找类tBtn与tCon通过点击设置类为current进行显示或隐藏。
 * 也可传入一个对象作为参数进行设置。
 * @param {jQuery Selector} [tBtn] 作为标签按钮的选择符。
 * @param {jQuery Selector} [tCon] 作为标签内容的选择符。
 * @param {String} [method] 作为触发标签选择行为的事件名称,默认为click事件,理论上支持自定义事件。
 */
function tab(tabBtn,tabCon)
{
}
(function($){
	$.fn.simpleTab=function(o)
	{
		o=o?o:{};
		this.each(function(){
			var tabBtn=$(o.tBtn||".tBtn",this);
			var tabCon=$(o.tCon||".tCon",this);
			tabBtn.each(function(i){
				$(this).bind(o.method||"click",function(){
					tabBtn.removeClass("current").eq(i).addClass("current");
					tabCon.removeClass("current").eq(i).addClass("current");
				});
			});
		});
		return this;
	}
})(jQuery);
