


var team = {
		init: function(container) {
	
			$(container).mouseenter(function() {
				$(this).css({	'cursor':'pointer',
								'background-color': '#f2f2f2',
								'border': '1px solid #CCCCCC',
								'padding': '4px 0px'});
			});
	
			$(container).mouseleave(function() {
				$(this).css({	'cursor':'', 
								'background-color':'',
								'border':'',
								'padding':'5px 1px'});
				
				var descrip = $(this.children[1]);
				
				if(descrip.css('display') != 'none') {
					descrip.hide();
				}
			});
			
			
			$($(container).children()[0]).click(function() {
				var descrip = $($(this).parent().children()[1]);
				
				if(descrip.css('display') == 'none') {
					
					$("div.team-member div.description").each(function() { 
						$(this).hide()
					});
					
					$(container).css({	'border-bottom': '',
										'padding-bottom': '5px'});
					descrip.show();
				} else {
					
					$(container).css({	'border-bottom': '1px solid #CCCCCC',
										'padding-bottom': '4px'});
					descrip.hide();
				}
			});
		}
}