<!--//---------------------------------+
//  Developed by Roshan Bhattarai 
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use
//
// The code below has been altered from the original.
// visit Rohan's website to see the original code.
// --------------------------------->

$(document).ready(function()
{
	//set variables for counters
	$botox=0;
	$fillers=0;
	$laser=0;
	$skin=0;
	
////////////////////////////////////BOTOX////////////////////////////////////////

	//slides the element with class "menu_body" when paragraph with class "menu_head_botox" is clicked 
$("#firstpane div.menu_head_botox").click(function()
    {
		$botox=$botox + 1;
		$fillers=0;
		$laser=0;
		$skin=0;
		$(this).css({backgroundImage:"url(images/sidebar-open.jpg)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	$("#firstpane div.menu_head_fillers").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
		$("#firstpane div.menu_head_laser").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
       	$("#firstpane div.menu_head_skin").css({backgroundImage:"url(images/sidebar-curve-closed.jpg)"});
		
if($botox==2){
	$(this).css({backgroundImage:"url(images/sidebar-closed.jpg)"});
	$botox=0;
};
	});
	
////////////////////////////////////FILLERS////////////////////////////////////////

	//slides the element with class "menu_body" when paragraph with class "menu_head_botox" is clicked 
$("#firstpane div.menu_head_fillers").click(function()
    {
		$fillers=$fillers + 1;
		$botox=0;
		$laser=0;
		$skin=0;
		$(this).css({backgroundImage:"url(images/sidebar-open.jpg)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	$("#firstpane div.menu_head_botox").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
		$("#firstpane div.menu_head_laser").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
       	$("#firstpane div.menu_head_skin").css({backgroundImage:"url(images/sidebar-curve-closed.jpg)"});
		
if($fillers==2){
	$(this).css({backgroundImage:"url(images/sidebar-closed.jpg)"});
	$fillers=0;
};
	});


////////////////////////////////////LASER////////////////////////////////////////

	//slides the element with class "menu_body" when paragraph with class "menu_head_botox" is clicked 
$("#firstpane div.menu_head_laser").click(function()
    {
		$laser=$laser + 1;
		$botox=0;
		$skin=0;
		$fillers=0;
		$(this).css({backgroundImage:"url(images/sidebar-open.jpg)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	$("#firstpane div.menu_head_botox").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
		$("#firstpane div.menu_head_skin").css({backgroundImage:"url(images/sidebar-curve-closed.jpg)"});
       	$("#firstpane div.menu_head_fillers").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
		
if($laser==2){
	$(this).css({backgroundImage:"url(images/sidebar-closed.jpg)"});
	$laser=0;
};
	});
	
////////////////////////////////////SKIN////////////////////////////////////////

	//slides the element with class "menu_body" when paragraph with class "menu_head_botox" is clicked 
$("#firstpane div.menu_head_skin").click(function()
    {
		$skin=$skin + 1;
		$botox=0;
		$laser=0;
		$fillers=0;
		$(this).css({backgroundImage:"url(images/sidebar-curve-open.jpg)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	$("#firstpane div.menu_head_botox").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
		$("#firstpane div.menu_head_laser").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
       	$("#firstpane div.menu_head_fillers").css({backgroundImage:"url(images/sidebar-closed.jpg)"});
		
if($skin==2){
	$(this).css({backgroundImage:"url(images/sidebar-curve-closed.jpg)"});
	$skin=0;
};
	});
	


});
