// The following is a jQuery implementation for the javascript behaviour used with the intranet site
$(function() {
	
	//Adding the default value (prompt) to the search field
	$('.tools input[name=query]').defaultvalue('Site search');
	$('ul.relatedInfoList li:first').addClass("first");
	
	//Tie up the events to handle the popup windows for the group member banks
	$('.linksTable .popupLink').click(function(e) {
		e.preventDefault();
		$(this).siblings('.linkDetails').show();
	});
	$('.linksTable .linkDetails .closeButton').click(function(e) {
		e.preventDefault();
		$(this).parent().hide();
	});
	
});