$(document).ready(function(){

	// checks if browser is IE, and adds body classes accordingly, which can be used to apply CSS
	if($.browser.msie) { $("body").addClass("ie ie"+$.browser.version.substr(0,1)); } else { $("body").addClass("notie"); }

	// applies suitable classes to links, which can then be styled accordingly
	$("#content a[href$='.pdf']").addClass("pdf").attr({title:"Direct link to a PDF"});
	$("#content a[href$='.doc']").addClass("doc").attr({title:"Direct link to a Word doc"});
	$("#content a[href$='.xls']").addClass("xls").attr({title:"Direct link to an Excel spreadsheet"});
	$("#content a[href$='.ppt']").addClass("ppt").attr({title:"Direct link to a PowerPoint presentation"});
	
	$("div#sidebar .item:odd").addClass("altitem");

});


