var linkTypes = new Array("pdf","word","flash");

$(document).ready(function(){
	
	for (type in linkTypes) {		
		$("a:contains('(" + linkTypes[type] + ")')").each(function (i) {			
			this.className = this.className + " " + linkTypes[type];
			this.innerHTML = this.innerHTML.replace("(" + linkTypes[type] + ")", "");
		});
	}

});