$(document).ready(
    function() {
    
    	if ("page" == page_name) {
				$(".faq_item:not(:first-child) p.faq_item_body").hide();
				$("div.faq_item > p.faq_item_header").click(function(){
					$(this).parent().find("p.faq_item_body").toggle();
				});
		  }
		  
		  $("#navigation > dd span.main a").click(function(){
		      $(this).parent().parent().find("dl").slideToggle("slow", function() {
		      });
		      return false;
		  });

			$('table.stripe tbody tr').each(function(i) {
				$(this).addClass(i%2 ? 'OddRow' : 'EvenRow');
			});

			hideAllPriceTable();
		
			$('#price_table_content h3').addClass("as_link").click(function() {
				//$(this).parent().find("table").slideToggle("fаst");
				$(this).parent().find("table").toggle();
				if ($(this).next().hasClass('cbody')) {
					$(this).next().slideToggle("fаst");
				}
			});
			
    }
 );

function hideAllPriceTable() {
	$('#price_table_content .table_container:not(:first-child) table.stripe').hide();
	//$('#price_table_content .table_container:not(:first-child) p').hide();
	//$('#price_table_content .table_container p').hide();
	
	$('#price_table_content .table_container .cbody:not(.show)').hide();
}

function showDeparturesCategory(id_category) {
    $(id_category).parent();
}

