// JavaScript Document
jQuery(document).ready(function(){

        jQuery('ul.left-accordion li a.parentClass').click( function() {
			 var Tracking=jQuery("ul.left-accordion li a.parentClass").index(jQuery(this));
			 // alert(Tracking);
			
			 jQuery("ul.left-sub-menu").hide("medium");	
		if(jQuery(this).next().is(":hidden")) {
			//jQuery('ul.SideMenu').find('li ul').hide("slow");
			jQuery(this).next().show("medium");
			
		} else {
			jQuery(this).next().hide("medium");			
		}
		return false;
	});
		
	  jQuery('ul.mid-accordion li a.parentClass').click( function() {
		left_menu_to_content_accordion(this.id); return false;
		/*
		  var Tracking=jQuery("ul.mid-accordion li a.parentClass").index(jQuery(this));
		  jQuery(".accordion-block").hide("fast");
		  jQuery("ul.mid-accordion li a.parentClass span").removeClass("expand");
		  if(jQuery(this).next().is(":hidden")) {
		   jQuery("ul.mid-accordion li a.parentClass > span:eq("+Tracking+")").addClass("expand ");
		   jQuery(this).next().show();
		   var $itemCounter = jQuery(this).next().children('div.accordion-sub-block').length;
		   var $maxHeight = 0;
		   if ($itemCounter > 1) {
			$tempHeight = 0;
			for ($i = 0; $i < $itemCounter; $i++) {
			 $tempHeight = jQuery(this).next().children('div.accordion-sub-block:eq('+$i+') div.product-block h3').height();
			 $tempHeight = $tempHeight + jQuery(this).next().children('div.accordion-sub-block:eq('+$i+') div.product-block p').height();
			 $tempHeight = $tempHeight + jQuery(this).next().children('div.accordion-sub-block:eq('+$i+') div.product-block div.product-pic').height();
			 $tempHeight = $tempHeight + 17 + 6;
			 if ($maxHeight < $tempHeight) {
			  $maxHeight = $tempHeight;
			 }
			}
			//jQuery(this).next().find('div.accordion-sub-block div.product-block').height($maxHeight);
			jQuery('#'+accordion).parent().find('div.accordion-sub-block div.product-block').height($maxHeight);
		   }
		  } else {
		   jQuery(this).next().hide();
		  }
		  
		  return false;
		*/
    });	
		
	});
