jQuery.noConflict();

jQuery(document).ready(function ($) {
		
		jQuery('#nav-toggle ul.menuchild').hide();

		jQuery("#nav-toggle a.menuparent").click(function(e){
                // Toggle elements whose class is named by the anchor class
                //jQuery('ul.'+this.className).toggle();
				jQuery(this).next().toggle();
                return false;
        });
		
		if(typeof currentcat == "undefined") {
			var currentcata = '';
		} else	{
			var currentcata = currentcat.split(':')[1];
		}
		if(currentsword != "") {
			var currentcata = '';
			jQuery("h2#cat-pfad").html(currentsword);
		}
		//alert(currentcata);
		//var currentcat = 38;
		jQuery("li.cat-"+currentcata).each(function () {
					jQuery(this).addClass("highlight");
					jQuery(this).children('a').addClass("act");
					jQuery(this).parents("ul.menuchild").addClass("highlight").show();
					jQuery(this).parents("ul.menuchild").prev().addClass("act");
					//var header1 = jQuery('#nav-toggle a.act').text();
					//var header = jQuery(this).children('a').text();
					//jQuery("h3#cat-pfad").html(header1);
					
					var headerArray = '';
					jQuery('#nav-toggle a.act').each(function() {
						//var headerArray = jQuery(this).text();
						headercurrent = jQuery(this).text();
						headerArray = headerArray + headercurrent + ' / ';
					});
					jQuery("h2#cat-pfad").html(headerArray);
		});
		
		//make sure the submit button is visible on page load  
         jQuery('#tx-indexedsearch-searchbox-button-submit').show();  
  
         //hide the submit button after click and show our loading message  
        jQuery('[id$=tx-indexedsearch-searchbox-button-submit]').click(function() {  
             jQuery('#PostBackMsg').show();  
             jQuery('#tx-indexedsearch-searchbox-button-submit').hide();   
        });  
 
});





