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 centrarVentana(theURL){
var myWidth='460';
var myHeight='460';
var features='scrollbars=yes,resizable=yes';
var myLeft=(screen.width-myWidth)/2;
var myTop=(screen.height-myHeight)/2;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
window.open(theURL,'Envoyer à un ami',features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight)}
$(function(){
$("a.logo_slide").fancybox();
if($('#equipe_home').length){
$('#equipe_home').innerfade({speed:'slow',timeout:4000,type:'sequence',containerheight:'175px'})}
$('#gauche ul li:not(.active_oui) a').each(function(){
$(this).hover(function(){
$(this).stop().animate({paddingLeft:25},250)},function(){
$(this).stop().animate({paddingLeft:18},250)})});
$('div.texte_article h3.spip').each(function(){
var elem=$(this);
$.get("spip.php?page=imagetypo",{txt:elem.html(),coul:"000000",typo:"titre.ttf",taille:"40",largeur:"740"},function(data){
elem.html(data)});
var txt=$(this).html()});
if($('#innerfade').length){
$('#innerfade').innerfade({
speed:'slow',timeout:4000,type:'sequence',containerheight:'283px'
})}
if($('#slide').length){
var mrg=0;
var wli=860;
$("#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="easeInOutExpo";
$('#slide_home>a').bind('mouseover focus',function(){
$(this).css('outline','none')});
$("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,6500)}
$('ul#news_axome li, ul#rea_axome li').hover(function(){
$(this).css('background-color','#f5f5f5')},function(){
$(this).css('background-color','white')});
$('#autres_rea, #portfolio_down, #portfolio_up').hover(function(){
$(this).animate({opacity:0.85},"slow")},function(){
$(this).animate({opacity:1},"slow")});
$('#myportfolio li').hover(function(){
var bg=$(this).css('background-image');
var bgo='';
if($(this).find('.survol').length){
bgo=$(this).find('.survol').css('background-image');
$(this).css('background-image',bgo)}
$(this).find('a.preview').stop().animate({height:"136px"},"slow")},function(){
if($(this).find('.survol_out').length){
bg='url('+$(this).find('.survol_out').html()+')';
$(this).css('background-image',bg)}
$(this).find('a.preview').stop().animate({height:"187px"},"slow")});
if($('#myportfolio').length){
var mrg=0;
var hli=202;
$("#myportfolio ul").css("height",Math.ceil($('#myportfolio ul li').length/3)*hli);
var hprog=$("#myportfolio ul").css("height");
hprog=parseInt(hprog.replace(/px/,''));
var eslid=1;
var butee=-1;
var mlmin=-(hprog-hli*(eslid+1));
var d=1000;
var eaz="easeInOutExpo";
$("a#portfolio_up").click(function(){
mrg+=hli*eslid;
if(butee>0)butee=0;
if(mrg>=0){butee--;mrg=0}
if(butee>=-1){
$("#myportfolio ul").animate({marginTop:mrg+"px"},d,eaz)}
return false});
$("a#portfolio_down").click(function(){
mrg-=hli*eslid;
if(butee<0)butee=0;
if(mrg<=mlmin){butee++;mrg=mlmin}
if(butee>1){
butee=-1;
mrg=0;
$("#myportfolio ul").animate({marginTop:mrg+"px"},d,eaz)}
else{
$("#myportfolio ul").animate({marginTop:mrg+"px"},d,eaz)}
return false})}
$('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(window.addEventListener){
var kkeys=[],EGG="38,38,40,40,37,39,37,39,66,65";
window.addEventListener("keydown",function(e){
kkeys.push(e.keyCode);
if(kkeys.toString().indexOf(EGG)>=0)
window.location="http://www.youtube.com/watch?v=AfeAhCWaMD0"},true)}
});
jQuery.easing['jswing']=jQuery.easing['swing'];
jQuery.extend(jQuery.easing,
{
def:'easeInOutExpo',
swing:function(x,t,b,c,d){
return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},
easeInOutExpo:function(x,t,b,c,d){
if(t==0)return b;
if(t==d)return b+c;
if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;
return c/2*(-Math.pow(2,-10*--t)+2)+b}
});

