$(function(){  
	windowSize();   
	bannerResize();
	$(window).resize(function(){
		         windowSize(); 
				bannerResize();      
	});     
	$('#menu li').hover(function(){
	   $(this).addClass("hover");
	 },function(){
	   $(this).removeClass("hover");
	 }); 
	
	$(".vainqueurs-right").hover(function(){
 	   $(this).find("p").fadeIn();
 	 },function(){
 	   $(this).find("p").fadeOut();
 	 });
});

function windowSize(){
	var widowSize = $(window).width();
	if(widowSize > 980){
		$('body').addClass('big-window');  
		$('body').removeClass('small-window');  
	}                       
	else{
		$('body').removeClass('big-window');   
		$('body').addClass('small-window'); 
	}
}                 
function bannerResize(){
	var documentWidth = $(window).width();
	var bannerWidth = $('#banner');	 
	if(documentWidth<1244){            
		var bannerRatio = (1244-documentWidth)/2;
		var carouselRatio = 131-((1244-documentWidth)/2);
		bannerWidth.css({
			//width : documentWidth+bannerRatio,
			width : documentWidth,
			overflow : 'hidden',
	   	});        
		$('#banner div.img-banner img').css({
		   left : -bannerRatio
		});
		$('#banner .btn-carousel').css({
		   left : carouselRatio
		});
	}               
	else{
		bannerWidth.css({
			width : 1244,
			overflow : 'hidden'
	   	});
		$('#banner .btn-carousel').css({
		   left : 133
		});	   	
	}                       
}

$(document).ready(function(){	   



});  
	 


