$(document).ready(function() {
	$("a[href*='.pdf']").each(function() {
		var a_href = $(this).attr("href");
		$(this).attr("href", "download.php?file=" + a_href);
	});
});
