   var bn_current_slide = 1;

	function NavLiOver(){
//		$('#nav li').toggleClass('active');
		$(this).toggleClass('active');
		$('ul', this).show();
	}

	function NavLiOut(){
		$(this).toggleClass('active');
		$('ul', this).hide();
	}

	function team_fotoOver(){
		rectOut();
	}

	function team_fotoOut(){
		rectOut();
	}

	function rectOver(){
		$('.player').hide(); 
		$('#team_info').hide(); 
		$('#p'+$(this).attr('name')).fadeIn(500).show();
	}

	function rectOut(){
		$('.player').hide(); 
		$('#team_info').show();
	}


	function bnprevOver(){
		$(".bn_preview").removeClass('bn_current');
		$(this).addClass('bn_current');

	}

	function bnprevOut(){
		$(".bn_preview").removeClass('bn_current');
		$('#bn_preview_'+bn_current_slide).addClass('bn_current');
	}


	function megaHoverOver5(){$('.hover',this).show();$('.first',this).hide();}
	function megaHoverOut5(){$('.first',this).show();$('.hover',this).hide();}


$(document).ready(function() {
	var config = {    
		 sensitivity: 2, 
		 interval: 10,
		 over: NavLiOver, 
		 timeout: 10, 
		 out: NavLiOut 
	};

	var config_team_foto = {    
		 sensitivity: 2, 
		 interval: 10,
		 over: team_fotoOver, 
		 timeout: 10, 
		 out: team_fotoOut 
	};

	var config_rect = {    
		 sensitivity: 2, 
		 interval: 10,
		 over: rectOver, 
		 timeout: 10, 
		 out: rectOut 
	};


	var config_bnprev = {    
		 sensitivity: 2, 
		 interval: 10,
		 over: bnprevOver, 
		 timeout: 10, 
		 out: bnprevOut 
	};

	var config_user_buttun = {    
		 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)    
		 interval: 10, // number = milliseconds for onMouseOver polling interval    
		 over: megaHoverOver5, // function = onMouseOver callback (REQUIRED)    
		 timeout: 1, // number = milliseconds delay before onMouseOut    
		 out: megaHoverOut5 // function = onMouseOut callback (REQUIRED)    
	};

	$(".user_button").hoverIntent(config_user_buttun);

	$("#nav li").hoverIntent(config);
	$("#team_foto").hoverIntent(config_team_foto);
	$(".rect").hoverIntent(config_rect);
	$(".bn_preview").hoverIntent(config_bnprev);
});
