$(document).ready(function() {

	// Remove duplicate listings.
	var proAdListings = {};
	var proAdBusinessList = {};
	var ratingBusinessList = {};

	/** this is now done in the template
	$(".proAdListing").each(function() {
		var phone = $(this).find(".phone").attr("data-phone");

		if (proAdListings[phone]) {
			$(this).hide();
		} else {
			proAdListings[phone] = true;
			proAdBusinessList[ $(this).attr("data-businessId") ] = true;
		}
	});*/
//Turning this off since we will now aggregate the review data and display it all
//	$(".rating .content").each(function() {
//		if ( !proAdBusinessList[ $(this).attr("data-businessid") ] || ratingBusinessList[ $(this).attr("data-businessid") ] ) {
//			$(this).remove();
//		} else {
//			ratingBusinessList[ $(this).attr("data-businessid") ] = true;
//		}
//	});

});
