// JavaScript Document
$(document).ready(function() {
  
	// Add pdf icons to pdf links
	$("a[href$='.pdf']").addClass("pdf");
 
 	// Add word icons to .doc links
	$("a[href$='.doc']").addClass("doc_word");
 
  	// Add word icons to .docx links
	$("a[href$='.docx']").addClass("doc_word");
 
   	// Add excel icons to .xls links
	$("a[href$='.xls']").addClass("doc_excel");
	
	// Add excel icons to .xlsx links
	$("a[href$='.xlsx']").addClass("doc_excel");
 
    // Add powerpoint icons to .ppt links
	$("a[href$='.ppt']").addClass("doc_ppt");
	
	// Add powerpoint icons to .pptx links
	$("a[href$='.pptx']").addClass("doc_ppt");
 
	// Add email icons to email links
	$("span[class^='tele']").addClass("tele");
	
	// Add email icons to email links
	$("a[href^='mailto:']").addClass("email");
 
		/*//Add external link icon to external links - 
	$('a').filter(function() {
		//Compare the anchor tag's host name with location's host name
	    return this.hostname && this.hostname !== location.hostname;
	  }).addClass("external");
	//You might also want to set the _target attribute to blank

	$('a').filter(function() {
		//Compare the anchor tag's host name with location's host name
	    return this.hostname && this.hostname !== location.hostname;
	  }).addClass("external").attr("target", "_blank");
	*/
});