jQuery(document).ready(function() {
	jQuery('#menu ul.sf-menu').superfish({		
		disableHI: true,
		autoArrows: false,
		animation: {height: 'toggle'},
		speed: 300,
		delay: 300
	}); 
	
	jQuery('#menu li.elt-niv1 div').hover(
		function () {
			jQuery(this).addClass('hover');
		},
		function () {
			jQuery(this).removeClass('hover');
		}
	);
	
	//jQuery('#menu ul ul').css({ opacity: 0 });
	/*jQuery('#menu li.elt-niv1 a').corner('10px');
	jQuery('#menu ul ul').corner();
	jQuery('#menuvertical li.elt-niv2 a').corner('5px');
	jQuery('#menuvertical li.elt-niv3 a').corner('5px');*/
	jQuery('.arrondi_10').corner('10px');
	jQuery('.arrondi_5').corner('5px');
	
	jQuery(document).ready(function() {
	// Infobulle agenda
	jQuery('.month-large .eventDay .num-jour').each(function(i) {
		jQuery(this).parent().find('div.event-item').wrapAll('<ul class="agenda-bulle-list" />');
		jQuery(this).parent().find('div.event-item').each(function(i) {
			jQuery(this).replaceWith('<li>' +  jQuery(this).html() + '</li>');
		});
		
		jQuery(this).qtip ({		
			position: {
				corner: {
				 target: 'topRight',
				 tooltip: 'topLeft'
				},
				adjust: {
					y: -5
				}
			},
			show: {
				when: {
					event: 'mouseover'
				}
			},
			hide: {
				fixed: true,
				when: {
					event: 'mouseout'
				}
			},
			style: {
				'background': 'none',
				'color': 'white',
				'padding' : '0px',
				width: {
					min: 147,
					max: 147
				},
				border: {
					radius: 1,
					color: 'transparent'
				}
			},
			content: jQuery(this).parent().children('.agenda_bulle').html()
		});
	});
});
});

jQuery.noConflict();
