function reload()
{ 
  var iYear = document.forms['form_archive'].news_year.value;
    
  location.href='index.php?option=archive&year='+iYear;
  return (true)
}

/*
$(function() {
	$('.menu2 .hover').hover(function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('src').replace('.gif', '_hover.gif'));
	}, function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('src').replace('_hover.gif', '.gif'));
	});
});
*/

$(function() {
	$('.hover').hover(function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('src').replace('.gif', '_hover.gif'));
	}, function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('src').replace('_hover.gif', '.gif'));
	});
});

$(function() {
$('#sitecontent li a').hover(function() {
    $(this).stop().animate({ paddingLeft: '20px' }, 300);
    }, function() {
        $(this).stop().animate({ paddingLeft: 0 }, 300);
    });
});

jQuery(document).ready(function()
{
  $("#playedgames").hide()
  
  $("input[name='rbgames']").click(function() {
     str = $("input[name=rbgames]:checked").val();
          
     if (str == "played")
     {
      $("#upcominggames").hide(); 
      $("#playedgames").show();
     }
     else
     {
      $("#playedgames").hide();
      $("#upcominggames").show(); 
     }
  });
  
  $("input[name='btnPlayedgames']").click(function() {
      $("input[name='rbgames']")[1].checked = true;
      $("#upcominggames").hide(); 
      $("#playedgames").show();
  });
  
  $("input[name='btnUpcominggames']").click(function() {
      $("input[name='rbgames']")[0].checked = true;
      $("#playedgames").hide();
      $("#upcominggames").show(); 
  });
  
});

