

function clearText()
{
	setText('');
}

function changeText(id)
{
	if (id != '')
	{
		setText(subNav[id]);
	}
}

function setText(strText)
{
	if (navigator.appName == "Microsoft Internet Explorer") {
		subnav.innerHTML=strText;
	}
	else
	{
		dynamiccontentNS6('subnav', strText);
	}
}

function dynamiccontentNS6(elementid,content){
	if (document.getElementById){
	rng = document.createRange();
	el = document.getElementById(elementid);
	rng.setStartBefore(el);
	htmlFrag = rng.createContextualFragment(content);
	while (el.hasChildNodes())
	el.removeChild(el.lastChild);
	el.appendChild(htmlFrag);
	}
}
