/*	Expanding Menus for Indexhibit
 *		uses jquery
 *
 *	Created by Ross Cairns  Mar 2008
*/


function expandingMenu(num) {
	var speed = 800;
	
	var others = $(".deoderant");
	others.hide();
	
	
	var title = "#rexona" + num;
	var hideit = $(title);

	var item_title = $(".ul").eq(num).children(":first");
	// add click functions + pointer to title
	item_title.css({cursor:"pointer"}).click(
		function () {
			if ($(title).is(':hidden'))
			{
				var others = $(".deoderant");
				others.hide(speed);
				var others2 = $(".deoderantActive");
				others2.hide(speed);
			
				//items.show(speed);
				hideit.show(speed);
			} else {
				hideit.hide(speed);	
			}
		}
	)
}
