if (document.images)
{
	SrcArr = new Array ("m_01_","m_02_","m_03_","m_04_","m_05_","m_06_","m_07_","m_08_","m_09_","inner-st");
	ImgArr = new Array ();
	for (i in SrcArr)
	{
		ImgArr[i] = new Image();
		ImgArr[i].src ="/pic/menu/" + SrcArr[i] + ".gif";
	}
}

if (document.images)
{
	// прелол массива стрелочек :))
	for(i=1;i<=30;i++)
	{
		eval("btn"+i+"on = new Image();");
		eval('btn'+i+'on.src = "/pic/inner-st.gif";')
		eval("btn"+i+"off = new Image();");
		eval('btn'+i+'off.src = "/pic/spacer-m.gif";')
	}
}

timeId = '';
innerMenu = 0;

function swOn(imageName)
{
	if (document.images)
	{
		document[imageName].src = eval(imageName + "on.src");
		if(innerMenu)
		{
			if(timeId) clearTimeout(timeId);
			chIco(imageName);
		}
	}
}

function swOff(imageName)
{
	if (document.images)
	{
		document[imageName].src = eval(imageName + "off.src");
		if(innerMenu)
		{
			timeId = setTimeout("defIco()",10);
		}
	}
}

function swOn1(imageName)
{
	if (document.images)
	{
		if(timeId) clearTimeout(timeId);
		chIco(imageName);
	}
}

function swOff1(imageName)
{
		timeId = setTimeout("defIco()",10);
}


function ChgImg(ImNm, Vsbl, layerName)
{
	if (document.images){
		if(typeof(document.images[ImNm])=="object") 
			document.images[ImNm].src = "/pic/menu/"+ImNm + (Vsbl ? "_" : "") + ".gif";
		else if(document.layers)
			document.layers[layerName].document.images[ImNm].src = "/pic/menu/"+ImNm + (Vsbl ? "_" : "") + "_.gif";
	}
}

function popup()
{
    
}