$(document).ready(function() {
	$('[class^=menuO]').click(function() {
				       var name = $('[class=menuOn]').attr("name");
				       $('[name='+name+']').addClass('menuOff');
				       $('[name='+name+']').removeClass('menuOn');
					   $('[id=content-'+name+']').hide();
				       $(this).addClass('menuOn');
				       $(this).removeClass("menuOff");
				       $('[id=content-'+$(this).attr("name")+']').show();
				       return false;
	} );

	$('#emp-Categorie').change(function(){
		$('[id^=empCat]').hide();
		$('#empCat'+$(this).val()).show();
		});
	$('#sen-Categorie').change(function(){
		$('[id^=senCat]').hide();
		$('#senCat'+$(this).val()).show();
		});
	$(function () {
		// basic version is: $('div.demo marquee').marquee() - but we're doing some sexy extras
		$('div#filInfos marquee').marquee('pointer').mouseover(function () {
			$(this).trigger('stop');
		    }).mouseout(function () {
			    $(this).trigger('start');
			}).mousemove(function (event) {
				if ($(this).data('drag') == true) {
				    this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
				}
			    }).mousedown(function (event) {
				    $(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
				}).mouseup(function () {
					$(this).data('drag', false);
				    });
	    });
		$('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	$('.slideshow_temoignage').cycle({
		fx: 'scrollUp' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	}); 
    });