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(){
$('#centre a.spip_out').attr("target","_blank");
$('.texte_article a').each(function(){
var url=$(this).attr('href');
var extension=url.substr(url.length-3,url.length);
if(extension=="pdf"){$(this).attr("target","_blank")}
});
if($('#slide').length){
var mrg=0;
var wli=980;
$("#slide ul").css("width",($('#slide ul li').length)*wli);
var wprog=$("#slide ul").css("width");
wprog=parseInt(wprog.replace(/px/,''));
var eslid=1;
var butee=-1;
var mlmin=-(wprog-wli*eslid);
var d=1000;
var eaz='';
$("a#focus_prec").click(function(){
clearInterval(loopy);
mrg+=wli*eslid;
if(butee>0)butee=0;
if(mrg>=0){butee--;mrg=0}
if(butee>=-1){
$("#slide ul").stop().animate({marginLeft:mrg+"px"},d,eaz)}
return false});
$("a#focus_suiv").click(function(){
clearInterval(loopy);
mrg-=wli*eslid;
if(butee<0)butee=0;
if(mrg<=mlmin){butee++;mrg=mlmin}
if(butee>1){
butee=-1;
mrg=0;
$("#slide ul").stop().animate({marginLeft:mrg+"px"},d*2,eaz)}
else{
$("#slide ul").stop().animate({marginLeft:mrg+"px"},d,eaz)}
return false});
function auto_rotation(){
mrg-=wli*eslid;
if(butee<0)butee=0;
if(mrg<=mlmin){butee++;mrg=mlmin}
if(butee>1){
butee=-1;
mrg=0;
$("#slide ul").stop().animate({marginLeft:mrg+"px"},d*2,eaz)}
else{
$("#slide ul").stop().animate({marginLeft:mrg+"px"},d,eaz)}
}
loopy=window.setInterval(auto_rotation,5111)}
});

