/* IE Homepage Fix */
if(jQuery.browser.msie) {
	window.setTimeout('docReadyLoad()',100);
} else {
	jQuery(document).ready(docLoad);
}

function docReadyLoad() {
	jQuery(document).ready(docLoad);
}

function docLoad() {
	// Advanced CSS
	jQuery('p:has(cite)').addClass('citation');	
	jQuery('li#events li:last').addClass('last-item');
	jQuery('li#recent li:last').addClass('last');
	jQuery('.page #sidebar li ul li:last').addClass('last');
	// Shaded table rows
	jQuery('tr:odd').addClass('odd');
	jQuery('tr:even').addClass('even');
	// Cufon
	if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<7) { } else {
		Cufon.replace('.page #content-main h2');
		Cufon.replace('.jenson');
		Cufon.replace('.infiniteCarousel p');
		Cufon.replace('.home h2');
		Cufon.replace('ul#breadcrumbs li');
	}
	// Automatic pdf icons
	jQuery('table a[href$=pdf]').addClass('pdf').attr('target', '_blank');
	// External links open in new window
	jQuery('table a[href^=http://]').addClass('external');
}
