function gettourmenu(url, options){

var optstring='';
for (i=0;i<options.length;i++){
	optstring+='&options['+options[i]+']=1';
}

jQuery.getJSON("http://www.tourtrans.ru/ajax/exporttourmenu.html?url="+url+optstring+"&jsoncallback=?", function(data) {
		
				$('#tourmenu').html(data.menu);
				$('.categoryitems').hide();
				$('.subcategoryitems').hide();
				$('.subexpandable').addClass('opensubheader');
				$('.expandable').live('click', function() {
					$(this).toggleClass('openheader');
					$(this).next('.categoryitems').animate({opacity: 'toggle', height: ['toggle', 'swing']}, 'fast');
				});	
				
				$('.subexpandable').live('click', function() {
					$(this).toggleClass('closedsubheader').toggleClass('opensubheader');
					$(this).next('.subcategoryitems').animate({opacity: 'toggle', height: ['toggle', 'swing']}, 'fast');
				});	
				
				$('.expandable1').live('click', function() {
					$(this).toggleClass('openheader');
					$(this).parents('.module-header').next('.categoryitems1').animate({opacity: 'toggle', height: ['toggle', 'swing']}, 'fast');
				});	
				
		
		});
}
