searchText = 'Hubs, Services, Users Search';

// toggles the personnel window on clicking the image/header  
$(document).ready(function() {
	$("div.section_head").siblings(".section_content").hide();
	$("div.section_head").siblings(".section_open:first").show();
	$("div.section_head").click(function() {
		// is the specified content visible?
		var imgsrc = ($(this).siblings(".section_content").is(':hidden')) ? 'http://static.inav2.com/newinav2/images/arrowBlueDown.jpg' : 'http://static.inav2.com/newinav2/images/arrowBlueRight.jpg';
		// Display the correct image
		$(this).children("img:first").attr('src', imgsrc );
		// finally toggle the content
		$(this).siblings(".section_content").toggle(300);
	});

	$("div.notes").siblings(".notes_content").hide();
	$("div.notes").click(function() {
		// is the specified content visible?
		var imgsrc = ($(this).siblings(".notes_content").is(':hidden')) ? 'http://static.inav2.com/newinav2/images/arrowGreenDown.jpg' : 'http://static.inav2.com/newinav2/images/arrowGreenRight.jpg';
		// Display the correct image
		$(this).children("img:first").attr('src', imgsrc );
		// finally toggle the content
		$(this).siblings(".notes_content").toggle(300);
	});

	$("div#category_description").siblings("#category_description_content").hide();
	$("div#category_description").click(function() {
		// is the specified content visible?
		if ($(this).siblings("#category_description_content").is(':hidden')) {
			imgsrc = 'http://static.inav2.com/newinav2/images/arrowOrangeDown.jpg';
			margin = '90px';
		} else {
			imgsrc = 'http://static.inav2.com/newinav2/images/arrowOrangeRight.jpg';
			margin = '20px';
		}
		// Display the correct image
		$(this).children("img:first").attr('src', imgsrc );
		$("#topBar").css("margin-top", margin);
		// finally toggle the content
		$(this).siblings("#category_description_content").toggle(300);
	});

}); 

