var colorInit="#a6c7d3";var colorOver="#81dcf3";var colorActiv="#ffffff";var speedFadeInPack=200;var speedFadeOutPack=200;function checkStatut(obj){if(obj=="activ"){return colorActiv;}else{return colorInit;}}
$(function(){$('header nav li a').mouseover(function(){$(this).stop().animate({color:colorOver},{duration:200})}).mouseout(function(){$(this).stop().animate({color:checkStatut(this.className)},{duration:200})})
$('a.bton').mouseover(function(){$(this).stop().animate({backgroundColor:"#77c7d7"},{duration:200})}).mouseout(function(){$(this).stop().animate({backgroundColor:"#b3c0c5"},{duration:200})})
$('img.over-bordure').mouseover(function(){$(this).stop().animate({backgroundColor:"#f8f8f8"},{duration:100})}).mouseout(function(){$(this).stop().animate({backgroundColor:"#fff"},{duration:300})})
$('a.over').mouseover(function(){$(this).find('time').stop().animate({color:"#77c7d7"},{duration:100})}).mouseout(function(){$(this).find('time').stop().animate({color:"#879093"},{duration:300})})
$('#boxfoot a.over').mouseover(function(){$(this).stop().animate({backgroundColor:"#465459",paddingLeft:"8px",color:"#fff"},{duration:100})}).mouseout(function(){$(this).stop().animate({paddingLeft:"0px",backgroundColor:"#5b676c",color:"#ccc"},{duration:300})})
$('#main_content a.over').mouseover(function(){$(this).stop().animate({color:"#4088b6"},{duration:100})}).mouseout(function(){$(this).stop().animate({color:"#5d5d5d"},{duration:300})})
$('a.overbg').mouseover(function(){$(this).stop().animate({backgroundColor:"#0096b4",color:"#fff"},{duration:100})}).mouseout(function(){$(this).stop().animate({backgroundColor:"#fff",color:"#0096b4"},{duration:300})})
$('a.overbgbox').mouseover(function(){$(this).stop().animate({backgroundColor:"#0096b4",color:"#fff"},{duration:100})}).mouseout(function(){$(this).stop().animate({backgroundColor:"#f1f1f1",color:"#0096b4"},{duration:300})})
$('#foliocontent a').mouseover(function(){$(this).find('span').stop().animate({bottom:'0px',opacity:'1'},100,function(){});}).mouseleave(function(){$(this).find('span').stop().animate({bottom:'-35px',opacity:'0'},200,function(){});})});$(document).ready(function(){$('.slideshow').cycle({fx:'scrollUp',delay:100,speed:500});$('#realisationecranimg').cycle({fx:'scrollRight',delay:100,speed:500});});function focusForm(formObj){switch(formObj.id){case'nom':if(document.getElementById('message').value==''){document.getElementById('message').value='Votre message ...';}
if(formObj.value=='Votre nom ...'){document.getElementById(formObj.id).value='';}
break;case'message':if(document.getElementById('nom').value==''){document.getElementById('nom').value='Votre nom ...';}
if(formObj.value=='Votre message ...'){document.getElementById(formObj.id).value='';}
break;case undefined:if(document.getElementById('nom').value==''){document.getElementById('nom').value='Votre nom ...';}
if(document.getElementById('message').value==''){document.getElementById('message').value='Votre message ...';}
break;}}
$(".trigger").tooltip({offset:[10,2],effect:'slide'}).dynamic({bottom:{direction:'down',bounce:true}});
