$(function(){
	var tipsEl = $('#tips');
	var tipsOffset = {
		'x':tipsEl.width()/2,
		'y':tipsEl.height()
	};
	
	$('p.buy a').hover(
		function(e){
			$('#tips').css('left',$(this).position().left - tipsOffset.x + $(this).width()/2);
			$('#tips').css('top',$(this).position().top - tipsOffset.y);
			$('#tips').css('display','block');
		},
		function(e){
			$('#tips').css('display','none');
		}
	)
	
	
})
