/* Author: Alex Dewez-Lopez


*/



$(document).ready(function() {
	
	$('.info-box').hover(function(e) {
		
		$(this).addClass('info-box-jq');
		jqClass = findp($(this));
		$(this).addClass(jqClass);
		$(this).find('p').stop().css({"opacity": 0}).show().animate({"top":"-15px", "opacity":1}, 300);
		
	}, function() {
		
		$(this).removeClass('info-box-jq');
		$(this).removeClass(jqClass);
		$(this).find('p').stop().animate({"top":"-20px", "opacity":0}, 50, function() {
				
				$(this).css({"display":"none"});
			});
		
	});
	
});


function findp(x) {
	
	clss = x.attr('class');
	clss = clss.replace('info-box-jq', '').replace('info-box', '').replace('fr', '').replace(' ', '').replace(' ', '').replace(' ', '');	
	clss = clss + '-jq';
	return clss;
	
	
}

















