	/*
	function showInnerMenu(elm, id)
	{
		var i = 0;
		
		$$('#yoga-navy a[rel=active]').each(function(item){
			i++;
			item.removeClassName('active-'+i);
			item.next().addClassName('hidden');
		});
		
		$(elm).down(0).addClassName('active-'+id);
		if ($(elm).down(1)){
			$(elm).down(1).removeClassName('hidden')
		}
	}
	*/
	
	var inner_all_hidden = true,
		shown_elm,
		shown_id,
		g_hl_id = -1;
	
	function showInnerMenu(elm, id)
	{
		if (shown_elm && shown_id)
		{
			hideInnerMenu(shown_elm, shown_id);
		}
		
		shown_elm = elm;
		shown_id = id;
		
		$(elm).down(0).addClassName('active-' + id);
		if ($(elm).down(1))
		{
			$(elm).down(1).removeClassName('hidden')
		}
		inner_all_hidden = false;
	}
	
	function hideInnerMenu(elm, id)
	{
		if (g_hl_id != id)
		{
			$(elm).down(0).removeClassName('active-' + id);
		}
		
		if ($(elm).down(1))
		{
			$(elm).down(1).addClassName('hidden')
		}
		inner_all_hidden = true;
		/*
		if (typeof(showCurrentPage) != 'undefined' && showCurrentPage)
		{
			new PeriodicalExecuter(function(pe)
			{
				if (inner_all_hidden)
				{
					showCurrentPage();
				}
				pe.stop();
		
			}, 0.5);
		}
		*/
	}

	function showMenu(elm, id)
	{
		$(elm).down(0).addClassName('active-'+id);
		if (elm.down(1)){
			$(elm).down(1).removeClassName('hidden')
		}
	}
	
	function hideMenu(elm, id)
	{
		$(elm).down(0).removeClassName('active-'+id);
		if ($(elm).down(1)){
			$(elm).down(1).addClassName('hidden')
		}
	}	
	
	function removeFlickr()
	{
		try 
		{
  			document.execCommand('BackgroundImageCache', false, true);
		}
			catch(e) {}
	}

	function showClass(mylink, id)
	{
		$$('#classes div').each(function(item){
			item.addClassName('hidden');
		});
		
		$$('#l-classes a').each(function(item){
			item.removeClassName('active');
		});
		
		$(mylink).addClassName('active');
		$('class-'+id).removeClassName('hidden');
	}