$(document).ready(function() {
   $("a[href*=.pdf]").click(function(){
	window.open(this.href);
	return false;
   });
});

