$(document).ready(function() {

	
	$(document).ready(function() {
		$('a[href$="pdf"]').addClass('pdf');
		$('a[href$="txt"], a[href$="rft"]').addClass('txt');
		$('a[href$="doc"],a[href$="docx"]').addClass('word');
		$('a[href$="xls"], a[href$="xlsx"]').addClass('excel');
		$('a[href$="ppt"], a[href$="pptx"]').addClass('powerpoint');
		$('a[href$="zip"], a[href$="rar"]').addClass('archive');
	 	$('a[href^="mailto:"]').addClass("mailto");
	 	$('a').filter(function() {
			//Compare the anchor tag's host name with location's host name
			return this.hostname && this.hostname !== location.hostname;
		}).attr("target", "_blank").attr("title","Open link in een nieuw venster");
	});
	
});



