	$(function() {
		//-------- advanced example
		$('.lang_option li a.selected').live('click', function() {
			//check if the options are visible
			if( $('.lang_option li a.option:visible').length > 1) {
				//hide the options if currently displaying
				$('.lang_option li a.option:not(.selected)').hide();			
			} else {
				//show the options if hidden
				$('.lang_option li a.option:not(.selected)').show();			
			}
			return false;
		}); 
		
		//check for selecting a new option
		$('.lang_option li a.option:not(.selected)').live('click', function() {
			//change over the selected class
			$('.lang_option li a').removeClass('selected');
			//apply this to the new selection
			$(this).addClass('selected');
			//slide up the selected option
			$('.lang_option li a.option:not(.selected)').hide();			
			return false;
		});
	});
	
		$(function() {
		//-------- advanced example
		$('.curr_option li a.selected').live('click', function() {
			//check if the options are visible
			if( $('.curr_option li a.option:visible').length > 1) {
				//hide the options if currently displaying
				$('.curr_option li a.option:not(.selected)').hide();			
			} else {
				//show the options if hidden
				$('.curr_option li a.option:not(.selected)').show();			
			}
			return false;
		}); 
		
		//check for selecting a new option
		$('.curr_option li a.option:not(.selected)').live('click', function() {
			//change over the selected class
			$('.curr_option li a').removeClass('selected');
			//apply this to the new selection
			$(this).addClass('selected');
			//slide up the selected option
			$('.curr_option li a.option:not(.selected)').hide();			
			return false;
		});
	});


