/**
 * Gestion des survols des elements du menu
 * Hack pour IE6
 * Au survol <li> devient <li class="over">
 */
if(window.attachEvent) {
	window.attachEvent('onload',function(){
		var elms = document.getElementById('nav').getElementsByTagName('LI');
		for(var i = 0, lng = elms.length; i < lng; i++){
			elms[i].onmouseover = function(){
				this.className += ' over';
			};
			elms[i].onmouseout = function(){
				this.className = this.className.replace(new RegExp(' over\\b'),'');
			};
		}
	});
}

jQuery(document).ready(function() {
	jQuery.each(jQuery('a.customTip'), function(){
		jQuery(this).cluetip({
			splitTitle: '|', 
			cluetipClass: 'bsn',
			titleAttribute: 'title',
			width: 175,
			closeText: 'Fermer',
			cluezIndex:3000,
			activation: 'hover',	/* !!! (1) pour activer le lien !!! */
			clickThrough: true,		/* !!! (2) pour activer le lien !!! */
			tracking: false,
			fx: {
				open:'fadeIn',
				openSpeed: 'slow'
			},
			dropShadow: true
		});
	});
});
