
jQuery(document).ready(function() {

	/* Add icons to your links automatically using jQuery & CSS: http://cool-javascripts.com/jquery/add-icons-to-your-links-automatically-using-jquery-css.html */
	// Add pdf icons to pdf links
	jQuery("a[href$='.pdf'], a[href$='.html']").addClass("pdf");

	// Add txt icons to document links (doc, rtf, txt)
	jQuery("a[href$='.doc'], a[href$='.txt'], a[href$='.rtf']").addClass("txt");

	// Add zip icons to Zip file links (zip, rar)
	jQuery("a[href$='.zip'], a[href$='.rar']").addClass("zip");

	// Add email icons to email links
	jQuery("a[href^='mailto:']").addClass("email");

	//Add external link icon to external links -
	jQuery('a').filter(function() {
		//Compare the anchor tag's host name with location's host name
			return this.hostname && this.hostname !== location.hostname;
		}).addClass("external");

});


