var $j = jQuery.noConflict();

$j(function() {
	// publications: toggle
	$j('#publications > ul > li > strong').click(function() {
		if($j(this).hasClass('expanded'))
			$j(this).removeClass('expanded');
		else 
			$j(this).addClass('expanded');

		$j(this).next().toggle();
	});

	// searchform
	$j('#s').attr('value', 'Search');
	$j('#s').attr('title', 'Enter the term you wish to search for');

	$j('#searchsubmit').attr('title', 'Start your search');

	$j('#s').focus(function() {
		this.value = '';
	});
	$j('#s').blur(function() {
		this.value = this.value ? this.value : 'Search';
	});
});

