// WBT Manager browser window utilities
// Copyright (C) 1999-2005. Integrity eLearning
//	all rights reserved
//
//	tells the navbar to refresh itself for a new page
function reloadnav( strASPDir, strPage )
{
	if( top.document.location!=self.document.location )
	{
		//find navigation page (page may be in the nested frameset of a selector)
		var wNav = parent;
		
		if( wNav != null)
			if( wNav.name != "main" ) wNav = wNav.parent; //up another level
		if( wNav != null ) wNav = wNav.left;
		
		if( wNav != null )
			if( wNav.updatenav != null )
				wNav.updatenav( strPage );
			else
				wNav.location= strASPDir + "?id=" + strPage + "&nocache=" + escape(Math.random());
	}
	
}
