(function ($)
{	
	var glossary = $.Glossary;	
	
	function tooltipInit ()
	{
		try {
		$('p').each(function()
			{			
				glossary.applyToElement (this);	
			}
		);
		} catch (e) {}
	}

	$(document).ready(function () { 
		tooltipInit(); 
		$('.searchItem')
			.mouseover(function() { $(this).addClass('highlight'); })
			.mouseout(function() { $(this).removeClass('highlight'); })
			.click(function() { $(this).find('a.content').get(0).onclick();});
	});
})(jQuery)