var Tab = new Class({
	current: 0,
	initialize: function(el, options) {
		var heads = $$('#' + el + ' .tab .title li');
		var items = $$('#' + el + ' .tab .content .item');

		if (options && options['default']) {
			this.current['head'] = options['default'];
		}

		heads.each(function(e, index) {
			var tab = this;
			
			e.addEvent('mouseenter', function() {
				heads[tab.current].removeClass('active');
				heads[index].addClass('active');
				items[tab.current].addClass('hidden');
				items[index].removeClass('hidden');
				tab.current = index;
			});
		}, this);
	}
});