function getNextSibling(startBrother)
{
	endBrother=startBrother.nextSibling;
	while(endBrother.nodeType!=1)
	{
		endBrother = endBrother.nextSibling;
	}
	return endBrother;
}

function getFirstChild(elm)
{
	if ( !elm.childNodes.length )
	{
		return;
	}
	var children = elm.childNodes.length;
	for ( var i = 0; i <= children; ++i )
	{
		if ( elm.childNodes[i].nodeType == 1 )
		{
			return elm.childNodes[i];
		}
	}
	return;
}
