/**
 * @author Dmytro Navrotskyy <navrotskyy@affenfels.de>
 */
Ape.Element.lists = function(){
	var self = this;
	var groupId;
	var groupDivId;
	var currentlyActiveInhaltId;
	
	this.start = function(){
		/*
		self.groupDivId = 'lists_group_tabs_' + this.groupId;
		self.currentlyActiveInhaltId = self.groupId + '_0';
		
		$('#'+this.groupDivId+' .liststab a').bind('click', updateTabHighlighting);
		$('#'+this.groupDivId+' .liststab a').bind('click', updateTabInhalt);
		*/
	};
	
	function updateTabHighlighting(){
		$('#'+self.groupDivId+' .liststab').removeClass('aktiv');
		$(this).parent().addClass('aktiv');
	}
	
	/**
	 * Aktualisiert den Inhalts des Blocks und die RSS-Links/Links auf alle
	 * Beitraege. 
	 */
	function updateTabInhalt() {
		var newInhaltId = $(this).attr('rel');
		$('#listgroup_' + self.currentlyActiveInhaltId).hide();
		$('#listgroup_' + self.currentlyActiveInhaltId + '_rss').hide();
		$('#listgroup_' + newInhaltId).show();
		$('#listgroup_' + newInhaltId + '_rss').show();
		self.currentlyActiveInhaltId = newInhaltId;
	}
};
