/* Author:

*/

jQuery(document).ready(function($) {
	$('a:not(:has(img, div))').filter(function() {
		return !this.href.match(/^mailto\:/) && undefined !== typeof (this.hostname) && (this.hostname).split(":")[0] !== (location.hostname).split(":")[0] || $(this).attr('rel') == 'external';
	}).addClass('external');
	$('a.external').attr('target', '_blank');

	$('a[href$=".pdf"]').addClass('file pdf').attr('target', '_blank');
});

