jQuery().ready(function(){



//this adds a cursor change (changes to the hand) when you roll over the text in the "other news and features" section

$('.news-link').hover(function() {
$(this).addClass('pointer');
$(this).find("h3").addClass('highlight');
}, function() {
$(this).removeClass('pointer');
$(this).find("h3").removeClass('highlight');
});

$('#news-carousel-right-border').hover(function() {
$(this).addClass('pointer');
}, function() {
$(this).removeClass('pointer');
});

$('#news-carousel-left-border').hover(function() {
$(this).addClass('pointer');
}, function() {
$(this).removeClass('pointer');
});





$('.sidebar-button').hover(function() {
$(this).addClass('sidebar-button-ie-hover-fix');
}, function() {
$(this).removeClass('sidebar-button-ie-hover-fix');
});



//this expands the "OTHER NEWS" section on rollover, so you can read any hidden text.

/* JohnV cancelled this out 23-1-2012 as it doesn't seem to be functioning properly
var initHeight = $('.features-box').height();

function shownews(){  $(this).animate({height: $('> div', this).height()}, 400);}
function hidenews(){  $(this).animate({height: initHeight}, 400);}

$(".features-box").hoverIntent( shownews, hidenews )
*/



//this works out the day of the week, and changes the big football picture (so we get a different picture each day)
$(function() { 
var d = new Date();
var dayValue = d.getDay();
//$('div#big-footballer-wrapper').removeClass('footballer1'); this line is now redundant. keeping it here temporarily while developing.
$('div#big-footballer-wrapper').addClass('footballer'+ dayValue);
//this fixes the ie6 transparency issue for the big footballers floating over the right hand sidebar.
$('div#big-footballer-wrapper').ifixpng(); 

});

});

