// JavaScript Document
jQuery(document).ready(function() {
  
	// Add pdf icons to pdf links
	jQuery("a[hrefjQuery='.pdf']").addClass("pdf");
 
 	// Add word icons to .doc links
	jQuery("a[hrefjQuery='.doc']").addClass("doc_word");
 
  	// Add word icons to .docx links
	jQuery("a[hrefjQuery='.docx']").addClass("doc_word");
 
   	// Add excel icons to .xls links
	jQuery("a[hrefjQuery='.xls']").addClass("doc_excel");
	
	// Add excel icons to .xlsx links
	jQuery("a[hrefjQuery='.xlsx']").addClass("doc_excel");
 
    // Add powerpoint icons to .ppt links
	jQuery("a[hrefjQuery='.ppt']").addClass("doc_ppt");
	
	// Add powerpoint icons to .pptx links
	jQuery("a[hrefjQuery='.pptx']").addClass("doc_ppt");
 
	// Add email icons to email links
	jQuery("span[class^='tele']").addClass("tele");
	
	// 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");
	//You might also want to set the _target attribute to blank

	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").attr("target", "_blank");
	*/
});
