/****************************************************************************************************************
	footer combos
****************************************************************************************************************/

function initFooterCombos(){
	
	$('#footerLoca ul').hide();
	
	$('.pseudoCombo').toggle(function(){
		
		$('#footerLoca ul').animate({
			height: 'toggle', opacity: 'hide'
		}, 500);
		
		$($(this).next('ul')).animate({
			height: 'toggle', opacity: 'show'
		}, 500);
		$(this).blur();
		
		//$('#footerLoca ul')[0].style.display = 'none'
		//$(this).next('ul')[0].style.display = 'block'
		
	},function(){
		
		$($(this).next('ul')).animate({
			height: 'toggle', opacity: 'hide'
		}, 500);
		$(this).blur();
		
	});

	
}



/****************************************************************************************************************
	Events location campus 
****************************************************************************************************************/

function setEventCampusLocation(){
	$(".locationCampus .links a").unbind();
	$(".locationCampus .links a").bind('mouseenter',function(){
		var elem = $(this).parent().parent(); 			
		$('.infoBulle').hide();
		$('.infoBulle',elem).show();
		return false;
	});	
	$(".locationCampus .links a").bind('mouseleave',function(e){
		$('.infoBulle').hide();
		return false;
	});
	
	$(".locationCampus .infoBulle").unbind();
	$(".locationCampus .infoBulle").bind('mouseenter',function(){		
		$('.infoBulle').hide();
		$(this).show();
		return false;
	});	
	$(".locationCampus .infoBulle").bind('mouseleave',function(){		
		$('.infoBulle').hide();
		return false;
	});	
}


/****************************************************************************************************************
	onLoad
****************************************************************************************************************/

$(document).ready(function(){
	
	initFooterCombos();
	
	setEventCampusLocation();
	
});

/****************************************************************************************************************
	PopUp
****************************************************************************************************************/

function OuvrirPopup(page, nom, option) {
   window.open(page, nom, option);
}