//Start jQuery
$(document).ready(function(){
	//DOM is ready, lets go
	
	//Apply CSS class to all A links that end in .pdf
	$("a[href$='.pdf']").addClass("pdf pngfix");

	//Apply CSS class to all A links that end in .zip
	$("a[href$='.zip']").addClass("zip pngfix");
	
	//Apply CSS class to all A links that end in .doc
	$("a[href$='.doc']").addClass("doc pngfix");
	$("a[href$='.docx']").addClass("doc pngfix");
	
	//Apply CSS class to all A links that end in .xls
	$("a[href$='.xls']").addClass("xls pngfix");
	$("a[href$='.xlsx']").addClass("xls pngfix");
	
	//Apply CSS class to all A links that end in .ppt
	$("a[href$='.ppt']").addClass("ppt pngfix");
	$("a[href$='.pptx']").addClass("ppt pngfix");
	
	//Apply CSS class to all A links that end in .jpg
	$("a[href$='.jpg']").addClass("img pngfix");
	
	//Apply CSS class to all A links that end in .gif
	$("a[href$='.gif']").addClass("img pngfix");
	
	//Apply CSS class to all A links that start with http://
	$("a[href^='http://']").addClass("external_link pngfix");

	//Apply CSS class to all A links that start with https://
	$("a[href^='https://']").addClass("external_link pngfix");
	
	//Apply CSS class to all A links that start with mailto:
	$("a[href^='mailto:']").addClass("email pngfix");	
});


