﻿try
{
	$(document).ready(function(){			
		 $(".rootCategory").click(function () {		
		       $(".rootCategorySelected").removeClass("rootCategorySelected")
               $(".childCategoryDiv").slideUp("slow")	
               $(this).next(".childCategoryDiv").slideDown("slow")		
		       $(this).addClass("rootCategorySelected")
         });
         
         
		 $(".childCategory").click(function () {	
                $(this).children(".subChildCategory").slideToggle("fast")
         });
         

         
         if($("#openDiv").parent().hasClass("childCategory"))
         {
             
         }
         else
         {
            $("#openDiv").parent().prev().addClass("rootCategorySelected");
            
         }            
         

         
	});
}
catch(err)
{}