function activateNavigation(listNode)
{
    listNode.className = 'active';
}

function deactivateNavigation()
{
    var activeNodes = document.getElementsByTagName('li');
    for(var i=0; i<activeNodes.length; i++)
    {
		if(activeNodes[i].className == 'active')
            activeNodes[i].className = '';
    }
}

function activeView(sender, viewName)
{
	var view = document.getElementById(viewName);
	if(sender != null)
	{
		tabs = sender.parentNode.parentNode.childNodes;
		for(var i=0; i<tabs.length; i++)
		{
			if(tabs[i].className == "active-tab")
				tabs[i].className = "";
		}
		sender.parentNode.className = "active-tab";
	}
	if(view != null)
	{
		var children = view.parentNode.childNodes;
		for(var i=0; i<children.length; i++)
		{
			if(children[i].className == "multiview-content-active")
				children[i].className = "multiview-content";
		}
		view.className = "multiview-content-active";
	}
	sender.blur();
}