$(function() {
    $('a.clientPuff').hover(
		function() {
		    var x = $(this).attr("href").split("#c");
		    $('#bubble>#c' + x[1]).show();
		    divided = Math.floor(x[1] / 5);
		    remainder = parseInt(x[1]) % 5;
		    if (remainder == "0") {
		        divided--;
		        remainder = 5;
		    }
		    $('#bubble').css("top", (-130 + (divided * 75)) + "px");
            $('#bubble').css("left", (((remainder-1) * 178) - 42) + "px");
		    
		    $('#bubble').show();
		},
		function() {
		    $('#bubble>div').hide();
		    $('#bubble').hide();
		}
	);
});
