$(document).ready(function() {


	$(".ad").find('a').each( function (e) {
		var href = $(this).attr("href");
		$(this).attr("href", "/redirect/?r="+href);
	});

});
