/**
 * jQuery Tab Plugin
 *
 */
(function($){
		$.fn.jTab = function(setting){
			var self = $(this);
			var def = $.extend({
				eventType:'mouseover'
			},setting);
			//console.log(self);
			if(def.eventType == 'mouseover'){
				self.children("ul:first").children().click(function(){
					var i = $(this).index();
					$(this).addClass("selected").siblings().removeClass("selected");
					self.children("ul:last").children().eq(i).show().siblings().hide();
				})
			}else{
				self.children("ul:first").children().hover(function(){
					var i = $(this).index();
					$(this).addClass("selected").siblings().removeClass("selected");
					self.children("ul:last").children().eq(i).show().siblings().hide();
				},function(){})
			}
	}
 })(jQuery);
