var Mitarbeiter = function(){
    return {
        showCategory: function(catid)
		{
			var allItems = document.getElementsByClassName('mitarbeiter');
			//var selItems = document.getElementsByClassName('category_'+catid);
			var selected = false;
			var currentItem;
			var showItems = [];
			var hideItems = [];
			for(var a = 0; a < allItems.length; a++)
			{
				currentItem = allItems[a];
				if(catid?currentItem.className.match('category_'+catid+' '):true)
				{
					showItems[showItems.length] = currentItem;
				}
				else
				{
					hideItems[hideItems.length] = currentItem;
				}
			}
			Effect.multiple(hideItems, Effect.Fade, {to: 0.1});
			Effect.multiple(showItems, Effect.Appear);
		}
    }
}();
