var tabControl = {
	init: function(tab) {
		$('ul.tabs:not(.no_js)').hide();
		$('.tabs/li/a:not(.no_js)').each(function() {
			$(this).click(function(){ tabControl.activate($(this)); });
		});
		if(tab===undefined) {
			tab = 1;
		}
		setTimeout(function() {
			$('.tabs/li/a[@rel=tab_el_'+tab+']:not(.no_js)').click();
			$('ul.tabs:not(.no_js)').show();
		}, 200);
	},
	clear: function() {
		$('.tabs/li/a:not(.no_js)').each(function() { $(this).removeClass("active");});
		$('.tabContainer').each( function() { $(this).hide(); });
	},

	activate: function(obj) {
		// obj = $(obj);
		this.clear();
		obj.addClass("active");
		$("#"+obj.attr('rel')).show();
	}




}
