(function ($) {

	$.fn.setPDFToConversion = function(){
		$('a').each(function(i, el){
			var conv = $(el).attr('href');
			var m = conv.match(/^.*\.(pdf|PDF)$/);
			if(m){
				$(el).convert();
			}
		});
	};

	$.fn.convert = function(){
		$(this).click(function(){
			try {
				goog_report_conversion($(this).attr('href'));
		    } catch(err) {
		    }
			return true;
		});
	};

	$(document).ready(function(){
	
		$(this).setPDFToConversion();	
	
	});

})(jQuery);
