
//subMenu

function changeObj(id,i,j)
{
	if (45 == i || 0 == i)
	{
		return;
	}
	var o =  document.getElementById(id);
	o.innerHTML = document.getElementById("sub"+i).innerHTML;
	o.style.left = "0px";
	var bInit = true;
	moveObj(id,j,bInit);
}

function moveObj(id,i,b)
{
	var o =  document.getElementById(id);
	if (b == true)
	{
		o.style.marginLeft = "0px";	
		b = false;
	}
	var width = 91;
	var style = o.style;
	var tInt = parseInt(style.left);
	if (tInt < (i+1)*91)
	{
		tInt += 30;
		style.left = tInt+"px";
		setTimeout('moveObj("'+id+'",'+i+','+b+')',25);
	}
	
}