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 clique_flash(num_dep){
if(num_dep<10){num_dep="0"+parseInt(num_dep)}
$("#liste_"+num_dep).attr("selected","selected");
$(".resultat_carte").hide();
$(".resultat_"+num_dep).show()}
$(document).ready(function(){
$('a.spip_out').attr("target","_blank");
if($('#myslide').length){
var mrg=0;
var wli=530;
$("#myslide ul").css("width",($('#myslide ul li').length)*wli);
var wprog=$("#myslide ul").css("width");
wprog=parseInt(wprog.replace(/px/,''));
var eslid=1;
var butee=-1;
var mlmin=-(wprog-wli*eslid);
var d=900;
$("a#slide_prec").click(function(){
mrg+=wli*eslid;
if(butee>0)butee=0;
if(mrg>=0){butee--;mrg=0}
if(butee<-1){butee=1;mrg=mlmin}
$("#myslide ul").stop().animate({marginLeft:mrg+"px"},d);
return false});
$("a#slide_suiv").click(function(){
mrg-=wli*eslid;
if(butee<0)butee=0;
if(mrg<=mlmin){butee++;mrg=mlmin}
if(butee>1){butee=-1;mrg=0}
$("#myslide ul").stop().animate({marginLeft:mrg+"px"},d);
return false})}
});

