$(document).ready(function(){
//Caption Sliding (Partially Hidden to Visible)
$('.boxgrid.caption').hover(function(){
$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'110px'},{queue:false,duration:100});
});
});
$(function () {
var tabContainers = $('div.tabs > div');
tabContainers.hide().filter(':first').show();
$('div.tabs ul.tabNavigation a').click(function () {
tabContainers.hide();
tabContainers.filter(this.hash).show();
$('div.tabs ul.tabNavigation a').removeClass('selected');
$(this).addClass('selected');
return false;
}).filter(':first').click();
});
function matches(showin){
document.getElementById('block_today').style.display='none';
document.getElementById('block_yesterday').style.display='none';
document.getElementById('block_tomorrow').style.display='none';
document.getElementById('today').className='match_today';
document.getElementById('yesterday').className='match_yesterday';
document.getElementById('tomorrow').className='match_tomorrow';
if (showin=='today'){
document.getElementById('block_today').style.display='';
document.getElementById(showin).className='match_today';
}
else if(showin=='yesterday'){
document.getElementById('block_yesterday').style.display='';
document.getElementById(showin).className='match_yesterday';
}
else if(showin=='tomorrow'){
document.getElementById('block_tomorrow').style.display='';
document.getElementById(showin).className='match_tomorrow';
}
}
function back1()
{
    $('#image_today').attr('src', 'images/match_today1.jpg');
    $('#image_yesterday').attr('src', 'images/match_yesterday2.jpg');
    $('#image_tomorrow').attr('src', 'images/match_tomorrow2.jpg');
}
function back2()
{
    $('#image_today').attr('src', 'images/match_today2.jpg');
    $('#image_yesterday').attr('src', 'images/match_yesterday1.jpg');
    $('#image_tomorrow').attr('src', 'images/match_tomorrow2.jpg');
}
function back3()
{
    $('#image_today').attr('src', 'images/match_today2.jpg');
    $('#image_yesterday').attr('src', 'images/match_yesterday2.jpg');
    $('#image_tomorrow').attr('src', 'images/match_tomorrow1.jpg');
}
