/**
 * Last Edit
 * By	:	Jason
 * When	:	23 May 08
 * What	:	Initial setup
 */
$(document).ready(function(){
	$('ul.nav li ul').hide();
	$('ul.nav li a').click(function () {
		if ($(this).parent().children('ul').length) {
			if (!$(this).parent().hasClass('isOpenParent')) {
				$(this).parent().parent().children('li').removeClass('isOpenParent');
				$(this).parent().parent().children('li').children('ul.isOpen').slideUp().removeClass('isOpen');
				$(this).parent().addClass('isOpenParent').children('ul').addClass('isOpen').slideDown();
			}
			return false;
		} else {
			return true;
		}
	});
});
/*
// cusomisation options listed here, if you need them
$(document).ready(function(){
	$("ul.nav").superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 800,
		animation	: {opacity:"show"},
		speed		: "normal",
		oldJquery	: false, // set to true if using jQuery version below 1.2 
		disableHI	: false, // set to true to disable hoverIntent detection 
		onInit		: function(){},
		onBeforeShow	: function(){},
		onShow		: function(){},
		onHide		: function(){}
	});
});
*/
