<!--
/*
 * DO NOT REMOVE THIS NOTICE
 *
 * PROJECT:   mygosuMenu
 * VERSION:   1.2.0b
 * COPYRIGHT: (c) 2003,2004 Cezary Tomczak
 * LINK:    http://gosu.pl/dhtml/mygosumenu.html
 * LICENSE:   BSD (revised)
 *
 * MODIFIED:  2007,2008 Cameron Clark
 * CHANGES:   1) Close all other nodes when a new node is clicked
 *            2) Remembers current open node with a cookie
 *            3) Immediately assigns class of "on" to clicked menu item, removing from all other items
 *            4) Uses blur() to remove dotted outline from clicked links
 *            5) Allows option to make parent links either just show submenus, or also open corresponding pages
 */

$(function() {			   
	   
	$('li').children('ul').hide();
	
	$('li:has(ul)').children('a').click(function() {
												 
		// $(this).parent('li').children('ul').toggle();
		$(this).parent('li').children('ul').slideToggle(200);
		


		
		return false;		
		
	});	
	
	$('html').removeClass('js');
	
	/* the following two lines will ensure that the UL opens to the section that you had open on
 the navigation when you left the page, if you wish the navigation to simply revert back to all the
 categories being closed when you leave a page then remove the two lines of code below */
	
	$('a.on').parent('li').children('ul').show();
	
	$('a.on').parent('li').parent('ul').show();

});
