//jQuery.noConflict();

jQuery(function($) { 


	/*
	 * Navigation Animation
	 */
	var nav = $('#otherInfo');
	var active = nav.find('.active');
	
	//Setting active classes
	active.parents('li').addClass('active');
	
	//Hiding non active elements
	nav.find('li').not('.active').find('>ul').hide();
	
	//Setting a click event on level 1 & 2 links
	//which will return false as only lvl 3 links are real
	var a = nav.find('>li>a');
	a.click(function(){
		var li = $(this).parent();
		
		if (li.is('.active')) {
		    $('ul',li).slideUp('fast');
		    li.removeClass('active');
		} else {
		
		    //Hiding other branches
		    var siblings = li.siblings();
		    siblings.find('>ul').slideUp('fast');
    		
		    //Removing the 'active' class from the other branches
		    siblings.removeClass('active');
    		
		    //Showing this particular branch
		    li.find('>ul').slideDown('fast');
    		
		    //Setting the 'active' class
		    li.addClass('active');
		}
		
		//Returning false as this link has only animation purposes
		var children = li.find('a');
		if (children.length != 1) {
		    return false;
		}
	});
	
});