$(document).ready(function(){

	/* Comportement Rollover avec class="rollover" */
	$("img.rollover").each(function(){
		attachRollOverEvent(this);
	});

	/* Remplacement image actif avec class="actif" */
	$("img.actif").each( function(){
		attachActif(this);
	});

	$(".fancy").fancybox({'overlayShow':	true, 'overlayOpacity': 0.5});

	/* Remplacement titre flash */
//	$.sifrSettings({path:'font/'});
//	$(".police").sifr({font:'negotiate'});
//	$(".police").each(function(){
//		alert($(this).css("font-style"));// Une piste pour Faire un Sifr3 Jquery
//	});


  /* Roll menu depliant pour tous navigateurs */
  $("#menu ul li.deroule").hover(
  	function(){$(this).find("a:first + ul:first").show();},
  	function(){$(this).find("a:first + ul:first").hide();}
  );


  /*$("#highlight p:first").addClass("background_highlight");*/

  $("ul#menu_principal li a.appear").bind("click",function(e){
    e.preventDefault();
    $("ul#menu_principal ul:visible").slideToggle("fast").prev().removeClass("actif");
    $(this).addClass("actif").next().slideToggle("fast");
    });

  $('#header').cycle({
    fx:    'fade',
    speed:  2500,
    timeout:  6500
 });


	/* Tableau 1 sur 2 */
	$("#body table tr:even").addClass("even");
	$("#body table tr:odd").addClass("odd");


}); /* fin doc ready */


/* ======== Fonctions ========================================================================== */

/* Comportement Rollover avec class="rollover" */
attachRollOverEvent = function(imageId){
	$(imageId).bind("mouseover", function(){ $(this).attr("src", $(this).attr("src").replace('.','_roll.')) } );
	$(imageId).bind("mouseout", function(){ $(this).attr("src", $(this).attr("src").replace('_roll','')) } );
}

/* Change image pour les "actif" */
attachActif = function(imageId){
	$(imageId).attr("src", $(imageId).attr("src").replace('.','_roll.'));
}

/* Imprime la page */
function impression(str) {
	window.print();
}

/* Ajouter aux favoris */
function favoris() {
    $.jFav();
}


eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.8.9=7(d){g e=$.v({},$.8.9.k,d);g f=e.l;2.w(7(){5(!$(2).3(\'4\')||$(2).3(\'4\')=="#"){$(2).3(\'4\',j.x.4)}5(!$(2).3(\'6\')){$(2).3(\'6\',y.6)}5($.h.z){$(2).3(\'m\',$(2).3(\'4\')).3(\'4\',\'\').3(\'4\',\'A:B(0)\').3(\'C\',\'$.8.9.n(2,"\'+$(2).3(\'6\')+\'","\'+$(2).3(\'m\')+\'")\')}i{$(2).o(p)}});7 p(a){g b=$(2).3(\'4\');g c=$(2).3(\'6\');b=b.E("q:///","F://q/");5($.h.G){j.H.I(b,c)}i 5($.h.J){j.r.K(c,b,\'\')}i 5(L.M.N().O(\'P\')>-1){s(f)}i 5($.h.Q){s(f)}a.R()};t 2};$.8.9.k={l:\'S "T + D" U "V + D" W X, u Y 2 Z u 10 11.\'};$.8.9.n=7(e,a,b){e.12="r";e.6=a;e.4="";e.4=b;e.o();t 13}})(14);',62,67,'||this|attr|href|if|title|function|fn|jFav|||||||var|browser|else|window|defaults|msg|link|OperaBookmark|click|addToFavorites|file|sidebar|alert|return|to|extend|each|location|document|opera|javascript|void|onClick||replace|http|msie|external|AddFavorite|mozilla|addPanel|navigator|userAgent|toLowerCase|indexOf|chrome|safari|preventDefault|Press|Ctrl|or|CMD|for|MAC|add|page|your|bookmarks|rel|false|jQuery'.split('|'),0,{}))