$(document).ready(function() {

	// fix menus in IE and add keyboard navigation
	$('#navigation').scriptFocus();
	
	// clear "SEARCH CSE" out of the search box first time focused
	$('#search_input').one('focus', function() { this.value = '' });

	// ie 6 flickering
	try {document.execCommand("BackgroundImageCache", false, true);} catch(err) {}

	// add external link and document icons
	var base = $('link[@rel=home]').attr('href');
	$('#nav, #contentwrapper').linkHints(base);

	// call research spotlight cycler
	$("body").addClass("js_en");
	var items = $("ul#research_spotlights li");
	items.hide();
	var max = items.length;
	if ($('body.home').length) {
		SpotlightCycle(max);
	} else {
		SpotlightCycle(max); StopCycling();
	}

	});
