function axome_flash2(swf,l,h,remplace)
{
var t='<param name="wmode" value="transparent" />';
document.write('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+l+'" height="'+h+'"><param name="movie" value="'+swf+'" />'+t+remplace+'</object>')}
$(function(){
if($.browser.msie&&parseInt($.browser.version)<=6){
$('div#menu_principal ul li a').find('span').css('display','block');
$('div#menu_principal ul li a').hover(function(){
$(this).css('background-image','none');
$(this).css('background-color','transparent')},function(){
$(this).find('span').css('display','block')})}
$('div#menu_principal ul li').hover(function(){
$(this).find('ul').css('display','block')},function(){
$(this).find('ul').css('display','none')});
$('a#imprimer').click(function(){window.print();return false});
$('a.spip_out').attr("target","_blank");
$('#diapo ul').innerfade({
speed:'slow',
timeout:'4500',
type:'random',
containerheight:'190px'
});
if($('#en_images').length){
var mrg=0;
var wli=280;
$("#en_images ul").css("width",($('#en_images ul li').length)*wli);
var wprog=$("#en_images ul").css("width");
wprog=parseInt(wprog.replace(/px/,''));
var eslid=1;
var butee=-1;
var mlmin=-(wprog-wli*eslid);
var d=1000;
$("#en_images ul li a strong").css("opacity",0.6);
$("#en_images ul li a").hover(function(){$(this).children('strong').fadeTo("slow",0.85)},function(){$(this).children('strong').fadeTo("slow",0.6)});
$("a#bt_prec").click(function(){
mrg+=wli*eslid;
if(butee>0)butee=0;
if(mrg>=0){butee--;mrg=0}
if(butee<-1){butee=1;mrg=mlmin}
$("#en_images ul").animate({marginLeft:mrg+"px"},d);
return false});
$("a#bt_next").click(function(){
mrg-=wli*eslid;
if(butee<0)butee=0;
if(mrg<=mlmin){butee++;mrg=mlmin}
if(butee>1){butee=-1;mrg=0}
$("#en_images ul").animate({marginLeft:mrg+"px"},d);
return false})}
});
