$(function(){
	$('div.game')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -63px)"}, {duration:200})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:200})
		})
	$('div.game_next')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -63px)"}, {duration:200})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:200})
		})
	$('#header li.menu.first')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -47px)"}, {duration:300});
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:300});
		})
	$('#header li.menu.second')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -47px)"}, {duration:300})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:300})
		})
	$('#header li.menu.third')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -47px)"}, {duration:300})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:300})
		})
	$('#header li.menu.fourth')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -47px)"}, {duration:300})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:300})
		})
	$('#header li.menu.fifth')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -47px)"}, {duration:300})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:300})
		})
	$('#header li.menu.sixth')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px -47px)"}, {duration:300})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:300})
		})
      $('.box.forum .body .content div').hover(function() {
        $(this).animate({opacity: 0.7}, 200);
      }, function() {
        $(this).animate({opacity: 1}, 200);
      });
});
$(document).ready(function() {
	$("#seasonSelectBox").change(function(){
	   	if((this).value == '1a') {
	   		document.location.href = "statistiques.php?seasonID=presente&league=a";
		}
		if((this).value == '2a') {
	   		document.location.href = "statistiques.php?seasonID=10&league=a";
		}
		if((this).value == '3a') {
	   		document.location.href = "statistiques.php?seasonID=11&league=a";
		}
		if((this).value == '4a') {
	   		document.location.href = "statistiques.php?seasonID=12&league=a";
		}
		if((this).value == '5a') {
	   		document.location.href = "statistiques.php?seasonID=13&league=a";
		}
		if((this).value == '6a') {
	   		document.location.href = "statistiques.php?seasonID=14&league=a";
		}
		if((this).value == '1b') {
	   		document.location.href = "statistiques.php?seasonID=presente&league=b";
		}
		if((this).value == '2b') {
	   		document.location.href = "statistiques.php?seasonID=10&league=b";
		}
		if((this).value == '3b') {
	   		document.location.href = "statistiques.php?seasonID=11&league=b";
		}
		if((this).value == '4b') {
	   		document.location.href = "statistiques.php?seasonID=12&league=b";
		}
		if((this).value == '5b') {
	   		document.location.href = "statistiques.php?seasonID=13&league=b";
		}
		if((this).value == '6b') {
	   		document.location.href = "statistiques.php?seasonID=14&league=b";
		}
	 });
	 $("#leagueSelectBox").change(function(){
	   	if((this).value == '1') {
	   		document.location.href = "statistiques.php?seasonID=presente&league=a";
		}
		if((this).value == '2') {
	   		document.location.href = "statistiques.php?seasonID=presente&league=b";
		}
	 });
	 $("#standingSelectBox").change(function(){
	  	 if((this).value == '1') {
	   		document.location.href = "standings.php?standingID=presente";
		}
		if((this).value == '2') {
	   		document.location.href = "standings.php?standingID=13";
		}
		if((this).value == '3') {
	   		document.location.href = "standings.php?standingID=14";
		}
	 });
	  $("#calendarSelectBox").change(function(){
	   if((this).value == '1') {
	   		document.location.href = "calendar.php?calendarID=presente";
		}
		if((this).value == '2') {
	   		document.location.href = "calendar.php?calendarID=13";
		}
		if((this).value == '3') {
	   		document.location.href = "calendar.php?calendarID=14";
		}
	 });	
	 $("#calendarSelectBoxType").change(function(){
	 	document.location.href = "calendar.php?calendarID=presente" +"&type="+$("#calendarSelectBoxType").val();;
	 });
	 $("#statType").change(function(){
	 	if((this).value == '1') {
	   		document.location.href = "meneurs.php?meneurs=saison";
		}
		if((this).value == '2') {
	   		document.location.href = "meneurs.php?meneurs=eliminatoires";
		}
	 });
	 $("#teamSelectBox").change(function(){
	   		document.location.href = "equipes.php?teamID="+$("#teamSelectBox").val()+"&type=saison";
	 });
	  $("#typeSelectBox").change(function(){
	   		document.location.href = "equipes.php?teamID="+$("#teamSelectBox").val()+"&type="+$("#typeSelectBox").val();
	 });
	  $("#teamSelectBoxAdmin").change(function(){
	   		document.location.href = "modifyPlayerInfo.php?teamID="+$("#teamSelectBoxAdmin").val();
	 });
	  $("#teamCalendarSelectBox").change(function(){
	   		document.location.href = "calendar.php?calendarID="+$("#teamCalendarSelectBox").val();
	 });
	   $("#teamateSelectBox").change(function(){
	   		document.location.href = "../statistiques/joueur.php?playerID="+$("#teamateSelectBox").val();
	 });
 });