$(document).ready(function(){

  /* Remplacement titre flash */
	$.sifrSettings({path:'fonts/'});
	$("h1").sifr({font:'tiepolo'});
	$("h2").sifr({font:'tiepolo'});

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




}); /* fin doc ready */


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

/* Comportement Rollover avec class="rollover" */
attachRollOverEvent = function(imageId){
	$(imageId).mouseover( function(){ $(this).attr("src", $(this).attr("src").replace('.','_roll.')) } );
	$(imageId).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.'));
}


function charge(quoi){
	$("#contenu").load("a_actus.php",{theme: quoi,ld: 1},function(){
		$.sifrSettings({path:'fonts/'});
		$("#contenu h2").sifr({font:'tiepolo'});
	});
}