function verifieInscriptionBulletins() {
	f = document.inscription;
    if (!f.prenom.value || (f.prenom.value == 'Prénom') || !f.nom.value || (f.nom.value == 'Nom') || !f.courriel.value) {
        alert('Veuillez compléter tous les champs.');
        return;
    }
    if ((f.courriel.value.indexOf('@') == -1) || (f.courriel.value.indexOf('.') == -1)) {
        alert('Veuillez entrer un courriel valide.');
        return;
    }
	if ((f.cegep.selectedIndex == -1) || (f.cegep.selectedIndex == 0)) {
        alert('Veuillez choisir votre Cégep dans la liste déroulante.');
        return;
	}
	f.submit();
}

$(document).ready(function() {
	// Conférenciers
	$('#pheromone').toggle(
		  function () {
			$('#pheromone_desc').show('fast');
		  },
		  function () {
			$('#pheromone_desc').hide('fast');
		  }
    );
	$('#svm').toggle(
		  function () {
			$('#svm_desc').show('fast');
		  },
		  function () {
			$('#svm_desc').hide('fast');
		  }
    );
	$('#ester_pelchat_desc_entreprise').toggle(
		  function () {
			$('#ester_pelchat_desc').show('fast');
		  },
		  function () {
			$('#ester_pelchat_desc').hide('fast');
		  }
    );
	$('#agence_shop').toggle(
		  function () {
			$('#agence_shop_desc').show('fast');
		  },
		  function () {
			$('#agence_shop_desc').hide('fast');
		  }
    );



    // Hover
	$('#menu ul li').hover(
		function() {
			$(this).css('background-image', 'url(/i/menu-main-hover-1ligne.gif)');
		},
		function() {
			$(this).css('background-image', 'url(/commun/spacer.gif)');
		}
	);
	$('#menu ul li.deux_lignes').hover(
		function() {
			$(this).css('background-image', 'url(/i/menu-main-hover-2lignes.gif)');
		},
		function() {
			$(this).css('background-image', 'url(/commun/spacer.gif)');
		}
	);
	$('#menu ul ul li').hover(
		function() {
			$(this).css('background-image', 'url(/i/sous-menu-hover-1ligne.gif)');
		},
		function() {
			$(this).css('background-image', 'url(/commun/spacer.gif)');
		}
	);
	$('#menu ul ul li.deux_lignes').hover(
		function() {
			$(this).css('background-image', 'url(/i/sous-menu-hover-2lignes.gif)');
		},
		function() {
			$(this).css('background-image', 'url(/commun/spacer.gif)');
		}
	);
	
	/* Affiche les sous-menus */
	$('#menu ul li').hover(
		function() {
			$(this).find('a:last').css('color', '#fff');
			$(this).find('.sous_menu').show();
			if ($(this).find('.sous_menu').css('display') == 'block') {
				$(this).find('a:last').css('cursor', 'default');
			}
		},
		function() {
			$(this).find('a:last').css('color', '#000');
			$(this).find('.sous_menu').hide();
		}
	);

	/* Affiche les sous sous-menus */
	$('#menu ul li ul li').hover(
		function() {
			$(this).find('a:last').css('color', '#fff');
			$(this).find('.sous_sous_menu').show();
			if ($(this).find('.sous_sous_menu').css('display') == 'block') {
				$(this).find('a:last').css('cursor', 'default');
			}
		},
		function() {
			$(this).find('a:last').css('color', '#000');
			$(this).find('.sous_sous_menu').hide();
		}
	);

	$('.lightbox').lightBox(); // Select all links with lightbox class


	
});



