//Code used on BA homepage brochure section
$(function(){
	$(".brochures img").animate({width: '76px', opacity:'0.6'}, 300); // This sets the opacity of the brochure thumbnails to fade to 60% when the page loads
	
	$(".brochures img").hoverIntent(function(){
	$(this).animate({width: '80px', opacity:'1'}, 200) // This should set the opacity to 100% on hover
	},function(){
	$(this).animate({width: '76px', opacity:'0.6'}, 300) // This should set the opacity back to 60% on mouseout
	});
});

//Code used on BA homepage online exclusives section
$(function(){
	$(".showhide span").hoverIntent(function(){
	$(this).children(".showhide div").animate({bottom:'0'}, 200)
	},function(){
	$(this).children(".showhide div").animate({bottom:'-46px'}, 300)
	});
});

//Code used on Sopexa Comp page
$(function(){
	
	$("#Table_01 a").append('<div class="sopexamap-hover"></div>');
	$("#Table_01 a").hoverIntent(function() {
	  $(this).find("div.sopexamap-hover").animate({opacity: "show", top: "-100"}, "slow");
	  var hoverText = $(this).attr("title");
	  $(this).find("div.sopexamap-hover").text(hoverText);
	}, function() {
	  $(this).find("div.sopexamap-hover").animate({opacity: "hide", top: "-110"}, "fast");
	});
});