
function startMenu(mitem, last_x){
	// ���������, ������������ �� ������� ������� DOM
	if (document.getElementById){
		// �������� ������ � ������ �������������� menu
		nav = document.getElementById('menu1');
		// ����������� �� ���� �������� ��������� ������ ����
		for (i=0; i<nav.childNodes.length; i++) {
			node = nav.childNodes[i];
			// ���� �������� ������� - LI, �� ���� ������
			if (node.nodeName == 'LI') {
				// ��� ��������� ������� �� ����� ����, ����������� LI ����� over
				node.onmouseover = function() {
					this.className = 'over';
				}
				node.onmouseout = function() {
				// ��� ����������� ������� �� ������� ������ ������� ����� over
					this.className = ""
				}
			}
		}
	}
	$("#mitem"+mitem).css('display', 'block');
	
}

function startMenu3(mitem, last_x){
	// ���������, ������������ �� ������� ������� DOM
	if (document.getElementById){
		// �������� ������ � ������ �������������� menu
		nav = document.getElementById('menu1');
		// ����������� �� ���� �������� ��������� ������ ����
		for (i=0; i<nav.childNodes.length; i++) {
			node = nav.childNodes[i];
			// ���� �������� ������� - LI, �� ���� ������
			if (node.nodeName == 'LI') {
				// ��� ��������� ������� �� ����� ����, ����������� LI ����� over
				node.onmouseover = function() {
					this.className = 'over';
				}
				node.onmouseout = function() {
				// ��� ����������� ������� �� ������� ������ ������� ����� over
					this.className = ""
				}
			}
		}
	}
	$("#mitem"+mitem).css('display', 'block');
	
	xajax_Test(last_x);
	/*if(last_x != '') {
		var wndo = dw_scrollObj.col['wn'];
		var x = wndo.x;
	    var y = wndo.y;
		
	    wndo.on_scroll_start(x,y);
		var ny;
		var nx;
		nx = last_x;
		nx = (nx < 0 && nx >= -wndo.maxX)? nx: (nx < -wndo.maxX)? -wndo.maxX: 0;
	    ny = 0;
	    ny = (ny < 0 && ny >= -wndo.maxY)? ny: (ny < -wndo.maxY)? -wndo.maxY: 0;
		wndo.shiftTo(nx, ny);
   		wndo.on_scroll(nx, ny);
   		
	}*/
	
}
function startMenu2(){
	// ���������, ������������ �� ������� ������� DOM
	if (document.getElementById){
		// �������� ������ � ������ �������������� menu
		nav = document.getElementById('menu1');
		// ����������� �� ���� �������� ��������� ������ ����
		for (i=0; i<nav.childNodes.length; i++) {
			node = nav.childNodes[i];
			// ���� �������� ������� - LI, �� ���� ������
			if (node.nodeName == 'LI') {
				// ��� ��������� ������� �� ����� ����, ����������� LI ����� over
				node.onmouseover = function() {
					this.className = 'over';
				}
				node.onmouseout = function() {
				// ��� ����������� ������� �� ������� ������ ������� ����� over
					this.className = ""
				}
			}
		}
	}
	
	
}



function display(elem) {
				
                if (document.getElementById(elem).style.display != "" && document.getElementById(elem).style.display != "block") { 
                    document.getElementById(elem).style.display = "";
                                      
                }
                else {
                    document.getElementById(elem).style.display = "none";
                }
                return false;
            }


