// Hover function on Block elements for IE

$(document).ready(function() {
$('.pageIntro p, newsBlock').hover(function() {
  $(this).addClass("getHover");
}, function() {
 $(this).removeClass("getHover");
});
}); 

// Change color of the first word in H2 element

$(document).ready(function()
    {$("h2").html(function(i,text){
    return text.replace(/\w+\s/, function(match){
    return '<span class="pink">' + match + '</span>'; 
    });
});
    });
    
// Newssummary image overlay

$(function() {
			$('ul.newsList li').hover(function(){
				$(this).find('img').animate({top:'300px'},{queue:false,duration:500});
			}, function(){
				$(this).find('img').animate({top:'0px'},{queue:false,duration:500});
			});
		});  
    
// Social fade

$(function() {
     $('.socialConnect img').css('opacity',0.3)
			$('ul.socialConnect li').hover(function(){
				$(this).find('img').fadeTo(500, 1.0);
			}, function(){
				$(this).find('img').fadeTo(500, 0.3);
			});
		});  
     


