// JavaScript Document

<!--//---------------------------------+
//  Edited code from Developed by Roshan Bhattarai Visit http://roshanbh.com.np
// --------------------------------->
$(document).ready(function()
{
	//slides the element with class "menu_list" when mouse is over a link that has a "div.menu_list"
	$("div#nav a").mouseover(function()
    {
	$(this).next("div.menu_list").animate({ opacity: 'show' }, 'fast');
	});
	
	//slides closed the element with class "menu_body" & "menu_list" when mouse is over links with the class "single" which means it doesn't have any options
	$("div#nav a.single").mouseover(function()
    {
		$("div.menu_list").animate({ opacity: 'hide' }, 'fast');
		$("div.menu_body").slideUp("fast");
	});
	 	
	//slides the element with class "menu_body" when mouse is over the paragraph
	$("#menu_sub a.menu_head").mouseover(function()
   {
	     $(this).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
	});

});