//  Functions requiring the jquery.js libarary.
var $j = jQuery.noConflict();
$j(document).ready(function()
{

	//  Accordion Menu
	//  Developed by Roshan Bhattarai 
	//  Visit http://roshanbh.com.np for this script and more.
	//  This notice MUST stay intact for legal use

	// --------------------------------->

	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$j("#firstpane p.menu_head").click(function()
    {
		$j(this).css({backgroundImage:"url(images/down.png)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	$j(this).siblings().css({backgroundImage:"url(images/left.png)"});
	});
	//slides the element with class "menu_body" when mouse is over the paragraph
	$j("#secondpane p.menu_head").mouseover(function()
    {
	     $j(this).css({backgroundImage:"url(images/down.png)"}).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
         $j(this).siblings(".menu_head").css({backgroundImage:"url(images/left.png)"});
	});
	// <---------- End of accordion menu ------
});
