Shadowbox.init({
   autoplayMovies:     true,
   language:   "fr",
   players:  ['img', 'html', 'iframe', 'qt', 'wmp', 'swf', 'flv']
});

 $(document).ready(function(){
	$('#blog').flash(   {  swf: 'swf/blog.swf',height: 200,width: 300,wmode: "transparent" }   );
	$('#animate').flash(   {  swf: 'swf/mongolfiere.swf',height: 500,width: 300,wmode: "transparent" });
	$('#container').tabs();
	$("#clients").carousel( { direction: "vertical" } );
    $(".more_texte").toggle(
    function () {
    $(this).next(".bloc_references_texte").toggle("slow");
	$(this).css("border-bottom","1px #3FD4F4 solid");
	},
	function () {
    $(this).next(".bloc_references_texte").toggle("slow");
	$(this).css("border-bottom","none");
    });
	
	$(".more_texte_sf").toggle(
    function () {
    $(this).next(".savoir-faire-more").toggle("slow");
	$(this).css("border-bottom","1px #3FD4F4 solid");
	},
	function () {
    $(this).next(".savoir-faire-more").toggle("slow");
	$(this).css("border-bottom","none");
    });
	
	
	
    //$( window ).wresize( size()); 
    //setInterval('anim();',9001);
	$(".rollover_s").hover(function(){
	$(this).attr("src","img/bouton_suivanton.jpg");
	},function(){
	$(this).attr("src","img/bouton_suivantoff.jpg");
	
	}); 
    $(".rollover_p").hover(function(){
	$(this).attr("src","img/bouton_precedenton.jpg");
	},function(){
	$(this).attr("src","img/bouton_precedentoff.jpg");
	
	}); 

  });
function size(){
    vitesseSlide=9000;
    tailleMoveSlide= $('body').width() - $('#animate').width();
    }
 function anim()
{
size();
if($('#animate').css('left')=='0px')
{
$('#animate').animate({left: '+='+tailleMoveSlide}, vitesseSlide );
}
else
{
$('#animate').animate({left: '0',top: '300'}, vitesseSlide );
}
}
