jsHover = function() {
	var hEls = document.getElementById("left_menu").getElementsByTagName("li");
	for (var i=0, len=hEls.length; i<len; i++) {
		hEls[i].onmouseover=function() { this.className="jshover"; }
		hEls[i].onmouseout=function() { this.className=""; }
	}
}
if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
/*
function qwe(ttt)
{
uls = ttt.parentNode.getElementsByTagName('ul');
if (uls.length > 0) 
	{
		uls[0].style.display = ((uls[0].style.display == 'none'|| uls[0].style.display == '')?'block':'none');
	}
lis = ttt.parentNode;
//alert(lis.style.color);
if(uls[0].style.display == 'none'|| uls[0].style.display == '')
	{
		
		ttt.style.color = "#0069f9";
	}
	else
	{
		ttt.style.color = "#ffffff";
	}

return false;
}

function viewSelectSubmenu()
			{
				menu = document.getElementById("left_menu");
				as = menu.getElementsByTagName("A");
				len = as.length;
				
				for(i=0; i<len; i++)
				{
					if(as[i].className == "selected")
					{
						ul = as[i].parentNode.parentNode;
						setDisplayBlock(ul,menu);
							ttt = ul.parentNode.getElementsByTagName("A");
							ttt[0].style.color = "#ffffff";					
						break;
					};
				};
			}
function setDisplayBlock(ul,menu)
			{
				if((ul.tagName == "UL") && (ul != menu))
				{
					ul.style.display = "block";
					setDisplayBlock(ul.parentNode.parentNode,menu);
				};
			}
			*/
$(function(){
		$("#left_menu a").click(
			function(){
					
					if($(this).parent().find("ul").length == '0')
						document.location = $(this).attr("href");
					else
						{
							if($(this).next().css('display') == 'none')
							{	
								$(this).next().show("slow");
							}
							else
							{	
								$(this).next().hide("slow");
							};
							 return false;
						};
				}
		);
	});
